Version Description
Download this release
Release Info
Developer | ilyasfoo |
Plugin | WooCommerce Admin |
Version | 2.1.5 |
Comparing to | |
See all releases |
Code changes from version 2.6.2 to 2.1.5
- changelog.txt +0 -1466
- dist/app/index.js +6246 -4989
- dist/app/index.min.asset.php +0 -1
- dist/app/index.min.js +1 -1
- dist/app/style.css +1 -1
- dist/app/style.rtl.css +1 -1
- dist/chunks/0.js +142 -59
changelog.txt
DELETED
@@ -1,1466 +0,0 @@
|
|
1 |
-
== 2.6.2 09/14/2021 ==
|
2 |
-
|
3 |
-
- Fix Update task-item logic to only display content when expanded is true. #7611
|
4 |
-
|
5 |
-
== 2.6.1 09/01/2021 ==
|
6 |
-
|
7 |
-
- Update: Update marketing task completion logic. #7586
|
8 |
-
|
9 |
-
== 2.6.0 08/31/2021 ==
|
10 |
-
|
11 |
-
- Fix: Fixes action button mis-alignment within card footer. #7412
|
12 |
-
- Fix: Fixing issues with ReportTable component data not populating correctly #7355
|
13 |
-
- Fix: Fix tracks events for payment gateway suggestions #7304
|
14 |
-
- Fix: Update status values in CSV download to match the table #7284
|
15 |
-
- Fix: Allow super admins all capabilities within WooCommerce Admin #7489
|
16 |
-
- Fix: Fix blank screen by setting a default value #7506
|
17 |
-
- Fix: Fix analytics overview re-arrangement on initial load. #7475
|
18 |
-
- Fix: Fix up onboarding profiler not working when opted out of tracking #7490
|
19 |
-
- Fix: Fix blank screen on analytics screens when searching #7482
|
20 |
-
- Fix: Fix all links with hash to behind query parameters #7483
|
21 |
-
- Fix: Fix Stats module CSS issue introduced by Gutenberg #7488
|
22 |
-
- Fix: Fix marketing task visibility #7580
|
23 |
-
- Add: Add boolean isReverseTrend prop to SummaryNumber to show "positive" delta for negative numbers. #7357
|
24 |
-
- Add: Adding links to help panel for marketing task #7384
|
25 |
-
- Add: Add installed marketing extensions card to extensions task #7419
|
26 |
-
- Add: Add marketing extensions task to task list #7383
|
27 |
-
- Add: Add tracks to marketing manage button click #7467
|
28 |
-
- Add: Add default marketing extensions as fallbacks #7466
|
29 |
-
- Add: Add marketing task completion check and tests #7451
|
30 |
-
- Add navigation items for the Marketplace menu. #7529
|
31 |
-
- Update: Add locale param as part of free extensions request #7391
|
32 |
-
- Update: Increase per_page value for search results on the Analytics pages. #7385
|
33 |
-
- Update: Removing grow section from local free extensions in OBW #7386
|
34 |
-
- Update: Don't show the marketing task if no marketing tasks exist #7460
|
35 |
-
- Update: Delete free extensions transient on WCA update #7454
|
36 |
-
- Update: Update business details to use extensions data store #7452
|
37 |
-
- Update: Split Extensions page into Marketplace and My Subscriptions. #7471
|
38 |
-
- Dev: Added utm_medium=product to woocommerce.com links. #7408
|
39 |
-
- Dev: Update Jest to version 27. #7430
|
40 |
-
- Tweak: Refactor on payment settings recommendations eligibility component for reuse. #7447
|
41 |
-
- Tweak: Register wc-admin page for all users and handle authorization in client #7285
|
42 |
-
|
43 |
-
== 2.5.0 07/08/2021 ==
|
44 |
-
|
45 |
-
- Add: Add a delete option to completed tasks #7300
|
46 |
-
- Add: Add unit tests around extended payment gateway controller #7133
|
47 |
-
- Add: Add payment gateway suggestion unit tests #7142
|
48 |
-
- Add: Feature toggle to disable Analytics UI #7168
|
49 |
-
- Add: Hook reference slotFill support #6833
|
50 |
-
- Add: Adding tests for PaymentGatewaySuggestions > List component #7201
|
51 |
-
- Dev: Add `woocommerce_admin_export_id` filter for customizing the export file name #7178
|
52 |
-
- Dev: Remove old payment gateway task components #7224
|
53 |
-
- Fix: Currency display on Orders activity card on homescreen #7181
|
54 |
-
- Fix: Fix obsolete key property in gateway defaults #7229
|
55 |
-
- Fix: Fixing button state logic for remote payment gateways #7200
|
56 |
-
- Fix: Recommended gateway suggestions not displayed properly #7231
|
57 |
-
- Fix: Include onboarding settings on the analytic pages #7109
|
58 |
-
- Fix: Load Analytics API only when feature is turned on #7193
|
59 |
-
- Fix: Localize string for description #7219
|
60 |
-
- Fix: Filters: On update respect all other queries, not just persistedQueries #7155
|
61 |
-
- Fix: Use saved form values if available when switching tabs #7226
|
62 |
-
- Fix: Skip schedule customer data deletion on site deletion #7214
|
63 |
-
- Fix: WCPay not working in local payments task #7151
|
64 |
-
- Fix: Report export filtering bug. #7165
|
65 |
-
- Fix: Add padding on table header button #7213
|
66 |
-
- Fix: Use tab char for the CSV injection prevention. #7154
|
67 |
-
- Fix: Add height auto on autocomplete popover button #7225
|
68 |
-
- Fix: Make WooCommerce-admin full-screen minimum height 100vh important #7230
|
69 |
-
- Fix: Cache product/variation revenue query results. #7067
|
70 |
-
- Fix: Transient overlapping adjacent content. #7302
|
71 |
-
- Fix: Unused feature preloaded options #7299
|
72 |
-
- Fix: Fix missing translation strings for CES #7270
|
73 |
-
- Fix: Add missing translation strings in the business features section #7268
|
74 |
-
- Fix: Fix inbox note dismiss dropdown not closing on Safari #7278
|
75 |
-
- Fix: Create workable defaults for Reports that don’t have AdvancedFilters #7186
|
76 |
-
- Sync the category lookup table when a new category gets created #7290
|
77 |
-
- Tweak: Remove performance indicators when Analytics Flag disabled #7234
|
78 |
-
- Tweak: Change event name when installing Google Listings and Ads. #7276
|
79 |
-
- Tweak: Removed unused feature flags #7233 and #7273
|
80 |
-
- Tweak: Repurpose disable wc-admin filter to remove optional features #7232
|
81 |
-
- Update: Notes to use a date range. #7222
|
82 |
-
|
83 |
-
== 2.4.4 7/21/2021 ==
|
84 |
-
|
85 |
-
- Fix: Fix homepage stock panel regression in 2.4.3. #7389
|
86 |
-
|
87 |
-
== 2.4.3 7/21/2021 ==
|
88 |
-
|
89 |
-
- Fix: Add a new low stock products endpoint to improve the performance. #7377
|
90 |
-
|
91 |
-
== 2.4.2 7/19/2021 ==
|
92 |
-
|
93 |
-
- Fix: Add lazy loading by checking panel open status #7376
|
94 |
-
- Fix: Add cache-control header to low stock REST API response #7364
|
95 |
-
|
96 |
-
== 2.4.1 07/01/2021 ==
|
97 |
-
|
98 |
-
- Fix: Fix and refactor explat polling to use setTimeout #7274
|
99 |
-
|
100 |
-
== 2.4.0 06/29/2021 ==
|
101 |
-
|
102 |
-
- Add: SlotFill to Abbreviated Notification panel #7091
|
103 |
-
- Add: Consume remote payment methods on frontend #6867
|
104 |
-
- Add: Extend payment gateways REST endpoint #6919
|
105 |
-
- Add: Add remote payment gateway recommendations initial docs #6962
|
106 |
-
- Add: Add loading placeholders for payment gateways task #7123
|
107 |
-
- Add: Note date range logic for GivingFeedback, and InsightFirstSale note. #6969
|
108 |
-
- Add: Add transient notices feature #6809
|
109 |
-
- Add: Add transformers in remote inbox notifications #6948
|
110 |
-
- Add: Add Mercado Pago as default fallback payment gateway #7043
|
111 |
-
- Add: Add in Razorpay as default fallback payment gateway #7096
|
112 |
-
- Add: Get post install scripts from gateway and enqueue in client #6967
|
113 |
-
- Add: Add eWAY as default fallback gateway #7108
|
114 |
-
- Add: Free extension list powered by remote config #6952
|
115 |
-
- Add: Add PayPal to fallback payment gateways #7001
|
116 |
-
- Add: Add a data store for WC Payments REST APIs #6918
|
117 |
-
- Add: Progressive setup checklist copy and call to action buttons. #6956
|
118 |
-
- Add: Add Paystack as fallback gateway #7025
|
119 |
-
- Add: Add Square as default fallback gateway #7107
|
120 |
-
- Add: Add COD method to default payment gateway recommendations #7057
|
121 |
-
- Add: Add BACS as default fallback payment gateway #7073
|
122 |
-
- Add: A/B test of progressive checklist features. #7089
|
123 |
-
- Add: Add payment gateway return URL and action #7095
|
124 |
-
- Add: Add Mollie to the default payment gateways. #7092
|
125 |
-
- Add: Show task and activity notifications in the Inbox panel #7017
|
126 |
-
- Add: Adding WCPay payment configuration defaults. #7097
|
127 |
-
- Add: Create onboarding package to house refactored WCPay card and relevant components #7058
|
128 |
-
- Dev: Add Jetpack Backup admin note #6738
|
129 |
-
- Dev: Reduce the specificity and complexity of the ReportError component #6846
|
130 |
-
- Dev: Converting <SettingsForm /> component to TypeScript. #6981
|
131 |
-
- Dev: Update package-lock to fix versioning of local packages. #6843
|
132 |
-
- Dev: Use rule processing for remote payment methods #6830
|
133 |
-
- Dev: Update E2E jest config, so it correctly creates screenshots on failure. #6858
|
134 |
-
- Dev: Fixed storybook build script #6875
|
135 |
-
- Dev: Removed allowed keys list for adding woocommerce_meta data. #6889 🎉 @xristos3490
|
136 |
-
- Dev: Delete all products when running product import tests, unskip previously skipped test. #6905
|
137 |
-
- Dev: Add payment method selector to onboarding store #6921
|
138 |
-
- Dev: Add disabled prop to SelectControl #6902
|
139 |
-
- Dev: Add filter variation to tracks data in products analytics. #6913
|
140 |
-
- Dev: Offload remote inbox notifications engine run using action-scheduler. #6995
|
141 |
-
- Dev: Add source param support for notes query. #6979
|
142 |
-
- Dev: Remove the use of Dashicons and replace with @wordpress/icons or gridicons. #7020
|
143 |
-
- Dev: Refactor inbox panel components and moved to experimental package. #7006
|
144 |
-
- Dev: Business features uncheck creative mail by default #7139
|
145 |
-
- Dev: Remove support for IE11. #7112
|
146 |
-
- Dev: Drop styling support for IE11. #7137
|
147 |
-
- Dev: Remove react-docgen docs in favor of Storybook #7055
|
148 |
-
- Enhancement: Add expand/collapse to extendable task list. #6910
|
149 |
-
- Enhancement: Add task hierarchy support to extended task list. #6916
|
150 |
-
- Enhancement: Add remind me later option to task list. #6923
|
151 |
-
- Enhancement: Enable Remote Free Extensions List #7144
|
152 |
-
- Enhancement: Adding Slotfills for remote payments and SettingsForm component. #6932
|
153 |
-
- Fix: Update the wordpress/babel-preset to avoid crashes in WP5.8 beta2 #7202
|
154 |
-
- Fix: Add fallback for the select/dispatch data-controls for older WP versions #7204
|
155 |
-
- Fix: RemoteFreeExtension hide bundle when all of its plugins are not visible #7182
|
156 |
-
- Fix: Issue where summary stats were not showing in Analytics > Stock. #7161
|
157 |
-
- Fix: Rule Processing Transformer to handle dotNotation default value #7009
|
158 |
-
- Fix: Remove Navigation's uneeded SlotFill context #6832
|
159 |
-
- Fix: Report filters expecting specific ordering. #6847
|
160 |
-
- Fix: Render bug with report comparison mode selections. #6862
|
161 |
-
- Fix: Throw exception if the data store cannot be loaded when trying to use notes. #6771
|
162 |
-
- Fix: Autocompleter for custom Search in FilterPicker #6880
|
163 |
-
- Fix: Get currency from CurrencyContext #6723
|
164 |
-
- Fix: Correct the left position of transient notices when the new nav is used. #6914
|
165 |
-
- Fix: Exclude WC Shipping for store that are only offering downloadable products #6917
|
166 |
-
- Fix: SelectControl focus and de-focus bug #6906
|
167 |
-
- Fix: Multiple preload tag output bug. #6998
|
168 |
-
- Fix: Call existing filters for leaderboards in analytics. #6626
|
169 |
-
- Fix: Set target to blank for the external links #6999
|
170 |
-
- Fix style regression with the Chart header. #7002
|
171 |
-
- Fix styling of the advanced filter operator selection. #7005
|
172 |
-
- Fix: Deprecated warnings from select control @wordpress/data-controls. #7007
|
173 |
-
- Fix: Bug with Orders Report coupon exclusion filter. #7021
|
174 |
-
- Fix: Show Google Listing and Ads in installed marketing extensions section. #7029
|
175 |
-
- Fix: Notices not dissapearing. #7077
|
176 |
-
- Fix: Keyboard accessibility on the free features tab. #7149
|
177 |
-
- Fix: Fix error handling when remote free extension API returns empty array. #7147
|
178 |
-
- Fix: Transformer casing is incorrect and creates an error on case-sensitive systems #7104
|
179 |
-
- Fix: Preventing redundant notices when installing plugins via payments task list. #7026
|
180 |
-
- Fix: Autocompleter for custom Search in CompareFilter #6911
|
181 |
-
- Fix: Add target to the button to open it in a new tab #7110
|
182 |
-
- Fix: Make `Search` accept synchronous `autocompleter.options`. #6884
|
183 |
-
- Fix: Set autoload to false for all remote inbox notifications options. #7060
|
184 |
-
- Fix: The use of gridicons for Analytics section controls. #7237
|
185 |
-
- Fix: WordPress 5.8 compatibility UI fixes #7255
|
186 |
-
- Fix: CurrencyFactory constructor to use proper function #7261
|
187 |
-
- Tweak: Setup checklist copy revert. #7015
|
188 |
-
- Tweak: Revert Card component removal #7167
|
189 |
-
- Update: Task list component with new Experimental Task list. #6849
|
190 |
-
- Update: Optimize payment gateway resolution #7124
|
191 |
-
- Update: Experimental task list import to the experimental package. #6950
|
192 |
-
- Update: Redirect to WC Home after setting up a payment method #6891
|
193 |
-
- Update: Hook up payments gateway data store #7038
|
194 |
-
- Update: Update remote payment docs gateway methods #7079
|
195 |
-
- Update: Remove original business step flow #7103
|
196 |
-
- Update: WooCommerce Shipping copy on onboarding steps #7148
|
197 |
-
|
198 |
-
== 2.3.1 05/24/2021 ==
|
199 |
-
|
200 |
-
- Tweak: Store profiler Changed MailPoet's title and description #6990
|
201 |
-
- Tweak: Adjust WC Pay supported countries #7048
|
202 |
-
- Update: Payment recommendation screen transition and add external link icon. #7022
|
203 |
-
- Fix: A JS exception being thrown on the product tags page. #7053
|
204 |
-
- Fix: Show Google Listing and Ads in installed marketing extensions section. #7029
|
205 |
-
|
206 |
-
== 2.3.0 05/13/2021 ==
|
207 |
-
|
208 |
-
- Add: Add plugin installer to allow installation of plugins via URL #6805
|
209 |
-
- Add: Optional children prop to SummaryNumber component #6748
|
210 |
-
- Dev: Add data source filter to remote inbox notification system #6794
|
211 |
-
- Dev: Introduce usage of ExPlat, an A/B testing tool. See https
|
212 |
-
- Dev: Add support for nonces in note actions #6726
|
213 |
-
- Dev: Add support for running php unit tests in PHP 8. #6678
|
214 |
-
- Dev: Add event recording to start of gateway connections #6801
|
215 |
-
- Feature: Add recommended payment methods in payment settings. #6760
|
216 |
-
- Fix: Event tracking for merchant email notes #6616
|
217 |
-
- Fix: Use the store timezone to make time data requests #6632
|
218 |
-
- Fix: Update the checked input radio button margin style #6701
|
219 |
-
- Fix: Convert date to timestamp before passing to set_date_prop to persist timezone #6795
|
220 |
-
- Fix: Make pagination buttons height and width consistent #6725
|
221 |
-
- Fix: Retain persisted queries when navigating to Homescreen #6614
|
222 |
-
- Fix: Update folded header style #6724
|
223 |
-
- Fix: Unreleated variations showing up in the Products reports #6647
|
224 |
-
- Fix: Check active plugins before getting the PayPal onboarding status #6625
|
225 |
-
- Fix: Remove noreply from inbox notification emails #6644
|
226 |
-
- Fix: Set up shipping costs task, redirect to shipping settings after completion. #6791
|
227 |
-
- Fix: Onboarding logic on WooCommerce update to keep task list present. #6803
|
228 |
-
- Fix: Pause inbox message “GivingFeedbackNotes” #6802
|
229 |
-
- Fix: Missed DB version number updates causing unnecessary upgrades. #6818
|
230 |
-
- Fix: Parsing bad JSON string data from user WooCommerce meta. #6819
|
231 |
-
- Fix: Remove PayPal for India #6828
|
232 |
-
- Performance: Avoid updating customer info synchronously from the front end. #6765
|
233 |
-
- Tweak: Add settings_section event prop for CES #6762
|
234 |
-
- Tweak: Refactor payments to allow management of methods #6786
|
235 |
-
- Tweak: Add tracking data for the preview site button #6623
|
236 |
-
- Tweak: Update WC Payments copy on the task list #6734
|
237 |
-
- Tweak: Update payment gateway suggestions semantics to be more consistent #7130
|
238 |
-
- Tweak: Add check to see if value for contains is array, show warning if not. #6645
|
239 |
-
- Tweak: Sort the extension task list by completion status and allow toggling visibility. #6792
|
240 |
-
- Tweak: Only fetch remote payment gateway recommendations when opted in #6964
|
241 |
-
- Update: Replace marketing extension Google Listings and Ads. #6939
|
242 |
-
- Update: Update choose niche note cta URL #6733
|
243 |
-
- Update: UI updates to Payment Task screen #6766
|
244 |
-
- Update: Update payment gateway suggestions semantics to be more consistent #7130
|
245 |
-
- Update: Adding setup required icon for nonconfigured payment methods #6811
|
246 |
-
|
247 |
-
== 2.2.6 05/07/2021 ==
|
248 |
-
|
249 |
-
- Fix: Address an issue with OBW when installing only WooCommerce payments and Jetpack. #6957
|
250 |
-
|
251 |
-
== 2.2.5 05/07/2021 ==
|
252 |
-
|
253 |
-
- Fix: Calling of get_script_asset_filename with extra parameter #6955
|
254 |
-
|
255 |
-
== 2.2.4 05/07/2021 ==
|
256 |
-
|
257 |
-
- Dev: Fix a bug where trying to load an asset registry causes a crash. #6951
|
258 |
-
|
259 |
-
== 2.2.3 05/06/2021 ==
|
260 |
-
|
261 |
-
- Dev: Do a git clean before the core release. #6945
|
262 |
-
|
263 |
-
== 2.2.2 04/28/2021 ==
|
264 |
-
|
265 |
-
- Fix: Disable the continue btn on OBW when requested are being made #6838
|
266 |
-
- Tweak: Revert WCPay international support for bundled package #6901
|
267 |
-
- Tweak: Store profiler Changed MailPoet's title and description #6886
|
268 |
-
- Tweak: Update PayU logo #6829
|
269 |
-
|
270 |
-
== 2.2.0 03/30/2021 ==
|
271 |
-
|
272 |
-
- Fix: Check if features are currently being enabled #6688
|
273 |
-
- Fix: Fix the activity panel toggle not closing on click #6679
|
274 |
-
- Fix: Fix use of feature checks and remove deprecated method calls #6687
|
275 |
-
- Fix: Allow the manager role to query certain options #6577
|
276 |
-
- Fix: Delete customer data on network user deletion #6574
|
277 |
-
- Fix: Fix Themes step visibility in IE 11 #6578
|
278 |
-
- Fix: Fix hidden menu title on smaller screens #6562
|
279 |
-
- Fix: Add gross sales column to CSV export #6567
|
280 |
-
- Fix: Add check for navigating being enabled. #6462
|
281 |
-
- Fix: Move the shipping input and text 1px lower. #6408
|
282 |
-
- Fix: Correct the Klarna slug #6440
|
283 |
-
- Fix: Broken link anchors to online documentation. #6455
|
284 |
-
- Fix: Update payment card style on mobile #6413
|
285 |
-
- Fix: Missing i18n in Welcome modal. #6456
|
286 |
-
- Fix: Restore visual styles back to Analytics tabs. #5913
|
287 |
-
- Fix: Update contrast and hover / active colors for analytics dropdown buttons #6504
|
288 |
-
- Fix: Associated Order Number for refunds was hidden #6428
|
289 |
-
- Fix: Fix issue where Loader
|
290 |
-
- Fix: Correct a bug where the JP connection flow would not happen when installing JP in the OBW. #6521
|
291 |
-
- Fix: Show management links when the task list is complete (even if its not hidden). #6657
|
292 |
-
- Fix: Adding New Zealand and Ireland to selective bundle option, previously missed. #6649
|
293 |
-
- Fix: Update the Mercado option used for enabling/disabling. #6677
|
294 |
-
- Fix: Improve AddFirstProduct email note contents. #6617
|
295 |
-
- Fix: Missing margin between cards and viewport in setup wizard #6620
|
296 |
-
- Add: Next new novel navigation nudge note #6610
|
297 |
-
- Add: Add legacy report items to new navigation #6507
|
298 |
-
- Add: Add preview site button on the appearance task #6457
|
299 |
-
- Add: Back button to go to home screen from tasks in the task list. #6397
|
300 |
-
- Add: Add a "rather not say" option to revenue in the profile wizard. #6475
|
301 |
-
- Add: Remove Mollie promo note on install #6510
|
302 |
-
- Add: Remote Inbox Notifications rule to trigger when WooCommerce Admin is upgraded. #6040
|
303 |
-
- Add: Add Ireland to Square payment method #6559
|
304 |
-
- Add: CES survey for search product, order, customer #6420
|
305 |
-
- Add: CES survey for importing products #6419
|
306 |
-
- Add: CES survey for adding product categories, tags, and attributes #6418
|
307 |
-
- Add: Additional analytics tracking for the business details step. #6575
|
308 |
-
- Add: Include tracking for mail poet installs in the selective bundle install #6603
|
309 |
-
- Add: Paystack payment provider to several african countries. #6579
|
310 |
-
- Tweak: Add default value for contains op #6622
|
311 |
-
- Tweak: Adjust targeting store age for the Add First Product note #6554
|
312 |
-
- Tweak: Improve WC Shipping & Tax logic #6547
|
313 |
-
- Tweak: Update Insight inbox note content #6555
|
314 |
-
- Tweak: Remove mobile activity panel toggle #6539
|
315 |
-
- Tweak: Refactor autoloader to remove global variable. #6412
|
316 |
-
- Dev: Close activity panel tabs by default and track #6566
|
317 |
-
- Dev: Update undefined task name properties for help panel tracks #6565
|
318 |
-
- Dev: Refactor profile wizard benefits step and add tests #6583
|
319 |
-
- Dev: Add filter to profile wizard steps #6564
|
320 |
-
- Dev: Add nav intro modal tests #6518
|
321 |
-
- Dev: Use wc filter to get status tabs for tools category #6525
|
322 |
-
- Dev: Add nav header component tests #6509
|
323 |
-
- Dev: Add initial tests for navigation Menu class #6492
|
324 |
-
- Dev: Remove active item from navigation store #6486
|
325 |
-
- Dev: Add navigation container tests #6464
|
326 |
-
- Dev: Add nav favorite button tests #6446
|
327 |
-
- Dev: Add a changelog lint check to PRs. #6414
|
328 |
-
- Dev: Add navigation favorites tests #6409
|
329 |
-
- Dev: support use of Array.flat in client and packages. #6411
|
330 |
-
- Dev: Deprecate Onboarding
|
331 |
-
- Dev: Add Dependency Extraction Webpack Plugin #5762
|
332 |
-
- Dev: Add clientside filter for Navigation rootBackUrl #6505
|
333 |
-
- Dev: Remove `items_purchased` and `account_type` props from onboarding profile API. #6520
|
334 |
-
- Dev: Added warning when WCAdmin is active but not being used #6453
|
335 |
-
- Dev: Store profiler Added MailPoet to Business Details step #6503
|
336 |
-
- Dev: Store profiler Added MailPoet to new Business Details step #6515
|
337 |
-
- Dev: Add tilde (~) to represent client root directory for imports. #6517
|
338 |
-
- Dev: Add script automation for gathering hooks and filters. #6454
|
339 |
-
- Dev: Add TypeScript to CustomerFeedbackModal component. #6498
|
340 |
-
- Dev: Add TypeScript and page objects to the E2E test suite. #6582
|
341 |
-
- Dev: Introduce Typescript to Navigation utils #6477
|
342 |
-
- Dev: Payments task
|
343 |
-
- Dev: Ensure script asset.php files are included in builds #6635
|
344 |
-
- Dev: Ensure production script asset names don't include .min suffix #6681
|
345 |
-
|
346 |
-
== 2.1.4 03/29/2021 ==
|
347 |
-
|
348 |
-
- Fix: Adding New Zealand and Ireland to selective bundle option, previously missed. #6649
|
349 |
-
|
350 |
-
== 2.1.3 03/14/2021 ==
|
351 |
-
|
352 |
-
- Feature: Increase target audience for business feature step. #6508
|
353 |
-
- Fix: Correct a bug where the JP connection flow would not happen when installing JP in the OBW. #6521
|
354 |
-
- Fix: Add customer name column to CSV export #6556
|
355 |
-
|
356 |
-
== 2.1.2 03/10/2021 ==
|
357 |
-
|
358 |
-
- Fix: Add guard to "Deactivate Plugin" note handlers to prevent fatal error. #6532
|
359 |
-
- Fix: Crash of Analytics > Settings page when Gutenberg is installed. #6540
|
360 |
-
|
361 |
-
== 2.1.1 03/04/2021 ==
|
362 |
-
|
363 |
-
- Fix: Restore missing Correct the Klarna slug #6440
|
364 |
-
|
365 |
-
== 2.1.0 03/04/2021 ==
|
366 |
-
|
367 |
-
- Dev: Allow highlight tooltip to use body tag as parent. #6309
|
368 |
-
- Dev: Remove Google fonts and material icons. #6343
|
369 |
-
- Dev: Add filter to allow enabling the WP toolbar within the new navigation. #6371
|
370 |
-
- Dev: Add unit tests to Navigation's Container component. #6344
|
371 |
-
- Dev: Use box sizing and padding to fix nav and admin menu styling #6335
|
372 |
-
- Dev: Refactor head and body heights #6247
|
373 |
-
- Dev: Fix the react state update error on homescreen. #6320
|
374 |
-
- Dev: Change `siteUrl` to `homeUrl` on navigation site title #6240
|
375 |
-
- Dev: Add navigation favorites data store #6275
|
376 |
-
- Dev: Add a changelog lint check to PRs. #6414
|
377 |
-
- Add: Remove CES actions for adding and editing a product and editing an order #6355
|
378 |
-
- Add: CES track settings tab on updating settings #6368
|
379 |
-
- Add: Favorites tooltip to the navigation #6312
|
380 |
-
- Add: Core settings redirection to new settings pages #6091
|
381 |
-
- Add: Settings feature and pages #6089
|
382 |
-
- Add: Settings client pages #6092
|
383 |
-
- Add: Favoriting extensions client UI #6287
|
384 |
-
- Add: Add navigation intro modal. #6367
|
385 |
-
- Add: WC Admin Docker setup with WPENV
|
386 |
-
- Fix: Enqueue scripts called incorrectly in php unit tests #6358
|
387 |
-
- Fix: Removed @woocommerce/components/card from OBW #6374
|
388 |
-
- Fix: Email notes now are turned off by default #6324
|
389 |
-
- Fix: Top bar slightly overlaps wpadmin navigation on mobile #6292
|
390 |
-
- Fix: Hide tooltip in welcome modal #6142
|
391 |
-
- Fix: update single column home screen width to 680px #6297
|
392 |
-
- Fix: Recommended Payment Banner missing in Safari #6375
|
393 |
-
- Fix: Empty nav menu #6366
|
394 |
-
- Fix: Check if tax was successfully added before displaying notice #6229
|
395 |
-
- Fix: Update timing of InboxPanel state changes for the unread indicator #6246
|
396 |
-
- Fix: Display" option fails to collapse upon invoking "Help" option #6233
|
397 |
-
- Fix: Removal of core settings pages #6328
|
398 |
-
- Fix: Fix double prefixing of full navigation URLs #6460
|
399 |
-
- Fix: Reset Navigation submenu before making Flyout #6396
|
400 |
-
- Fix: Move the shipping input and text 1px lower. #6408
|
401 |
-
- Tweak: Order and styles updates to nav footer #6373
|
402 |
-
- Tweak: Enqueue beta features scripts on enqueue_scripts action instead of filter #6358
|
403 |
-
- Tweak: Set `is_deleted` from the database when instantiating a `Note` #6322
|
404 |
-
- Tweak: New Settings
|
405 |
-
- Tweak: Update inline documentation for navigation Screen class #6173
|
406 |
-
- Tweak: Remove categories without menu items #6329
|
407 |
-
- Tweak: Navigation
|
408 |
-
- Tweak: Move admin menu manipulation from admin_head to admin_menu #6310
|
409 |
-
- Tweak: Updates to copy and punctuation to be more conversational and consistent. #6298
|
410 |
-
- Enhancement: Move capability checks to client #6365
|
411 |
-
- Enhancement: Navigation
|
412 |
-
- Enhancement: override wpbody styles when nav present #6354
|
413 |
-
- Enhancement: Move favorited menu items to primary menu #6290
|
414 |
-
|
415 |
-
== 2.0.3 03/10/2021 ==
|
416 |
-
|
417 |
-
- Fix: Crash of Analytics > Settings page when Gutenberg is installed. #6540
|
418 |
-
|
419 |
-
== 2.0.2 05/25/2021 ==
|
420 |
-
|
421 |
-
- Fix: Correct the Klarna slug #6440
|
422 |
-
|
423 |
-
== 2.0.0 02/05/2021 ==
|
424 |
-
|
425 |
-
- Tweak: Bump minimum supported version of PHP to 7.0. #6046
|
426 |
-
- Tweak: update the content and timing of the NeedSomeInspiration note. #6076
|
427 |
-
- Tweak: Adjust the Marketing note not to show until store is at least 5 days. #6083
|
428 |
-
- Tweak: Refactored extended task list. #6081
|
429 |
-
- Fix: allow for more terms to be shown for product attributes in the Analytics orders report. #5868
|
430 |
-
- Fix: Add support for a floatingpoint number as a SummaryNumber's delta. #5926
|
431 |
-
- Fix: Fixed the Add First Product email note checks. #6260
|
432 |
-
- Fix: Onboarding Fixed "Business Details" error. #6271
|
433 |
-
- Fix: Show management links when only main task list is hidden. #6291
|
434 |
-
- Fix: Persist the enabling of plugins in the payments setup task. #6332
|
435 |
-
- Add: new inbox message Getting started in Ecommerce watch this webinar. #6086
|
436 |
-
- Add: Remote inbox notifications contains comparison and fix product rule. #6073
|
437 |
-
- Add: Task list payments include Mollie as an option. #6257
|
438 |
-
- Add: Allow users to install the PayU plugin in the payments setup task. #6332
|
439 |
-
- Update: store deprecation welcome modal support doc link #6094
|
440 |
-
- Update: Homescreen layout, moving Inbox panel for better interaction. #6122
|
441 |
-
- Enhancement: Allowing users to create products by selecting a template. #5892
|
442 |
-
- Enhancement: Use the new Paypal payments plugin for onboarding. #6261
|
443 |
-
- Dev: Add wait script for mysql to be ready for phpunit tests in docker. #6185
|
444 |
-
- Dev: Remove old debug code for connecting to Calypso / Wordpress.com. #6097
|
445 |
-
- Dev: Allow highlight tooltip to use body tag as parent. #6309
|
446 |
-
|
447 |
-
== 1.9.0 01/15/2021 ==
|
448 |
-
|
449 |
-
- Fix: Add Customer Type column to the Orders report table. #5820
|
450 |
-
- Fix: Product exclusion filter on Orders Report.
|
451 |
-
- Fix: Typo in Variation Stats DataStore context filter value.
|
452 |
-
- Fix: support custom attributes in Attribute advanced report filter.
|
453 |
-
- Fix: Don't show Stock and Reviews Homescreen panels too early.
|
454 |
-
- Fix: Undefined $collate variable when database does not have collation capability. #5992
|
455 |
-
- Fix: Moved certified owner label for review to title. ##5877
|
456 |
-
- Fix: Move collapsible config to panels object, to allow for more control. #5855
|
457 |
-
- Fix: Invalidate product count if the last product was updated in the list. #5790
|
458 |
-
- Fix: Updating (non wordpress user) customer with order data
|
459 |
-
- Fix: Fixed error hiding core task list. #6050
|
460 |
-
- Fix: Generate JSON translation chunks on plugin activation #6028
|
461 |
-
- Tweak: Remove deprecated use of Jetpack in shipping label banner. #5929
|
462 |
-
- Tweak: Remove visit_count from track, and update task count logic. #5996
|
463 |
-
- Tweak: Fix inconsistent REST API paramater name for customer type filtering.
|
464 |
-
- Tweak: update the content for the ChooseNiche note. #6048
|
465 |
-
- Enhancement: Show Help panel tooltip when user visits unfinished task more then once. #5826
|
466 |
-
- Enhancement: Tasks extensibility in Home Screen. #5794
|
467 |
-
- Enhancement: Add page parameter to override default wcadmin page in Navigation API. #5821
|
468 |
-
- Enhancement: Add an a/b experiment for installing free business features #5786
|
469 |
-
- Enhancement: Add an "unread" indicator to inbox messages. #6047
|
470 |
-
- Dev: Add documentation for filter `woocommerce_admin_pages_list` and `wc_admin_register_page` #5844
|
471 |
-
- Dev: Revert work done in #4857 for automated shipping after OBW is completed #5971
|
472 |
-
- Dev: Add `onChangeCallback` feature to the wcadmin <Form> component #5786
|
473 |
-
- Dev: Add merchant email notifications #5922
|
474 |
-
- Dev: Update travis CI distribution. #6067
|
475 |
-
- Add: Welcome modal when coming from Calypso #6004
|
476 |
-
- Add: Email note to add first product. #6024
|
477 |
-
- Add: Note for users coming from Calypso. #6030
|
478 |
-
- Add: Manage activity from home screen inbox message. #6072
|
479 |
-
|
480 |
-
== 1.8.3 01/05/2021 ==
|
481 |
-
|
482 |
-
- Fix: Compile the debug module so it can be used in older browsers like IE11. #5987
|
483 |
-
|
484 |
-
== 1.8.2 12/22/2020 ==
|
485 |
-
|
486 |
-
- Fix: Completed tasks tracking causing infinite loop #5941
|
487 |
-
- Fix: Remove Navigation access #5940
|
488 |
-
|
489 |
-
== 1.8.1 12/15/2020 ==
|
490 |
-
|
491 |
-
- Fix: Product exclusion filter on Orders Report.
|
492 |
-
- Fix: Typo in Variation Stats DataStore context filter value. #5784
|
493 |
-
|
494 |
-
== 1.8.0 12/07/2020 ==
|
495 |
-
|
496 |
-
- Enhancement: Add "filter by variations in reports" inbox note. #5208
|
497 |
-
- Enhancement: Tasks extensibility in Home Screen. #5794
|
498 |
-
- Enhancement: Add page parameter to override default wcadmin page in Navigation API. #5821
|
499 |
-
- Enhancement: Introduce the customer effort score (CES) feature.
|
500 |
-
- Enhancement: Rework task extensibility in the homescreen. #5794
|
501 |
-
- Enhancement: Migrate the reviews panel to the homescreen. #5706
|
502 |
-
- Enhancement: Migrate reviews panel to home screen. #5706
|
503 |
-
- Enhancement: Add Razorpay to payment task for stores in India #5775
|
504 |
-
- Enhancement: Migrate Stock Panel to Homescreen. #5729
|
505 |
-
- Enhancement: Add enhanced placeholders for Marketing components. #5611
|
506 |
-
- Enhancement: Allow switching on/off the navigation feature in plugin and core builds. #5697
|
507 |
-
- Tweak: Fix inconsistent REST API parameter name for customer type filtering. #5823
|
508 |
-
- Tweak: Improve styles of the tax task. #5709
|
509 |
-
- Tweak: Do not show store setup link on the homescreen. #5801
|
510 |
-
- Tweak: Revert the #5001 work to order tasks by completion. #5721
|
511 |
-
- Tweak: Revert the smart tax defaults work. #5720
|
512 |
-
- Tweak: Do not show store setup activity panel on the homescreen. #5801
|
513 |
-
- Tweak: Don't show the Orders panel on the homescreen with the Task List. #5552
|
514 |
-
- Tweak: Continue showing tasklist even if list is complete, only hide if set to hidden. #5673
|
515 |
-
- Tweak: Remove check for Jetpack and WCS from Stripe onboarding task. #4933
|
516 |
-
- Fix: Move collapsible config to panels object, to allow for more control. #5855
|
517 |
-
- Fix: Invalidate product count if the last product was updated in the list. #5790
|
518 |
-
- Fix: Add Customer Type column to the Orders report table. #5820
|
519 |
-
- Fix: Product exclusion filter on Orders Report. #5822
|
520 |
-
- Fix: Show the customer type column in Orders report table. #5820
|
521 |
-
- Fix: make sure 'Customers' page updates after order update. #5776
|
522 |
-
- Fix: Fix fatal errors when child themes are installed in a subdirectory. #5783
|
523 |
-
- Fix: Allow actionable statuses in orders endpoint(s) filters. #5733
|
524 |
-
- Fix: snackbar dismissal bug. #5696
|
525 |
-
- Fix: Only import the Gridicons we need, to reduce package size. #5668
|
526 |
-
- Fix: Stop order panels flickering on load. #5655
|
527 |
-
- Fix: Load wctracks to avoid fatal errors. #5645 #5638
|
528 |
-
- Fix: Preventing desktopsized navigation placeholder from appearing on mobile during load. #5616
|
529 |
-
|
530 |
-
== 1.7.0 11/11/2020 ==
|
531 |
-
|
532 |
-
- Enhancement: Variations report. #5167
|
533 |
-
- Enhancement: Add ability to toggle homescreen layouts. #5429
|
534 |
-
- Enhancement: Accordion component #5474
|
535 |
-
- Enhancement: Badge component #5520
|
536 |
-
- Fix: Added support for custom actionable statuses. #5550
|
537 |
-
- Fix: wrong casing used on the PayPal brand name #5514 🎉 @rtpHarry
|
538 |
-
- Fix: Import @wordpress/basestyles/defaultcustomproperties #5491
|
539 |
-
- Fix: downloads report #5441
|
540 |
-
- Fix: missing custom autocompleter attribute in Search component of Advanced Filter #5448
|
541 |
-
- Fix: empty no posts state on Marketing page. #5411
|
542 |
-
- Fix: visual issues in the Search component. #5199
|
543 |
-
- Fix: Inconsistent line endings in readme.txt. #5281
|
544 |
-
- Fix: popover menu to expand menu item width to 100% #5519
|
545 |
-
- Fix: Wrong class name for querying Categories Report #5522 🎉 @zzap
|
546 |
-
- Fix: Remove label printing mention for non us countries #5527
|
547 |
-
- Fix: First product script navigation dependency #5584
|
548 |
-
- Fix: Added support for custom actionable statuses #5550
|
549 |
-
- Fix: Display the store management links last on the homescreen #5579
|
550 |
-
- Fix: Ensure the "Set up additional payment providers" inbox notification is shown when relevant after completing the OBW. #5547
|
551 |
-
- Tweak: Remove customer analytics data upon order deletion #5171
|
552 |
-
- Tweak: Updating Stripe key field validation to support test keys #5201
|
553 |
-
- Tweak: Wrap search control selected items in list #5231
|
554 |
-
- Tweak: Update store setup link to redirect to setup wizard #5200
|
555 |
-
- Tweak: Removing breadcrumbs from wcadmin header #5232
|
556 |
-
- Tweak: Use consistent markdown headers in navigation readme #5417
|
557 |
-
- Tweak: Remove Store Setup Alert #5499
|
558 |
-
- Tweak: Customers
|
559 |
-
- Tweak: alter homescreen layout. #5465
|
560 |
-
- Dev: Home Screen migrate orders panel. #5455
|
561 |
-
- Dev: Store Profiler include Creative Mail as a free extension #5543
|
562 |
-
- Dev: Add undefined check in intervals data util #5546
|
563 |
-
- Dev: Fix wakeup visibility for PHP 8 compatibility #5211
|
564 |
-
- Dev: Fix header height and positioning for wc nav #5173
|
565 |
-
- Dev: Add remote inbox notification rule processors for country and state #5203
|
566 |
-
- Dev: Rename admin notes classes and file names to fit conventions #514
|
567 |
-
- Dev: remove checks of store registration that are no longer needed. #5170
|
568 |
-
- Dev: Fix version update script for composer.json #5165
|
569 |
-
- Dev: Remove getAdminLink from data package #5158
|
570 |
-
- Dev: Bump @woocommerce/components dependencies. #5153
|
571 |
-
- Dev: Add note status remote inbox notifications rule processor #5207
|
572 |
-
- Dev: Make code chunk filenames more stable. #5229
|
573 |
-
- Dev: Inbox Panel component moved #5252
|
574 |
-
- Dev: Added animation to Inbox note deletion #5263
|
575 |
-
- Dev: Update starter pack dependencies #5254
|
576 |
-
- Dev: Ensure test zips have latest packages from npm and composer. #5313
|
577 |
-
- Dev: Add remote inbox notifications rule allowing access to any option #5206
|
578 |
-
- Dev: Add manage orders on the go admin note #5159
|
579 |
-
- Dev: Add WooCommerceDependencyExtractionWebpackPlugin package #5198
|
580 |
-
- Dev: Migrate devdocs examples to Storybook stories #5271
|
581 |
-
- Dev: Remove Enzyme in favor of React Testing Library #5299
|
582 |
-
- Dev: Add exclusion rule to PHPCS config for TODO comments #5388
|
583 |
-
- Dev: Remove no longer used isPanelEmpty logic. #5423
|
584 |
-
- Dev: Use new @wordpress/components Card on Marketing page. #5428
|
585 |
-
- Dev: Add PSR4 naming checks to PHP linting. #5512
|
586 |
-
- Dev: Rearrange the store management links under categories add filter woocommerce_admin_homescreen_quicklinks. #5476
|
587 |
-
- Dev: Restyle the setup task list header to display incomplete tasks #5520
|
588 |
-
|
589 |
-
== 1.6.2 10/16/2020 ==
|
590 |
-
|
591 |
-
- Fix: Missing activity panels on ugraded sites #5400
|
592 |
-
- Fix: Casting of onboarding profile data to array #5415
|
593 |
-
- Fix: Gutenberg 9.1.1 compat for inbox on home screen not showing #5416
|
594 |
-
- Fix: i18n of Performance Indicator strings #5405
|
595 |
-
- Fix: Gutenberg 9.1.1 compat for empty data sets #5409
|
596 |
-
|
597 |
-
== 1.6.1 10/13/2020 ==
|
598 |
-
|
599 |
-
- Fix: Hide setup checklist shortcut when setup checklist skipped #5360
|
600 |
-
- Fix: use of undefined function on WC < 4.0.0.
|
601 |
-
|
602 |
-
== 1.6.0 10/09/2020 ==
|
603 |
-
|
604 |
-
- Dev: Reviews wp.data store #4941
|
605 |
-
- Dev: Notes wp.data store #4943
|
606 |
-
- Dev: Add woocommerce_analytics_update_order_stats_data filter #4934
|
607 |
-
- Dev: Remove unused lib/date #4987
|
608 |
-
- Dev: Exports wp.data store #4958
|
609 |
-
- Dev: Remove _experimentalResolveSelect usage #4949
|
610 |
-
- Dev: Items wp.data store #5009
|
611 |
-
- Dev: Import wp.data store #4982
|
612 |
-
- Dev: Remove `freshdata` wcapi dependency #5075
|
613 |
-
- Dev: Add initial e2e test suite #5028
|
614 |
-
- Dev: Combine translation chunks when languages updated #5094
|
615 |
-
- Dev: Add filters for columns in reports #5134
|
616 |
-
- Dev: Don't include "min" suffix in build JS files for core build #5130
|
617 |
-
- Enhancement: Add free local shipping zone on profile complete #4857
|
618 |
-
- Enhancement: Add woocommerce/tracks package #5107
|
619 |
-
- Enhancement: Add filter to allow modification of report columns #4984
|
620 |
-
- Enhancement: Add WooCommerce Mobile Banner #5037
|
621 |
-
- Enhancement: Add Product Attribute advanced filter #5038
|
622 |
-
- Enhancement: Add support for advanced filters with multiple instances #5050
|
623 |
-
- Enhancement: Automated taxes smart default #5076
|
624 |
-
- Enhancement: Add product attribute filter to Orders report #5068
|
625 |
-
- Tweak: Remove payment task actions #4917
|
626 |
-
- Tweak: Don't import from React, use @wordpress/element #4978
|
627 |
-
- Tweak: Use filtered headers array in onColumnsChange callback #4964
|
628 |
-
- Tweak: Orders panel get selectors form wcapi #4997
|
629 |
-
- Tweak: Group tasks by completion in setup checklist #5001
|
630 |
-
- Tweak: Replace useFilters with WP withFilters #4962
|
631 |
-
- Tweak: Refactor header component to function #5023
|
632 |
-
- Tweak: Refactor task list status to onboarding data store #4998
|
633 |
-
- Tweak: Add monthly pricing toggle in OBW #5015
|
634 |
-
- Tweak: OBW style updates #5059
|
635 |
-
- Tweak: Remove chevron icons from Fish Setup task list #5114
|
636 |
-
- Tweak: Add option to not charge sales tax in setup checklist #5111
|
637 |
-
- Tweak: Enable homescreen for all sites #5108
|
638 |
-
- Tweak: Enable remote inbox in all envs #5160
|
639 |
-
- Tweak: Add optout for remote inbox #5162
|
640 |
-
- Fix: Table component onQueryChange default prop #4959
|
641 |
-
- Fix: Dependency declarations in woocommerce/components #4972
|
642 |
-
- Fix: Text domains in stock report #4980
|
643 |
-
- Fix: Typo in reports store action creators #4992
|
644 |
-
- Fix: Note data actions and consolidate query constants #4990
|
645 |
-
- Fix: Advanced filters screen reader text #5032
|
646 |
-
- Fix: Show full variation name in products report #5056
|
647 |
-
- Fix: Card to connect to woocommerce.com #5129
|
648 |
-
- Fix: Search all variation attribute values #5141
|
649 |
-
- Fix: Force float before addition in taxes #5149
|
650 |
-
|
651 |
-
== 1.5.0 08/07/2020 ==
|
652 |
-
|
653 |
-
- Dev: New notification
|
654 |
-
- Dev: Enable tax calculation before redirecting to standard tax rates page. #4878
|
655 |
-
- Dev: Added event recording to Orders, Stock, and Reviews panels. #4861
|
656 |
-
- Dev: Added personalization to purchase extension task. #4849
|
657 |
-
- Dev: Display modal with more info about the new homescreen. #4890
|
658 |
-
- Dev: Task list add a shortcut back to store setup. #4853
|
659 |
-
- Dev: Update the colors of the illustrations in the welcome modal. #4945
|
660 |
-
- Fix: Use clipRule and fillRule props. #4889, part of #4864
|
661 |
-
- Enhancement: Add eWAY to Payment Setup for AU/NZ Stores. #4947
|
662 |
-
|
663 |
-
== 1.4.0 07/22/2020 ==
|
664 |
-
|
665 |
-
- Fix: Update returning customer total to include customers whose first order was within the report date range #4430
|
666 |
-
- Fix: Fix an error in the Analytics/Orders table when there is an order deleted directly from the database #4630
|
667 |
-
- Fix: Reselecting advanced filters in the customer list #4650
|
668 |
-
- Fix: Reporting of deleted coupons #4671
|
669 |
-
- Fix: Preventing refresh after answering a survey note #4711
|
670 |
-
- Fix: Regular filters not working #4704
|
671 |
-
- Fix: React warning in test that the key prop wasn't assigned in List #4808
|
672 |
-
- Fix: Center continue buttons in the onboarding profile wizard #4082
|
673 |
-
- Fix: Homepage template used in setup checklist customization task #4807
|
674 |
-
- Fix: Errant Jetpack activation prompt in Stats Overview home screen widget #4817
|
675 |
-
- Fix: Unable to activate theme with uppercase name #4393 🎉 @ayubadiputra
|
676 |
-
- Fix: Set active theme when OBW is shown via the task list #4834
|
677 |
-
- Enhancement: Add option to dismiss tasks in Setup Checklist #4733
|
678 |
-
- Enhancement: Show contextual help menu when working on store setup tasks. #4779
|
679 |
-
- Enhancement: Add automatic PayPal account creation flow. #4804
|
680 |
-
- Enhancement: Move the WooCommerce > Coupons dashboard menu item to Marketing > Coupons. #4786
|
681 |
-
- Tweak: Add education and travel to the onboarding industry types #4694
|
682 |
-
- Tweak: Refactor Jetpack connection flows #4655
|
683 |
-
- Tweak: Refactor tax task to use promise chain #4683
|
684 |
-
- Tweak: Add bundle install UI to Business Details step #4695
|
685 |
-
- Tweak: Include Product Bundles and Product Addons as OBW product options #4705
|
686 |
-
- Tweak: Toggle the “Physical products” checkbox on by default #4702
|
687 |
-
- Tweak: Variation Names
|
688 |
-
- Tweak: Limit inbox status to unactioned notes #4765
|
689 |
-
- Tweak: Only show usage tracking modal once in OBW. #4766
|
690 |
-
- Tweak: Add WooCommerce Payments to Setup Checklist. #4793
|
691 |
-
- Tweak: Update connection flow for Bundle UI #4717
|
692 |
-
- Tweak: Style improvements for Marketing hub. #4794
|
693 |
-
- Tweak: Added skip profiler functionality #4721
|
694 |
-
- Tweak: Reordered home screen tasks #4754
|
695 |
-
- Tweak: Create single source of truth for task list array #4825
|
696 |
-
- Tweak: Rework the store details onboarding screen #4771
|
697 |
-
- Tweak: Design of Product Types step in Onboarding #4707
|
698 |
-
- Tweak: Add copy that WCS TOS will be accepted upon install #4799
|
699 |
-
- Dev: Customize webpack jsonpFunction to avoid potential collision with other Webpack bundles #4644 🎉 @aaemnnosttv
|
700 |
-
- Dev: Update @wordpress/basestyles and replace deprecated variables #4759
|
701 |
-
|
702 |
-
== 1.3.2 07/29/2020 ==
|
703 |
-
|
704 |
-
- Fix: bug preventing saving user preferences on WP 5.3. #4869
|
705 |
-
|
706 |
-
== 1.3.1 07/20/2020 ==
|
707 |
-
|
708 |
-
- Fix: PHP Fatal errors when columns are missing from the Notes table. #4831
|
709 |
-
|
710 |
-
== 1.3.0 07/08/2020 ==
|
711 |
-
|
712 |
-
- Enhancement: Add Jetpack stats to performance indicatorts / homepage #4291
|
713 |
-
- Enhancement: New "Store Management" quick links card on WooCommerce home screen. #4350
|
714 |
-
- Enhancement: Inbox notifications layout updates #4218
|
715 |
-
- Enhancement: New Home Screen #4303
|
716 |
-
- Enhancement: Use WordPress Core colors for styling accents. #4558
|
717 |
-
- Dev: Add jestdom eslint plugin. #4327
|
718 |
-
- Dev: Migrate onboarding data store to wp.data #4433
|
719 |
-
- Dev: Remove use of `IconButton` in favor of `Button` #4415
|
720 |
-
- Dev: Fix error handling for plugins on server error #4462
|
721 |
-
- Dev: update @wordpress/components and @wordpress/basestyles #4427
|
722 |
-
- Dev: Migrate user store to wp.data #4505
|
723 |
-
- Dev: Add options data store to wp.data #4144
|
724 |
-
- Dev: Runtime feature config override #4523
|
725 |
-
- Dev: Check that the possibly_add_note function exists before calling it #4680
|
726 |
-
- Dev: Remove unnecessary rest API init action. #4691
|
727 |
-
- Dev: Don't include sourcemaps or unminified JS for "core" builds. #4642
|
728 |
-
- Fix: misaligned 'required' text on selects #4307
|
729 |
-
- Fix: exception when opening dashboard after selecting extensions to purchase #4357
|
730 |
-
- Fix: REST API collections schema #4377
|
731 |
-
- Fix: Monetary Advanced Filters in Customers Report with correct currency object prop. #4356
|
732 |
-
- Fix: In App purchase "back link" #4301
|
733 |
-
- Fix: Search results selectable by clicking on item text or icon #4474
|
734 |
-
- Fix: Filters' static query parameters #4458
|
735 |
-
- Fix: The WCPay method not appearing as recommended sometimes #4345
|
736 |
-
- Fix: Removed URLSearchParams method #4501
|
737 |
-
- Fix: REST API collections schema. #4484
|
738 |
-
- Fix: null issue in wpNavMenuClassChange #4513 🎉 @gradosevic
|
739 |
-
- Fix: RTL stylesheet loading for split code chunks. #4542
|
740 |
-
- Fix: Don't show store location step in tax and shipping tasks if the address has already been provided #4507
|
741 |
-
- Fix: Check for enabled methods before payment task completion #4530
|
742 |
-
- Fix: Solved a problem with the method onChoose in the last onboarding step. #4583
|
743 |
-
- Fix: Only mark purchase task as complete when products exist #4574
|
744 |
-
- Fix: Remove unnecessary rest_api_init action that caused incompatibility issues with other plugins. #4691
|
745 |
-
- Fix: Fix WCPay sometimes not appearing on the task list #4647
|
746 |
-
- Tweak: make revenue report total sales column optional #4397
|
747 |
-
- Tweak: Adjustments to WooCommerce Payments setup task #4373
|
748 |
-
- Tweak: Handling of plugin installs in OBW #4411
|
749 |
-
- Tweak: Update design of Setup Checklist #4434
|
750 |
-
- Tweak: Add scrollable styling to left side of Table, and keep updated #4179
|
751 |
-
- Tweak: reduce asset filename length. #4535
|
752 |
-
- Tweak: Use single dash for country/state dropdown options #4553
|
753 |
-
- Tweak: Use label tag for toggleable shipping zones #4554
|
754 |
-
- Tweak: Tweak Make it easier to add submenu items to the Marketing menu #4561
|
755 |
-
- Tweak: Remove duplicate/redundant inbox note after first order received. #4659
|
756 |
-
- Tweak: Fix the embed page CSS so the top content sits better #4622
|
757 |
-
|
758 |
-
== 1.2.4 06/11/2020 ==
|
759 |
-
|
760 |
-
- Tweak: reduce asset filename length and remove tilde characters. #4535
|
761 |
-
- Fix: RTL stylesheet loading for split code chunks. #4542
|
762 |
-
|
763 |
-
== 1.2.3 05/22/2020 ==
|
764 |
-
|
765 |
-
- Tweak: Updates to WooCommerce Payments in Setup Checklist #4293
|
766 |
-
|
767 |
-
== 1.2.2 05/18/2020 ==
|
768 |
-
|
769 |
-
- Fix: Respect tracking optin before new page load. #4368
|
770 |
-
- Enhancement: Add Jetpack connection to plugin benefits step #4374
|
771 |
-
|
772 |
-
== 1.2.0 05/18/2020 ==
|
773 |
-
|
774 |
-
- Enhancement: Add onboarding payments note #4157
|
775 |
-
- Enhancement: Marketing Inbox Note #4030
|
776 |
-
- Performance: Use Route based code splitting to reduce bundle size #4094
|
777 |
-
- Performance: trim down inbox note API request. #3977
|
778 |
-
- Fix: Proper display of elements in wcadmin pages when in a RTL environment. #4051
|
779 |
-
- Fix: Update UX when knowledge base articles fail to retrieve #4133
|
780 |
-
- Fix: Updated messaging after last step in OBW. #4148
|
781 |
-
- Fix: Reset profiler when visiting old OBW URL #4166.
|
782 |
-
- Fix: Dashboard flash before OBW chunk loads #4259
|
783 |
-
- Tweak: Enable the default homepage template to be filtered #4072 🎉 @stevegrunwell
|
784 |
-
- Tweak: Create admin note if Jetpack or WooCommerce Services plugin doesn't get installed due to an error during OBW #3888
|
785 |
-
- Tweak: Update Email Marketing note. #4167
|
786 |
-
- Tweak: Adjust "demo products" verbiage to "Sample Products" #4184 🎉 @jobthomas
|
787 |
-
- Tweak: Don't reschedule imports on failed imports #4263
|
788 |
-
- Tweak: Remove obsolete inbox messages #4182
|
789 |
-
- Dev: Make query selector for admin alerts more specific #4289 🎉 @pauloiankoski
|
790 |
-
- Dev: Guard against null themes in OBW #4244
|
791 |
-
- Dev: Update wcadmin db version after db callback #4323
|
792 |
-
- Dev: Only migrate options on version change #4324
|
793 |
-
- Dev: Use PAGE_ROOT constant to reduce redundant strings #4238 🎉 @codemascot
|
794 |
-
- Dev: Decouple Plugins DataStore from onboarding feature #4048
|
795 |
-
- Dev: Move API out of Onboarding #4093
|
796 |
-
- Dev: Add Profiler Step View Tracks #4141
|
797 |
-
- Dev: Add React Testing Library #4221
|
798 |
-
- Dev: Add List and Link components to Storybook #4219
|
799 |
-
- Dev: Cast Shipping Total to float #4042 🎉 @barryhughes
|
800 |
-
- Dev: Dynamic Currency with Context API #4027
|
801 |
-
- Dev: Remove Duplicate array entry #4049 🎉 @tivnet
|
802 |
-
|
803 |
-
== 1.1.3 05/18/2020 ==
|
804 |
-
|
805 |
-
- Tweak: Onboarding
|
806 |
-
- Fix: Respect tracking optin before new page load. #4368
|
807 |
-
|
808 |
-
== 1.1.2 05/12/2020 ==
|
809 |
-
|
810 |
-
== 1.1.1 05/05/2020 ==
|
811 |
-
|
812 |
-
- Fix: Storefront should show at top of theme options in onboarding wizard. #4187
|
813 |
-
- Tweak: Remove Stripe autoconnect from payment task. #4164
|
814 |
-
- Tweak: Hide suggested extensions in Marketing Tab if opted out of "Marketplace Suggestions"
|
815 |
-
|
816 |
-
== 1.1.0 04/23/2020 ==
|
817 |
-
|
818 |
-
- Tweak: Added link to "go shopping" button #3712
|
819 |
-
- Tweak: Add PayFast payment gateway option for sites in South Africa #3738
|
820 |
-
- Tweak: Onboarding
|
821 |
-
- Tweak: Onboarding business step
|
822 |
-
- Tweak: Onboarding
|
823 |
-
- Tweak: Onboarding
|
824 |
-
- Tweak: Remove 'add first product' note. #3876
|
825 |
-
- Tweak: Onboarding
|
826 |
-
- Tweak: Onboarding payments task
|
827 |
-
- Tweak: Style and icon updates for Activity Panel #3965
|
828 |
-
- Tweak: Remove iconbutton classes from Tag component #3993
|
829 |
-
- Tweak: Reduce the number of default widgets on the dashboard. #4035
|
830 |
-
- Tweak: Onboarding
|
831 |
-
- Tweak: Overwrite button overflow css from Wordpress 5.4 defaults #4108
|
832 |
-
- Tweak: business details step
|
833 |
-
- Fix: Make analytics tables use the site's date format setting #3715
|
834 |
-
- Fix: Alignment of select text #3723 🎉 @edmundcwm
|
835 |
-
- Fix: inconsistent wording downloads report #3844 🎉 @jobthomas
|
836 |
-
- Fix: Verify Stripe API keys in payment set up step. #3910
|
837 |
-
- Fix: Connect to WooCommerce.com note disappears before connecting. #3909
|
838 |
-
- Fix: Add WooCommerce support if store is using default theme #3908
|
839 |
-
- Fix: Make WooCommerce breadcrumbs use WooCommerce Branding if it is installed #3798
|
840 |
-
- Fix: handle cases where coupon dates are in an unexpected format. #3984
|
841 |
-
- Fix: Onboarding
|
842 |
-
- Fix: Added hook to delete woocommerce_onboarding_homepage_post_id #4015
|
843 |
-
- Fix: Show admin notices on legacy admin screens. #4019
|
844 |
-
- Fix: wcadmin pages work in Internet Explorer 11. #4037
|
845 |
-
- Fix: OBW
|
846 |
-
- Enhancement: Improve focus on task list #3796
|
847 |
-
- Enhancement: Allow individual payment method setup in the onboarding task list #3782
|
848 |
-
- Enhancement: "Personalize your store" reminder
|
849 |
-
- Enhancement: WooCommerce Shipping order page banner prompt #3955
|
850 |
-
- Enhancement: Marketing Tab
|
851 |
-
- Enhancement: Add WooCommerce Payments Inbox note #4013
|
852 |
-
- Onboarding: Add offline payment methods #3832
|
853 |
-
- Enahncement: Create flat rate or free shipping methods from the onboarding task list #3927
|
854 |
-
- Enahncement: Add WC Pay to startup checklist
|
855 |
-
- Performance: only query necessary data in Orders Panel. #3969
|
856 |
-
- Performance: speed up indicators endpoint response. #3997
|
857 |
-
- Performance: only query requested stat totals in reports. #4009
|
858 |
-
- Dev: Handle orphaned order statuses in analytics settings. #4090
|
859 |
-
- Dev: Fix usage of WP_Error in nonglobal namespaces. #4115
|
860 |
-
|
861 |
-
== 1.0.3 03/22/2020 ==
|
862 |
-
|
863 |
-
- Fix: Stop calling protected has_satisfied_dependencies() on outdated plugin. #3938
|
864 |
-
- Fix: Rename image assets in OBW business details step. #3931
|
865 |
-
- Fix: Stop using WP Post store for Action Scheduler. #3936
|
866 |
-
|
867 |
-
== 1.0.2 03/18/2020 ==
|
868 |
-
|
869 |
-
- Enhancement: Onboarding
|
870 |
-
- Dev: Update prestart script so readme.txt stable tag is updated #3911
|
871 |
-
- Tweak: create database tables on an earlier hook to avoid conflicts with core WooCommerce. #3896
|
872 |
-
|
873 |
-
== 1.0.1 03/12/2020 ==
|
874 |
-
|
875 |
-
- Fix: Add Report Extension Example
|
876 |
-
- Fix: Product report sorting by SKU when some products don't have SKUs
|
877 |
-
- Fix: type warning on install timestamp in PHP 7.4
|
878 |
-
- Fix: PHP error when WooCommerce core is Network Active on Multisites.
|
879 |
-
- Fix: missing database table errors on WooCommerce upgrade.
|
880 |
-
- Fix: undefined const WC_ADMIN_VERSION_NUMBER when WP < 5.3
|
881 |
-
- Dev: Add Changelog script
|
882 |
-
- Dev: Fix failing tests after WC core merge.
|
883 |
-
- Dev: Bump WooCommerce tested up to tag
|
884 |
-
|
885 |
-
== 1.0.0 03/05/2020 ==
|
886 |
-
|
887 |
-
- Fix: Customers Report
|
888 |
-
- Fix: OBW Connect
|
889 |
-
- Fix: OBW
|
890 |
-
- Fix: Update Country Labeling to Match Core #3790
|
891 |
-
- Fix: Onboarding
|
892 |
-
- Fix: Padding on Jetpack notices when activity panel is present. $3418
|
893 |
-
- Fix: Taxes Report search. #3815
|
894 |
-
- Fix: Taxes Report search bug and adds initial documentation. #3816
|
895 |
-
- Fix: Activity Panels
|
896 |
-
- Fix: Tracking on migrated options #3828
|
897 |
-
- Dev: Onboarding
|
898 |
-
|
899 |
-
== 0.26.1 02/26/2020 ==
|
900 |
-
|
901 |
-
- Fix: Remove free text Search option when no query exists #3755
|
902 |
-
- Fix: StoreAlert
|
903 |
-
- Fix: WP Coding Standards PR Regressions #3760
|
904 |
-
- Fix: OBW
|
905 |
-
- Fix: coding standards violations #3763
|
906 |
-
- Fix: Product titles include encoded entities #3765
|
907 |
-
- Fix: Add deactivation hook to Package.php #3770
|
908 |
-
- Fix: Add active version functions #3772
|
909 |
-
|
910 |
-
== 0.26.0 02/21/2020 ==
|
911 |
-
|
912 |
-
- Fix: Warning in product data store when tax amount is nonnumeric. #3656
|
913 |
-
- Fix: Enable onboarding in production. #3680
|
914 |
-
- Fix: Added new control in /packages/components/src/selectcontrol/list.js #3700
|
915 |
-
- Fix: Alignment of select text #3723 👏 @edmundcwm
|
916 |
-
- Fix: Create Onboarding homepage without redirect #3727
|
917 |
-
- Enhancement: Move Customers report to WooCommerce Menu #3632
|
918 |
-
- Performance: Remove slow physical products query from non setup checklist pages #3722
|
919 |
-
- Performance: Make Stock Panel indicator more performant. #3729
|
920 |
-
- Performance: Remove sideloaded images to save on build size #3731
|
921 |
-
- Tweak: use cron instead of Action Scheduler for unsnoozing notes. #3662
|
922 |
-
- Dev: Add tracks events when profiler steps are completed #3726
|
923 |
-
- Dev: Ensure continue setup loads the onboarding profiler #3646
|
924 |
-
- Dev: Travis tests on Github for release branch #3751
|
925 |
-
- Add: Deactivation note for feature plugin #3687
|
926 |
-
|
927 |
-
== 0.25.1 02/07/2020 ==
|
928 |
-
|
929 |
-
- Dev: Enable onboarding #3651 (Onboarding)
|
930 |
-
- Fix: Fix styling of search control in report table header and filters. #3603 (Analytics, Components, Packages)
|
931 |
-
|
932 |
-
== 0.25.0 01/29/2020 ==
|
933 |
-
|
934 |
-
- Fix: Onboarding
|
935 |
-
- Fix: Fix styling of search control in report table header and filters. #3603 (Analytics, Components, Packages)
|
936 |
-
- Fix: report table search component. #3618 (Analytics, Components, Packages)
|
937 |
-
- Fix: Update broken note action hooks #3535 (Activity Panel, Inbox)
|
938 |
-
- Fix: SQL error in category table sort. #3521 (Analytics)
|
939 |
-
- Fix: handle uninstallation when in feature plugin mode. #3546 (On Merge to WC Core)
|
940 |
-
- Fix: Exception on dashboard once Onboarding tasks are complete #3513
|
941 |
-
- Fix: Make packagebased load inert when plugin is active. #3555 (On Merge to WC Core)
|
942 |
-
- Fix: Properly style theme selection button in Site Profiler #3489
|
943 |
-
- Fix: component styles for WordPress 5.3. #3357 (Build, Components, Design, Packages)
|
944 |
-
- Fix: `CompareFilter` functionality regression. #3421 (Analytics, Components, Packages)
|
945 |
-
- Fix: don't run database migrations on new installs. #3473
|
946 |
-
- Fix: WCAdmin header on settings and status pages. #3389 (Activity Panel)
|
947 |
-
- Fix: show pending product reviews when comment moderation is disabled. #3459 (Activity Panel)
|
948 |
-
- Fix: error when trying to download report data. #3429 (Analytics)
|
949 |
-
- Fix: invalidate Reports cache when changing Analytics settings. #3465 (Analytics, REST API, Settings)
|
950 |
-
- Fix: Time zone offset calculation on customer last active date. #3388 (Analytics)
|
951 |
-
- Fix: remove the header when user doesn't have required permissions #3386 (Activity Panel)
|
952 |
-
- Fix: make report filter date props optional #3359 (Components, Extensibility, Packages)
|
953 |
-
- Dev: fix strict standards in Scheduler classes #3583
|
954 |
-
- Dev: Handle custom currency formats #3349 (Components, Packages)
|
955 |
-
- Dev: Onboarding
|
956 |
-
- Dev: SelectControl
|
957 |
-
- Dev: Onboarding
|
958 |
-
- Dev: Onboarding
|
959 |
-
- Dev: Onboarding
|
960 |
-
- Dev: Update translation scripts and instructions for creating `.json` files. #3433 (Build)
|
961 |
-
- Dev: Onboarding
|
962 |
-
- Dev: Onboarding
|
963 |
-
- Dev: AssetDataRegistry
|
964 |
-
- Dev: DataStores
|
965 |
-
- Dev: Update to latest PHPUnit 7 #3571 (Build)
|
966 |
-
- Dev: Default the Calypso environment to production #3347 (Onboarding)
|
967 |
-
- Dev: Add autocomplete props to address fields in onboarding and adjust country/state matching #3338 (Onboarding)
|
968 |
-
- Dev: Add purchase modal at the end of the profile wizard #3444 (Onboarding)
|
969 |
-
- Dev: Standardize hook and filter prefixes. #3339 (On Merge to WC Core)
|
970 |
-
- Dev: Onboarding Add button to continue setup after importing products #3402 (Build, Onboarding)
|
971 |
-
- Task: Avoid redundant/unnecessary cleanup. #3580 (On Merge to WC Core)
|
972 |
-
- Performance: Remove unnecessary use of lodash get #3598 (Onboarding)
|
973 |
-
- Tweak: don't modify page titles for existing WooCommerce pages. #3585 (On Merge to WC Core)
|
974 |
-
- Tweak: Onboarding Add Skip Step link on Themes Step. #3490 (Onboarding)
|
975 |
-
- Tweak: Included RegExp for JS files in examples.config.js #3510 (Build, Extensibility) 👏 @yashwebkul
|
976 |
-
- Tweak: Change Refunds to Returns on the dashboard. #3514
|
977 |
-
- Tweak: Scroll to notices when displayed while the notice area is scrolled out of view. #3390 (Activity Panel)
|
978 |
-
- Tweak: Add/disable plugin filter #3361
|
979 |
-
- Enhancement: add customer privacy erasure support. #3511 (Analytics)
|
980 |
-
- Enhancement: allow filtering of hidden WP notices. #3391 (Activity Panel, Extensibility)
|
981 |
-
- Enhancement: allow report cache layer to be turned off. #3434
|
982 |
-
- Bug: Add SelectControl debouncing and keyboard fixes #3507 (Components, Packages)
|
983 |
-
- Bug: Onboarding
|
984 |
-
- Bug: Onboarding
|
985 |
-
- Bug: Fix user data fields filter name. #3428 (Dashboard)
|
986 |
-
- Bug: Onboarding
|
987 |
-
- Bug: Onboarding
|
988 |
-
- Bug: Onboarding
|
989 |
-
|
990 |
-
== 0.24.0 01/06/2020 ==
|
991 |
-
|
992 |
-
- Bug: Add SelectControl debouncing and keyboard fixes #3507 (Components, Packages)
|
993 |
-
- Bug: Onboarding
|
994 |
-
- Bug: CI
|
995 |
-
- Bug: Onboarding
|
996 |
-
- Bug: Onboarding
|
997 |
-
- Bug: Onboarding
|
998 |
-
- Bug: Onboarding
|
999 |
-
- Fix: Properly style theme selection button in Site Profiler #3489
|
1000 |
-
- Fix: invalidate Reports cache when changing Analytics settings. #3465 (Analytics, REST API, Settings)
|
1001 |
-
- Fix: show pending product reviews when comment moderation is disabled. #3459 (Activity Panel)
|
1002 |
-
- Fix: component styles for WordPress 5.3. #3357 (Build, Components, Design, Packages)
|
1003 |
-
- Fix: WCAdmin header on settings and status pages. #3389 (Activity Panel)
|
1004 |
-
- Fix: make report filter date props optional #3359 (Components, Extensibility, Packages)
|
1005 |
-
- Dev: Update translation scripts and instructions for creating `.json` files. #3433 (Build)
|
1006 |
-
- Dev: Add initial documentation for the historical data import. #3506 (Documentation)
|
1007 |
-
- Dev: Onboarding
|
1008 |
-
- Dev: Onboarding
|
1009 |
-
- Dev: Add singular/plural distinction to onboarding plugins installation #3517 (Onboarding)
|
1010 |
-
- Dev: Onboarding
|
1011 |
-
- Dev: Onboarding
|
1012 |
-
- Dev: DataStores
|
1013 |
-
- Dev: AssetDataRegistry
|
1014 |
-
- Dev: Add autocomplete props to address fields in onboarding and adjust country/state matching #3338 (Onboarding)
|
1015 |
-
- Dev: Update instructions for documenting new components. #3443 (Components, Documentation)
|
1016 |
-
- Dev: Add purchase modal at the end of the profile wizard #3444 (Onboarding)
|
1017 |
-
- Dev: Fix the "is this card useful" prompt display #3427 (Onboarding)
|
1018 |
-
- Dev: Default the Calypso environment to production #3347 (Onboarding)
|
1019 |
-
- Dev: Standardize hook and filter prefixes. #3339 (On Merge to WC Core)
|
1020 |
-
- Dev: Fix revenue question translation with currency conversion #3358 (Onboarding, Packages)
|
1021 |
-
- Dev: Onboarding Add button to continue setup after importing products #3402 (Build, Onboarding)
|
1022 |
-
- Tweak: Onboarding Add Skip Step link on Themes Step. #3490 (Onboarding)
|
1023 |
-
- Tweak: Included RegExp for JS files in examples.config.js #3510 (Build, Extensibility) 👏 @yashwebkul
|
1024 |
-
- Tweak: Change Refunds to Returns on the dashboard. #3514
|
1025 |
-
- Tweak: Scroll to notices when displayed while the notice area is scrolled out of view. #3390 (Activity Panel)
|
1026 |
-
- Tweak: Add/disable plugin filter #3361
|
1027 |
-
- Enhancement: allow report cache layer to be turned off. #3434
|
1028 |
-
|
1029 |
-
== 0.23.3 12/26/2019 ==
|
1030 |
-
|
1031 |
-
- Fix: don't run database migrations on new installs. #3473
|
1032 |
-
|
1033 |
-
== 0.23.2 12/19/2019 ==
|
1034 |
-
|
1035 |
-
- Enhancement: allow filtering of hidden WP notices. #3391 (Activity Panel, Extensibility)
|
1036 |
-
- Fix: error when trying to download report data. #3429 (Analytics)
|
1037 |
-
- Fix: `CompareFilter` functionality regression. #3421 (Analytics, Components, Packages)
|
1038 |
-
- Fix: Time zone offset calculation on customer last active date. #3388 (Analytics)
|
1039 |
-
- Fix: remove the header when user doesn't have required permissions #3386 (Activity Panel)
|
1040 |
-
- Bug: Fix user data fields filter name. #3428 (Dashboard)
|
1041 |
-
|
1042 |
-
== 0.23.1 12/08/2019 ==
|
1043 |
-
|
1044 |
-
- Fix: undefined function error.
|
1045 |
-
|
1046 |
-
== 0.23.0 12/06/2019 ==
|
1047 |
-
|
1048 |
-
- Dev: Add currency extension #3328 (Packages)
|
1049 |
-
- Dev: Packages
|
1050 |
-
- Dev: Remove Newspack dependency. #3302
|
1051 |
-
- Dev: DB Updates
|
1052 |
-
- Dev: use a filter to set default locale #3273
|
1053 |
-
- Dev: Allow core inclusion via Package.php #3196 (Build)
|
1054 |
-
- Dev: Fix filter gap on analytics select controls #3259 (Components, Packages)
|
1055 |
-
- Dev: rename data store get_* to add_* functions where function does not return values #3275
|
1056 |
-
- Dev: PHPCS fixes for onboarding files #3269 (Documentation)
|
1057 |
-
- Dev: Add a tracks queue to delay event recording & log embed page views #3250
|
1058 |
-
- Dev: Make WooCommerce brand localizable #3247
|
1059 |
-
- Dev: fix typos in JS docs #3248
|
1060 |
-
- Dev: capitalize WooCommerce Services #3249
|
1061 |
-
- Fix: errant moment locale data loading. #3362 (Components, Packages)
|
1062 |
-
- Fix: beginning of next day calculation on daylight saving time on the days the time changes. #3333 (Analytics)
|
1063 |
-
- Fix: Retrieve week last year data by calendar date instead of week alignment. #3271 (Analytics, Packages)
|
1064 |
-
- Fix: Fix checkout of main branch in CI environment. #3296 (Build)
|
1065 |
-
- Fix: decouple Date package from global wcSettings object. #3278 (Components, Packages)
|
1066 |
-
- Fix: Make the order count between customer and table total consistent. #3290 (Analytics)
|
1067 |
-
- Fix: decouple Currency and Number packages from global wcSettings object. #3277 (Components, Packages)
|
1068 |
-
- Fix: Add single customer REST API end point. #3174 (REST API)
|
1069 |
-
- Bug: Settings
|
1070 |
-
- Bug: Check if extended_info is set for order report items #3315 (REST API)
|
1071 |
-
- Bug: Filter invalid statuses from saved statuses #3268
|
1072 |
-
- Bug: Correcting and clarifying analytics terms and calculations #3104 (Analytics, Components, Packages)
|
1073 |
-
- Bug: Select control
|
1074 |
-
- Tweak: Add a filter that allows disabling WooCommerce Admin. #3350 (On Merge to WC Core)
|
1075 |
-
- Tweak: remove global settings dependency from Navigation package. #3294 (Components, Packages)
|
1076 |
-
- Tweak: Search component
|
1077 |
-
|
1078 |
-
== 0.22.0 11/13/2019 ==
|
1079 |
-
|
1080 |
-
- Fix: Incorrect calculation of tax summary on Taxes screen. #3158 (Analytics)
|
1081 |
-
- Fix: Correct product and coupon count on edited orders. #3103 (Analytics)
|
1082 |
-
- Bug: Update filter picker to use key instead of id #3214 (Analytics, Components, Packages)
|
1083 |
-
- Bug: Fix ellipsis menu style #3141 (Analytics, Components, Packages)
|
1084 |
-
- Enhancement: prompt stores to add their first product(s). #3119 (Inbox)
|
1085 |
-
- Enhancement: Add query filters to data stores.
|
1086 |
-
- Dev: Move Analytics REST endpoints to `wcanalytics` namespace. #3204 (Components, Packages)
|
1087 |
-
- Dev: Refactor data store classes. #2961 (REST API)
|
1088 |
-
- Dev: WooCommerce Admin has been marked as compatible with WooCommerce 3.8.0. #3201
|
1089 |
-
- Dev: update tested to version for WC and WP #3162
|
1090 |
-
- Tweak: add usage tracking inbox notice. #3112 (Activity Panel, Inbox)
|
1091 |
-
- Tweak: Field misalignment in product edit screen. #3145
|
1092 |
-
- Task: Fix PHP linter errors. #3188
|
1093 |
-
|
1094 |
-
== 0.21.0 10/30/2019 ==
|
1095 |
-
|
1096 |
-
- Fix: report export format when generated serverside. #2987 (Analytics, Packages)
|
1097 |
-
- Fix: Address discrepancies in Revenue totals between Analytics screens. #3095 (Analytics)
|
1098 |
-
- Fix: Error in category comparison chart. #3027 (Analytics, REST API)
|
1099 |
-
- Fix: create table error during import. #3022 (Analytics, Build)
|
1100 |
-
- Tweak: automatically update DB version during plugin updates. #3113
|
1101 |
-
- Tweak: add visual feedback for Inbox Note Actions #3039 (Activity Panel, Build, Inbox)
|
1102 |
-
- Tweak: track inbox note views. #3096 (Activity Panel, Build, Inbox)
|
1103 |
-
- Tweak: Moved WCAdmin specific actions from TableCard to ReportTable. #2900 (Build, Components, Packages)
|
1104 |
-
- Dev: Fix asset image URL and business extension images #3062
|
1105 |
-
- Dev: Fix broken plugin builds by adding missing feature flag check #3053 (Build)
|
1106 |
-
- Dev: Add the ability to create custom plugin builds #3044 (Build)
|
1107 |
-
- Enhancement: add management link to Reviews panel. #3011 (Activity Panel)
|
1108 |
-
|
1109 |
-
== 0.20.1 09/24/2019 ==
|
1110 |
-
|
1111 |
-
- Fix: use category lookup id instead of term taxonomy id (#3027)
|
1112 |
-
- Fix: Update order stats table status index length. (#3022)
|
1113 |
-
|
1114 |
-
== 0.20.0 09/24/2019 ==
|
1115 |
-
|
1116 |
-
- Dev: Fix issue #2992 (order number in orders panel) #2994
|
1117 |
-
- Dev: Replace lodash isNaN() with native Number.isNaN() #2998 (Build, Packages)
|
1118 |
-
- Dev: Ignore filename rules for PSR4 classes. #2967 (Build)
|
1119 |
-
- Dev: Category Lookup Table Fix Category Segments #2253
|
1120 |
-
- Dev: Replace lodash isFinite() with native Number.isFinite() #2977 (Build, Components, Packages)
|
1121 |
-
- Dev: Add filter to notes datastore where clauses. #2819
|
1122 |
-
- Dev: Copy component READMEs to docs folder before GH page deploy. #2952 (Build)
|
1123 |
-
- Dev: Add GitHub pages deploy step to Travis config. #2940 (Build, Documentation)
|
1124 |
-
- Dev: Fix plugin installation when working from a push instead of a pull request. #2950 (Build)
|
1125 |
-
- Dev: Fix pull request branch detection on CI (try #2) #2944 (Build)
|
1126 |
-
- Dev: Only build pushes to main branch. #2941 (Build)
|
1127 |
-
- Dev: Fix pull request branch detection on CI #2942 (Build)
|
1128 |
-
- Dev: refresh component documentation #2872 (Build, Components, Documentation, Packages)
|
1129 |
-
- Dev: Simplified intervals_missing method of DataStore class #2920 👏 @codemascot
|
1130 |
-
- Dev: Simplified intervals_missing method of TimeInterval class #2920 👏 @codemascot
|
1131 |
-
- Enhancement: add option to email a download link when exporting reports. #2899 (Analytics, REST API)
|
1132 |
-
- Fix: Catch notices that are hooked earlier than priority 10. #2981
|
1133 |
-
- Performance: add caching layer to analytics. #2970 (Analytics)
|
1134 |
-
- Performance: reduce JS bundle size. #2933 (Build)
|
1135 |
-
- Bug: Fix conflict with Blocks 2.4 #2846
|
1136 |
-
|
1137 |
-
== 0.19.0 09/24/2019 ==
|
1138 |
-
|
1139 |
-
- Dev: Use upstream webpackrtlplugin #2870 (Build)
|
1140 |
-
- Dev: Fix variable name typo #2922
|
1141 |
-
- Dev: Update no data message in table #2854 (Components, Packages)
|
1142 |
-
- Fix: persist date_last_active for customer reports #2881 (Analytics) 👏 @cojennin
|
1143 |
-
- Tweak: consistent naming for report columns. #2845 (Design)
|
1144 |
-
- Tweak: schedule customer lookup table updates instead of running during checkout. #2832
|
1145 |
-
- Tweak: have Import note action scroll to import section of settings screen. #2799 (Activity Panel, Components, Inbox, Packages)
|
1146 |
-
- Tweak: change report charts filter name. #2843 (Components, Documentation, Packages)
|
1147 |
-
- Bug: Fix chart type buttons misalignment #2871 (Components, Packages)
|
1148 |
-
|
1149 |
-
== 0.18.0 08/28/2019 ==
|
1150 |
-
|
1151 |
-
- Fix: Product in dropdown clickable in FF/Safari #2839 (Components, Packages) 👏 @cojennin
|
1152 |
-
- Fix: gross order total calculation. #2817 (Analytics)
|
1153 |
-
- Fix: Date calculation on notes being double adjusted to UTC. #2818 (Inbox)
|
1154 |
-
- Fix: Bug navigating from DevDoc component pages to WP dashboard pages. #2827 (Documentation)
|
1155 |
-
- Fix: Import all used Gutenberg component styles. #2679
|
1156 |
-
- Fix: report column visibility preference bug. #2806 (Analytics, Components, Packages, Settings)
|
1157 |
-
- Fix: remove date picker from Customers Report. #2805 (Analytics)
|
1158 |
-
- Bug: Orders report now shows coupons in Coupon(s) column #2812 (Analytics) 👏 @cojennin
|
1159 |
-
- Enhancement: add Facebook extension inbox note. #2798 (Activity Panel, Inbox)
|
1160 |
-
- Enhancement: handle simple to variable product changes in reports. #2814 (Analytics)
|
1161 |
-
- Dev: Release Scripts
|
1162 |
-
- Dev: Components
|
1163 |
-
- Dev: Search List Control
|
1164 |
-
- Dev: Update List actionable items to be wrapped with Link #2779 (Components, Packages)
|
1165 |
-
- Tweak: add empty dataset treatment for report tables. #2801 (Analytics, Components, Packages)
|
1166 |
-
|
1167 |
-
== 0.17.0 08/15/2019 ==
|
1168 |
-
|
1169 |
-
- Fix: chart data fetch/render over long time periods #2785 (Analytics)
|
1170 |
-
- Fix: chart display when comparing categories. #2710 (Analytics)
|
1171 |
-
- Fix: Allow WooCommerce Admin to be deleted through the plugin screen when WooCommerce is not active. #2762
|
1172 |
-
- Fix: Charts being partially rendered on long time periods. #2776 (Analytics)
|
1173 |
-
- Fix: Customer last active date showing `Invalid date`. #2764 (Analytics)
|
1174 |
-
- Fix: issue where product category update button was not always clickable #2753
|
1175 |
-
- Fix: Add version parameter to `_doing_it_wrong` on `current_screen`. #2733
|
1176 |
-
- Fix: Short circuit admin title filter when applied by third parties too early. #2744
|
1177 |
-
- Fix: chart display when comparing categories. #2708 (Analytics)
|
1178 |
-
- Task: update the class filename exclusion to /src/ for PSR4 #2794
|
1179 |
-
- Task: update WC tested to version to 3.7.0 #2782
|
1180 |
-
- Task: Update report endpoints to be PSR4 autoloaded #2755 (Build)
|
1181 |
-
- Task: Update feature classes to be PSR4 autoloaded. #2736 (Build)
|
1182 |
-
- Tweak: Increase zIndex on popover elements. #2777
|
1183 |
-
- Bug: Fix daily cron event (PSR4) #2754 (Build)
|
1184 |
-
- Bug: Only apply current submenu CSS reset on nonembed pages. #2687
|
1185 |
-
- Dev: Add `wc_admin_get_feature_config` filter to feature config array. #2689
|
1186 |
-
|
1187 |
-
== 0.16.0 07/24/2019 ==
|
1188 |
-
|
1189 |
-
- Tweak: Change verbiage of feedback notification. #2677
|
1190 |
-
- Dev: Update unit tests to work with PHPUnit 7+. #2678
|
1191 |
-
- Dev: Webpack
|
1192 |
-
- Dev: Replace 'stringifyQuery' with 'addQueryArgs' #2655 (Build, Components, Packages)
|
1193 |
-
- Dev: Tests setup
|
1194 |
-
- Dev: show example extension list as list in readme #2619 (Documentation)
|
1195 |
-
- Fix: Bug that was preventing confirmation dialog from showing after saving settings. #2660
|
1196 |
-
- Fix: completed orders lingering in activity panel. #2659 (Activity Panel, REST API)
|
1197 |
-
- Fix: Location of unread indicators in activity panel. #2662
|
1198 |
-
- Fix: Zindex issue in empty message on chart #2646 (Components, Packages)
|
1199 |
-
- Fix: Disable placeholder animation when prefersreducedmotion is set #2645 (Accessibility)
|
1200 |
-
- Fix: reactspring breaking IE11 #2698 (Build)
|
1201 |
-
- Bug: Fix missing nav on connected admin pages. #2676
|
1202 |
-
- Task: Add priority 2 Tracks events #2633 (Components, Packages)
|
1203 |
-
- Task: Add priority 3 Tracks events #2638 (Components, Packages)
|
1204 |
-
- Task: Add instructions for translating to contributing docs. #2618 (Documentation)
|
1205 |
-
|
1206 |
-
== 0.15.0 07/11/2019 ==
|
1207 |
-
|
1208 |
-
- Fix: Compare checkboxes in report tables #2571
|
1209 |
-
- Fix: Use correct links in DevDocs. #2602 (Documentation)
|
1210 |
-
- Fix: Prevent error when no actionable order statuses are set #2577
|
1211 |
-
- Fix: exclude old WC autodraft orders from import #2612 (Analytics)
|
1212 |
-
- Fix: Only calculate one order row when the order has multiple coupons. #2484 (Analytics)
|
1213 |
-
- Fix: Cast is_snoozable as int prior to database save #2573
|
1214 |
-
- Fix: Update layout of Settings Page and notify users when settings are not saved. #2544
|
1215 |
-
- Fix: Change size of Header to 56px fixes bug in product edit page toolbar being hidden.
|
1216 |
-
- Fix: Stock notifs
|
1217 |
-
- Fix: WordPress Notifications Activity Panel falsely saying there are notices to be seen. #2552
|
1218 |
-
- Fix: Fixes issue with alerts on mobile #2537
|
1219 |
-
- Fix: Track name for activity panel open event #2532
|
1220 |
-
- Fix: margins on nonupdate notices. #2487 👏 @benignant
|
1221 |
-
- Dev: Introduce a new Products by Tag(s) block #554
|
1222 |
-
- Dev: Tracks
|
1223 |
-
- Dev: Fix
|
1224 |
-
- Dev: Update colorstudio to 1.0.5 #2575 (Build, Packages)
|
1225 |
-
- Dev: Add countLabel prop to SearchListItem #2569 (Components, Packages)
|
1226 |
-
- Dev: Route handling
|
1227 |
-
- Dev: Customizable dashboard
|
1228 |
-
- Dev: Dashboard
|
1229 |
-
- Dev: Advanced Filters
|
1230 |
-
- Performance: check for scheduled snooze action once per hour instead of every admin request. #2593
|
1231 |
-
- Task: Add tracks event to Store Alert and Inbox Notification action clicks #2559
|
1232 |
-
- Task: Send tracks event for snoozing store alerts. #2560
|
1233 |
-
- Task: Tracks
|
1234 |
-
- Enhancement: Add Report CSV Export Endpoint #2526 (Analytics, REST API)
|
1235 |
-
- Enhancement: Remove updated stock products from Activity Panel #2442 (Activity Panel)
|
1236 |
-
- Enhancement: Add Reports CSV Exporter Class #2502 (Analytics)
|
1237 |
-
- Enhancement: add state/region to Customers Report. #2463 (Analytics) 👏 @KZeni
|
1238 |
-
- Tweak: remove placeholder link. #2561
|
1239 |
-
- Tweak: Open external note action links in a new tab #2462 (Activity Panel, Inbox)
|
1240 |
-
- Tweak: fix some report endpoint default params. #2496 (REST API)
|
1241 |
-
- Bug: Fix batch queue range bug. #2521
|
1242 |
-
|
1243 |
-
== 0.14.0 06/24/2019 ==
|
1244 |
-
|
1245 |
-
- Dev: Action Scheduler
|
1246 |
-
- Dev: Fix Activity Panel being overlapped by editor toolbar #2446 (Activity Panel)
|
1247 |
-
- Dev: update tested to version in plugin repo readme.txt #2443
|
1248 |
-
- Dev: Allow keyboard interaction in Stock Activity Panel form #2447 (Accessibility, Activity Panel)
|
1249 |
-
- Dev: Activity Panels
|
1250 |
-
- Dev: Add wpapifetch script to dependencies #2460
|
1251 |
-
- Dev: Remove the "wpClosedMenu" page setting #2441 (Build)
|
1252 |
-
- Dev: Fix revenue and orders charts using the wrong endpoint in the Dashboard #2417 (Dashboard)
|
1253 |
-
- Dev: Fix conflicts with WordPress.com toolbar #2431 (Activity Panel)
|
1254 |
-
- Dev: Table queries
|
1255 |
-
- Dev: Update Dashboard Charts naming and order #2429 (Dashboard)
|
1256 |
-
- Bug: add match==any support for advanced orders table filter #2228
|
1257 |
-
- Bug: Fix search bar in Orders page not being tapable on mobile #2384
|
1258 |
-
- Fix: PHP errors on missing refund orders during import. #2464 (Analytics)
|
1259 |
-
- Fix: fix type in readme changelog for 0.13.0 #2457 (Documentation)
|
1260 |
-
- Fix: handle internal `rest_do_request()` error conditions. #2423 (Dashboard)
|
1261 |
-
- Enhancement: Report Tables
|
1262 |
-
- Tweak: Add test to catch missing version updates. #2424 (Build)
|
1263 |
-
- Tweak: Reduce style dependencies on WP core, avoid errantly including WP core's Google Fonts. #2432 (Components)
|
1264 |
-
- Task: Remove test menu from Orders panel #2438 (Activity Panel)
|
1265 |
-
|
1266 |
-
== 0.13.2 06/13/2019 ==
|
1267 |
-
|
1268 |
-
- Fix: Bump plugin version for database update.
|
1269 |
-
|
1270 |
-
== 0.13.1 06/12/2019 ==
|
1271 |
-
|
1272 |
-
- Fix: Exit deactivate early if WooCommerce not active. #2410
|
1273 |
-
|
1274 |
-
== 0.13.0 06/12/2019 ==
|
1275 |
-
|
1276 |
-
- Fix: Notes
|
1277 |
-
- Fix: Double space at 191 row #2369 👏 @shoheitanaka
|
1278 |
-
- Fix: Misspelling at update config.js #2368 👏 @shoheitanaka
|
1279 |
-
- Fix: Move StoreAlerts below screen meta links on embed pages. #2291
|
1280 |
-
- Fix: Extensions
|
1281 |
-
- Fix: Dashboard Extension Example
|
1282 |
-
- Fix: wcapi
|
1283 |
-
- Fix: Remove errant import update operation from `wpapi` spec. #2271
|
1284 |
-
- Fix: Refactor main file into singleton class structure #2226
|
1285 |
-
- Enhancement: Settings
|
1286 |
-
- Enhancement: Trigger an action server side when admin note actions are clicked #2325
|
1287 |
-
- Enhancement: Add progress bars to Historical Data Import screen #2312
|
1288 |
-
- Enhancement: Only show unactioned notes in the Inbox panel. #2327 (Inbox)
|
1289 |
-
- Enhancement: Add support for “primary” admin notice actions. #2269
|
1290 |
-
- Enhancement: Allow links in admin notice content. #2272
|
1291 |
-
- Dev: Add tracks to import jobs #2193
|
1292 |
-
- Dev: Notes
|
1293 |
-
- Dev: Fix Activity Panel layout on mobile #2405 (Activity Panel)
|
1294 |
-
- Dev: Add uninstall file to release ZIP #2402 (Build)
|
1295 |
-
- Dev: Add date_created_gmt property to orders endpoint #2086 (Activity Panel)
|
1296 |
-
- Dev: Transpile newspackcomponents package #2348 (Build)
|
1297 |
-
- Dev: Low stock handling inconsistencies with WooCommerce 3.6+ #2191
|
1298 |
-
- Dev: Remove d3array dependency #2286 (Build)
|
1299 |
-
- Dev: Dashboard Extentions
|
1300 |
-
- Dev: Fix `boxshadow8dp` error. #2290 (Components, Packages)
|
1301 |
-
- Dev: Persisted Queries
|
1302 |
-
- Dev: Remove customizable dashboard heading #2321 (Dashboard)
|
1303 |
-
- Dev: Dashboard
|
1304 |
-
- Dev: Hook up import/totals endpoint to Historical Data Import screen #2208
|
1305 |
-
- Bug: Fix wrong average numbers in chart legends #2352 (Analytics, Components, Packages)
|
1306 |
-
- Bug: Fix some data not to being imported when 'skip_existing' option is enabled #2385
|
1307 |
-
- Bug: Don't create Notices tab in Activity Panel if notices HTML element was removed by a plugin #2378
|
1308 |
-
- Bug: Prevent inactive tabs from making requests #2377
|
1309 |
-
- Bug: Add missing space in Orders Activity Panel card #2306 (Activity Panel)
|
1310 |
-
- Bug: Handle `WC_Admin_Notices`. #2245 (Activity Panel, On Merge to WC Core)
|
1311 |
-
- Bug: Exclude autodraft and trashed orders from imports. #2265
|
1312 |
-
- Tweak: Allow paragraph tags in admin notes. #2344 (Inbox)
|
1313 |
-
- Tweak: Allow note action URLs to be empty. #2324 (Inbox)
|
1314 |
-
- Task: Remove second beta warning from readme #2362
|
1315 |
-
- Task: Remove beta warning from readme. #2340
|
1316 |
-
|
1317 |
-
== 0.12.0 05/14/2019 ==
|
1318 |
-
|
1319 |
-
- Fix: dashboard issues #2194
|
1320 |
-
- Fix: Dashboard
|
1321 |
-
- Fix: Refactor page handler API #2209
|
1322 |
-
- Fix: EllipsisMenu misalignment in wide containers #2207
|
1323 |
-
- Fix: Show Y grid ticks/lines in charts where all values are lower than 1 #2147
|
1324 |
-
- Fix: Dashboard
|
1325 |
-
- Fix: add defaultOrder field to tablecard header #2139 👏 @rrennick
|
1326 |
-
- Fix: Travis
|
1327 |
-
- Fix: Vertically center Dashboard 'Add more' button #2171
|
1328 |
-
- Fix: Don't make an API call when there are no performance indicators #2157
|
1329 |
-
- Fix: Fix customer type filter param in orders report #2169
|
1330 |
-
- Fix: Persist chart interval in Dashboard #2156
|
1331 |
-
- Fix: Prevent chart type buttons breaking in two lines #2135
|
1332 |
-
- Dev: Handle “all guests” when getting customers from orders. #2038
|
1333 |
-
- Dev: Order milestones
|
1334 |
-
- Dev: Replace Rebuild reports settings with Import Historical Data #2198
|
1335 |
-
- Dev: add a defaultValue parameter to the ReportFilters component #2150 👏 @rrennick
|
1336 |
-
- Dev: Record refunds separate from order entries #2083
|
1337 |
-
- Dev: Add refund filtering to order reports #2179
|
1338 |
-
- Dev: Hook up API Historical Data screen to API endpoints #2177
|
1339 |
-
- Dev: Save section/block preferences in user data #2148
|
1340 |
-
- Dev: Add Historical Data Import Screen #2073
|
1341 |
-
- Dev: EllipsisMenu
|
1342 |
-
- Dev: Dashboard
|
1343 |
-
- Dev: Allow renaming Dashboard sections #2131
|
1344 |
-
- Dev: Add import endpoint and controller #2034
|
1345 |
-
- Dev: Support Sequential Order Numbers in Downloads Report order number filter #1907
|
1346 |
-
- Dev: Scroll to top of the table when navigating table pages #2051
|
1347 |
-
- Dev: Add empty state for the Reviews panels #2124
|
1348 |
-
|
1349 |
-
== 0.11.0 04/17/2019 ==
|
1350 |
-
|
1351 |
-
- Dev: Extend report submenu items #2033
|
1352 |
-
- Dev: Extension Examples #2018
|
1353 |
-
- Dev: Update admin notes readme #2043
|
1354 |
-
- Dev: Add profile wizard base page #1933
|
1355 |
-
- Dev: Method to publish core ready features #1863
|
1356 |
-
- Dev: Add PHP autofix to precommit hook #2022
|
1357 |
-
- Dev: PHP Lint fixes #2023
|
1358 |
-
- Dev: Update Link in readme to Proper Location #2026
|
1359 |
-
- Dev: Split D3Chart utils/axis file #2000
|
1360 |
-
- Dev: Remove coupon_total from order stats table #1975
|
1361 |
-
- Fix: Transpile acornjsx package #2064
|
1362 |
-
- Fix: Inbox
|
1363 |
-
- Fix: Check if welcome message notice exists before creating it #2063
|
1364 |
-
- Fix: Respect manual offsets in default before/after params #2035
|
1365 |
-
- Fix: Fix wrong dates in Reviews and Orders panels of the Activity Panel #2013
|
1366 |
-
- Fix: Make customer name extendable #1976
|
1367 |
-
- Fix: center mobile icon vertically #1990 👏 @rrennick
|
1368 |
-
- Fix: search filter focus #1994
|
1369 |
-
- Fix: Fix date filter layout on Android #1996
|
1370 |
-
- Fix: Order Status filter
|
1371 |
-
- Fix: add filter length condition to enable filter check #1983 👏 @rrennick
|
1372 |
-
- Fix: lookup product title in order meta if product has been deleted #1977 👏 @rrennick
|
1373 |
-
- Fix: Cast order totals as floats when calculating net total #1945
|
1374 |
-
- Enhancement: Add empty state in Stock panel #2049
|
1375 |
-
- Enhancement: Add empty state in Orders panel #2037
|
1376 |
-
- Enhancement: Hook up Stock panel #1998
|
1377 |
-
- Enhancement: Add order milestone notifications. #1872
|
1378 |
-
- Enhancement: Add leaderboard controller and endpoint #1995
|
1379 |
-
- Enhancement: Hook up leaderboards endpoint to dashboard #2004
|
1380 |
-
- Enhancement: Activity Panel
|
1381 |
-
- Enhancement: Scroll to top only when URL changes #1989
|
1382 |
-
- Enhancement: Allow negative values in charts #1979
|
1383 |
-
|
1384 |
-
== 0.10.0 04/02/2019 ==
|
1385 |
-
|
1386 |
-
- Dev: Properly namespaced methods in wcadmin.php. props @ronakganatra9 #1804
|
1387 |
-
- Dev: Changed textdomain to `woocommerceadmin` #1795
|
1388 |
-
- Dev: Updates to plugin header #1764
|
1389 |
-
- Dev: Clear scheduled actions on plugin deactivate #1715
|
1390 |
-
- Dev: Refactor getFilterQuery #1873
|
1391 |
-
- Dev: Update npm dependencies #1913
|
1392 |
-
- Fix: ESLint error in leaderboards #1914
|
1393 |
-
- Fix: REST API Requests failing with isUnboundedRequest #1954
|
1394 |
-
- Fix: Bugs in Reviews panel #1947
|
1395 |
-
- Fix: Scroll to top of page when changing reports #1958
|
1396 |
-
- Fix: Update variations controller filter names #1949
|
1397 |
-
- Fix: Sku sorting in variations report #1952 #1801 props @ronakganatra9
|
1398 |
-
- Fix: REST API customers exact match filters
|
1399 |
-
- Fix: EmptyContent on narrow viewports #1703
|
1400 |
-
- Fix: Empty chart and summary numbers in Categories Report #1698
|
1401 |
-
- Fix: Display chart and summary numbers placeholders when loading search terms #1694
|
1402 |
-
- Fix: Display order number on reports #1706
|
1403 |
-
- Fix: Missing Date Picker Calendar in RTL #1810
|
1404 |
-
- Fix: Circles on chart hover #1816
|
1405 |
-
- Fix: Date Range dropdown for RTL locales #1803
|
1406 |
-
- Fix: Sorting by tax_code in Taxes Report #1811
|
1407 |
-
- Fix: Charts in RTL locales #1794
|
1408 |
-
- Fix: RTL css #1781
|
1409 |
-
- Fix: CSS Lint issues in storealerts #1793
|
1410 |
-
- Fix: Products stats segmentation when filtering categories #1779
|
1411 |
-
- Fix: Remove timezone from appendTimestamp() output #1778
|
1412 |
-
- Fix: REST API Make variations and coupons endpoints return zerovalue items #1765
|
1413 |
-
- Fix: REST API make categories return zerovalue items #1755
|
1414 |
-
- Fix: REST API Make products and rates endpoints return zerovalue items #1722
|
1415 |
-
- Fix: Taxes report, sort taxes numerically #1766
|
1416 |
-
- Fix: Chart comparison mode single category #1762
|
1417 |
-
- Fix: Simplify options in filters #1748
|
1418 |
-
- Fix: Show compared keys in chart legends even if their values are 0 #1754
|
1419 |
-
- Fix: IE11 Leaderboard issue
|
1420 |
-
- Fix: Use IDs instead of labels to identify chart legend items #1730
|
1421 |
-
- Fix: Update table columns visibility when loading finishes #1729
|
1422 |
-
- Fix: Update chart colors #1731
|
1423 |
-
- Fix: Date Picker css tabs #1717
|
1424 |
-
- Fix: Infinite loop in customer population #1936
|
1425 |
-
- Fix: PHP notices on orders data store #1870
|
1426 |
-
- Fix: Table links to internal reports #1824
|
1427 |
-
- Accessibility: Add button focus style to report chart interval selector #1740
|
1428 |
-
- Enhancement: Add "Cancel All" method to ActionScheduler Store #1813
|
1429 |
-
- Enhancement: Add store notice for processing historical data #1763
|
1430 |
-
- Enhancement: Ensure other scheduled actions are claimed before WC Admin actions #1759
|
1431 |
-
- Enhancement: Load on hold reviews in the Activity Panel
|
1432 |
-
- Enhancement: Add overlay to Product Placeholder image #1880
|
1433 |
-
- Enhancement: Added "Remind me later" ability to StoreAlert component #1848
|
1434 |
-
- Enhancement: Set reviews Activity Panel unread indicator based off REST API data #1824
|
1435 |
-
- Enhancement: Set orders Activity Panel unread indicator based off REST API data #1860
|
1436 |
-
- Enhancement: Hide Reviews Activity Panel if reviews are disabled #1852
|
1437 |
-
- Enhancement: Lookup product title in order meta if product has been deleted #1977
|
1438 |
-
- Performance: Avoid unneeded chart rerenders #1780
|
1439 |
-
- Performance: Don't run lookup table historical population on activation of plugin #1741
|
1440 |
-
- Performance: Don't dispatch REST API requests when window/tab is hidden #1732
|
1441 |
-
- Performance: Only check for unsnooze note on admin_init #1960
|
1442 |
-
|
1443 |
-
== 0.8.0 02/28/2019 ==
|
1444 |
-
|
1445 |
-
- Table Component: Reset search on compare
|
1446 |
-
- Table Component: Fix search positioning in small viewports
|
1447 |
-
- MenuItem Component: Added isCheckBox prop
|
1448 |
-
- a11y: Enhancements to “Rows per Table” on the dashboard
|
1449 |
-
- Taxes Report: Fix comparison mode and segmentation labels
|
1450 |
-
- Test Framework: Require WordPress 5.0 or greater to run phpunit
|
1451 |
-
- Chart Component: Preserve chart colors bug fix
|
1452 |
-
- Navigation: Close wpadmin menu when navigating between reports in narrow viewports
|
1453 |
-
- Analytics: Don’t show variation table when in an active search
|
1454 |
-
- Analytics: Sort tabular data when selecting a Summary Number
|
1455 |
-
- Dashboard: Fix for style of summary number placeholders
|
1456 |
-
- Downloads/Customers Report: Fix for filters
|
1457 |
-
- Chart: Mouse pointer now displayed in entire clickable area
|
1458 |
-
- Chart: Fixes for the legend totals
|
1459 |
-
- Chart: Refactor of d3 logic
|
1460 |
-
- Chart: Add messaging when no data is available for selected filters
|
1461 |
-
- Build: Move IE11 css to specific css file
|
1462 |
-
- Downloads Report: Fix for sorting bug
|
1463 |
-
- Stock Report: fix the product link
|
1464 |
-
- Autocompleter: Increase debounce time to reduce API requests
|
1465 |
-
- Segmented Selection Component: fix for missing borders
|
1466 |
-
- Setup: Improvements to install flow
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dist/app/index.js
CHANGED
@@ -35,7 +35,7 @@ this["wc"] = this["wc"] || {}; this["wc"]["app"] =
|
|
35 |
/******/
|
36 |
/******/ // object to store loaded CSS chunks
|
37 |
/******/ var installedCssChunks = {
|
38 |
-
/******/
|
39 |
/******/ }
|
40 |
/******/ var isCssRtlEnabled = function() {
|
41 |
/******/ return document.dir === 'rtl';
|
@@ -45,14 +45,14 @@ this["wc"] = this["wc"] || {}; this["wc"]["app"] =
|
|
45 |
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
46 |
/******/ // Promise = chunk loading, 0 = chunk loaded
|
47 |
/******/ var installedChunks = {
|
48 |
-
/******/
|
49 |
/******/ };
|
50 |
/******/
|
51 |
/******/
|
52 |
/******/
|
53 |
/******/ // script path function
|
54 |
/******/ function webpackJsonpScriptSrc(chunkId) {
|
55 |
-
/******/ return __webpack_require__.p + "chunks/" + ({"
|
56 |
/******/ }
|
57 |
/******/
|
58 |
/******/ function jsonpScriptSrc(chunkId) {
|
@@ -95,7 +95,7 @@ this["wc"] = this["wc"] || {}; this["wc"]["app"] =
|
|
95 |
/******/
|
96 |
/******/
|
97 |
/******/ // mini-css-extract-plugin CSS loading
|
98 |
-
/******/ var cssChunks = {"0":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) {
|
@@ -259,7 +259,7 @@ this["wc"] = this["wc"] || {}; this["wc"]["app"] =
|
|
259 |
/******/
|
260 |
/******/
|
261 |
/******/ // Load entry module and return exports
|
262 |
-
/******/ return __webpack_require__(__webpack_require__.s =
|
263 |
/******/ })
|
264 |
/************************************************************************/
|
265 |
/******/ ({
|
@@ -267,7 +267,7 @@ this["wc"] = this["wc"] || {}; this["wc"]["app"] =
|
|
267 |
/***/ 0:
|
268 |
/***/ (function(module, exports) {
|
269 |
|
270 |
-
(function() { module.exports =
|
271 |
|
272 |
/***/ }),
|
273 |
|
@@ -284,7 +284,7 @@ this["wc"] = this["wc"] || {}; this["wc"]["app"] =
|
|
284 |
if (false) { var throwOnDirectAccess, ReactIs; } else {
|
285 |
// By explicitly using `prop-types` you are opting into new production behavior.
|
286 |
// http://fb.me/prop-types-in-prod
|
287 |
-
module.exports = __webpack_require__(
|
288 |
}
|
289 |
|
290 |
|
@@ -293,532 +293,1240 @@ if (false) { var throwOnDirectAccess, ReactIs; } else {
|
|
293 |
/***/ 10:
|
294 |
/***/ (function(module, exports) {
|
295 |
|
296 |
-
(function() { module.exports =
|
297 |
|
298 |
/***/ }),
|
299 |
|
300 |
-
/***/
|
301 |
-
/***/ (function(module, exports
|
302 |
-
|
303 |
-
"use strict";
|
304 |
-
var _extends=Object.assign||function(a){for(var c,b=1;b<arguments.length;b++)for(var d in c=arguments[b],c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d]);return a};Object.defineProperty(exports,'__esModule',{value:!0});exports.default=function(a){var b=a.size,c=b===void 0?24:b,d=a.onClick,e=a.icon,f=a.className,g=_objectWithoutProperties(a,['size','onClick','icon','className']),j=['gridicon','gridicons-cross-small',f,!1,!1,!1].filter(Boolean).join(' ');return _react2.default.createElement('svg',_extends({className:j,height:c,width:c,onClick:d},g,{xmlns:'http://www.w3.org/2000/svg',viewBox:'0 0 24 24'}),_react2.default.createElement('g',null,_react2.default.createElement('path',{d:'M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z'})))};var _react=__webpack_require__(5),_react2=_interopRequireDefault(_react);function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _objectWithoutProperties(a,b){var d={};for(var c in a)0<=b.indexOf(c)||Object.prototype.hasOwnProperty.call(a,c)&&(d[c]=a[c]);return d}module.exports=exports['default'];
|
305 |
|
|
|
306 |
|
307 |
/***/ }),
|
308 |
|
309 |
-
/***/
|
310 |
-
/***/ (function(module,
|
311 |
|
312 |
-
|
313 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return REVIEW_PAGE_LIMIT; });
|
314 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return unapprovedReviewsQuery; });
|
315 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getUnapprovedReviews; });
|
316 |
-
/* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
|
317 |
-
/* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_data__WEBPACK_IMPORTED_MODULE_0__);
|
318 |
-
/**
|
319 |
-
* External dependencies
|
320 |
-
*/
|
321 |
|
322 |
-
|
323 |
-
const unapprovedReviewsQuery = {
|
324 |
-
page: 1,
|
325 |
-
per_page: 1,
|
326 |
-
status: 'hold',
|
327 |
-
_embed: 1,
|
328 |
-
_fields: ['id']
|
329 |
-
};
|
330 |
-
function getUnapprovedReviews(select) {
|
331 |
-
const {
|
332 |
-
getReviewsTotalCount,
|
333 |
-
getReviewsError,
|
334 |
-
isResolving
|
335 |
-
} = select(_woocommerce_data__WEBPACK_IMPORTED_MODULE_0__["REVIEWS_STORE_NAME"]); // eslint-disable-next-line @wordpress/no-unused-vars-before-return
|
336 |
-
|
337 |
-
const totalReviews = getReviewsTotalCount(unapprovedReviewsQuery);
|
338 |
-
const isError = Boolean(getReviewsError(unapprovedReviewsQuery));
|
339 |
-
const isRequesting = isResolving('getReviewsTotalCount', [unapprovedReviewsQuery]);
|
340 |
-
|
341 |
-
if (isError || isRequesting && totalReviews === undefined) {
|
342 |
-
return null;
|
343 |
-
}
|
344 |
|
345 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
346 |
}
|
347 |
|
|
|
|
|
348 |
/***/ }),
|
349 |
|
350 |
-
/***/
|
351 |
-
/***/ (function(module,
|
352 |
|
353 |
"use strict";
|
354 |
|
|
|
|
|
355 |
|
356 |
-
|
357 |
-
module.exports = __webpack_require__(129);
|
358 |
-
} else {}
|
359 |
|
|
|
|
|
|
|
|
|
360 |
|
361 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
362 |
|
363 |
-
|
364 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
|
366 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
367 |
|
368 |
-
/***/ }),
|
369 |
|
370 |
-
|
371 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
372 |
|
373 |
-
"use strict";
|
374 |
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
enumerable: true,
|
381 |
-
configurable: true,
|
382 |
-
writable: true
|
383 |
-
});
|
384 |
-
} else {
|
385 |
-
obj[key] = value;
|
386 |
}
|
387 |
|
388 |
-
|
|
|
389 |
}
|
390 |
-
|
391 |
-
|
|
|
|
|
|
|
|
|
|
|
392 |
|
393 |
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
394 |
|
395 |
-
function
|
396 |
-
|
397 |
-
|
398 |
-
|
|
|
|
|
399 |
|
400 |
-
|
401 |
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
402 |
|
403 |
-
|
404 |
-
|
405 |
-
if (excluded.indexOf(key) >= 0) continue;
|
406 |
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
407 |
-
target[key] = source[key];
|
408 |
}
|
409 |
-
}
|
410 |
|
411 |
-
|
|
|
412 |
}
|
413 |
-
|
414 |
-
|
|
|
415 |
|
416 |
-
// CONCATENATED MODULE: ./node_modules/@wordpress/
|
|
|
|
|
|
|
417 |
|
|
|
|
|
|
|
418 |
|
419 |
|
420 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
421 |
|
422 |
-
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(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; }
|
423 |
|
|
|
|
|
|
|
424 |
/**
|
425 |
-
*
|
|
|
|
|
|
|
|
|
|
|
426 |
*/
|
427 |
|
428 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
429 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
430 |
/**
|
431 |
-
*
|
|
|
|
|
|
|
432 |
*
|
433 |
-
* @param {
|
434 |
-
*
|
435 |
-
* Other props will be passed to wrapped SVG component
|
436 |
*
|
437 |
-
* @return {
|
438 |
*/
|
439 |
|
440 |
-
function Icon(_ref) {
|
441 |
-
var icon = _ref.icon,
|
442 |
-
_ref$size = _ref.size,
|
443 |
-
size = _ref$size === void 0 ? 24 : _ref$size,
|
444 |
-
props = _objectWithoutProperties(_ref, ["icon", "size"]);
|
445 |
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
|
|
450 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
451 |
|
452 |
-
/* harmony default export */ var build_module_icon = __webpack_exports__["a"] = (Icon);
|
453 |
-
//# sourceMappingURL=index.js.map
|
454 |
|
455 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
456 |
|
457 |
-
/***/ 116:
|
458 |
-
/***/ (function(module, exports) {
|
459 |
|
460 |
-
|
|
|
|
|
461 |
|
462 |
-
|
|
|
|
|
463 |
|
464 |
-
|
465 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
466 |
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
/**
|
476 |
-
*
|
|
|
|
|
|
|
477 |
*/
|
478 |
|
|
|
|
|
|
|
479 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
480 |
|
|
|
|
|
|
|
481 |
|
482 |
-
|
483 |
-
|
|
|
|
|
|
|
|
|
|
|
484 |
/**
|
485 |
* Internal dependencies
|
486 |
*/
|
487 |
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
component: RevenueReport,
|
503 |
-
navArgs: {
|
504 |
-
id: 'woocommerce-analytics-revenue'
|
505 |
-
}
|
506 |
-
}, {
|
507 |
-
report: 'products',
|
508 |
-
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Products', 'woocommerce-admin'),
|
509 |
-
component: ProductsReport,
|
510 |
-
navArgs: {
|
511 |
-
id: 'woocommerce-analytics-products'
|
512 |
-
}
|
513 |
-
}, {
|
514 |
-
report: 'variations',
|
515 |
-
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Variations', 'woocommerce-admin'),
|
516 |
-
component: VariationsReport,
|
517 |
-
navArgs: {
|
518 |
-
id: 'woocommerce-analytics-variations'
|
519 |
-
}
|
520 |
-
}, {
|
521 |
-
report: 'orders',
|
522 |
-
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Orders', 'woocommerce-admin'),
|
523 |
-
component: OrdersReport,
|
524 |
-
navArgs: {
|
525 |
-
id: 'woocommerce-analytics-orders'
|
526 |
-
}
|
527 |
-
}, {
|
528 |
-
report: 'categories',
|
529 |
-
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Categories', 'woocommerce-admin'),
|
530 |
-
component: CategoriesReport,
|
531 |
-
navArgs: {
|
532 |
-
id: 'woocommerce-analytics-categories'
|
533 |
-
}
|
534 |
-
}, {
|
535 |
-
report: 'coupons',
|
536 |
-
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Coupons', 'woocommerce-admin'),
|
537 |
-
component: CouponsReport,
|
538 |
-
navArgs: {
|
539 |
-
id: 'woocommerce-analytics-coupons'
|
540 |
-
}
|
541 |
-
}, {
|
542 |
-
report: 'taxes',
|
543 |
-
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Taxes', 'woocommerce-admin'),
|
544 |
-
component: TaxesReport,
|
545 |
-
navArgs: {
|
546 |
-
id: 'woocommerce-analytics-taxes'
|
547 |
-
}
|
548 |
-
}, manageStock === 'yes' ? {
|
549 |
-
report: 'stock',
|
550 |
-
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Stock', 'woocommerce-admin'),
|
551 |
-
component: StockReport,
|
552 |
-
navArgs: {
|
553 |
-
id: 'woocommerce-analytics-stock'
|
554 |
-
}
|
555 |
-
} : null, {
|
556 |
-
report: 'customers',
|
557 |
-
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Customers', 'woocommerce-admin'),
|
558 |
-
component: CustomersReport
|
559 |
-
}, {
|
560 |
-
report: 'downloads',
|
561 |
-
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Downloads', 'woocommerce-admin'),
|
562 |
-
component: DownloadsReport,
|
563 |
-
navArgs: {
|
564 |
-
id: 'woocommerce-analytics-downloads'
|
565 |
-
}
|
566 |
-
}].filter(Boolean);
|
567 |
-
return Object(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__["applyFilters"])(REPORTS_FILTER, reports);
|
568 |
-
});
|
569 |
|
570 |
/***/ }),
|
571 |
|
572 |
-
/***/
|
573 |
/***/ (function(module, exports, __webpack_require__) {
|
574 |
|
575 |
"use strict";
|
|
|
576 |
|
577 |
|
578 |
-
|
579 |
|
580 |
-
|
581 |
-
|
582 |
-
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
583 |
-
*/
|
584 |
-
var REACT_STATICS = {
|
585 |
-
childContextTypes: true,
|
586 |
-
contextType: true,
|
587 |
-
contextTypes: true,
|
588 |
-
defaultProps: true,
|
589 |
-
displayName: true,
|
590 |
-
getDefaultProps: true,
|
591 |
-
getDerivedStateFromError: true,
|
592 |
-
getDerivedStateFromProps: true,
|
593 |
-
mixins: true,
|
594 |
-
propTypes: true,
|
595 |
-
type: true
|
596 |
-
};
|
597 |
-
var KNOWN_STATICS = {
|
598 |
-
name: true,
|
599 |
-
length: true,
|
600 |
-
prototype: true,
|
601 |
-
caller: true,
|
602 |
-
callee: true,
|
603 |
-
arguments: true,
|
604 |
-
arity: true
|
605 |
-
};
|
606 |
-
var FORWARD_REF_STATICS = {
|
607 |
-
'$$typeof': true,
|
608 |
-
render: true,
|
609 |
-
defaultProps: true,
|
610 |
-
displayName: true,
|
611 |
-
propTypes: true
|
612 |
-
};
|
613 |
-
var MEMO_STATICS = {
|
614 |
-
'$$typeof': true,
|
615 |
-
compare: true,
|
616 |
-
defaultProps: true,
|
617 |
-
displayName: true,
|
618 |
-
propTypes: true,
|
619 |
-
type: true
|
620 |
-
};
|
621 |
-
var TYPE_STATICS = {};
|
622 |
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
623 |
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
624 |
-
|
625 |
-
function getStatics(component) {
|
626 |
-
// React v16.11 and below
|
627 |
-
if (reactIs.isMemo(component)) {
|
628 |
-
return MEMO_STATICS;
|
629 |
-
} // React v16.12 and above
|
630 |
|
|
|
|
|
631 |
|
632 |
-
|
633 |
-
|
|
|
|
|
634 |
|
635 |
-
var
|
636 |
-
var
|
637 |
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
638 |
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
639 |
-
var getPrototypeOf = Object.getPrototypeOf;
|
640 |
-
var objectPrototype = Object.prototype;
|
641 |
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
642 |
-
if (typeof sourceComponent !== 'string') {
|
643 |
-
// don't hoist over string (html) components
|
644 |
-
if (objectPrototype) {
|
645 |
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
646 |
|
647 |
-
|
648 |
-
|
649 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
650 |
}
|
651 |
|
652 |
-
var keys = getOwnPropertyNames(sourceComponent);
|
653 |
|
654 |
-
|
655 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
656 |
}
|
657 |
|
658 |
-
var targetStatics = getStatics(targetComponent);
|
659 |
-
var sourceStatics = getStatics(sourceComponent);
|
660 |
|
661 |
-
for (var i = 0; i < keys.length; ++i) {
|
662 |
-
var key = keys[i];
|
663 |
|
664 |
-
|
665 |
-
|
|
|
|
|
|
|
666 |
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
} catch (e) {}
|
671 |
-
}
|
672 |
}
|
673 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
674 |
|
675 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
676 |
}
|
677 |
|
678 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
679 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
680 |
|
681 |
-
|
682 |
|
683 |
-
|
684 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
685 |
|
686 |
-
|
687 |
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ EmbedLayout; });
|
692 |
|
693 |
-
|
694 |
-
|
695 |
-
|
|
|
|
|
696 |
|
697 |
-
// EXTERNAL MODULE: external ["wp","element"]
|
698 |
-
var external_wp_element_ = __webpack_require__(0);
|
699 |
|
700 |
-
|
701 |
-
var external_wp_components_ = __webpack_require__(4);
|
702 |
|
703 |
-
|
704 |
-
|
705 |
|
706 |
-
|
707 |
-
var external_wp_data_ = __webpack_require__(7);
|
708 |
|
709 |
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js + 1 modules
|
710 |
-
var inheritsLoose = __webpack_require__(25);
|
711 |
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
|
716 |
-
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
717 |
-
var prop_types = __webpack_require__(1);
|
718 |
-
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
719 |
|
720 |
-
|
721 |
-
var esm_history = __webpack_require__(51);
|
722 |
|
723 |
-
|
724 |
-
|
725 |
|
726 |
-
|
727 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
728 |
|
729 |
-
|
730 |
-
|
|
|
|
|
|
|
731 |
|
732 |
-
|
733 |
-
var path_to_regexp = __webpack_require__(161);
|
734 |
-
var path_to_regexp_default = /*#__PURE__*/__webpack_require__.n(path_to_regexp);
|
735 |
|
736 |
-
|
737 |
-
var react_is = __webpack_require__(103);
|
738 |
|
739 |
-
|
740 |
-
|
741 |
|
742 |
-
|
743 |
-
var
|
744 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
745 |
|
746 |
-
// CONCATENATED MODULE: ./node_modules/react-router/esm/react-router.js
|
747 |
|
748 |
|
749 |
|
|
|
|
|
|
|
|
|
|
|
750 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
751 |
|
|
|
752 |
|
|
|
|
|
753 |
|
|
|
754 |
|
755 |
|
|
|
756 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
757 |
|
|
|
|
|
|
|
|
|
|
|
758 |
|
759 |
|
760 |
-
|
|
|
761 |
|
762 |
-
var
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
767 |
|
768 |
-
|
769 |
-
|
770 |
-
|
|
|
771 |
|
772 |
-
|
773 |
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
return context;
|
778 |
-
};
|
779 |
|
780 |
-
var
|
781 |
-
|
782 |
-
createNamedContext$1("Router");
|
783 |
|
784 |
-
|
785 |
-
|
786 |
-
*/
|
787 |
|
788 |
-
|
789 |
-
|
790 |
-
function (_React$Component) {
|
791 |
-
Object(inheritsLoose["a" /* default */])(Router, _React$Component);
|
792 |
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
};
|
801 |
|
802 |
-
|
803 |
-
|
804 |
|
805 |
-
|
806 |
-
_this.state = {
|
807 |
-
location: props.history.location
|
808 |
-
}; // This is a bit of a hack. We have to start listening for location
|
809 |
-
// changes here in the constructor in case there are any <Redirect>s
|
810 |
-
// on the initial render. If there are, they will replace/push when
|
811 |
-
// they mount and since cDM fires in children before parents, we may
|
812 |
-
// get a new location before the <Router> is mounted.
|
813 |
|
814 |
-
_this._isMounted = false;
|
815 |
-
_this._pendingLocation = null;
|
816 |
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
822 |
});
|
823 |
} else {
|
824 |
_this._pendingLocation = location;
|
@@ -1407,47 +2115,50 @@ if (false) { var secondaryBuildName, initialBuildName, buildNames, react_router_
|
|
1407 |
var external_lodash_ = __webpack_require__(3);
|
1408 |
|
1409 |
// EXTERNAL MODULE: ./node_modules/qs/lib/index.js
|
1410 |
-
var lib = __webpack_require__(
|
1411 |
-
|
1412 |
-
// EXTERNAL MODULE: external ["wc","components"]
|
1413 |
-
var external_wc_components_ = __webpack_require__(21);
|
1414 |
-
|
1415 |
-
// EXTERNAL MODULE: external ["wc","navigation"]
|
1416 |
-
var external_wc_navigation_ = __webpack_require__(12);
|
1417 |
|
1418 |
-
// EXTERNAL MODULE:
|
1419 |
-
var
|
1420 |
|
1421 |
-
// EXTERNAL MODULE: external ["wc","
|
1422 |
-
var
|
1423 |
|
1424 |
-
// EXTERNAL MODULE:
|
1425 |
-
var
|
1426 |
|
1427 |
-
// EXTERNAL MODULE: external ["wc","
|
1428 |
-
var
|
1429 |
|
1430 |
-
// EXTERNAL MODULE: external ["
|
1431 |
-
var
|
1432 |
|
1433 |
// EXTERNAL MODULE: ./client/layout/style.scss
|
1434 |
-
var layout_style = __webpack_require__(
|
1435 |
|
1436 |
-
// EXTERNAL MODULE: external ["wp","hooks"]
|
1437 |
-
var
|
1438 |
|
1439 |
-
// EXTERNAL MODULE: external ["wp","i18n"]
|
1440 |
-
var
|
1441 |
|
1442 |
// EXTERNAL MODULE: ./client/analytics/report/get-reports.js
|
1443 |
-
var get_reports = __webpack_require__(
|
1444 |
|
1445 |
// EXTERNAL MODULE: ./client/dashboard/utils.js
|
1446 |
-
var utils = __webpack_require__(
|
1447 |
|
1448 |
// CONCATENATED MODULE: ./client/layout/controller.js
|
1449 |
|
1450 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1451 |
/**
|
1452 |
* External dependencies
|
1453 |
*/
|
@@ -1465,21 +2176,35 @@ var utils = __webpack_require__(59);
|
|
1465 |
|
1466 |
|
1467 |
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1479 |
pages.push({
|
1480 |
container: Homescreen,
|
1481 |
path: '/',
|
1482 |
-
breadcrumbs: [
|
1483 |
wpOpenMenu: 'toplevel_page_woocommerce',
|
1484 |
navArgs: {
|
1485 |
id: 'woocommerce-home'
|
@@ -1491,7 +2216,7 @@ const getPages = () => {
|
|
1491 |
pages.push({
|
1492 |
container: Dashboard,
|
1493 |
path: '/analytics/overview',
|
1494 |
-
breadcrumbs: [
|
1495 |
wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
|
1496 |
navArgs: {
|
1497 |
id: 'woocommerce-analytics-overview'
|
@@ -1501,7 +2226,7 @@ const getPages = () => {
|
|
1501 |
pages.push({
|
1502 |
container: AnalyticsSettings,
|
1503 |
path: '/analytics/settings',
|
1504 |
-
breadcrumbs: [
|
1505 |
wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
|
1506 |
navArgs: {
|
1507 |
id: 'woocommerce-analytics-settings'
|
@@ -1511,7 +2236,7 @@ const getPages = () => {
|
|
1511 |
pages.push({
|
1512 |
container: AnalyticsReport,
|
1513 |
path: '/customers',
|
1514 |
-
breadcrumbs: [
|
1515 |
wpOpenMenu: 'toplevel_page_woocommerce',
|
1516 |
navArgs: {
|
1517 |
id: 'woocommerce-analytics-customers'
|
@@ -1521,10 +2246,9 @@ const getPages = () => {
|
|
1521 |
pages.push({
|
1522 |
container: AnalyticsReport,
|
1523 |
path: '/analytics/:report',
|
1524 |
-
breadcrumbs: ({
|
1525 |
-
match
|
1526 |
-
|
1527 |
-
const report = Object(external_lodash_["find"])(Object(get_reports["a" /* default */])(), {
|
1528 |
report: match.params.report
|
1529 |
});
|
1530 |
|
@@ -1532,7 +2256,7 @@ const getPages = () => {
|
|
1532 |
return [];
|
1533 |
}
|
1534 |
|
1535 |
-
return [
|
1536 |
},
|
1537 |
wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
|
1538 |
capability: 'view_woocommerce_reports'
|
@@ -1543,7 +2267,7 @@ const getPages = () => {
|
|
1543 |
pages.push({
|
1544 |
container: MarketingOverview,
|
1545 |
path: '/marketing',
|
1546 |
-
breadcrumbs: [
|
1547 |
wpOpenMenu: 'toplevel_page_woocommerce-marketing',
|
1548 |
navArgs: {
|
1549 |
id: 'woocommerce-marketing-overview'
|
@@ -1556,7 +2280,7 @@ const getPages = () => {
|
|
1556 |
pages.push({
|
1557 |
container: ProfileWizard,
|
1558 |
path: '/setup-wizard',
|
1559 |
-
breadcrumbs: [
|
1560 |
capability: 'manage_woocommerce'
|
1561 |
});
|
1562 |
}
|
@@ -1565,70 +2289,82 @@ const getPages = () => {
|
|
1565 |
pages.push({
|
1566 |
container: SettingsGroup,
|
1567 |
path: '/settings/:page',
|
1568 |
-
breadcrumbs: ({
|
1569 |
-
match
|
1570 |
-
}) => {
|
1571 |
// @todo This might need to be refactored to retreive groups via data store.
|
1572 |
-
|
1573 |
-
|
1574 |
|
1575 |
if (!page) {
|
1576 |
return [];
|
1577 |
}
|
1578 |
|
1579 |
-
return [
|
1580 |
},
|
1581 |
wpOpenMenu: 'toplevel_page_woocommerce',
|
1582 |
capability: 'manage_woocommerce'
|
1583 |
});
|
1584 |
}
|
1585 |
|
1586 |
-
return Object(
|
1587 |
};
|
1588 |
-
|
1589 |
-
|
1590 |
-
window.document.documentElement.scrollTop = 0;
|
1591 |
-
window.document.body.classList.remove('woocommerce-admin-is-loading');
|
1592 |
-
}
|
1593 |
|
1594 |
-
|
1595 |
-
const prevBaseQuery = Object(external_lodash_["omit"])(prevProps.query, 'chartType', 'filter', 'paged');
|
1596 |
-
const baseQuery = Object(external_lodash_["omit"])(this.props.query, 'chartType', 'filter', 'paged');
|
1597 |
|
1598 |
-
|
1599 |
-
|
1600 |
-
|
1601 |
-
|
1602 |
-
|
1603 |
|
1604 |
-
|
|
|
|
|
1605 |
window.document.documentElement.scrollTop = 0;
|
|
|
1606 |
}
|
1607 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1608 |
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
1616 |
-
|
1617 |
-
|
1618 |
-
|
1619 |
-
|
1620 |
-
|
1621 |
-
|
1622 |
-
|
1623 |
-
|
1624 |
-
|
1625 |
-
|
1626 |
-
|
1627 |
-
|
1628 |
-
|
1629 |
-
|
|
|
|
|
|
|
|
|
1630 |
|
1631 |
-
|
|
|
1632 |
/**
|
1633 |
* Update an anchor's link in sidebar to include persisted queries. Leave excluded screens
|
1634 |
* as is.
|
@@ -1640,26 +2376,28 @@ class controller_Controller extends external_wp_element_["Component"] {
|
|
1640 |
|
1641 |
function updateLinkHref(item, nextQuery, excludedScreens) {
|
1642 |
if (Object(utils["f" /* isWCAdmin */])(item.href)) {
|
1643 |
-
|
1644 |
-
|
1645 |
-
|
1646 |
-
|
1647 |
-
|
1648 |
-
|
1649 |
|
1650 |
item.href = href;
|
1651 |
|
1652 |
-
item.onclick = e
|
1653 |
e.preventDefault();
|
1654 |
-
Object(
|
1655 |
};
|
1656 |
}
|
1657 |
} // Update's wc-admin links in wp-admin menu
|
1658 |
|
1659 |
window.wpNavMenuUrlUpdate = function (query) {
|
1660 |
-
|
1661 |
-
|
1662 |
-
Array.from(document.querySelectorAll('#adminmenu a')).forEach(
|
|
|
|
|
1663 |
}; // When the route changes, we need to update wp-admin's menu with the correct section & current link
|
1664 |
|
1665 |
|
@@ -1667,7 +2405,7 @@ window.wpNavMenuClassChange = function (page, url) {
|
|
1667 |
Array.from(document.getElementsByClassName('current')).forEach(function (item) {
|
1668 |
item.classList.remove('current');
|
1669 |
});
|
1670 |
-
|
1671 |
submenu.forEach(function (element) {
|
1672 |
element.classList.remove('wp-has-current-submenu');
|
1673 |
element.classList.remove('wp-menu-open');
|
@@ -1675,15 +2413,15 @@ window.wpNavMenuClassChange = function (page, url) {
|
|
1675 |
element.classList.add('wp-not-current-submenu');
|
1676 |
element.classList.add('menu-top');
|
1677 |
});
|
1678 |
-
|
1679 |
-
|
1680 |
-
|
1681 |
Array.from(currentItems).forEach(function (item) {
|
1682 |
item.parentElement.classList.add('current');
|
1683 |
});
|
1684 |
|
1685 |
if (page.wpOpenMenu) {
|
1686 |
-
|
1687 |
|
1688 |
if (currentMenu) {
|
1689 |
currentMenu.classList.remove('wp-not-current-submenu');
|
@@ -1693,33 +2431,38 @@ window.wpNavMenuClassChange = function (page, url) {
|
|
1693 |
}
|
1694 |
}
|
1695 |
|
1696 |
-
|
1697 |
wpWrap.classList.remove('wp-responsive-open');
|
1698 |
};
|
1699 |
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
1700 |
var classnames = __webpack_require__(6);
|
1701 |
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
1702 |
|
1703 |
-
// EXTERNAL MODULE: external ["wp","htmlEntities"]
|
1704 |
-
var
|
1705 |
|
1706 |
-
// EXTERNAL MODULE:
|
1707 |
-
var
|
1708 |
|
1709 |
-
// EXTERNAL MODULE: ./
|
1710 |
-
var
|
1711 |
|
1712 |
-
// EXTERNAL MODULE: ./node_modules/@
|
1713 |
-
var
|
|
|
1714 |
|
1715 |
-
// EXTERNAL MODULE: external ["wp","
|
1716 |
-
var
|
1717 |
|
1718 |
-
// EXTERNAL MODULE: ./
|
1719 |
-
var
|
|
|
1720 |
|
1721 |
-
// EXTERNAL MODULE:
|
1722 |
-
var
|
|
|
|
|
|
|
1723 |
|
1724 |
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/inbox.js
|
1725 |
|
@@ -1728,10 +2471,10 @@ var external_wp_primitives_ = __webpack_require__(8);
|
|
1728 |
* WordPress dependencies
|
1729 |
*/
|
1730 |
|
1731 |
-
var inbox_inbox = Object(
|
1732 |
xmlns: "http://www.w3.org/2000/svg",
|
1733 |
viewBox: "0 0 24 24"
|
1734 |
-
}, Object(
|
1735 |
fillRule: "evenodd",
|
1736 |
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",
|
1737 |
clipRule: "evenodd"
|
@@ -1745,22 +2488,58 @@ var inbox_inbox = Object(external_wp_element_["createElement"])(external_wp_prim
|
|
1745 |
* WordPress dependencies
|
1746 |
*/
|
1747 |
|
1748 |
-
var help_help = Object(
|
1749 |
xmlns: "http://www.w3.org/2000/svg",
|
1750 |
viewBox: "0 0 24 24"
|
1751 |
-
}, Object(
|
1752 |
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"
|
1753 |
}));
|
1754 |
/* harmony default export */ var library_help = (help_help);
|
1755 |
//# sourceMappingURL=help.js.map
|
1756 |
-
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
|
1757 |
-
var external = __webpack_require__(496);
|
1758 |
-
|
1759 |
// EXTERNAL MODULE: ./client/header/activity-panel/style.scss
|
1760 |
-
var activity_panel_style = __webpack_require__(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1761 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1762 |
// EXTERNAL MODULE: ./client/inbox-panel/utils.js
|
1763 |
-
var inbox_panel_utils = __webpack_require__(
|
1764 |
|
1765 |
// CONCATENATED MODULE: ./client/header/activity-panel/unread-indicators.js
|
1766 |
/**
|
@@ -1773,44 +2552,44 @@ var inbox_panel_utils = __webpack_require__(164);
|
|
1773 |
*/
|
1774 |
|
1775 |
|
1776 |
-
|
1777 |
page: 1,
|
1778 |
-
per_page:
|
1779 |
status: 'unactioned',
|
1780 |
-
type:
|
1781 |
orderby: 'date',
|
1782 |
order: 'desc'
|
1783 |
};
|
1784 |
-
function
|
1785 |
-
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
1789 |
-
|
1790 |
-
|
1791 |
-
|
1792 |
-
|
1793 |
-
|
1794 |
-
|
1795 |
|
1796 |
if (!lastRead) {
|
1797 |
return null;
|
1798 |
}
|
1799 |
|
1800 |
getNotes(UNREAD_NOTES_QUERY);
|
1801 |
-
|
1802 |
-
|
1803 |
|
1804 |
if (isError || isRequesting) {
|
1805 |
return null;
|
1806 |
}
|
1807 |
|
1808 |
-
|
1809 |
-
|
1810 |
return unreadNotesCount > 0;
|
1811 |
}
|
1812 |
function getLowStockCount() {
|
1813 |
-
return Object(
|
1814 |
}
|
1815 |
// CONCATENATED MODULE: ./client/header/activity-panel/tab/index.js
|
1816 |
|
@@ -1821,38 +2600,38 @@ function getLowStockCount() {
|
|
1821 |
|
1822 |
|
1823 |
|
1824 |
-
|
1825 |
-
icon,
|
1826 |
-
|
1827 |
-
|
1828 |
-
|
1829 |
-
|
1830 |
-
|
1831 |
-
|
1832 |
-
|
1833 |
-
const className = classnames_default()('woocommerce-layout__activity-panel-tab', {
|
1834 |
'is-active': isPanelOpen && selected,
|
1835 |
'has-unread': unread
|
1836 |
});
|
1837 |
-
|
1838 |
-
return Object(
|
1839 |
role: "tab",
|
1840 |
className: className,
|
1841 |
"aria-selected": selected,
|
1842 |
-
"aria-controls":
|
1843 |
key: tabKey,
|
1844 |
id: tabKey,
|
1845 |
-
onClick: ()
|
1846 |
onTabClick(name);
|
1847 |
}
|
1848 |
-
}, icon, title, ' ', unread && Object(
|
1849 |
className: "screen-reader-text"
|
1850 |
-
}, Object(
|
1851 |
};
|
1852 |
// CONCATENATED MODULE: ./client/header/activity-panel/tabs/index.js
|
1853 |
|
1854 |
|
1855 |
|
|
|
1856 |
/**
|
1857 |
* External dependencies
|
1858 |
*/
|
@@ -1864,52 +2643,54 @@ const Tab = ({
|
|
1864 |
*/
|
1865 |
|
1866 |
|
1867 |
-
|
1868 |
-
tabs,
|
1869 |
-
|
1870 |
-
|
1871 |
-
|
1872 |
-
|
1873 |
-
|
1874 |
-
|
1875 |
-
|
1876 |
-
}, setTabState] = Object(external_wp_element_["useState"])({
|
1877 |
-
tabOpen,
|
1878 |
currentTab: selectedTabName
|
1879 |
-
})
|
|
|
|
|
|
|
|
|
|
|
|
|
1880 |
|
1881 |
-
Object(
|
1882 |
setTabState({
|
1883 |
-
tabOpen,
|
1884 |
currentTab: selectedTabName
|
1885 |
});
|
1886 |
}, [tabOpen, selectedTabName]);
|
1887 |
-
return Object(
|
1888 |
role: "tablist",
|
1889 |
orientation: "horizontal",
|
1890 |
className: "woocommerce-layout__activity-panel-tabs"
|
1891 |
-
}, tabs && tabs.map((tab, i)
|
1892 |
if (tab.component) {
|
1893 |
-
|
1894 |
-
|
1895 |
-
|
1896 |
-
} = tab;
|
1897 |
-
return Object(external_wp_element_["createElement"])(Comp, extends_default()({
|
1898 |
key: i
|
1899 |
}, options));
|
1900 |
}
|
1901 |
|
1902 |
-
return Object(
|
1903 |
key: i,
|
1904 |
index: i,
|
1905 |
isPanelOpen: tabIsOpenState,
|
1906 |
selected: currentTab === tab.name
|
1907 |
}, tab, {
|
1908 |
-
onTabClick: ()
|
1909 |
-
|
1910 |
|
1911 |
if (!isTabOpen || currentTab !== tab.name) {
|
1912 |
-
Object(
|
1913 |
tab: tab.name
|
1914 |
});
|
1915 |
}
|
@@ -1918,41 +2699,192 @@ const Tabs = ({
|
|
1918 |
tabOpen: isTabOpen,
|
1919 |
currentTab: tab.name
|
1920 |
});
|
1921 |
-
|
|
|
1922 |
}
|
1923 |
}));
|
1924 |
}));
|
1925 |
};
|
1926 |
// CONCATENATED MODULE: ./client/header/activity-panel/setup-progress.js
|
1927 |
|
1928 |
-
|
1929 |
-
|
1930 |
-
|
1931 |
-
|
1932 |
-
|
1933 |
-
|
1934 |
-
|
1935 |
-
|
1936 |
-
|
1937 |
-
|
1938 |
-
|
1939 |
-
|
1940 |
-
|
1941 |
-
|
1942 |
-
|
1943 |
-
|
1944 |
-
|
1945 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1946 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1947 |
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
|
1948 |
-
var library_close = __webpack_require__(
|
1949 |
|
1950 |
// EXTERNAL MODULE: ./client/header/activity-panel/highlight-tooltip/style.scss
|
1951 |
-
var highlight_tooltip_style = __webpack_require__(
|
1952 |
|
1953 |
// CONCATENATED MODULE: ./client/header/activity-panel/highlight-tooltip/index.js
|
1954 |
|
1955 |
|
|
|
1956 |
/**
|
1957 |
* External dependencies
|
1958 |
*/
|
@@ -1967,25 +2899,40 @@ var highlight_tooltip_style = __webpack_require__(285);
|
|
1967 |
*/
|
1968 |
|
1969 |
|
1970 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1971 |
|
1972 |
-
|
1973 |
-
|
1974 |
-
|
1975 |
-
|
1976 |
-
|
1977 |
-
|
1978 |
-
|
1979 |
-
|
1980 |
-
|
1981 |
-
|
1982 |
-
|
1983 |
-
|
1984 |
-
|
1985 |
-
|
1986 |
-
|
1987 |
-
|
1988 |
-
|
|
|
1989 |
|
1990 |
if (element && !node) {
|
1991 |
// Add tooltip container
|
@@ -2002,10 +2949,10 @@ function HighlightTooltip({
|
|
2002 |
setNode(container);
|
2003 |
}
|
2004 |
|
2005 |
-
|
2006 |
-
return ()
|
2007 |
if (container) {
|
2008 |
-
|
2009 |
parentElement.removeChild(container);
|
2010 |
|
2011 |
if (useAnchor) {
|
@@ -2018,12 +2965,12 @@ function HighlightTooltip({
|
|
2018 |
}
|
2019 |
};
|
2020 |
}, []);
|
2021 |
-
Object(
|
2022 |
if (!showHighlight && node) {
|
2023 |
node.classList.remove(SHOW_CLASS);
|
2024 |
}
|
2025 |
}, [showHighlight]);
|
2026 |
-
Object(
|
2027 |
if (show !== showHighlight && showHighlight !== null && node) {
|
2028 |
setShowHighlight(show);
|
2029 |
|
@@ -2034,23 +2981,25 @@ function HighlightTooltip({
|
|
2034 |
}
|
2035 |
}
|
2036 |
}, [show]);
|
2037 |
-
Object(
|
2038 |
window.addEventListener('resize', updateSize);
|
2039 |
-
return ()
|
|
|
|
|
2040 |
}, []);
|
2041 |
|
2042 |
function updateSize() {
|
2043 |
if (useAnchor) {
|
2044 |
-
|
2045 |
setAnchorRect(element.getBoundingClientRect());
|
2046 |
}
|
2047 |
}
|
2048 |
|
2049 |
-
|
2050 |
-
|
2051 |
|
2052 |
if (delay > 0) {
|
2053 |
-
timeoutId = setTimeout(()
|
2054 |
timeoutId = null;
|
2055 |
showTooltip(container);
|
2056 |
}, delay);
|
@@ -2061,8 +3010,8 @@ function HighlightTooltip({
|
|
2061 |
return timeoutId;
|
2062 |
};
|
2063 |
|
2064 |
-
|
2065 |
-
|
2066 |
|
2067 |
if (element && useAnchor) {
|
2068 |
setAnchorRect(element.getBoundingClientRect());
|
@@ -2076,7 +3025,7 @@ function HighlightTooltip({
|
|
2076 |
onShow();
|
2077 |
};
|
2078 |
|
2079 |
-
|
2080 |
setShowHighlight(false);
|
2081 |
|
2082 |
if (onClose) {
|
@@ -2088,28 +3037,28 @@ function HighlightTooltip({
|
|
2088 |
return null;
|
2089 |
}
|
2090 |
|
2091 |
-
return Object(
|
2092 |
className: "highlight-tooltip__portal"
|
2093 |
-
}, showHighlight ? Object(
|
2094 |
className: "highlight-tooltip__overlay"
|
2095 |
-
}), Object(
|
2096 |
className: "highlight-tooltip__popover",
|
2097 |
noArrow: false,
|
2098 |
anchorRect: anchorRect,
|
2099 |
focusOnMount: "container"
|
2100 |
-
}, Object(
|
2101 |
size: "medium"
|
2102 |
-
}, Object(
|
2103 |
isSmall: true,
|
2104 |
onClick: triggerClose,
|
2105 |
icon: library_close["a" /* default */]
|
2106 |
-
})), Object(
|
2107 |
isBorderless: true
|
2108 |
-
}, Object(
|
2109 |
size: "small",
|
2110 |
isPrimary: true,
|
2111 |
onClick: triggerClose
|
2112 |
-
}, closeButtonText || Object(
|
2113 |
}
|
2114 |
|
2115 |
HighlightTooltip.propTypes = {
|
@@ -2160,8 +3109,8 @@ HighlightTooltip.propTypes = {
|
|
2160 |
useAnchor: prop_types_default.a.bool
|
2161 |
};
|
2162 |
|
2163 |
-
// EXTERNAL MODULE:
|
2164 |
-
var
|
2165 |
|
2166 |
// CONCATENATED MODULE: ./client/hooks/useFocusOnMount.js
|
2167 |
/**
|
@@ -2198,12 +3147,13 @@ var external_wp_dom_ = __webpack_require__(90);
|
|
2198 |
* ```
|
2199 |
*/
|
2200 |
|
2201 |
-
function useFocusOnMount(
|
2202 |
-
|
2203 |
-
Object(
|
|
|
2204 |
focusOnMountRef.current = focusOnMount;
|
2205 |
}, [focusOnMount]);
|
2206 |
-
return Object(
|
2207 |
if (!node || focusOnMountRef.current === false) {
|
2208 |
return;
|
2209 |
}
|
@@ -2212,10 +3162,10 @@ function useFocusOnMount(focusOnMount = 'firstElement') {
|
|
2212 |
return;
|
2213 |
}
|
2214 |
|
2215 |
-
|
2216 |
|
2217 |
if (focusOnMountRef.current === 'firstElement') {
|
2218 |
-
|
2219 |
|
2220 |
if (firstTabbable) {
|
2221 |
target = firstTabbable;
|
@@ -2238,7 +3188,7 @@ function useFocusOnMount(focusOnMount = 'firstElement') {
|
|
2238 |
* @type {string[]}
|
2239 |
*/
|
2240 |
|
2241 |
-
|
2242 |
/**
|
2243 |
* @typedef {HTMLButtonElement | HTMLLinkElement | HTMLInputElement} FocusNormalizedButton
|
2244 |
*/
|
@@ -2319,29 +3269,31 @@ function isFocusNormalizedButton(eventTarget) {
|
|
2319 |
|
2320 |
|
2321 |
function useFocusOutside(onFocusOutside) {
|
2322 |
-
|
2323 |
-
Object(
|
2324 |
currentOnFocusOutside.current = onFocusOutside;
|
2325 |
}, [onFocusOutside]);
|
2326 |
-
|
2327 |
/**
|
2328 |
* @type {import('react').MutableRefObject<number | undefined>}
|
2329 |
*/
|
2330 |
|
2331 |
-
|
2332 |
/**
|
2333 |
* Cancel a blur check timeout.
|
2334 |
*/
|
2335 |
|
2336 |
-
|
2337 |
clearTimeout(blurCheckTimeoutId.current);
|
2338 |
}, []); // Cancel blur checks on unmount.
|
2339 |
|
2340 |
-
Object(
|
2341 |
-
return ()
|
|
|
|
|
2342 |
}, []); // Cancel a blur check if the callback or ref is no longer provided.
|
2343 |
|
2344 |
-
Object(
|
2345 |
if (!onFocusOutside) {
|
2346 |
cancelBlurCheck();
|
2347 |
}
|
@@ -2358,12 +3310,10 @@ function useFocusOutside(onFocusOutside) {
|
|
2358 |
* @param {SyntheticEvent} event Event for mousedown or mouseup.
|
2359 |
*/
|
2360 |
|
2361 |
-
|
2362 |
-
|
2363 |
-
|
2364 |
-
|
2365 |
-
} = event;
|
2366 |
-
const isInteractionEnd = Object(external_lodash_["includes"])(['mouseup', 'touchend'], type);
|
2367 |
|
2368 |
if (isInteractionEnd) {
|
2369 |
preventBlurCheck.current = false;
|
@@ -2381,7 +3331,7 @@ function useFocusOutside(onFocusOutside) {
|
|
2381 |
* @param {SyntheticEvent} event Blur event.
|
2382 |
*/
|
2383 |
|
2384 |
-
|
2385 |
// React does not allow using an event reference asynchronously
|
2386 |
// due to recycling behavior, except when explicitly persisted.
|
2387 |
event.persist(); // Skip blur check if clicking button. See `normalizeButtonFocus`.
|
@@ -2390,7 +3340,7 @@ function useFocusOutside(onFocusOutside) {
|
|
2390 |
return;
|
2391 |
}
|
2392 |
|
2393 |
-
blurCheckTimeoutId.current = setTimeout(()
|
2394 |
// If document is not focused then focus should remain
|
2395 |
// inside the wrapped component and therefore we cancel
|
2396 |
// this blur event thereby leaving focus in place.
|
@@ -2430,26 +3380,24 @@ function useFocusOutside(onFocusOutside) {
|
|
2430 |
|
2431 |
|
2432 |
|
2433 |
-
|
2434 |
-
content,
|
2435 |
-
|
2436 |
-
|
2437 |
-
|
2438 |
-
|
2439 |
-
|
2440 |
-
|
2441 |
-
}) => {
|
2442 |
-
const panelClass = 'woocommerce-layout__activity-panel-wrapper';
|
2443 |
|
2444 |
-
|
2445 |
-
|
2446 |
|
2447 |
if (isPanelOpen && !isClickOnModalOrSnackbar) {
|
2448 |
closePanel();
|
2449 |
}
|
2450 |
};
|
2451 |
|
2452 |
-
|
2453 |
if (!containerRef.current || !isPanelOpen || !tab) {
|
2454 |
return;
|
2455 |
}
|
@@ -2457,24 +3405,24 @@ const Panel = ({
|
|
2457 |
focusOnMountRef(containerRef.current);
|
2458 |
};
|
2459 |
|
2460 |
-
|
2461 |
if (e && e.propertyName === 'transform') {
|
2462 |
clearPanel();
|
2463 |
possibleFocusPanel();
|
2464 |
}
|
2465 |
};
|
2466 |
|
2467 |
-
|
2468 |
-
|
2469 |
-
|
2470 |
-
|
2471 |
containerRef.current = node;
|
2472 |
focusOnMountRef(node);
|
2473 |
}, []);
|
2474 |
|
2475 |
if (!tab) {
|
2476 |
-
return Object(
|
2477 |
-
className:
|
2478 |
});
|
2479 |
}
|
2480 |
|
@@ -2482,11 +3430,11 @@ const Panel = ({
|
|
2482 |
return null;
|
2483 |
}
|
2484 |
|
2485 |
-
|
2486 |
'is-open': isPanelOpen,
|
2487 |
'is-switching': isPanelSwitching
|
2488 |
});
|
2489 |
-
return Object(
|
2490 |
className: classNames,
|
2491 |
tabIndex: 0,
|
2492 |
role: "tabpanel",
|
@@ -2494,27 +3442,19 @@ const Panel = ({
|
|
2494 |
onTransitionEnd: finishTransition
|
2495 |
}, useFocusOutsideProps, {
|
2496 |
ref: mergedContainerRef
|
2497 |
-
}), Object(
|
2498 |
className: "woocommerce-layout__activity-panel-content",
|
2499 |
key: 'activity-panel-' + currentTab,
|
2500 |
id: 'activity-panel-' + currentTab
|
2501 |
-
}, Object(
|
2502 |
-
fallback: Object(
|
2503 |
}, content)));
|
2504 |
};
|
2505 |
-
/* harmony default export */ var panel = (
|
2506 |
-
// EXTERNAL MODULE: ./client/homescreen/activity-panel/orders/utils.js
|
2507 |
-
var orders_utils = __webpack_require__(65);
|
2508 |
-
|
2509 |
-
// EXTERNAL MODULE: ./client/homescreen/activity-panel/reviews/utils.js
|
2510 |
-
var reviews_utils = __webpack_require__(102);
|
2511 |
-
|
2512 |
-
// EXTERNAL MODULE: ./client/header/activity-panel/panels/inbox/abbreviated-notifications-panel.js + 2 modules
|
2513 |
-
var abbreviated_notifications_panel = __webpack_require__(253);
|
2514 |
-
|
2515 |
// CONCATENATED MODULE: ./client/header/activity-panel/index.js
|
2516 |
|
2517 |
|
|
|
2518 |
/**
|
2519 |
* External dependencies
|
2520 |
*/
|
@@ -2530,6 +3470,7 @@ var abbreviated_notifications_panel = __webpack_require__(253);
|
|
2530 |
|
2531 |
|
2532 |
|
|
|
2533 |
/**
|
2534 |
* Internal dependencies
|
2535 |
*/
|
@@ -2543,159 +3484,116 @@ var abbreviated_notifications_panel = __webpack_require__(253);
|
|
2543 |
|
2544 |
|
2545 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2546 |
|
2547 |
-
|
2548 |
-
const HelpPanel = Object(external_wp_element_["lazy"])(() => __webpack_require__.e(/* import() | activity-panels-help */ 4).then(__webpack_require__.bind(null, 610)));
|
2549 |
-
const InboxPanel = Object(external_wp_element_["lazy"])(() => Promise.all(/* import() | activity-panels-inbox */[__webpack_require__.e(2), __webpack_require__.e(5)]).then(__webpack_require__.bind(null, 600)));
|
2550 |
-
const ActivityPanel = ({
|
2551 |
-
isEmbedded,
|
2552 |
-
query,
|
2553 |
-
userPreferencesData
|
2554 |
-
}) => {
|
2555 |
-
const [currentTab, setCurrentTab] = Object(external_wp_element_["useState"])('');
|
2556 |
-
const [isPanelClosing, setIsPanelClosing] = Object(external_wp_element_["useState"])(false);
|
2557 |
-
const [isPanelOpen, setIsPanelOpen] = Object(external_wp_element_["useState"])(false);
|
2558 |
-
const [isPanelSwitching, setIsPanelSwitching] = Object(external_wp_element_["useState"])(false);
|
2559 |
-
const {
|
2560 |
-
fills
|
2561 |
-
} = Object(external_wc_experimental_["useSlot"])(abbreviated_notifications_panel["a" /* ABBREVIATED_NOTIFICATION_SLOT_NAME */]);
|
2562 |
-
const hasExtendedNotifications = Boolean(fills === null || fills === void 0 ? void 0 : fills.length);
|
2563 |
-
|
2564 |
-
const getPreviewSiteBtnTrackData = (select, getOption) => {
|
2565 |
-
let trackData = {};
|
2566 |
-
|
2567 |
-
if (query.page === 'wc-admin' && query.task === 'appearance') {
|
2568 |
-
var _tasksStatus$themeMod;
|
2569 |
-
|
2570 |
-
const {
|
2571 |
-
getTasksStatus
|
2572 |
-
} = select(external_wc_data_["ONBOARDING_STORE_NAME"]);
|
2573 |
-
const tasksStatus = getTasksStatus();
|
2574 |
-
const demoNotice = getOption('woocommerce_demo_store_notice');
|
2575 |
-
trackData = {
|
2576 |
-
set_notice: demoNotice ? 'Y' : 'N',
|
2577 |
-
create_homepage: tasksStatus.hasHomepage === true ? 'Y' : 'N',
|
2578 |
-
upload_logo: (_tasksStatus$themeMod = tasksStatus.themeMods) !== null && _tasksStatus$themeMod !== void 0 && _tasksStatus$themeMod.custom_logo ? 'Y' : 'N'
|
2579 |
-
};
|
2580 |
-
}
|
2581 |
-
|
2582 |
-
return trackData;
|
2583 |
-
};
|
2584 |
-
|
2585 |
-
function getThingsToDoNextCount(tasks, dismissedTasks, isExtendedTaskListHidden) {
|
2586 |
-
if (!tasks || isExtendedTaskListHidden) {
|
2587 |
-
return 0;
|
2588 |
-
}
|
2589 |
-
|
2590 |
-
return tasks.filter(task => task.visible && !task.completed && !dismissedTasks.includes(task.key)).length;
|
2591 |
-
}
|
2592 |
-
|
2593 |
-
function isAbbreviatedPanelVisible(select, setupTaskListHidden, thingsToDoNextCount) {
|
2594 |
-
const orderStatuses = Object(orders_utils["c" /* getOrderStatuses */])(select);
|
2595 |
-
const isOrdersCardVisible = setupTaskListHidden && isPanelOpen ? Object(orders_utils["d" /* getUnreadOrders */])(select, orderStatuses) > 0 : false;
|
2596 |
-
const isReviewsCardVisible = setupTaskListHidden && isPanelOpen ? Object(reviews_utils["b" /* getUnapprovedReviews */])(select) : false;
|
2597 |
-
const isLowStockCardVisible = setupTaskListHidden && isPanelOpen ? Object(orders_utils["a" /* getLowStockCount */])(select) : false;
|
2598 |
-
return thingsToDoNextCount > 0 || isOrdersCardVisible || isReviewsCardVisible || isLowStockCardVisible || hasExtendedNotifications;
|
2599 |
-
}
|
2600 |
-
|
2601 |
-
const {
|
2602 |
-
hasUnreadNotes,
|
2603 |
-
hasAbbreviatedNotifications,
|
2604 |
-
thingsToDoNextCount,
|
2605 |
-
requestingTaskListOptions,
|
2606 |
-
setupTaskListComplete,
|
2607 |
-
setupTaskListHidden,
|
2608 |
-
trackedCompletedTasks,
|
2609 |
-
previewSiteBtnTrackData
|
2610 |
-
} = Object(external_wp_data_["useSelect"])(select => {
|
2611 |
-
const {
|
2612 |
-
getOption,
|
2613 |
-
isResolving
|
2614 |
-
} = select(external_wc_data_["OPTIONS_STORE_NAME"]);
|
2615 |
-
const isSetupTaskListHidden = getOption('woocommerce_task_list_hidden') === 'yes';
|
2616 |
-
const isExtendedTaskListHidden = getOption('woocommerce_extended_task_list_hidden') === 'yes';
|
2617 |
-
const extendedTaskList = Object(external_wp_hooks_["applyFilters"])('woocommerce_admin_onboarding_task_list', [], query);
|
2618 |
-
const dismissedTasks = getOption('woocommerce_task_list_dismissed_tasks') || [];
|
2619 |
-
const thingsToDoCount = getThingsToDoNextCount(extendedTaskList, dismissedTasks, isExtendedTaskListHidden);
|
2620 |
return {
|
2621 |
-
hasUnreadNotes:
|
2622 |
-
hasAbbreviatedNotifications: isAbbreviatedPanelVisible(select, isSetupTaskListHidden, thingsToDoCount),
|
2623 |
-
thingsToDoNextCount: thingsToDoCount,
|
2624 |
requestingTaskListOptions: isResolving('getOption', ['woocommerce_task_list_complete']) || isResolving('getOption', ['woocommerce_task_list_hidden']),
|
2625 |
setupTaskListComplete: getOption('woocommerce_task_list_complete') === 'yes',
|
2626 |
-
setupTaskListHidden:
|
2627 |
-
trackedCompletedTasks: getOption('woocommerce_task_list_tracked_completed_tasks') || []
|
2628 |
-
previewSiteBtnTrackData: getPreviewSiteBtnTrackData(select, getOption)
|
2629 |
};
|
2630 |
-
})
|
2631 |
-
|
2632 |
-
|
2633 |
-
|
2634 |
-
|
2635 |
-
|
2636 |
-
|
2637 |
-
|
2638 |
-
|
2639 |
-
name: tabName
|
2640 |
-
}, isTabOpen) => {
|
2641 |
-
const panelSwitching = tabName !== currentTab && currentTab !== '' && isTabOpen && isPanelOpen;
|
2642 |
-
|
2643 |
-
if (isPanelClosing) {
|
2644 |
-
return;
|
2645 |
-
}
|
2646 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2647 |
setCurrentTab(tabName);
|
|
|
2648 |
setIsPanelOpen(isTabOpen);
|
2649 |
setIsPanelSwitching(panelSwitching);
|
2650 |
};
|
2651 |
|
2652 |
-
|
2653 |
-
setIsPanelClosing(true);
|
2654 |
setIsPanelOpen(false);
|
2655 |
};
|
2656 |
|
2657 |
-
|
2658 |
if (!isPanelOpen) {
|
2659 |
-
setIsPanelClosing(false);
|
2660 |
setIsPanelSwitching(false);
|
2661 |
setCurrentTab('');
|
2662 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2663 |
};
|
2664 |
|
2665 |
-
|
2666 |
return query.page === 'wc-admin' && !query.path;
|
2667 |
};
|
2668 |
|
2669 |
-
|
2670 |
return query.task && !query.path && (requestingTaskListOptions === true || setupTaskListHidden === false && setupTaskListComplete === false);
|
2671 |
-
};
|
2672 |
-
|
2673 |
-
const redirectToHomeScreen = () => {
|
2674 |
-
if (Object(utils["f" /* isWCAdmin */])(window.location.href)) {
|
2675 |
-
Object(external_wc_navigation_["getHistory"])().push(Object(external_wc_navigation_["getNewPath"])({}, '/', {}));
|
2676 |
-
} else {
|
2677 |
-
window.location.href = Object(build_module["e" /* getAdminLink */])('admin.php?page=wc-admin');
|
2678 |
-
}
|
2679 |
}; // @todo Pull in dynamic unread status/count
|
2680 |
|
2681 |
|
2682 |
-
|
2683 |
-
|
2684 |
name: 'inbox',
|
2685 |
-
title: Object(
|
2686 |
-
icon: Object(
|
2687 |
icon: library_inbox
|
2688 |
}),
|
2689 |
-
unread: hasUnreadNotes
|
2690 |
visible: (isEmbedded || !isHomescreen()) && !isPerformingSetupTask()
|
2691 |
};
|
2692 |
-
|
2693 |
name: 'setup',
|
2694 |
-
title: Object(
|
2695 |
-
icon: Object(
|
2696 |
-
onClick: ()
|
2697 |
-
|
2698 |
-
|
2699 |
|
2700 |
if (currentLocation !== homescreenLocation) {
|
2701 |
// Ensure that if the user is trying to get to the task list they can see it even if
|
@@ -2713,48 +3611,32 @@ const ActivityPanel = ({
|
|
2713 |
},
|
2714 |
visible: currentUserCan('manage_woocommerce') && !setupTaskListComplete && !setupTaskListHidden && !isPerformingSetupTask() && (!isHomescreen() || isEmbedded)
|
2715 |
};
|
2716 |
-
|
2717 |
name: 'help',
|
2718 |
-
title: Object(
|
2719 |
-
icon: Object(
|
2720 |
icon: library_help
|
2721 |
}),
|
2722 |
visible: isHomescreen() && !isEmbedded || isPerformingSetupTask()
|
2723 |
};
|
2724 |
-
|
2725 |
-
component:
|
2726 |
visible: !isEmbedded && isHomescreen() && !isPerformingSetupTask()
|
2727 |
};
|
2728 |
-
|
2729 |
-
|
2730 |
-
|
2731 |
-
icon: Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
|
2732 |
-
icon: external["a" /* default */]
|
2733 |
-
}),
|
2734 |
-
visible: query.page === 'wc-admin' && query.task === 'appearance',
|
2735 |
-
onClick: () => {
|
2736 |
-
window.open(window.wcSettings.siteUrl);
|
2737 |
-
Object(external_wc_tracks_["recordEvent"])('wcadmin_tasklist_previewsite', previewSiteBtnTrackData);
|
2738 |
-
return null;
|
2739 |
-
}
|
2740 |
-
};
|
2741 |
-
return [inbox, setup, previewSite, displayOptions, help].filter(tab => tab.visible);
|
2742 |
};
|
2743 |
|
2744 |
-
|
2745 |
-
|
2746 |
-
task
|
2747 |
-
} = query;
|
2748 |
|
2749 |
switch (tab) {
|
2750 |
case 'inbox':
|
2751 |
-
return Object(
|
2752 |
-
hasAbbreviatedNotifications: hasAbbreviatedNotifications,
|
2753 |
-
thingsToDoNextCount: thingsToDoNextCount
|
2754 |
-
});
|
2755 |
|
2756 |
case 'help':
|
2757 |
-
return Object(
|
2758 |
taskName: task
|
2759 |
});
|
2760 |
|
@@ -2763,8 +3645,16 @@ const ActivityPanel = ({
|
|
2763 |
}
|
2764 |
};
|
2765 |
|
2766 |
-
|
2767 |
-
Object(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2768 |
|
2769 |
if (userPreferencesData && userPreferencesData.updateUserPreferences) {
|
2770 |
userPreferencesData.updateUserPreferences({
|
@@ -2773,12 +3663,10 @@ const ActivityPanel = ({
|
|
2773 |
}
|
2774 |
};
|
2775 |
|
2776 |
-
|
2777 |
-
|
2778 |
-
|
2779 |
-
|
2780 |
-
const startedTasks = userPreferencesData && userPreferencesData.task_list_tracked_started_tasks;
|
2781 |
-
const highlightShown = userPreferencesData && userPreferencesData.help_panel_highlight_shown;
|
2782 |
|
2783 |
if (task && highlightShown !== 'yes' && (startedTasks || {})[task] > 1 && !trackedCompletedTasks.includes(task)) {
|
2784 |
return true;
|
@@ -2787,22 +3675,39 @@ const ActivityPanel = ({
|
|
2787 |
return false;
|
2788 |
};
|
2789 |
|
2790 |
-
|
2791 |
-
|
2792 |
-
|
2793 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2794 |
id: headerId,
|
2795 |
className: "screen-reader-text"
|
2796 |
-
}, Object(
|
2797 |
component: "aside",
|
2798 |
id: "woocommerce-activity-panel",
|
2799 |
-
className: "woocommerce-layout__activity-panel",
|
2800 |
"aria-labelledby": headerId
|
2801 |
-
}, Object(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2802 |
tabs: tabs,
|
2803 |
tabOpen: isPanelOpen,
|
2804 |
selectedTab: currentTab,
|
2805 |
-
onTabClick: (tab, tabOpen)
|
2806 |
if (tab.onClick) {
|
2807 |
tab.onClick();
|
2808 |
return;
|
@@ -2810,7 +3715,7 @@ const ActivityPanel = ({
|
|
2810 |
|
2811 |
togglePanel(tab, tabOpen);
|
2812 |
}
|
2813 |
-
}), Object(
|
2814 |
currentTab: true,
|
2815 |
isPanelOpen: isPanelOpen,
|
2816 |
isPanelSwitching: isPanelSwitching,
|
@@ -2818,38 +3723,42 @@ const ActivityPanel = ({
|
|
2818 |
name: currentTab
|
2819 |
}),
|
2820 |
content: getPanelContent(currentTab),
|
2821 |
-
closePanel:
|
2822 |
-
|
2823 |
-
|
|
|
|
|
|
|
|
|
2824 |
delay: 1000,
|
2825 |
useAnchor: true,
|
2826 |
-
title: Object(
|
2827 |
-
content: Object(
|
2828 |
-
closeButtonText: Object(
|
2829 |
id: "activity-panel-tab-help",
|
2830 |
-
onClose: ()
|
2831 |
-
|
|
|
|
|
|
|
|
|
2832 |
}) : null);
|
2833 |
};
|
2834 |
-
|
2835 |
-
getHistory:
|
2836 |
};
|
2837 |
-
/* harmony default export */ var activity_panel = (
|
2838 |
-
// EXTERNAL MODULE: ./node_modules/gridicons/dist/cross-small.js
|
2839 |
-
var cross_small = __webpack_require__(100);
|
2840 |
-
var cross_small_default = /*#__PURE__*/__webpack_require__.n(cross_small);
|
2841 |
-
|
2842 |
// CONCATENATED MODULE: ./client/lib/platform/index.js
|
2843 |
-
|
2844 |
-
|
2845 |
-
|
2846 |
/**
|
2847 |
* Provide basic detection of platform based on user agent. This is not
|
2848 |
* a robust check for browser features or the like. You should only use
|
2849 |
* this for non-critical display logic.
|
2850 |
*/
|
2851 |
|
2852 |
-
|
2853 |
if (/iPhone|iPad|iPod/i.test(window.navigator.userAgent)) {
|
2854 |
return IOS_PLATFORM;
|
2855 |
} else if (/Android/i.test(window.navigator.userAgent)) {
|
@@ -2860,19 +3769,19 @@ const platform = () => {
|
|
2860 |
};
|
2861 |
// CONCATENATED MODULE: ./client/mobile-banner/app-icon.js
|
2862 |
|
2863 |
-
|
2864 |
-
return Object(
|
2865 |
width: "37",
|
2866 |
height: "37",
|
2867 |
viewBox: "0 0 92 92",
|
2868 |
fill: "none",
|
2869 |
xmlns: "http://www.w3.org/2000/svg"
|
2870 |
-
}, Object(
|
2871 |
width: "92",
|
2872 |
height: "92",
|
2873 |
rx: "21.3953",
|
2874 |
fill: "#7F54B3"
|
2875 |
-
}), Object(
|
2876 |
fillRule: "evenodd",
|
2877 |
clipRule: "evenodd",
|
2878 |
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",
|
@@ -2880,17 +3789,18 @@ const AppIcon = () => {
|
|
2880 |
}));
|
2881 |
};
|
2882 |
// EXTERNAL MODULE: ./client/mobile-banner/style.scss
|
2883 |
-
var mobile_banner_style = __webpack_require__(
|
2884 |
|
2885 |
// CONCATENATED MODULE: ./client/mobile-banner/constants.js
|
2886 |
// The Play Store link is defined as an exported constant mainly for the sake of testing the Mobile App Banner.
|
2887 |
// It is nearly impossible to fake navigation in JSDOM 16, so exposing this link for mocking allows us to
|
2888 |
// avoid triggering a navigation.
|
2889 |
-
|
2890 |
-
|
2891 |
// CONCATENATED MODULE: ./client/mobile-banner/index.js
|
2892 |
|
2893 |
|
|
|
2894 |
/**
|
2895 |
* External dependencies
|
2896 |
*/
|
@@ -2898,8 +3808,6 @@ const TRACKING_EVENT_NAME = 'wcadmin_mobile_android_banner_click';
|
|
2898 |
|
2899 |
|
2900 |
|
2901 |
-
|
2902 |
-
|
2903 |
/**
|
2904 |
* Internal dependencies
|
2905 |
*/
|
@@ -2908,13 +3816,12 @@ const TRACKING_EVENT_NAME = 'wcadmin_mobile_android_banner_click';
|
|
2908 |
|
2909 |
|
2910 |
|
2911 |
-
|
2912 |
-
|
2913 |
-
onInstall,
|
2914 |
-
|
2915 |
-
|
2916 |
-
|
2917 |
-
const layout = document.getElementsByClassName('woocommerce-layout')[0];
|
2918 |
|
2919 |
if (platform() === ANDROID_PLATFORM) {
|
2920 |
if (layout) {
|
@@ -2925,139 +3832,233 @@ const MobileAppBanner = ({
|
|
2925 |
}
|
2926 |
}
|
2927 |
|
2928 |
-
return ()
|
2929 |
if (layout) {
|
2930 |
layout.classList.remove(SHOW_APP_BANNER_MODIFIER_CLASS);
|
2931 |
}
|
2932 |
};
|
2933 |
}, []);
|
2934 |
-
|
|
|
|
|
|
|
|
|
|
|
2935 |
|
2936 |
if (platform() === ANDROID_PLATFORM && !isDismissed) {
|
2937 |
-
return Object(
|
2938 |
className: "woocommerce-mobile-app-banner"
|
2939 |
-
}, Object(
|
2940 |
-
icon:
|
2941 |
-
|
2942 |
-
|
2943 |
-
onClick: () => {
|
2944 |
onDismiss();
|
2945 |
setDismissed(true);
|
2946 |
-
Object(
|
2947 |
action: 'dismiss'
|
2948 |
});
|
2949 |
}
|
2950 |
-
}), Object(
|
2951 |
className: "woocommerce-mobile-app-banner__description"
|
2952 |
-
}, Object(
|
2953 |
className: "woocommerce-mobile-app-banner__description__text"
|
2954 |
-
}, Object(
|
2955 |
className: "woocommerce-mobile-app-banner__description__text"
|
2956 |
-
}, Object(
|
2957 |
href: PLAY_STORE_LINK,
|
2958 |
isSecondary: true,
|
2959 |
-
onClick: ()
|
2960 |
onInstall();
|
2961 |
setDismissed(true);
|
2962 |
-
Object(
|
2963 |
action: 'install'
|
2964 |
});
|
2965 |
}
|
2966 |
-
}, Object(
|
2967 |
}
|
2968 |
|
2969 |
return null;
|
2970 |
};
|
2971 |
// CONCATENATED MODULE: ./client/hooks/useIsScrolled.js
|
|
|
|
|
2972 |
/**
|
2973 |
* External dependencies
|
2974 |
*/
|
2975 |
|
2976 |
function useIsScrolled() {
|
2977 |
-
|
2978 |
-
|
2979 |
-
|
2980 |
-
|
|
|
|
|
|
|
|
|
2981 |
setIsScrolled(window.pageYOffset > 20);
|
2982 |
};
|
2983 |
|
2984 |
-
|
2985 |
rafHandle.current = window.requestAnimationFrame(updateIsScrolled);
|
2986 |
};
|
2987 |
|
2988 |
window.addEventListener('scroll', scrollListener);
|
2989 |
-
return ()
|
2990 |
window.removeEventListener('scroll', scrollListener);
|
2991 |
window.cancelAnimationFrame(rafHandle.current);
|
2992 |
};
|
2993 |
}, []);
|
2994 |
return isScrolled;
|
2995 |
}
|
|
|
|
|
|
|
2996 |
// EXTERNAL MODULE: ./client/navigation/style.scss
|
2997 |
-
var navigation_style = __webpack_require__(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2998 |
|
2999 |
-
// CONCATENATED MODULE: ./client/navigation/utils.ts
|
3000 |
/**
|
3001 |
* External dependencies
|
3002 |
*/
|
3003 |
|
3004 |
-
|
3005 |
/**
|
3006 |
* Get the full URL if a relative path is passed.
|
|
|
|
|
|
|
3007 |
*/
|
3008 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3009 |
if (url.indexOf('http') === 0) {
|
3010 |
return url;
|
3011 |
}
|
3012 |
|
3013 |
-
return
|
3014 |
-
};
|
3015 |
-
/**
|
3016 |
-
* Get a default regex expression to match the path and provided params.
|
3017 |
-
*/
|
3018 |
-
|
3019 |
-
const getDefaultMatchExpression = url => {
|
3020 |
-
const escapedUrl = url.replace(/[-\/\\^$*+?.()|[\]{}]/gi, '\\$&');
|
3021 |
-
const [path, args, hash] = escapedUrl.split(/\\\?|#/);
|
3022 |
-
const hashExpression = hash ? `(.*#${hash}$)` : '';
|
3023 |
-
const argsExpression = args ? args.split('&').reduce((acc, param) => {
|
3024 |
-
return `${acc}(?=.*[?|&]${param}(&|$|#))`;
|
3025 |
-
}, '') : '';
|
3026 |
-
return '^' + path + argsExpression + hashExpression;
|
3027 |
};
|
3028 |
/**
|
3029 |
* Get a match score for a menu item given a location.
|
|
|
|
|
|
|
|
|
|
|
3030 |
*/
|
3031 |
|
3032 |
-
|
|
|
|
|
3033 |
if (!itemUrl) {
|
3034 |
-
return
|
3035 |
}
|
3036 |
|
3037 |
-
|
3038 |
-
|
3039 |
-
href
|
3040 |
-
} = location; // Return highest possible score for exact match.
|
3041 |
|
3042 |
if (fullUrl === href) {
|
3043 |
return Number.MAX_SAFE_INTEGER;
|
3044 |
}
|
3045 |
|
3046 |
-
|
3047 |
-
|
3048 |
return (decodeURIComponent(href).match(regexp) || []).length;
|
3049 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3050 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3051 |
/**
|
3052 |
* Get the closest matching item.
|
3053 |
*
|
3054 |
* @param {Array} items An array of items to match against.
|
3055 |
*/
|
3056 |
-
|
3057 |
-
|
3058 |
-
|
3059 |
-
|
3060 |
-
|
|
|
3061 |
|
3062 |
if (score > 0 && score >= highestMatchScore) {
|
3063 |
highestMatchScore = score;
|
@@ -3070,12 +4071,12 @@ const getMatchingItem = items => {
|
|
3070 |
* Available menu IDs.
|
3071 |
*/
|
3072 |
|
3073 |
-
|
3074 |
-
|
3075 |
/**
|
3076 |
* Default categories for the menu.
|
3077 |
*/
|
3078 |
-
|
|
|
3079 |
woocommerce: {
|
3080 |
id: 'woocommerce',
|
3081 |
isCategory: true,
|
@@ -3093,8 +4094,8 @@ const defaultCategories = {
|
|
3093 |
* @return {Array} Sorted menu items.
|
3094 |
*/
|
3095 |
|
3096 |
-
|
3097 |
-
return menuItems.sort((a, b)
|
3098 |
if (a.order === b.order) {
|
3099 |
return a.title.localeCompare(b.title);
|
3100 |
}
|
@@ -3110,14 +4111,16 @@ const sortMenuItems = menuItems => {
|
|
3110 |
* @return {Object} Mapped menu items and categories.
|
3111 |
*/
|
3112 |
|
3113 |
-
|
3114 |
-
|
3115 |
-
|
3116 |
-
|
|
|
|
|
3117 |
// Set up the category if it doesn't yet exist.
|
3118 |
if (!acc[item.parent]) {
|
3119 |
acc[item.parent] = {};
|
3120 |
-
menuIds.forEach(menuId
|
3121 |
acc[item.parent][menuId] = [];
|
3122 |
});
|
3123 |
} // Incorrect menu ID.
|
@@ -3137,17 +4140,12 @@ const getMappedItemsCategories = (menuItems, currentUserCan) => {
|
|
3137 |
categories[item.id] = item;
|
3138 |
}
|
3139 |
|
3140 |
-
|
3141 |
-
|
3142 |
-
if (menuIdArray) {
|
3143 |
-
menuIdArray.push(item);
|
3144 |
-
}
|
3145 |
-
|
3146 |
return acc;
|
3147 |
}, {});
|
3148 |
return {
|
3149 |
-
items,
|
3150 |
-
categories
|
3151 |
};
|
3152 |
};
|
3153 |
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/wordpress.js
|
@@ -3157,10 +4155,10 @@ const getMappedItemsCategories = (menuItems, currentUserCan) => {
|
|
3157 |
* WordPress dependencies
|
3158 |
*/
|
3159 |
|
3160 |
-
var wordpress = Object(
|
3161 |
xmlns: "http://www.w3.org/2000/svg",
|
3162 |
viewBox: "-2 -2 24 24"
|
3163 |
-
}, Object(
|
3164 |
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"
|
3165 |
}));
|
3166 |
/* harmony default export */ var library_wordpress = (wordpress);
|
@@ -3168,6 +4166,7 @@ var wordpress = Object(external_wp_element_["createElement"])(external_wp_primit
|
|
3168 |
// CONCATENATED MODULE: ./client/navigation/components/header/index.js
|
3169 |
|
3170 |
|
|
|
3171 |
/**
|
3172 |
* External dependencies
|
3173 |
*/
|
@@ -3180,36 +4179,41 @@ var wordpress = Object(external_wp_element_["createElement"])(external_wp_primit
|
|
3180 |
|
3181 |
|
3182 |
|
3183 |
-
|
3184 |
/**
|
3185 |
* Internal dependencies
|
3186 |
*/
|
3187 |
|
3188 |
|
3189 |
|
3190 |
-
|
3191 |
-
|
3192 |
-
|
3193 |
-
|
3194 |
-
|
3195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
3196 |
folded: 'is-wc-nav-folded',
|
3197 |
expanded: 'is-wc-nav-expanded'
|
3198 |
};
|
3199 |
|
3200 |
-
|
3201 |
document.body.classList.add(navClasses.folded);
|
3202 |
document.body.classList.remove(navClasses.expanded);
|
3203 |
setIsFolded(true);
|
3204 |
};
|
3205 |
|
3206 |
-
|
3207 |
document.body.classList.remove(navClasses.folded);
|
3208 |
document.body.classList.add(navClasses.expanded);
|
3209 |
setIsFolded(false);
|
3210 |
};
|
3211 |
|
3212 |
-
|
3213 |
if (document.body.classList.contains(navClasses.folded)) {
|
3214 |
expandNav();
|
3215 |
} else {
|
@@ -3217,7 +4221,9 @@ const Header = () => {
|
|
3217 |
}
|
3218 |
};
|
3219 |
|
3220 |
-
|
|
|
|
|
3221 |
if (screenWidth <= 960) {
|
3222 |
foldNav();
|
3223 |
} else {
|
@@ -3225,111 +4231,87 @@ const Header = () => {
|
|
3225 |
}
|
3226 |
};
|
3227 |
|
3228 |
-
Object(
|
3229 |
foldOnMobile();
|
3230 |
-
|
3231 |
eventName: 'orientationchange',
|
3232 |
-
handler:
|
|
|
|
|
3233 |
}, {
|
3234 |
eventName: 'resize',
|
3235 |
-
handler: Object(external_lodash_["debounce"])(
|
|
|
|
|
3236 |
}];
|
3237 |
|
3238 |
-
for (
|
3239 |
-
|
3240 |
-
|
3241 |
-
|
3242 |
window.addEventListener(eventName, handler, false);
|
3243 |
}
|
3244 |
|
3245 |
-
|
|
|
|
|
3246 |
}, []);
|
3247 |
-
|
3248 |
size: "36px",
|
3249 |
icon: library_wordpress
|
3250 |
});
|
3251 |
-
|
3252 |
-
|
3253 |
-
|
3254 |
-
|
3255 |
-
|
3256 |
-
|
3257 |
-
|
3258 |
-
|
3259 |
-
|
3260 |
-
} = select('core');
|
3261 |
-
const siteData = getEntityRecord('root', '__unstableBase', undefined) || {};
|
3262 |
return {
|
3263 |
isRequestingSiteIcon: isResolving('core', 'getEntityRecord', ['root', '__unstableBase', undefined]),
|
3264 |
siteIconUrl: siteData.siteIconUrl
|
3265 |
};
|
3266 |
-
})
|
|
|
|
|
3267 |
|
3268 |
if (siteIconUrl) {
|
3269 |
-
buttonIcon = Object(
|
3270 |
-
alt: Object(
|
3271 |
src: siteIconUrl
|
3272 |
});
|
3273 |
} else if (isRequestingSiteIcon) {
|
3274 |
buttonIcon = null;
|
3275 |
}
|
3276 |
|
3277 |
-
|
3278 |
'is-scrolled': isScrolled
|
3279 |
});
|
3280 |
-
return Object(
|
3281 |
className: className
|
3282 |
-
}, Object(
|
3283 |
-
onClick: ()
|
|
|
|
|
3284 |
className: "woocommerce-navigation-header__site-icon",
|
3285 |
"aria-label": "Fold navigation",
|
3286 |
role: "switch",
|
3287 |
"aria-checked": isFolded ? 'true' : 'false'
|
3288 |
-
}, buttonIcon), Object(
|
3289 |
href: homeUrl,
|
3290 |
className: "woocommerce-navigation-header__site-title",
|
3291 |
as: "span"
|
3292 |
-
}, Object(
|
3293 |
};
|
3294 |
|
3295 |
-
/* harmony default export */ var header = (
|
3296 |
// EXTERNAL MODULE: ./client/navigation/components/category-title/style.scss
|
3297 |
-
var category_title_style = __webpack_require__(
|
3298 |
-
|
3299 |
-
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js
|
3300 |
-
|
3301 |
-
|
3302 |
-
/**
|
3303 |
-
* WordPress dependencies
|
3304 |
-
*/
|
3305 |
-
|
3306 |
-
var starFilled = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
|
3307 |
-
xmlns: "http://www.w3.org/2000/svg",
|
3308 |
-
viewBox: "0 0 24 24"
|
3309 |
-
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
|
3310 |
-
d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"
|
3311 |
-
}));
|
3312 |
-
/* harmony default export */ var star_filled = (starFilled);
|
3313 |
-
//# sourceMappingURL=star-filled.js.map
|
3314 |
-
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js
|
3315 |
-
|
3316 |
-
|
3317 |
-
/**
|
3318 |
-
* WordPress dependencies
|
3319 |
-
*/
|
3320 |
|
3321 |
-
var starEmpty = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
|
3322 |
-
xmlns: "http://www.w3.org/2000/svg",
|
3323 |
-
viewBox: "0 0 24 24"
|
3324 |
-
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
|
3325 |
-
fillRule: "evenodd",
|
3326 |
-
d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",
|
3327 |
-
clipRule: "evenodd"
|
3328 |
-
}));
|
3329 |
-
/* harmony default export */ var star_empty = (starEmpty);
|
3330 |
-
//# sourceMappingURL=star-empty.js.map
|
3331 |
// EXTERNAL MODULE: ./client/navigation/components/favorite-button/style.scss
|
3332 |
-
var favorite_button_style = __webpack_require__(
|
3333 |
|
3334 |
// CONCATENATED MODULE: ./client/navigation/components/favorite-button/index.js
|
3335 |
|
@@ -3342,35 +4324,34 @@ var favorite_button_style = __webpack_require__(289);
|
|
3342 |
|
3343 |
|
3344 |
|
3345 |
-
|
3346 |
/**
|
3347 |
* Internal dependencies
|
3348 |
*/
|
3349 |
|
3350 |
|
3351 |
-
|
3352 |
-
id
|
3353 |
-
|
3354 |
-
|
3355 |
-
favorites,
|
3356 |
-
isResolving
|
3357 |
-
} = Object(external_wp_data_["useSelect"])(select => {
|
3358 |
return {
|
3359 |
-
favorites: select(
|
3360 |
-
isResolving: select(
|
3361 |
};
|
3362 |
-
})
|
3363 |
-
|
3364 |
-
|
3365 |
-
|
3366 |
-
|
3367 |
-
|
3368 |
-
|
3369 |
-
|
3370 |
-
|
|
|
|
|
|
|
3371 |
toggle(id);
|
3372 |
-
Object(
|
3373 |
-
id,
|
3374 |
action: isFavorited ? 'unfavorite' : 'favorite'
|
3375 |
});
|
3376 |
};
|
@@ -3379,21 +4360,20 @@ const FavoriteButton = ({
|
|
3379 |
return null;
|
3380 |
}
|
3381 |
|
3382 |
-
return Object(
|
3383 |
id: "woocommerce-navigation-favorite-button",
|
3384 |
className: "woocommerce-navigation-favorite-button",
|
3385 |
isTertiary: true,
|
3386 |
onClick: toggleFavorite,
|
3387 |
-
|
3388 |
-
|
3389 |
-
|
3390 |
-
className: `star-${isFavorited ? 'filled' : 'empty'}-icon`
|
3391 |
-
}));
|
3392 |
};
|
3393 |
-
/* harmony default export */ var favorite_button = (
|
3394 |
// CONCATENATED MODULE: ./client/navigation/components/favorites-tooltip/index.js
|
3395 |
|
3396 |
|
|
|
3397 |
/**
|
3398 |
* External dependencies
|
3399 |
*/
|
@@ -3405,26 +4385,25 @@ const FavoriteButton = ({
|
|
3405 |
*/
|
3406 |
|
3407 |
|
3408 |
-
|
3409 |
-
|
3410 |
-
|
3411 |
-
|
3412 |
-
|
3413 |
-
|
3414 |
-
|
3415 |
-
const {
|
3416 |
-
getOption,
|
3417 |
-
isResolving
|
3418 |
-
} = select(external_wc_data_["OPTIONS_STORE_NAME"]);
|
3419 |
return {
|
3420 |
-
isFavoritesResolving: select(
|
3421 |
isOptionResolving: isResolving('getOption', [tooltipHiddenOption]),
|
3422 |
isTooltipHidden: getOption(tooltipHiddenOption) === 'yes'
|
3423 |
};
|
3424 |
-
})
|
3425 |
-
|
3426 |
-
|
3427 |
-
|
|
|
|
|
|
|
3428 |
|
3429 |
if (isFavoritesResolving || isTooltipHidden || isOptionResolving) {
|
3430 |
return null;
|
@@ -3434,19 +4413,19 @@ const FavoritesTooltip = () => {
|
|
3434 |
return null;
|
3435 |
}
|
3436 |
|
3437 |
-
return Object(
|
3438 |
delay: 1000,
|
3439 |
-
title: Object(
|
3440 |
-
content: Object(
|
3441 |
-
closeButtonText: Object(
|
3442 |
id: "woocommerce-navigation-favorite-button",
|
3443 |
-
onClose: ()
|
3444 |
-
|
3445 |
-
}
|
3446 |
useAnchor: true
|
3447 |
});
|
3448 |
};
|
3449 |
-
/* harmony default export */ var favorites_tooltip = (
|
3450 |
// CONCATENATED MODULE: ./client/navigation/components/category-title/index.js
|
3451 |
|
3452 |
|
@@ -3456,31 +4435,27 @@ const FavoritesTooltip = () => {
|
|
3456 |
|
3457 |
|
3458 |
|
3459 |
-
|
3460 |
-
category
|
3461 |
-
|
3462 |
-
|
3463 |
-
|
3464 |
-
menuId,
|
3465 |
-
title
|
3466 |
-
} = category;
|
3467 |
-
const className = 'woocommerce-navigation-category-title';
|
3468 |
|
3469 |
-
if (['plugins', 'favorites'].includes(menuId)) {
|
3470 |
-
return Object(
|
3471 |
className: className
|
3472 |
-
}, Object(
|
3473 |
-
className:
|
3474 |
-
}, title), Object(
|
3475 |
id: id
|
3476 |
-
}), Object(
|
3477 |
}
|
3478 |
|
3479 |
-
return Object(
|
3480 |
className: className
|
3481 |
}, title);
|
3482 |
};
|
3483 |
-
/* harmony default export */ var category_title = (
|
3484 |
// CONCATENATED MODULE: ./client/navigation/components/Item/index.js
|
3485 |
|
3486 |
|
@@ -3491,16 +4466,13 @@ const CategoryTitle = ({
|
|
3491 |
|
3492 |
|
3493 |
|
3494 |
-
|
3495 |
-
item
|
3496 |
-
|
3497 |
-
var
|
3498 |
-
|
3499 |
-
const slot = Object(external_wc_experimental_["useSlot"])('woocommerce_navigation_' + item.id);
|
3500 |
-
const hasFills = Boolean(slot === null || slot === void 0 ? void 0 : (_slot$fills = slot.fills) === null || _slot$fills === void 0 ? void 0 : _slot$fills.length);
|
3501 |
|
3502 |
-
|
3503 |
-
Object(
|
3504 |
menu_item: id
|
3505 |
});
|
3506 |
}; // Disable reason: The div wrapping the slot item is used for tracking purposes
|
@@ -3511,29 +4483,33 @@ const Item = ({
|
|
3511 |
|
3512 |
|
3513 |
if (hasFills && !item.isCategory) {
|
3514 |
-
return Object(
|
3515 |
key: item.id,
|
3516 |
item: item.id
|
3517 |
-
}, Object(
|
3518 |
-
onClick: ()
|
3519 |
-
|
|
|
|
|
3520 |
name: item.id
|
3521 |
})));
|
3522 |
}
|
3523 |
|
3524 |
-
return Object(
|
3525 |
key: item.id,
|
3526 |
item: item.id,
|
3527 |
title: item.title,
|
3528 |
href: item.url,
|
3529 |
navigateToMenu: !item.url && item.id,
|
3530 |
-
onClick: ()
|
|
|
|
|
3531 |
hideIfTargetMenuEmpty: true
|
3532 |
});
|
3533 |
/* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
|
3534 |
};
|
3535 |
|
3536 |
-
/* harmony default export */ var components_Item = (
|
3537 |
// CONCATENATED MODULE: ./client/navigation/components/container/primary-menu.js
|
3538 |
|
3539 |
|
@@ -3542,46 +4518,52 @@ const Item = ({
|
|
3542 |
*/
|
3543 |
|
3544 |
|
3545 |
-
|
3546 |
/**
|
3547 |
* Internal dependencies
|
3548 |
*/
|
3549 |
|
3550 |
|
3551 |
|
3552 |
-
|
3553 |
-
category,
|
3554 |
-
|
3555 |
-
|
3556 |
-
|
3557 |
-
|
3558 |
if (!primaryItems.length && !pluginItems.length) {
|
3559 |
return null;
|
3560 |
}
|
3561 |
|
3562 |
-
|
3563 |
-
|
3564 |
-
|
3565 |
-
|
3566 |
-
|
|
|
3567 |
category: category
|
3568 |
}),
|
3569 |
menu: category.id,
|
3570 |
parentMenu: category.parent,
|
3571 |
backButtonLabel: isRootBackVisible ? rootBackLabel : category.backButtonLabel || null,
|
3572 |
-
onBackButtonClick: isRootBackVisible ? ()
|
3573 |
onBackClick('woocommerce');
|
3574 |
window.location = rootBackUrl;
|
3575 |
-
} : ()
|
3576 |
-
|
3577 |
-
|
3578 |
-
|
3579 |
-
|
3580 |
-
|
3581 |
-
|
3582 |
-
|
3583 |
-
|
3584 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
3585 |
};
|
3586 |
// CONCATENATED MODULE: ./client/navigation/components/container/secondary-menu.js
|
3587 |
|
@@ -3596,35 +4578,43 @@ const PrimaryMenu = ({
|
|
3596 |
|
3597 |
|
3598 |
|
3599 |
-
|
3600 |
-
category,
|
3601 |
-
|
3602 |
-
|
3603 |
-
|
3604 |
if (!items.length) {
|
3605 |
return null;
|
3606 |
}
|
3607 |
|
3608 |
-
|
3609 |
-
return Object(
|
3610 |
className: "components-navigation__menu-secondary",
|
3611 |
-
title: !isRoot && Object(
|
3612 |
category: category
|
3613 |
}),
|
3614 |
menu: category.id,
|
3615 |
parentMenu: category.parent,
|
3616 |
backButtonLabel: category.backButtonLabel || null,
|
3617 |
-
onBackButtonClick: isRoot ? null : ()
|
3618 |
-
|
3619 |
-
|
3620 |
-
},
|
3621 |
-
|
3622 |
-
|
3623 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
3624 |
};
|
3625 |
// CONCATENATED MODULE: ./client/navigation/components/container/index.js
|
3626 |
|
3627 |
|
|
|
|
|
3628 |
/**
|
3629 |
* External dependencies
|
3630 |
*/
|
@@ -3644,19 +4634,13 @@ const SecondaryMenu = ({
|
|
3644 |
|
3645 |
|
3646 |
|
3647 |
-
|
3648 |
-
|
3649 |
-
|
3650 |
-
} = Object(external_wp_data_["useSelect"])(select => {
|
3651 |
-
return {
|
3652 |
-
menuItems: select(external_wc_data_["NAVIGATION_STORE_NAME"]).getMenuItems()
|
3653 |
-
};
|
3654 |
-
});
|
3655 |
-
Object(external_wp_element_["useEffect"])(() => {
|
3656 |
// Collapse the original WP Menu.
|
3657 |
document.documentElement.classList.remove('wp-toolbar');
|
3658 |
document.body.classList.add('has-woocommerce-navigation');
|
3659 |
-
|
3660 |
|
3661 |
if (!adminMenu) {
|
3662 |
return;
|
@@ -3664,72 +4648,83 @@ const Container = () => {
|
|
3664 |
|
3665 |
adminMenu.classList.add('folded');
|
3666 |
}, []);
|
3667 |
-
|
3668 |
-
|
3669 |
-
|
3670 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3671 |
|
3672 |
if (initialMatchedItem && activeItem !== initialMatchedItem) {
|
3673 |
setActiveItem(initialMatchedItem);
|
3674 |
setActiveLevel(initialMatchedItem.parent);
|
3675 |
}
|
3676 |
|
3677 |
-
|
3678 |
-
setTimeout(()
|
3679 |
-
|
3680 |
|
3681 |
if (matchedItem) {
|
3682 |
setActiveItem(matchedItem);
|
3683 |
-
setActiveLevel(matchedItem.parent);
|
3684 |
}
|
3685 |
}, 0);
|
3686 |
});
|
3687 |
return removeListener;
|
3688 |
}, [menuItems]);
|
3689 |
-
|
3690 |
-
|
3691 |
-
|
3692 |
-
|
3693 |
-
|
3694 |
-
|
3695 |
-
}
|
3696 |
-
|
3697 |
-
|
3698 |
-
|
3699 |
-
|
|
|
|
|
|
|
3700 |
category: id
|
3701 |
});
|
3702 |
};
|
3703 |
|
3704 |
-
|
3705 |
-
|
3706 |
'is-root': isRoot
|
3707 |
});
|
3708 |
-
return Object(
|
3709 |
className: classes
|
3710 |
-
}, Object(
|
3711 |
className: "woocommerce-navigation__wrapper",
|
3712 |
ref: navDomRef
|
3713 |
-
}, Object(
|
3714 |
activeItem: activeItem ? activeItem.id : null,
|
3715 |
activeMenu: activeLevel,
|
3716 |
-
onActivateMenu: (
|
3717 |
if (navDomRef && navDomRef.current) {
|
3718 |
navDomRef.current.scrollTop = 0;
|
3719 |
}
|
3720 |
|
3721 |
-
setActiveLevel(
|
3722 |
}
|
3723 |
-
}, Object.values(categories).map(category
|
3724 |
-
|
3725 |
-
return !!categoryItems && [Object(
|
3726 |
key: category.id,
|
3727 |
category: category,
|
3728 |
onBackClick: onBackClick,
|
3729 |
-
primaryItems: [
|
3730 |
pluginItems: categoryItems.plugins
|
3731 |
-
}), Object(
|
3732 |
-
key:
|
3733 |
category: category,
|
3734 |
onBackClick: onBackClick,
|
3735 |
items: categoryItems.secondary
|
@@ -3737,31 +4732,50 @@ const Container = () => {
|
|
3737 |
}))));
|
3738 |
};
|
3739 |
|
3740 |
-
/* harmony default export */ var container = (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3741 |
// CONCATENATED MODULE: ./client/navigation/index.js
|
|
|
|
|
3742 |
/**
|
3743 |
* External dependencies
|
3744 |
*/
|
3745 |
|
|
|
|
|
3746 |
/**
|
3747 |
* Internal dependencies
|
3748 |
*/
|
3749 |
|
3750 |
|
3751 |
|
3752 |
-
|
|
|
|
|
|
|
|
|
|
|
3753 |
/* harmony default export */ var navigation = (HydratedNavigation);
|
3754 |
// CONCATENATED MODULE: ./client/header/index.js
|
3755 |
|
3756 |
|
3757 |
-
/**
|
3758 |
-
* External dependencies
|
3759 |
-
*/
|
3760 |
-
|
3761 |
|
3762 |
|
|
|
3763 |
|
|
|
3764 |
|
|
|
|
|
|
|
3765 |
|
3766 |
|
3767 |
|
@@ -3778,82 +4792,31 @@ const HydratedNavigation = Object(external_wc_data_["withNavigationHydration"])(
|
|
3778 |
|
3779 |
|
3780 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3781 |
|
3782 |
-
|
3783 |
-
|
3784 |
-
|
3785 |
-
|
3786 |
-
if (task) {
|
3787 |
-
const homeText = Object(external_wp_i18n_["__"])('WooCommerce Home', 'woocommerce-admin');
|
3788 |
-
|
3789 |
-
const navigateHome = () => {
|
3790 |
-
Object(external_wc_tracks_["recordEvent"])('topbar_back_button', {
|
3791 |
-
page_name: getPageTitle(window.title)
|
3792 |
-
});
|
3793 |
-
Object(external_wc_navigation_["updateQueryString"])({}, Object(external_wc_navigation_["getHistory"])().location.pathname, {});
|
3794 |
-
}; // if it's a task list page, render a back button to the homescreen
|
3795 |
-
|
3796 |
-
|
3797 |
-
return Object(external_wp_element_["createElement"])(external_wp_components_["Tooltip"], {
|
3798 |
-
text: homeText
|
3799 |
-
}, Object(external_wp_element_["createElement"])("div", {
|
3800 |
-
tabIndex: "0",
|
3801 |
-
role: "button",
|
3802 |
-
"data-testid": "header-back-button",
|
3803 |
-
className: "woocommerce-layout__header-back-button",
|
3804 |
-
onKeyDown: ({
|
3805 |
-
keyCode
|
3806 |
-
}) => {
|
3807 |
-
if (keyCode === external_wp_keycodes_["ENTER"] || keyCode === external_wp_keycodes_["SPACE"]) {
|
3808 |
-
navigateHome();
|
3809 |
-
}
|
3810 |
-
}
|
3811 |
-
}, Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
|
3812 |
-
icon: chevron_left["a" /* default */],
|
3813 |
-
onClick: navigateHome
|
3814 |
-
})));
|
3815 |
-
}
|
3816 |
-
|
3817 |
-
return null;
|
3818 |
-
};
|
3819 |
-
|
3820 |
-
const getPageTitle = defaultTitle => {
|
3821 |
-
const currentUrl = new URL(window.location.href);
|
3822 |
-
const task = currentUrl.searchParams.get('task'); // If it's the task list then render a title based on which task the user is on.
|
3823 |
-
|
3824 |
-
return {
|
3825 |
-
payments: Object(external_wp_i18n_["__"])('Set up payments', 'woocommerce-admin'),
|
3826 |
-
tax: Object(external_wp_i18n_["__"])('Add tax rates', 'woocommerce-admin'),
|
3827 |
-
appearance: Object(external_wp_i18n_["__"])('Personalize your store', 'woocommerce-admin'),
|
3828 |
-
products: Object(external_wp_i18n_["__"])('Add products', 'woocommerce-admin'),
|
3829 |
-
shipping: Object(external_wp_i18n_["__"])('Set up shipping costs', 'woocommerce-admin')
|
3830 |
-
}[task] || defaultTitle;
|
3831 |
-
};
|
3832 |
|
3833 |
-
|
3834 |
-
|
3835 |
-
|
3836 |
-
query
|
3837 |
-
}) => {
|
3838 |
-
const headerElement = Object(external_wp_element_["useRef"])(null);
|
3839 |
-
const siteTitle = Object(build_module["f" /* getSetting */])('siteTitle', '');
|
3840 |
-
const pageTitle = sections.slice(-1)[0];
|
3841 |
-
const isScrolled = useIsScrolled();
|
3842 |
-
const {
|
3843 |
-
updateUserPreferences,
|
3844 |
-
...userData
|
3845 |
-
} = Object(external_wc_data_["useUserPreferences"])();
|
3846 |
-
const isModalDismissed = userData.android_app_banner_dismissed === 'yes';
|
3847 |
-
let debounceTimer = null;
|
3848 |
-
const className = classnames_default()('woocommerce-layout__header', {
|
3849 |
'is-scrolled': isScrolled
|
3850 |
});
|
3851 |
-
Object(
|
3852 |
updateBodyMargin();
|
3853 |
window.addEventListener('resize', updateBodyMargin);
|
3854 |
-
return ()
|
3855 |
window.removeEventListener('resize', updateBodyMargin);
|
3856 |
-
|
3857 |
|
3858 |
if (!wpBody) {
|
3859 |
return;
|
@@ -3863,27 +4826,27 @@ const header_Header = ({
|
|
3863 |
};
|
3864 |
}, [isModalDismissed]);
|
3865 |
|
3866 |
-
|
3867 |
clearTimeout(debounceTimer);
|
3868 |
debounceTimer = setTimeout(function () {
|
3869 |
-
|
3870 |
|
3871 |
if (!wpBody || !headerElement.current) {
|
3872 |
return;
|
3873 |
}
|
3874 |
|
3875 |
-
wpBody.style.marginTop =
|
3876 |
}, 200);
|
3877 |
};
|
3878 |
|
3879 |
-
Object(
|
3880 |
if (!isEmbedded) {
|
3881 |
-
|
3882 |
return Array.isArray(section) ? section[1] : section;
|
3883 |
}).reverse().join(' ‹ ');
|
3884 |
-
|
3885 |
/* translators: 1: document title. 2: page title */
|
3886 |
-
Object(
|
3887 |
|
3888 |
if (document.title !== decodedTitle) {
|
3889 |
document.title = decodedTitle;
|
@@ -3891,62 +4854,95 @@ const header_Header = ({
|
|
3891 |
}
|
3892 |
}, [isEmbedded, sections, siteTitle]);
|
3893 |
|
3894 |
-
|
3895 |
updateUserPreferences({
|
3896 |
android_app_banner_dismissed: 'yes'
|
3897 |
});
|
3898 |
};
|
3899 |
|
3900 |
-
|
3901 |
-
const backButtonClass = backButton ? 'with-back-button' : '';
|
3902 |
-
return Object(external_wp_element_["createElement"])("div", {
|
3903 |
className: className,
|
3904 |
ref: headerElement
|
3905 |
-
}, !isModalDismissed && Object(
|
3906 |
onDismiss: dismissHandler,
|
3907 |
onInstall: dismissHandler
|
3908 |
-
}), Object(
|
3909 |
className: "woocommerce-layout__header-wrapper"
|
3910 |
-
}, window.wcAdminFeatures.navigation && Object(
|
3911 |
-
className:
|
3912 |
-
as: "h1"
|
3913 |
-
|
|
|
3914 |
isEmbedded: isEmbedded,
|
3915 |
query: query,
|
3916 |
-
userPreferencesData: {
|
3917 |
-
updateUserPreferences
|
3918 |
-
}
|
3919 |
})));
|
3920 |
};
|
3921 |
// CONCATENATED MODULE: ./client/layout/notices.js
|
3922 |
|
3923 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3924 |
/**
|
3925 |
* External dependencies
|
3926 |
*/
|
3927 |
|
3928 |
|
3929 |
-
|
3930 |
-
|
3931 |
-
|
3932 |
-
|
3933 |
-
|
3934 |
-
|
|
|
|
|
|
|
3935 |
}
|
3936 |
|
3937 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3938 |
|
3939 |
/* harmony default export */ var layout_notices = (notices_Notices);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3940 |
// EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js
|
3941 |
-
var web_cjs = __webpack_require__(
|
3942 |
|
3943 |
// EXTERNAL MODULE: ./client/layout/transient-notices/snackbar/index.js
|
3944 |
-
var snackbar = __webpack_require__(
|
3945 |
|
3946 |
// CONCATENATED MODULE: ./client/layout/transient-notices/snackbar/list.js
|
3947 |
|
3948 |
|
3949 |
|
|
|
|
|
|
|
3950 |
/**
|
3951 |
* External dependencies
|
3952 |
*/
|
@@ -3972,62 +4968,124 @@ var snackbar = __webpack_require__(255);
|
|
3972 |
* @return {Object} The rendered notices list.
|
3973 |
*/
|
3974 |
|
3975 |
-
function SnackbarList({
|
3976 |
-
notices,
|
3977 |
-
|
3978 |
-
|
3979 |
-
|
3980 |
-
|
3981 |
-
|
3982 |
-
|
3983 |
-
|
3984 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3985 |
from: {
|
3986 |
opacity: 0,
|
3987 |
height: 0
|
3988 |
},
|
3989 |
-
enter: item
|
3990 |
-
|
3991 |
-
|
3992 |
-
|
3993 |
-
|
3994 |
-
|
3995 |
-
|
3996 |
-
|
3997 |
-
|
3998 |
-
|
3999 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4000 |
},
|
4001 |
immediate: isReducedMotion
|
4002 |
});
|
4003 |
className = classnames_default()('components-snackbar-list', className);
|
4004 |
|
4005 |
-
|
4006 |
-
|
|
|
4007 |
|
4008 |
-
|
|
|
4009 |
};
|
4010 |
|
4011 |
-
return Object(
|
4012 |
className: className
|
4013 |
-
}, children, transitions.map(({
|
4014 |
-
|
4015 |
-
|
4016 |
-
|
4017 |
-
|
4018 |
-
|
4019 |
-
|
4020 |
-
|
4021 |
-
|
4022 |
-
|
4023 |
-
|
4024 |
-
|
4025 |
-
|
|
|
|
|
|
|
4026 |
}
|
4027 |
|
4028 |
/* harmony default export */ var list = (SnackbarList);
|
4029 |
// EXTERNAL MODULE: ./client/layout/transient-notices/style.scss
|
4030 |
-
var transient_notices_style = __webpack_require__(
|
4031 |
|
4032 |
// CONCATENATED MODULE: ./client/layout/transient-notices/index.js
|
4033 |
|
@@ -4038,85 +5096,47 @@ var transient_notices_style = __webpack_require__(295);
|
|
4038 |
|
4039 |
|
4040 |
|
4041 |
-
|
4042 |
-
|
4043 |
-
|
4044 |
/**
|
4045 |
* Internal dependencies
|
4046 |
*/
|
4047 |
|
4048 |
|
4049 |
|
4050 |
-
const QUEUE_OPTION = 'woocommerce_admin_transient_notices_queue';
|
4051 |
-
const QUEUED_NOTICE_FILTER = 'woocommerce_admin_queued_notice_filter';
|
4052 |
|
4053 |
function TransientNotices(props) {
|
4054 |
-
|
4055 |
-
|
4056 |
-
|
4057 |
-
|
4058 |
-
|
4059 |
-
|
4060 |
-
|
4061 |
-
const {
|
4062 |
-
updateOptions
|
4063 |
-
} = Object(external_wp_data_["useDispatch"])(external_wc_data_["OPTIONS_STORE_NAME"]);
|
4064 |
-
const {
|
4065 |
-
currentUser = {},
|
4066 |
-
notices = [],
|
4067 |
-
notices2 = [],
|
4068 |
-
noticesQueue = {}
|
4069 |
-
} = Object(external_wp_data_["useSelect"])(select => {
|
4070 |
// NOTE: This uses core/notices2, if this file is copied back upstream
|
4071 |
// to Gutenberg this needs to be changed back to just core/notices.
|
|
|
|
|
4072 |
return {
|
4073 |
-
|
4074 |
-
|
4075 |
-
notices2: select('core/notices2').getNotices(),
|
4076 |
-
noticesQueue: select(external_wc_data_["OPTIONS_STORE_NAME"]).getOption(QUEUE_OPTION)
|
4077 |
};
|
4078 |
});
|
4079 |
-
|
4080 |
-
const getCurrentUserNotices = () => {
|
4081 |
-
return Object.values(noticesQueue).filter(notice => notice.user_id === currentUser.id || !notice.user_id);
|
4082 |
-
};
|
4083 |
-
|
4084 |
-
const dequeueNotice = id => {
|
4085 |
-
const remainingNotices = { ...noticesQueue
|
4086 |
-
};
|
4087 |
-
delete remainingNotices[id];
|
4088 |
-
updateOptions({
|
4089 |
-
[QUEUE_OPTION]: remainingNotices
|
4090 |
-
});
|
4091 |
-
};
|
4092 |
-
|
4093 |
-
Object(external_wp_element_["useEffect"])(() => {
|
4094 |
-
getCurrentUserNotices().forEach(queuedNotice => {
|
4095 |
-
const notice = Object(external_wp_hooks_["applyFilters"])(QUEUED_NOTICE_FILTER, queuedNotice);
|
4096 |
-
createNotice2(notice.status, notice.content, {
|
4097 |
-
onDismiss: () => {
|
4098 |
-
dequeueNotice(notice.id);
|
4099 |
-
},
|
4100 |
-
...(notice.options || {})
|
4101 |
-
});
|
4102 |
-
});
|
4103 |
-
}, []);
|
4104 |
/**
|
4105 |
* Combines the two notices in the component vs in the useSelect, as we don't want to
|
4106 |
* create new object references on each useSelect call.
|
4107 |
*/
|
4108 |
|
4109 |
-
|
|
|
|
|
|
|
4110 |
return notices.concat(notices2);
|
4111 |
};
|
4112 |
|
4113 |
-
|
4114 |
-
|
4115 |
-
|
4116 |
-
|
4117 |
-
|
4118 |
-
return Object(external_wp_element_["createElement"])(list, {
|
4119 |
-
notices: combinedNotices,
|
4120 |
className: classes,
|
4121 |
onRemove: onRemove,
|
4122 |
onRemove2: onRemove2
|
@@ -4138,6 +5158,12 @@ TransientNotices.propTypes = {
|
|
4138 |
// CONCATENATED MODULE: ./client/layout/navigation.js
|
4139 |
|
4140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
4141 |
/**
|
4142 |
* External dependencies
|
4143 |
*/
|
@@ -4146,7 +5172,6 @@ TransientNotices.propTypes = {
|
|
4146 |
|
4147 |
|
4148 |
|
4149 |
-
|
4150 |
/**
|
4151 |
* Internal dependencies
|
4152 |
*/
|
@@ -4155,14 +5180,29 @@ TransientNotices.propTypes = {
|
|
4155 |
|
4156 |
|
4157 |
|
4158 |
-
|
4159 |
-
|
4160 |
-
|
4161 |
-
|
4162 |
-
|
4163 |
-
|
4164 |
-
|
4165 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4166 |
/**
|
4167 |
* If the current page is embedded, stay with the default urls
|
4168 |
* provided by Navigation because the router isn't present to
|
@@ -4173,43 +5213,48 @@ const NavigationPlugin = () => {
|
|
4173 |
return null;
|
4174 |
}
|
4175 |
|
4176 |
-
|
4177 |
-
|
|
|
|
|
|
|
|
|
4178 |
if (page.path === '/analytics/settings') {
|
4179 |
-
return {
|
4180 |
-
breadcrumbs: [Object(
|
4181 |
-
};
|
4182 |
}
|
4183 |
|
4184 |
return page;
|
4185 |
});
|
4186 |
-
return Object(
|
4187 |
-
|
4188 |
-
|
4189 |
-
|
4190 |
-
|
4191 |
-
|
4192 |
-
|
4193 |
-
|
4194 |
-
|
4195 |
-
|
4196 |
-
|
4197 |
-
|
4198 |
-
|
4199 |
-
|
4200 |
-
|
|
|
|
|
|
|
|
|
4201 |
};
|
4202 |
|
4203 |
-
Object(
|
4204 |
-
render:
|
4205 |
});
|
4206 |
// CONCATENATED MODULE: ./client/layout/index.js
|
4207 |
|
4208 |
|
4209 |
|
4210 |
-
/**
|
4211 |
-
* External dependencies
|
4212 |
-
*/
|
4213 |
|
4214 |
|
4215 |
|
@@ -4217,6 +5262,21 @@ Object(external_wp_plugins_["registerPlugin"])('wc-admin-navigation', {
|
|
4217 |
|
4218 |
|
4219 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4220 |
|
4221 |
|
4222 |
|
@@ -4235,131 +5295,159 @@ Object(external_wp_plugins_["registerPlugin"])('wc-admin-navigation', {
|
|
4235 |
|
4236 |
|
4237 |
|
4238 |
-
|
4239 |
-
|
4240 |
-
|
4241 |
-
|
4242 |
-
|
4243 |
-
|
4244 |
-
|
4245 |
-
|
4246 |
-
className: "woocommerce-layout__primary",
|
4247 |
-
id: "woocommerce-layout__primary"
|
4248 |
-
}, window.wcAdminFeatures['store-alerts'] && Object(external_wp_element_["createElement"])(external_wp_element_["Suspense"], {
|
4249 |
-
fallback: Object(external_wp_element_["createElement"])(external_wc_components_["Spinner"], null)
|
4250 |
-
}, Object(external_wp_element_["createElement"])(StoreAlerts, null)), Object(external_wp_element_["createElement"])(layout_notices, null), children);
|
4251 |
-
}
|
4252 |
|
4253 |
-
|
4254 |
|
4255 |
-
|
4256 |
-
|
4257 |
-
this.recordPageViewTrack();
|
4258 |
-
}
|
4259 |
|
4260 |
-
|
4261 |
-
|
4262 |
-
const currentPath = Object(external_lodash_["get"])(this.props, 'location.pathname');
|
4263 |
|
4264 |
-
|
4265 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4266 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4267 |
|
4268 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4269 |
this.recordPageViewTrack();
|
4270 |
}
|
4271 |
-
}
|
|
|
|
|
|
|
|
|
4272 |
|
4273 |
-
|
4274 |
-
|
4275 |
-
|
4276 |
-
installedPlugins,
|
4277 |
-
isEmbedded,
|
4278 |
-
isJetpackConnected
|
4279 |
-
} = this.props;
|
4280 |
-
const navigationFlag = {
|
4281 |
-
has_navigation: !!window.wcNavigation
|
4282 |
-
};
|
4283 |
|
4284 |
-
|
4285 |
-
|
4286 |
-
|
4287 |
-
is_embedded: true,
|
4288 |
-
...navigationFlag
|
4289 |
-
});
|
4290 |
-
return;
|
4291 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4292 |
|
4293 |
-
|
|
|
4294 |
|
4295 |
-
|
4296 |
-
|
4297 |
-
|
|
|
|
|
4298 |
|
|
|
4299 |
|
4300 |
-
|
|
|
|
|
4301 |
|
4302 |
-
if (path.length === 0) {
|
4303 |
-
path = 'home_screen';
|
4304 |
-
}
|
4305 |
|
4306 |
-
|
4307 |
-
jetpack_installed: installedPlugins.includes('jetpack'),
|
4308 |
-
jetpack_active: activePlugins.includes('jetpack'),
|
4309 |
-
jetpack_connected: isJetpackConnected,
|
4310 |
-
...navigationFlag
|
4311 |
-
});
|
4312 |
-
}
|
4313 |
|
4314 |
-
|
4315 |
-
|
4316 |
-
|
4317 |
-
}
|
4318 |
-
|
4319 |
-
const search = searchString.substring(1);
|
4320 |
-
return Object(lib["parse"])(search);
|
4321 |
-
}
|
4322 |
-
|
4323 |
-
isWCPaySettingsPage() {
|
4324 |
-
const {
|
4325 |
-
page,
|
4326 |
-
section,
|
4327 |
-
tab
|
4328 |
-
} = Object(external_wc_navigation_["getQuery"])();
|
4329 |
-
return page === 'wc-settings' && tab === 'checkout' && section === 'woocommerce_payments';
|
4330 |
-
}
|
4331 |
-
|
4332 |
-
render() {
|
4333 |
-
const {
|
4334 |
-
isEmbedded,
|
4335 |
-
...restProps
|
4336 |
-
} = this.props;
|
4337 |
-
const {
|
4338 |
-
location,
|
4339 |
-
page
|
4340 |
-
} = this.props;
|
4341 |
-
const {
|
4342 |
-
breadcrumbs
|
4343 |
-
} = page;
|
4344 |
-
const query = this.getQuery(location && location.search);
|
4345 |
-
return Object(external_wp_element_["createElement"])(external_wp_components_["SlotFillProvider"], null, Object(external_wp_element_["createElement"])("div", {
|
4346 |
-
className: "woocommerce-layout"
|
4347 |
-
}, Object(external_wp_element_["createElement"])(header_Header, {
|
4348 |
-
sections: Object(external_lodash_["isFunction"])(breadcrumbs) ? breadcrumbs(this.props) : breadcrumbs,
|
4349 |
-
isEmbedded: isEmbedded,
|
4350 |
-
query: query
|
4351 |
-
}), Object(external_wp_element_["createElement"])(transient_notices, null), !isEmbedded && Object(external_wp_element_["createElement"])(layout_PrimaryLayout, null, Object(external_wp_element_["createElement"])("div", {
|
4352 |
-
className: "woocommerce-layout__main"
|
4353 |
-
}, Object(external_wp_element_["createElement"])(controller_Controller, extends_default()({}, restProps, {
|
4354 |
-
query: query
|
4355 |
-
})))), isEmbedded && this.isWCPaySettingsPage() && Object(external_wp_element_["createElement"])(external_wp_element_["Suspense"], {
|
4356 |
-
fallback: null
|
4357 |
-
}, Object(external_wp_element_["createElement"])(WCPayUsageModal, null))), Object(external_wp_element_["createElement"])(external_wp_plugins_["PluginArea"], {
|
4358 |
-
scope: "woocommerce-admin"
|
4359 |
-
}));
|
4360 |
-
}
|
4361 |
|
4362 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4363 |
|
4364 |
layout_Layout.propTypes = {
|
4365 |
isEmbedded: prop_types_default.a.bool,
|
@@ -4371,21 +5459,21 @@ layout_Layout.propTypes = {
|
|
4371 |
wpOpenMenu: prop_types_default.a.string
|
4372 |
}).isRequired
|
4373 |
};
|
4374 |
-
|
4375 |
jetpackStatus: window.wcSettings.dataEndpoints && window.wcSettings.dataEndpoints.jetpackStatus || false
|
4376 |
-
}), Object(
|
4377 |
-
isEmbedded
|
4378 |
-
|
4379 |
// Embedded pages don't send plugin info to Tracks.
|
4380 |
if (isEmbedded) {
|
4381 |
return;
|
4382 |
}
|
4383 |
|
4384 |
-
|
4385 |
-
|
4386 |
-
|
4387 |
-
|
4388 |
-
|
4389 |
return {
|
4390 |
activePlugins: getActivePlugins(),
|
4391 |
isJetpackConnected: isJetpackConnected(),
|
@@ -4393,259 +5481,70 @@ const Layout = Object(external_wp_compose_["compose"])(Object(external_wc_data_[
|
|
4393 |
};
|
4394 |
}))(layout_Layout);
|
4395 |
|
4396 |
-
|
4397 |
-
|
4398 |
-
|
4399 |
-
|
4400 |
-
return Object(
|
4401 |
-
history: Object(
|
4402 |
-
}, Object(
|
4403 |
-
return
|
|
|
|
|
4404 |
key: page.path,
|
4405 |
path: page.path,
|
4406 |
exact: true,
|
4407 |
-
render:
|
4408 |
-
|
4409 |
-
|
|
|
|
|
4410 |
});
|
4411 |
})));
|
4412 |
};
|
4413 |
|
4414 |
-
|
4415 |
-
}) : external_lodash_["identity"])(_PageLayout);
|
4416 |
|
4417 |
-
|
4418 |
-
|
4419 |
-
|
4420 |
-
|
4421 |
-
|
4422 |
-
|
|
|
|
|
4423 |
|
4424 |
-
|
4425 |
-
}) : external_lodash_["identity"])(_EmbedLayout);
|
4426 |
|
4427 |
/***/ }),
|
4428 |
|
4429 |
-
/***/
|
4430 |
/***/ (function(module, exports) {
|
4431 |
|
4432 |
-
(function() { module.exports =
|
4433 |
|
4434 |
/***/ }),
|
4435 |
|
4436 |
-
/***/
|
4437 |
-
/***/ (function(module, exports) {
|
4438 |
|
4439 |
-
|
4440 |
|
4441 |
-
|
4442 |
|
4443 |
-
|
4444 |
-
|
4445 |
-
|
4446 |
-
|
4447 |
-
|
4448 |
-
/***/ }),
|
4449 |
-
|
4450 |
-
/***/ 127:
|
4451 |
-
/***/ (function(module, exports) {
|
4452 |
-
|
4453 |
-
(function() { module.exports = window["wp"]["notices"]; }());
|
4454 |
-
|
4455 |
-
/***/ }),
|
4456 |
-
|
4457 |
-
/***/ 128:
|
4458 |
-
/***/ (function(module, exports) {
|
4459 |
-
|
4460 |
-
// shim for using process in browser
|
4461 |
-
var process = module.exports = {};
|
4462 |
-
|
4463 |
-
// cached from whatever global is present so that test runners that stub it
|
4464 |
-
// don't break things. But we need to wrap it in a try catch in case it is
|
4465 |
-
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
4466 |
-
// function because try/catches deoptimize in certain engines.
|
4467 |
-
|
4468 |
-
var cachedSetTimeout;
|
4469 |
-
var cachedClearTimeout;
|
4470 |
-
|
4471 |
-
function defaultSetTimout() {
|
4472 |
-
throw new Error('setTimeout has not been defined');
|
4473 |
-
}
|
4474 |
-
function defaultClearTimeout () {
|
4475 |
-
throw new Error('clearTimeout has not been defined');
|
4476 |
-
}
|
4477 |
-
(function () {
|
4478 |
-
try {
|
4479 |
-
if (typeof setTimeout === 'function') {
|
4480 |
-
cachedSetTimeout = setTimeout;
|
4481 |
-
} else {
|
4482 |
-
cachedSetTimeout = defaultSetTimout;
|
4483 |
-
}
|
4484 |
-
} catch (e) {
|
4485 |
-
cachedSetTimeout = defaultSetTimout;
|
4486 |
-
}
|
4487 |
-
try {
|
4488 |
-
if (typeof clearTimeout === 'function') {
|
4489 |
-
cachedClearTimeout = clearTimeout;
|
4490 |
-
} else {
|
4491 |
-
cachedClearTimeout = defaultClearTimeout;
|
4492 |
-
}
|
4493 |
-
} catch (e) {
|
4494 |
-
cachedClearTimeout = defaultClearTimeout;
|
4495 |
-
}
|
4496 |
-
} ())
|
4497 |
-
function runTimeout(fun) {
|
4498 |
-
if (cachedSetTimeout === setTimeout) {
|
4499 |
-
//normal enviroments in sane situations
|
4500 |
-
return setTimeout(fun, 0);
|
4501 |
-
}
|
4502 |
-
// if setTimeout wasn't available but was latter defined
|
4503 |
-
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
4504 |
-
cachedSetTimeout = setTimeout;
|
4505 |
-
return setTimeout(fun, 0);
|
4506 |
-
}
|
4507 |
-
try {
|
4508 |
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
4509 |
-
return cachedSetTimeout(fun, 0);
|
4510 |
-
} catch(e){
|
4511 |
-
try {
|
4512 |
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
4513 |
-
return cachedSetTimeout.call(null, fun, 0);
|
4514 |
-
} catch(e){
|
4515 |
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
4516 |
-
return cachedSetTimeout.call(this, fun, 0);
|
4517 |
-
}
|
4518 |
-
}
|
4519 |
-
|
4520 |
-
|
4521 |
-
}
|
4522 |
-
function runClearTimeout(marker) {
|
4523 |
-
if (cachedClearTimeout === clearTimeout) {
|
4524 |
-
//normal enviroments in sane situations
|
4525 |
-
return clearTimeout(marker);
|
4526 |
-
}
|
4527 |
-
// if clearTimeout wasn't available but was latter defined
|
4528 |
-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
4529 |
-
cachedClearTimeout = clearTimeout;
|
4530 |
-
return clearTimeout(marker);
|
4531 |
-
}
|
4532 |
-
try {
|
4533 |
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
4534 |
-
return cachedClearTimeout(marker);
|
4535 |
-
} catch (e){
|
4536 |
-
try {
|
4537 |
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
4538 |
-
return cachedClearTimeout.call(null, marker);
|
4539 |
-
} catch (e){
|
4540 |
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
4541 |
-
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
4542 |
-
return cachedClearTimeout.call(this, marker);
|
4543 |
-
}
|
4544 |
-
}
|
4545 |
-
|
4546 |
-
|
4547 |
-
|
4548 |
-
}
|
4549 |
-
var queue = [];
|
4550 |
-
var draining = false;
|
4551 |
-
var currentQueue;
|
4552 |
-
var queueIndex = -1;
|
4553 |
-
|
4554 |
-
function cleanUpNextTick() {
|
4555 |
-
if (!draining || !currentQueue) {
|
4556 |
-
return;
|
4557 |
-
}
|
4558 |
-
draining = false;
|
4559 |
-
if (currentQueue.length) {
|
4560 |
-
queue = currentQueue.concat(queue);
|
4561 |
-
} else {
|
4562 |
-
queueIndex = -1;
|
4563 |
-
}
|
4564 |
-
if (queue.length) {
|
4565 |
-
drainQueue();
|
4566 |
-
}
|
4567 |
-
}
|
4568 |
-
|
4569 |
-
function drainQueue() {
|
4570 |
-
if (draining) {
|
4571 |
-
return;
|
4572 |
-
}
|
4573 |
-
var timeout = runTimeout(cleanUpNextTick);
|
4574 |
-
draining = true;
|
4575 |
-
|
4576 |
-
var len = queue.length;
|
4577 |
-
while(len) {
|
4578 |
-
currentQueue = queue;
|
4579 |
-
queue = [];
|
4580 |
-
while (++queueIndex < len) {
|
4581 |
-
if (currentQueue) {
|
4582 |
-
currentQueue[queueIndex].run();
|
4583 |
-
}
|
4584 |
-
}
|
4585 |
-
queueIndex = -1;
|
4586 |
-
len = queue.length;
|
4587 |
-
}
|
4588 |
-
currentQueue = null;
|
4589 |
-
draining = false;
|
4590 |
-
runClearTimeout(timeout);
|
4591 |
-
}
|
4592 |
-
|
4593 |
-
process.nextTick = function (fun) {
|
4594 |
-
var args = new Array(arguments.length - 1);
|
4595 |
-
if (arguments.length > 1) {
|
4596 |
-
for (var i = 1; i < arguments.length; i++) {
|
4597 |
-
args[i - 1] = arguments[i];
|
4598 |
-
}
|
4599 |
-
}
|
4600 |
-
queue.push(new Item(fun, args));
|
4601 |
-
if (queue.length === 1 && !draining) {
|
4602 |
-
runTimeout(drainQueue);
|
4603 |
-
}
|
4604 |
-
};
|
4605 |
|
4606 |
-
|
4607 |
-
function Item(fun, array) {
|
4608 |
-
this.fun = fun;
|
4609 |
-
this.array = array;
|
4610 |
}
|
4611 |
-
Item.prototype.run = function () {
|
4612 |
-
this.fun.apply(null, this.array);
|
4613 |
-
};
|
4614 |
-
process.title = 'browser';
|
4615 |
-
process.browser = true;
|
4616 |
-
process.env = {};
|
4617 |
-
process.argv = [];
|
4618 |
-
process.version = ''; // empty string to avoid regexp issues
|
4619 |
-
process.versions = {};
|
4620 |
-
|
4621 |
-
function noop() {}
|
4622 |
-
|
4623 |
-
process.on = noop;
|
4624 |
-
process.addListener = noop;
|
4625 |
-
process.once = noop;
|
4626 |
-
process.off = noop;
|
4627 |
-
process.removeListener = noop;
|
4628 |
-
process.removeAllListeners = noop;
|
4629 |
-
process.emit = noop;
|
4630 |
-
process.prependListener = noop;
|
4631 |
-
process.prependOnceListener = noop;
|
4632 |
-
|
4633 |
-
process.listeners = function (name) { return [] }
|
4634 |
-
|
4635 |
-
process.binding = function (name) {
|
4636 |
-
throw new Error('process.binding is not supported');
|
4637 |
-
};
|
4638 |
-
|
4639 |
-
process.cwd = function () { return '/' };
|
4640 |
-
process.chdir = function (dir) {
|
4641 |
-
throw new Error('process.chdir is not supported');
|
4642 |
-
};
|
4643 |
-
process.umask = function() { return 0; };
|
4644 |
|
|
|
4645 |
|
4646 |
/***/ }),
|
4647 |
|
4648 |
-
/***/
|
4649 |
/***/ (function(module, exports, __webpack_require__) {
|
4650 |
|
4651 |
"use strict";
|
@@ -4668,143 +5567,40 @@ exports.isValidElementType=function(a){return"string"===typeof a||"function"===t
|
|
4668 |
|
4669 |
/***/ }),
|
4670 |
|
4671 |
-
/***/
|
4672 |
/***/ (function(module, exports) {
|
4673 |
|
4674 |
-
(function() { module.exports =
|
4675 |
|
4676 |
/***/ }),
|
4677 |
|
4678 |
-
/***/
|
4679 |
/***/ (function(module, exports) {
|
4680 |
|
4681 |
-
(function() { module.exports =
|
4682 |
|
4683 |
/***/ }),
|
4684 |
|
4685 |
-
/***/
|
4686 |
-
/***/ (function(module,
|
4687 |
|
4688 |
-
|
4689 |
-
/* unused harmony export ADMIN_URL */
|
4690 |
-
/* unused harmony export COUNTRIES */
|
4691 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CURRENCY; });
|
4692 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return LOCALE; });
|
4693 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return ORDER_STATUSES; });
|
4694 |
-
/* unused harmony export SITE_TITLE */
|
4695 |
-
/* unused harmony export WC_ASSET_URL */
|
4696 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getSetting; });
|
4697 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return setSetting; });
|
4698 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getAdminLink; });
|
4699 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return enqueueScript; });
|
4700 |
-
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
4701 |
-
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
4702 |
-
/**
|
4703 |
-
* External dependencies
|
4704 |
-
*/
|
4705 |
-
// Remove mutable data from settings object to prevent access. Data stores should be used instead.
|
4706 |
|
4707 |
-
|
4708 |
-
const settings = typeof wcSettings === 'object' ? wcSettings : {};
|
4709 |
-
const SOURCE = Object.keys(settings).reduce((source, key) => {
|
4710 |
-
if (!mutableSources.includes(key)) {
|
4711 |
-
source[key] = settings[key];
|
4712 |
-
}
|
4713 |
|
4714 |
-
|
4715 |
-
}, {});
|
4716 |
-
const ADMIN_URL = SOURCE.adminUrl;
|
4717 |
-
const COUNTRIES = SOURCE.countries;
|
4718 |
-
const CURRENCY = SOURCE.currency;
|
4719 |
-
const LOCALE = SOURCE.locale;
|
4720 |
-
const ORDER_STATUSES = SOURCE.orderStatuses;
|
4721 |
-
const SITE_TITLE = SOURCE.siteTitle;
|
4722 |
-
const WC_ASSET_URL = SOURCE.wcAssetUrl;
|
4723 |
-
/**
|
4724 |
-
* Retrieves a setting value from the setting state.
|
4725 |
-
*
|
4726 |
-
* @param {string} name The identifier for the setting.
|
4727 |
-
* @param {*} [fallback=false] The value to use as a fallback
|
4728 |
-
* if the setting is not in the
|
4729 |
-
* state.
|
4730 |
-
* @param {Function} [filter=( val ) => val] A callback for filtering the
|
4731 |
-
* value before it's returned.
|
4732 |
-
* Receives both the found value
|
4733 |
-
* (if it exists for the key) and
|
4734 |
-
* the provided fallback arg.
|
4735 |
-
*
|
4736 |
-
* @return {*} The value present in the settings state for the given
|
4737 |
-
* name.
|
4738 |
-
*/
|
4739 |
|
4740 |
-
|
4741 |
-
if (mutableSources.includes(name)) {
|
4742 |
-
throw new Error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Mutable settings should be accessed via data store.'));
|
4743 |
-
}
|
4744 |
|
4745 |
-
|
4746 |
-
return
|
4747 |
}
|
4748 |
-
/**
|
4749 |
-
* Sets a value to a property on the settings state.
|
4750 |
-
*
|
4751 |
-
* NOTE: This feature is to be removed in favour of data stores when a full migration
|
4752 |
-
* is complete.
|
4753 |
-
*
|
4754 |
-
* @deprecated
|
4755 |
-
*
|
4756 |
-
* @param {string} name The setting property key for the
|
4757 |
-
* setting being mutated.
|
4758 |
-
* @param {*} value The value to set.
|
4759 |
-
* @param {Function} [filter=( val ) => val] Allows for providing a callback
|
4760 |
-
* to sanitize the setting (eg.
|
4761 |
-
* ensure it's a number)
|
4762 |
-
*/
|
4763 |
|
4764 |
-
|
4765 |
-
if (mutableSources.includes(name)) {
|
4766 |
-
throw new Error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Mutable settings should be mutated via data store.'));
|
4767 |
-
}
|
4768 |
-
|
4769 |
-
SOURCE[name] = filter(value);
|
4770 |
-
}
|
4771 |
-
/**
|
4772 |
-
* Returns a string with the site's wp-admin URL appended. JS version of `admin_url`.
|
4773 |
-
*
|
4774 |
-
* @param {string} path Relative path.
|
4775 |
-
* @return {string} Full admin URL.
|
4776 |
-
*/
|
4777 |
-
|
4778 |
-
function getAdminLink(path) {
|
4779 |
-
return (ADMIN_URL || '') + path;
|
4780 |
-
}
|
4781 |
-
/**
|
4782 |
-
* Adds a script to the page if it has not already been loaded. JS version of `wp_enqueue_script`.
|
4783 |
-
*
|
4784 |
-
* @param {Object} script WP_Script
|
4785 |
-
* @param {string} script.handle Script handle.
|
4786 |
-
* @param {string} script.src Script URL.
|
4787 |
-
*/
|
4788 |
-
|
4789 |
-
function enqueueScript(script) {
|
4790 |
-
return new Promise((resolve, reject) => {
|
4791 |
-
if (document.querySelector(`#${script.handle}-js`)) {
|
4792 |
-
resolve();
|
4793 |
-
}
|
4794 |
-
|
4795 |
-
const domElement = document.createElement('script');
|
4796 |
-
domElement.src = script.src;
|
4797 |
-
domElement.id = `${script.handle}-js`;
|
4798 |
-
domElement.async = true;
|
4799 |
-
domElement.onload = resolve;
|
4800 |
-
domElement.onerror = reject;
|
4801 |
-
document.body.appendChild(domElement);
|
4802 |
-
});
|
4803 |
-
}
|
4804 |
|
4805 |
/***/ }),
|
4806 |
|
4807 |
-
/***/
|
4808 |
/***/ (function(module, exports, __webpack_require__) {
|
4809 |
|
4810 |
"use strict";
|
@@ -4814,12 +5610,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4814 |
|
4815 |
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
4816 |
|
4817 |
-
var _extends = _interopDefault(__webpack_require__(
|
4818 |
-
var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(
|
4819 |
-
var React = __webpack_require__(
|
4820 |
var React__default = _interopDefault(React);
|
4821 |
-
var _inheritsLoose = _interopDefault(__webpack_require__(
|
4822 |
-
var _assertThisInitialized = _interopDefault(__webpack_require__(
|
4823 |
|
4824 |
var is = {
|
4825 |
arr: Array.isArray,
|
@@ -7133,1067 +7929,1628 @@ exports.useChain = useChain;
|
|
7133 |
exports.useSprings = useSprings;
|
7134 |
|
7135 |
|
7136 |
-
/***/ }),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7137 |
|
7138 |
-
|
7139 |
-
|
|
|
|
|
7140 |
|
7141 |
-
(
|
|
|
|
|
|
|
|
|
|
|
|
|
7142 |
|
7143 |
-
|
|
|
7144 |
|
7145 |
-
|
7146 |
-
|
|
|
7147 |
|
7148 |
-
|
7149 |
-
|
7150 |
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
7151 |
-
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25);
|
7152 |
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
7153 |
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
7154 |
|
|
|
|
|
7155 |
|
|
|
7156 |
|
|
|
|
|
|
|
7157 |
|
|
|
|
|
7158 |
|
7159 |
-
|
7160 |
-
|
|
|
7161 |
|
7162 |
-
|
7163 |
-
|
7164 |
-
|
|
|
|
|
|
|
|
|
|
|
7165 |
}
|
7166 |
|
7167 |
-
|
7168 |
-
|
7169 |
-
|
7170 |
-
}
|
7171 |
-
|
7172 |
-
|
|
|
|
|
7173 |
}
|
7174 |
|
7175 |
-
|
7176 |
-
|
7177 |
-
|
7178 |
-
|
7179 |
-
|
7180 |
-
|
7181 |
-
|
7182 |
-
|
7183 |
-
|
7184 |
-
|
7185 |
-
},
|
7186 |
-
get: function get() {
|
7187 |
-
return value;
|
7188 |
-
},
|
7189 |
-
set: function set(newValue, changedBits) {
|
7190 |
-
value = newValue;
|
7191 |
-
handlers.forEach(function (handler) {
|
7192 |
-
return handler(value, changedBits);
|
7193 |
-
});
|
7194 |
-
}
|
7195 |
-
};
|
7196 |
}
|
7197 |
|
7198 |
-
|
7199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
7200 |
}
|
7201 |
|
7202 |
-
|
7203 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7204 |
|
7205 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7206 |
|
7207 |
-
|
7208 |
-
|
7209 |
|
7210 |
-
|
7211 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7212 |
|
7213 |
-
|
7214 |
-
|
7215 |
-
|
7216 |
-
}
|
7217 |
|
7218 |
-
|
7219 |
|
7220 |
-
|
7221 |
-
|
7222 |
|
7223 |
-
|
7224 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7225 |
|
7226 |
-
|
7227 |
-
|
7228 |
-
|
7229 |
-
|
7230 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7231 |
|
7232 |
-
|
7233 |
-
changedBits = 0;
|
7234 |
-
} else {
|
7235 |
-
changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
|
7236 |
|
7237 |
-
|
|
|
|
|
7238 |
|
7239 |
-
|
|
|
|
|
7240 |
|
7241 |
-
|
7242 |
-
|
7243 |
-
|
7244 |
-
|
7245 |
-
|
7246 |
-
};
|
7247 |
|
7248 |
-
|
7249 |
-
return this.props.children;
|
7250 |
-
};
|
7251 |
|
7252 |
-
|
7253 |
-
|
|
|
7254 |
|
7255 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7256 |
|
7257 |
-
|
7258 |
-
|
|
|
|
|
|
|
|
|
7259 |
|
7260 |
-
|
7261 |
-
|
|
|
|
|
|
|
|
|
|
|
7262 |
|
7263 |
-
|
7264 |
-
|
7265 |
-
|
7266 |
-
|
|
|
|
|
|
|
7267 |
|
7268 |
-
|
7269 |
-
|
7270 |
|
7271 |
-
|
7272 |
-
|
7273 |
-
|
7274 |
-
|
7275 |
-
|
7276 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7277 |
|
7278 |
-
|
7279 |
-
}
|
7280 |
|
7281 |
-
|
|
|
|
|
7282 |
|
7283 |
-
|
7284 |
-
|
7285 |
-
|
7286 |
-
};
|
7287 |
|
7288 |
-
|
7289 |
-
|
7290 |
-
this.context[contextProp].on(this.onUpdate);
|
7291 |
-
}
|
7292 |
|
7293 |
-
var observedBits = this.props.observedBits;
|
7294 |
-
this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
|
7295 |
-
};
|
7296 |
|
7297 |
-
|
7298 |
-
if (this.context[contextProp]) {
|
7299 |
-
this.context[contextProp].off(this.onUpdate);
|
7300 |
-
}
|
7301 |
-
};
|
7302 |
|
7303 |
-
|
7304 |
-
|
7305 |
-
return this.context[contextProp].get();
|
7306 |
-
} else {
|
7307 |
-
return defaultValue;
|
7308 |
-
}
|
7309 |
-
};
|
7310 |
|
7311 |
-
|
7312 |
-
return onlyChild(this.props.children)(this.state.value);
|
7313 |
-
};
|
7314 |
|
7315 |
-
|
7316 |
-
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
|
7317 |
|
7318 |
-
|
7319 |
-
return {
|
7320 |
-
Provider: Provider,
|
7321 |
-
Consumer: Consumer
|
7322 |
-
};
|
7323 |
-
}
|
7324 |
|
7325 |
-
var
|
7326 |
|
7327 |
-
|
|
|
|
|
7328 |
|
7329 |
-
|
7330 |
|
7331 |
/***/ }),
|
7332 |
|
7333 |
-
/***/
|
7334 |
-
/***/ (function(module,
|
7335 |
-
|
7336 |
-
var isarray = __webpack_require__(296)
|
7337 |
|
|
|
|
|
|
|
|
|
|
|
7338 |
/**
|
7339 |
-
*
|
7340 |
*/
|
7341 |
-
module.exports = pathToRegexp
|
7342 |
-
module.exports.parse = parse
|
7343 |
-
module.exports.compile = compile
|
7344 |
-
module.exports.tokensToFunction = tokensToFunction
|
7345 |
-
module.exports.tokensToRegExp = tokensToRegExp
|
7346 |
|
7347 |
/**
|
7348 |
-
*
|
7349 |
*
|
7350 |
-
* @
|
|
|
|
|
7351 |
*/
|
7352 |
-
var PATH_REGEXP = new RegExp([
|
7353 |
-
// Match escaped characters that would otherwise appear in future matches.
|
7354 |
-
// This allows the user to escape special characters that won't transform.
|
7355 |
-
'(\\\\.)',
|
7356 |
-
// Match Express-style parameters and un-named parameters with a prefix
|
7357 |
-
// and optional suffixes. Matches appear as:
|
7358 |
-
//
|
7359 |
-
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
|
7360 |
-
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
|
7361 |
-
// "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
|
7362 |
-
'([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
|
7363 |
-
].join('|'), 'g')
|
7364 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7365 |
/**
|
7366 |
-
*
|
7367 |
*
|
7368 |
-
* @param
|
7369 |
-
* @
|
7370 |
-
* @return {!Array}
|
7371 |
*/
|
7372 |
-
function parse (str, options) {
|
7373 |
-
var tokens = []
|
7374 |
-
var key = 0
|
7375 |
-
var index = 0
|
7376 |
-
var path = ''
|
7377 |
-
var defaultDelimiter = options && options.delimiter || '/'
|
7378 |
-
var res
|
7379 |
-
|
7380 |
-
while ((res = PATH_REGEXP.exec(str)) != null) {
|
7381 |
-
var m = res[0]
|
7382 |
-
var escaped = res[1]
|
7383 |
-
var offset = res.index
|
7384 |
-
path += str.slice(index, offset)
|
7385 |
-
index = offset + m.length
|
7386 |
|
7387 |
-
|
7388 |
-
|
7389 |
-
|
7390 |
-
|
7391 |
-
|
|
|
|
|
7392 |
|
7393 |
-
|
7394 |
-
var prefix = res[2]
|
7395 |
-
var name = res[3]
|
7396 |
-
var capture = res[4]
|
7397 |
-
var group = res[5]
|
7398 |
-
var modifier = res[6]
|
7399 |
-
var asterisk = res[7]
|
7400 |
|
7401 |
-
|
7402 |
-
|
7403 |
-
tokens.push(path)
|
7404 |
-
path = ''
|
7405 |
-
}
|
7406 |
|
7407 |
-
|
7408 |
-
|
7409 |
-
|
7410 |
-
|
7411 |
-
|
7412 |
|
7413 |
-
tokens.push({
|
7414 |
-
name: name || key++,
|
7415 |
-
prefix: prefix || '',
|
7416 |
-
delimiter: delimiter,
|
7417 |
-
optional: optional,
|
7418 |
-
repeat: repeat,
|
7419 |
-
partial: partial,
|
7420 |
-
asterisk: !!asterisk,
|
7421 |
-
pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
|
7422 |
-
})
|
7423 |
-
}
|
7424 |
|
7425 |
-
// Match any characters still remaining.
|
7426 |
-
if (index < str.length) {
|
7427 |
-
path += str.substr(index)
|
7428 |
-
}
|
7429 |
|
7430 |
-
|
7431 |
-
if (path) {
|
7432 |
-
tokens.push(path)
|
7433 |
-
}
|
7434 |
|
7435 |
-
|
7436 |
-
}
|
7437 |
|
7438 |
/**
|
7439 |
-
*
|
7440 |
-
*
|
7441 |
-
* @param {string} str
|
7442 |
-
* @param {Object=} options
|
7443 |
-
* @return {!function(Object=, Object=)}
|
7444 |
*/
|
7445 |
-
function compile (str, options) {
|
7446 |
-
return tokensToFunction(parse(str, options), options)
|
7447 |
-
}
|
7448 |
|
7449 |
-
/**
|
7450 |
-
* Prettier encoding of URI path segments.
|
7451 |
-
*
|
7452 |
-
* @param {string}
|
7453 |
-
* @return {string}
|
7454 |
-
*/
|
7455 |
-
function encodeURIComponentPretty (str) {
|
7456 |
-
return encodeURI(str).replace(/[\/?#]/g, function (c) {
|
7457 |
-
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
7458 |
-
})
|
7459 |
-
}
|
7460 |
|
7461 |
/**
|
7462 |
-
*
|
7463 |
*
|
7464 |
-
* @param
|
7465 |
-
*
|
|
|
|
|
|
|
7466 |
*/
|
7467 |
-
|
7468 |
-
|
7469 |
-
|
7470 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7471 |
}
|
7472 |
|
7473 |
-
|
7474 |
-
|
7475 |
-
*/
|
7476 |
-
function tokensToFunction (tokens, options) {
|
7477 |
-
// Compile all the tokens into regexps.
|
7478 |
-
var matches = new Array(tokens.length)
|
7479 |
|
7480 |
-
|
7481 |
-
for (var i = 0; i < tokens.length; i++) {
|
7482 |
-
if (typeof tokens[i] === 'object') {
|
7483 |
-
matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options))
|
7484 |
-
}
|
7485 |
-
}
|
7486 |
|
7487 |
-
|
7488 |
-
|
7489 |
-
var data = obj || {}
|
7490 |
-
var options = opts || {}
|
7491 |
-
var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent
|
7492 |
|
7493 |
-
|
7494 |
-
var token = tokens[i]
|
7495 |
|
7496 |
-
|
7497 |
-
path += token
|
7498 |
|
7499 |
-
|
7500 |
-
|
7501 |
|
7502 |
-
|
7503 |
-
var segment
|
7504 |
|
7505 |
-
|
7506 |
-
if (token.optional) {
|
7507 |
-
// Prepend partial segment prefixes.
|
7508 |
-
if (token.partial) {
|
7509 |
-
path += token.prefix
|
7510 |
-
}
|
7511 |
|
7512 |
-
|
7513 |
-
|
7514 |
-
throw new TypeError('Expected "' + token.name + '" to be defined')
|
7515 |
-
}
|
7516 |
-
}
|
7517 |
|
7518 |
-
|
7519 |
-
if (!token.repeat) {
|
7520 |
-
throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
|
7521 |
-
}
|
7522 |
|
7523 |
-
|
7524 |
-
if (token.optional) {
|
7525 |
-
continue
|
7526 |
-
} else {
|
7527 |
-
throw new TypeError('Expected "' + token.name + '" to not be empty')
|
7528 |
-
}
|
7529 |
-
}
|
7530 |
|
7531 |
-
|
7532 |
-
|
7533 |
|
7534 |
-
|
7535 |
-
throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
|
7536 |
-
}
|
7537 |
|
7538 |
-
|
7539 |
-
}
|
7540 |
|
7541 |
-
|
7542 |
-
|
7543 |
|
7544 |
-
|
7545 |
|
7546 |
-
|
7547 |
-
throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
|
7548 |
-
}
|
7549 |
|
7550 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7551 |
}
|
7552 |
|
7553 |
-
return
|
7554 |
-
}
|
7555 |
-
}
|
7556 |
|
7557 |
-
|
7558 |
-
* Escape a regular expression string.
|
7559 |
-
*
|
7560 |
-
* @param {string} str
|
7561 |
-
* @return {string}
|
7562 |
-
*/
|
7563 |
-
function escapeString (str) {
|
7564 |
-
return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
|
7565 |
}
|
7566 |
|
7567 |
-
|
7568 |
-
|
7569 |
-
|
7570 |
-
|
7571 |
-
|
7572 |
-
|
7573 |
-
|
7574 |
-
|
7575 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7576 |
|
7577 |
-
/**
|
7578 |
-
* Attach the keys as a property of the regexp.
|
7579 |
-
*
|
7580 |
-
* @param {!RegExp} re
|
7581 |
-
* @param {Array} keys
|
7582 |
-
* @return {!RegExp}
|
7583 |
-
*/
|
7584 |
-
function attachKeys (re, keys) {
|
7585 |
-
re.keys = keys
|
7586 |
-
return re
|
7587 |
-
}
|
7588 |
|
7589 |
/**
|
7590 |
-
*
|
7591 |
-
*
|
7592 |
-
* @param {Object} options
|
7593 |
-
* @return {string}
|
7594 |
*/
|
7595 |
-
|
7596 |
-
|
7597 |
-
|
|
|
|
|
|
|
|
|
|
|
7598 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7599 |
/**
|
7600 |
-
*
|
7601 |
*
|
7602 |
-
* @param
|
7603 |
-
* @param
|
7604 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7605 |
*/
|
7606 |
-
function regexpToRegexp (path, keys) {
|
7607 |
-
// Use a negative lookahead to match only capturing groups.
|
7608 |
-
var groups = path.source.match(/\((?!\?)/g)
|
7609 |
|
7610 |
-
|
7611 |
-
|
7612 |
-
|
7613 |
-
|
7614 |
-
|
7615 |
-
|
7616 |
-
|
7617 |
-
|
7618 |
-
partial: false,
|
7619 |
-
asterisk: false,
|
7620 |
-
pattern: null
|
7621 |
-
})
|
7622 |
-
}
|
7623 |
}
|
7624 |
|
7625 |
-
|
|
|
7626 |
}
|
7627 |
-
|
7628 |
/**
|
7629 |
-
*
|
7630 |
*
|
7631 |
-
*
|
7632 |
-
*
|
7633 |
-
*
|
7634 |
-
* @
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7635 |
*/
|
7636 |
-
function arrayToRegexp (path, keys, options) {
|
7637 |
-
var parts = []
|
7638 |
|
7639 |
-
|
7640 |
-
|
7641 |
-
|
|
|
7642 |
|
7643 |
-
|
|
|
|
|
7644 |
|
7645 |
-
|
7646 |
}
|
7647 |
-
|
7648 |
/**
|
7649 |
-
*
|
7650 |
*
|
7651 |
-
* @param
|
7652 |
-
* @
|
7653 |
-
* @param {!Object} options
|
7654 |
-
* @return {!RegExp}
|
7655 |
*/
|
7656 |
-
|
7657 |
-
|
|
|
7658 |
}
|
7659 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7660 |
/**
|
7661 |
-
*
|
7662 |
-
*
|
7663 |
-
* @param {!Array} tokens
|
7664 |
-
* @param {(Array|Object)=} keys
|
7665 |
-
* @param {Object=} options
|
7666 |
-
* @return {!RegExp}
|
7667 |
*/
|
7668 |
-
function tokensToRegExp (tokens, keys, options) {
|
7669 |
-
if (!isarray(keys)) {
|
7670 |
-
options = /** @type {!Object} */ (keys || options)
|
7671 |
-
keys = []
|
7672 |
-
}
|
7673 |
|
7674 |
-
options = options || {}
|
7675 |
|
7676 |
-
var strict = options.strict
|
7677 |
-
var end = options.end !== false
|
7678 |
-
var route = ''
|
7679 |
|
7680 |
-
// Iterate over the tokens and create our regexp string.
|
7681 |
-
for (var i = 0; i < tokens.length; i++) {
|
7682 |
-
var token = tokens[i]
|
7683 |
|
7684 |
-
if (typeof token === 'string') {
|
7685 |
-
route += escapeString(token)
|
7686 |
-
} else {
|
7687 |
-
var prefix = escapeString(token.prefix)
|
7688 |
-
var capture = '(?:' + token.pattern + ')'
|
7689 |
|
7690 |
-
keys.push(token)
|
7691 |
|
7692 |
-
if (token.repeat) {
|
7693 |
-
capture += '(?:' + prefix + capture + ')*'
|
7694 |
-
}
|
7695 |
|
7696 |
-
|
7697 |
-
|
7698 |
-
capture = '(?:' + prefix + '(' + capture + '))?'
|
7699 |
-
} else {
|
7700 |
-
capture = prefix + '(' + capture + ')?'
|
7701 |
-
}
|
7702 |
-
} else {
|
7703 |
-
capture = prefix + '(' + capture + ')'
|
7704 |
-
}
|
7705 |
|
7706 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7707 |
}
|
7708 |
-
}
|
|
|
7709 |
|
7710 |
-
|
7711 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7712 |
|
7713 |
-
|
7714 |
-
|
7715 |
-
|
7716 |
-
|
7717 |
-
if (!strict) {
|
7718 |
-
route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?'
|
7719 |
-
}
|
7720 |
|
7721 |
-
|
7722 |
-
|
7723 |
-
} else {
|
7724 |
-
// In non-ending mode, we need the capturing groups to match as much as
|
7725 |
-
// possible by using a positive lookahead to the end or next path segment.
|
7726 |
-
route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)'
|
7727 |
}
|
7728 |
|
7729 |
-
|
7730 |
-
|
|
|
7731 |
|
7732 |
-
|
7733 |
-
|
7734 |
-
|
7735 |
-
* An empty array can be passed in for the keys, which will hold the
|
7736 |
-
* placeholder key descriptions. For example, using `/user/:id`, `keys` will
|
7737 |
-
* contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
|
7738 |
-
*
|
7739 |
-
* @param {(string|RegExp|Array)} path
|
7740 |
-
* @param {(Array|Object)=} keys
|
7741 |
-
* @param {Object=} options
|
7742 |
-
* @return {!RegExp}
|
7743 |
-
*/
|
7744 |
-
function pathToRegexp (path, keys, options) {
|
7745 |
-
if (!isarray(keys)) {
|
7746 |
-
options = /** @type {!Object} */ (keys || options)
|
7747 |
-
keys = []
|
7748 |
}
|
7749 |
|
7750 |
-
|
7751 |
|
7752 |
-
|
7753 |
-
|
7754 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7755 |
|
7756 |
-
if (
|
7757 |
-
|
|
|
|
|
|
|
7758 |
}
|
7759 |
|
7760 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7761 |
}
|
7762 |
|
|
|
|
|
7763 |
|
7764 |
/***/ }),
|
7765 |
|
7766 |
-
/***/
|
7767 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7768 |
|
7769 |
"use strict";
|
7770 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return
|
7771 |
-
|
7772 |
-
|
7773 |
-
|
7774 |
-
/**
|
7775 |
-
* External dependencies
|
7776 |
-
*/
|
7777 |
-
|
7778 |
/**
|
7779 |
-
*
|
7780 |
*
|
7781 |
-
* @param {
|
7782 |
-
*
|
7783 |
-
* @
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7784 |
*/
|
7785 |
|
7786 |
-
function getUnreadNotesCount(notes, lastRead) {
|
7787 |
-
const unreadNotes = Object(lodash__WEBPACK_IMPORTED_MODULE_0__["filter"])(notes, note => {
|
7788 |
-
const {
|
7789 |
-
is_deleted: isDeleted,
|
7790 |
-
date_created_gmt: dateCreatedGmt,
|
7791 |
-
status
|
7792 |
-
} = note;
|
7793 |
|
7794 |
-
|
7795 |
-
|
7796 |
-
|
7797 |
-
|
7798 |
-
});
|
7799 |
-
return unreadNotes.length;
|
7800 |
-
}
|
7801 |
-
/**
|
7802 |
-
* Verifies if there are any valid notes in the list.
|
7803 |
-
*
|
7804 |
-
* @param {Array} notes - List of notes, contains read and unread notes.
|
7805 |
-
* @return {boolean} - Whether there are valid notes or not.
|
7806 |
-
*/
|
7807 |
|
7808 |
-
|
7809 |
-
|
7810 |
-
|
7811 |
-
|
7812 |
-
|
7813 |
-
|
7814 |
-
|
7815 |
-
|
|
|
7816 |
}
|
|
|
|
|
7817 |
|
7818 |
/***/ }),
|
7819 |
|
7820 |
-
/***/
|
7821 |
/***/ (function(module, exports) {
|
7822 |
|
7823 |
-
(function() { module.exports =
|
7824 |
|
7825 |
/***/ }),
|
7826 |
|
7827 |
-
/***/
|
7828 |
-
/***/ (function(module,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7829 |
|
7830 |
-
"use strict";
|
7831 |
|
7832 |
|
7833 |
-
Object.defineProperty(exports, "__esModule", {
|
7834 |
-
value: true
|
7835 |
-
});
|
7836 |
|
7837 |
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /**
|
7838 |
-
* External Dependencies
|
7839 |
-
*/
|
7840 |
|
7841 |
|
|
|
|
|
|
|
7842 |
/**
|
7843 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7844 |
*/
|
7845 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7846 |
|
7847 |
-
|
7848 |
-
|
7849 |
-
|
7850 |
-
|
7851 |
-
var _reactAddonsCreateFragment = __webpack_require__(69);
|
7852 |
|
7853 |
-
var _reactAddonsCreateFragment2 = _interopRequireDefault(_reactAddonsCreateFragment);
|
7854 |
|
7855 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7856 |
|
7857 |
-
var _tokenize2 = _interopRequireDefault(_tokenize);
|
7858 |
|
7859 |
-
|
|
|
|
|
7860 |
|
7861 |
-
var
|
|
|
|
|
|
|
|
|
|
|
7862 |
|
7863 |
-
function
|
7864 |
-
|
7865 |
-
|
7866 |
-
token,
|
7867 |
-
i;
|
7868 |
-
for (i = openIndex + 1; i < tokens.length; i++) {
|
7869 |
-
token = tokens[i];
|
7870 |
-
if (token.value === openToken.value) {
|
7871 |
-
if (token.type === 'componentOpen') {
|
7872 |
-
nestLevel++;
|
7873 |
-
continue;
|
7874 |
-
}
|
7875 |
-
if (token.type === 'componentClose') {
|
7876 |
-
if (nestLevel === 0) {
|
7877 |
-
return i;
|
7878 |
-
}
|
7879 |
-
nestLevel--;
|
7880 |
-
}
|
7881 |
-
}
|
7882 |
-
}
|
7883 |
-
// if we get this far, there was no matching close token
|
7884 |
-
throw new Error('Missing closing component token `' + openToken.value + '`');
|
7885 |
-
}
|
7886 |
-
|
7887 |
-
function buildChildren(tokens, components) {
|
7888 |
-
var children = [],
|
7889 |
-
childrenObject = {},
|
7890 |
-
openComponent,
|
7891 |
-
clonedOpenComponent,
|
7892 |
-
openIndex,
|
7893 |
-
closeIndex,
|
7894 |
-
token,
|
7895 |
-
i,
|
7896 |
-
grandChildTokens,
|
7897 |
-
grandChildren,
|
7898 |
-
siblingTokens,
|
7899 |
-
siblings;
|
7900 |
-
|
7901 |
-
for (i = 0; i < tokens.length; i++) {
|
7902 |
-
token = tokens[i];
|
7903 |
-
if (token.type === 'string') {
|
7904 |
-
children.push(token.value);
|
7905 |
-
continue;
|
7906 |
-
}
|
7907 |
-
// component node should at least be set
|
7908 |
-
if (!components.hasOwnProperty(token.value) || typeof components[token.value] === 'undefined') {
|
7909 |
-
throw new Error('Invalid interpolation, missing component node: `' + token.value + '`');
|
7910 |
-
}
|
7911 |
-
// should be either ReactElement or null (both type "object"), all other types deprecated
|
7912 |
-
if (_typeof(components[token.value]) !== 'object') {
|
7913 |
-
throw new Error('Invalid interpolation, component node must be a ReactElement or null: `' + token.value + '`', '\n> ' + currentMixedString);
|
7914 |
-
}
|
7915 |
-
// we should never see a componentClose token in this loop
|
7916 |
-
if (token.type === 'componentClose') {
|
7917 |
-
throw new Error('Missing opening component token: `' + token.value + '`');
|
7918 |
-
}
|
7919 |
-
if (token.type === 'componentOpen') {
|
7920 |
-
openComponent = components[token.value];
|
7921 |
-
openIndex = i;
|
7922 |
-
break;
|
7923 |
-
}
|
7924 |
-
// componentSelfClosing token
|
7925 |
-
children.push(components[token.value]);
|
7926 |
-
continue;
|
7927 |
-
}
|
7928 |
|
7929 |
-
|
7930 |
-
|
7931 |
-
|
7932 |
-
|
7933 |
-
|
7934 |
-
|
7935 |
-
|
7936 |
-
if (closeIndex < tokens.length - 1) {
|
7937 |
-
siblingTokens = tokens.slice(closeIndex + 1);
|
7938 |
-
siblings = buildChildren(siblingTokens, components);
|
7939 |
-
children = children.concat(siblings);
|
7940 |
-
}
|
7941 |
-
}
|
7942 |
|
7943 |
-
|
7944 |
-
|
7945 |
-
|
|
|
|
|
|
|
|
|
|
|
7946 |
|
7947 |
-
|
7948 |
-
|
7949 |
-
|
7950 |
-
|
7951 |
-
|
|
|
|
|
|
|
|
|
7952 |
|
7953 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7954 |
}
|
7955 |
|
7956 |
-
|
7957 |
-
|
7958 |
-
|
7959 |
-
|
|
|
7960 |
|
|
|
|
|
|
|
|
|
7961 |
|
7962 |
-
|
|
|
|
|
|
|
7963 |
|
7964 |
-
|
7965 |
-
|
7966 |
-
|
|
|
7967 |
|
7968 |
-
|
7969 |
-
|
7970 |
-
|
7971 |
-
|
7972 |
|
7973 |
-
|
7974 |
-
|
|
|
|
|
7975 |
|
7976 |
-
|
|
|
|
|
|
|
7977 |
|
7978 |
-
|
7979 |
-
|
7980 |
-
|
7981 |
-
|
7982 |
-
throw new Error('Interpolation Error: unable to process `' + mixedString + '` because of error `' + error.message + '`');
|
7983 |
-
}
|
7984 |
|
7985 |
-
|
7986 |
-
|
7987 |
-
|
|
|
7988 |
|
7989 |
-
|
7990 |
-
|
|
|
|
|
|
|
7991 |
|
7992 |
-
|
|
|
|
|
|
|
|
|
7993 |
|
7994 |
-
/***/ 19:
|
7995 |
-
/***/ (function(module, exports) {
|
7996 |
|
7997 |
-
(
|
|
|
|
|
|
|
7998 |
|
7999 |
-
|
|
|
|
|
|
|
8000 |
|
8001 |
-
|
8002 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8003 |
|
8004 |
-
|
|
|
8005 |
|
8006 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
8007 |
|
8008 |
-
|
8009 |
-
|
8010 |
|
8011 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8012 |
|
8013 |
-
|
|
|
|
|
8014 |
|
8015 |
-
/***/ 21:
|
8016 |
-
/***/ (function(module, exports) {
|
8017 |
|
8018 |
-
|
|
|
|
|
|
|
|
|
8019 |
|
8020 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8021 |
|
8022 |
-
|
8023 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8024 |
|
8025 |
-
|
8026 |
-
|
8027 |
-
|
8028 |
-
|
8029 |
-
|
8030 |
-
|
8031 |
-
var key, i;
|
8032 |
|
8033 |
-
|
8034 |
-
key = sourceKeys[i];
|
8035 |
-
if (excluded.indexOf(key) >= 0) continue;
|
8036 |
-
target[key] = source[key];
|
8037 |
-
}
|
8038 |
|
8039 |
-
return target;
|
8040 |
-
}
|
8041 |
|
8042 |
-
|
8043 |
|
8044 |
-
|
8045 |
-
|
|
|
8046 |
|
8047 |
-
|
8048 |
-
|
8049 |
-
|
8050 |
-
_extends = Object.assign || function (target) {
|
8051 |
-
for (var i = 1; i < arguments.length; i++) {
|
8052 |
-
var source = arguments[i];
|
8053 |
|
8054 |
-
for (var key in source) {
|
8055 |
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
8056 |
-
target[key] = source[key];
|
8057 |
-
}
|
8058 |
-
}
|
8059 |
-
}
|
8060 |
|
8061 |
-
return target;
|
8062 |
-
};
|
8063 |
|
8064 |
-
|
8065 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8066 |
|
8067 |
-
|
|
|
8068 |
|
8069 |
-
|
8070 |
-
|
|
|
|
|
8071 |
|
8072 |
-
|
|
|
8073 |
|
8074 |
-
|
8075 |
-
|
|
|
8076 |
|
8077 |
-
|
8078 |
-
|
8079 |
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
8080 |
-
o.__proto__ = p;
|
8081 |
-
return o;
|
8082 |
-
};
|
8083 |
|
8084 |
-
|
|
|
|
|
|
|
|
|
|
|
8085 |
}
|
8086 |
-
// CONCATENATED MODULE: ./
|
8087 |
-
|
8088 |
-
|
8089 |
-
subClass.prototype = Object.create(superClass.prototype);
|
8090 |
-
subClass.prototype.constructor = subClass;
|
8091 |
-
_setPrototypeOf(subClass, superClass);
|
8092 |
}
|
|
|
8093 |
|
8094 |
-
/***/ }),
|
8095 |
|
8096 |
-
/***/ 252:
|
8097 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
8098 |
|
8099 |
-
|
8100 |
|
8101 |
-
|
8102 |
-
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Fill; });
|
8103 |
-
__webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ DisplayOptions; });
|
8104 |
|
8105 |
-
|
8106 |
-
|
|
|
8107 |
|
8108 |
-
|
8109 |
-
|
|
|
8110 |
|
8111 |
-
|
8112 |
-
var
|
|
|
8113 |
|
8114 |
-
|
8115 |
-
|
|
|
|
|
|
|
8116 |
|
8117 |
-
|
8118 |
-
|
|
|
|
|
|
|
8119 |
|
8120 |
-
|
8121 |
-
|
|
|
8122 |
|
8123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8124 |
|
|
|
|
|
|
|
|
|
8125 |
|
|
|
|
|
8126 |
/**
|
8127 |
* External dependencies
|
8128 |
*/
|
8129 |
|
8130 |
-
const DisplayIcon = () => Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("svg", {
|
8131 |
-
className: "woocommerce-layout__activity-panel-tab-icon",
|
8132 |
-
width: "24",
|
8133 |
-
height: "24",
|
8134 |
-
viewBox: "3 3 24 24",
|
8135 |
-
fill: "none",
|
8136 |
-
xmlns: "http://www.w3.org/2000/svg"
|
8137 |
-
}, Object(external_wp_element_["createElement"])("path", {
|
8138 |
-
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",
|
8139 |
-
strokeWidth: "1.5",
|
8140 |
-
strokeLinecap: "round",
|
8141 |
-
strokeLinejoin: "round"
|
8142 |
-
}), Object(external_wp_element_["createElement"])("path", {
|
8143 |
-
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",
|
8144 |
-
strokeWidth: "1.5",
|
8145 |
-
strokeLinecap: "round",
|
8146 |
-
strokeLinejoin: "round"
|
8147 |
-
}), Object(external_wp_element_["createElement"])("path", {
|
8148 |
-
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",
|
8149 |
-
strokeWidth: "1.5",
|
8150 |
-
strokeLinecap: "round",
|
8151 |
-
strokeLinejoin: "round"
|
8152 |
-
}), Object(external_wp_element_["createElement"])("path", {
|
8153 |
-
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",
|
8154 |
-
strokeWidth: "1.5",
|
8155 |
-
strokeLinecap: "round",
|
8156 |
-
strokeLinejoin: "round"
|
8157 |
-
})), Object(external_wp_i18n_["__"])('Display', 'woocommerce-admin'));
|
8158 |
-
// CONCATENATED MODULE: ./client/header/activity-panel/display-options/icons/single-column.js
|
8159 |
|
8160 |
-
|
8161 |
-
|
8162 |
-
|
8163 |
-
|
8164 |
-
|
8165 |
-
|
8166 |
-
xmlns: "http://www.w3.org/2000/svg"
|
8167 |
-
}, Object(external_wp_element_["createElement"])("rect", {
|
8168 |
-
x: "0.5",
|
8169 |
-
y: "0.5",
|
8170 |
-
width: "11",
|
8171 |
-
height: "13",
|
8172 |
-
strokeWidth: "1"
|
8173 |
-
}));
|
8174 |
-
// CONCATENATED MODULE: ./client/header/activity-panel/display-options/icons/two-columns.js
|
8175 |
|
8176 |
-
|
8177 |
-
|
8178 |
-
|
8179 |
-
|
8180 |
-
|
8181 |
-
|
8182 |
-
|
8183 |
-
|
8184 |
-
x: "0.5",
|
8185 |
-
y: "0.5",
|
8186 |
-
width: "7",
|
8187 |
-
height: "13",
|
8188 |
-
strokeWidth: "1"
|
8189 |
-
}), Object(external_wp_element_["createElement"])("rect", {
|
8190 |
-
x: "9.5",
|
8191 |
-
y: "0.5",
|
8192 |
-
width: "7",
|
8193 |
-
height: "13",
|
8194 |
-
strokeWidth: "1"
|
8195 |
}));
|
8196 |
-
// CONCATENATED MODULE: ./client/
|
8197 |
|
8198 |
|
8199 |
/**
|
@@ -8203,7 +9560,6 @@ const TwoColumnsIcon = () => Object(external_wp_element_["createElement"])("svg"
|
|
8203 |
|
8204 |
|
8205 |
|
8206 |
-
|
8207 |
/**
|
8208 |
* Internal dependencies
|
8209 |
*/
|
@@ -8211,901 +9567,653 @@ const TwoColumnsIcon = () => Object(external_wp_element_["createElement"])("svg"
|
|
8211 |
|
8212 |
|
8213 |
|
8214 |
-
|
8215 |
-
|
8216 |
-
|
8217 |
-
|
8218 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
8219 |
|
8220 |
-
|
8221 |
-
|
8222 |
-
|
8223 |
-
|
8224 |
-
value: 'two_columns',
|
8225 |
-
label: Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(TwoColumnsIcon, null), Object(external_wp_i18n_["__"])('Two columns', 'woocommerce-admin'))
|
8226 |
-
}];
|
8227 |
-
const DisplayOptions = () => {
|
8228 |
-
const {
|
8229 |
-
defaultHomescreenLayout,
|
8230 |
-
taskListComplete,
|
8231 |
-
isTaskListHidden
|
8232 |
-
} = Object(external_wp_data_["useSelect"])(select => {
|
8233 |
-
const {
|
8234 |
-
getOption
|
8235 |
-
} = select(external_wc_data_["OPTIONS_STORE_NAME"]);
|
8236 |
-
return {
|
8237 |
-
defaultHomescreenLayout: getOption('woocommerce_default_homepage_layout') || 'single_column',
|
8238 |
-
taskListComplete: getOption('woocommerce_task_list_complete') === 'yes',
|
8239 |
-
isTaskListHidden: getOption('woocommerce_task_list_hidden') === 'yes'
|
8240 |
-
};
|
8241 |
-
});
|
8242 |
-
const {
|
8243 |
-
updateUserPreferences,
|
8244 |
-
homepage_layout: layout
|
8245 |
-
} = Object(external_wc_data_["useUserPreferences"])();
|
8246 |
-
const shouldShowStoreLinks = taskListComplete || isTaskListHidden;
|
8247 |
-
const hasTwoColumnContent = shouldShowStoreLinks || window.wcAdminFeatures.analytics;
|
8248 |
-
return Object(external_wp_element_["createElement"])(Slot, null, fills => {
|
8249 |
-
// If there is no fill to render and only single column content, don't render the display.
|
8250 |
-
if (fills.length === 0 && !hasTwoColumnContent) {
|
8251 |
-
return null;
|
8252 |
-
}
|
8253 |
|
8254 |
-
|
8255 |
-
|
8256 |
-
|
8257 |
-
|
8258 |
-
|
8259 |
-
|
8260 |
-
className: 'woocommerce-layout__activity-panel-tab display-options',
|
8261 |
-
onClick: () => Object(external_wc_tracks_["recordEvent"])('homescreen_display_click')
|
8262 |
-
},
|
8263 |
-
popoverProps: {
|
8264 |
-
className: 'woocommerce-layout__activity-panel-popover'
|
8265 |
-
}
|
8266 |
-
}, ({
|
8267 |
-
onClose
|
8268 |
-
}) => Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, fills, hasTwoColumnContent ? Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], {
|
8269 |
-
className: "woocommerce-layout__homescreen-display-options",
|
8270 |
-
label: Object(external_wp_i18n_["__"])('Layout', 'woocommerce-admin')
|
8271 |
-
}, Object(external_wp_element_["createElement"])(external_wp_components_["MenuItemsChoice"], {
|
8272 |
-
choices: LAYOUTS,
|
8273 |
-
onSelect: newLayout => {
|
8274 |
-
updateUserPreferences({
|
8275 |
-
homepage_layout: newLayout
|
8276 |
-
});
|
8277 |
-
onClose();
|
8278 |
-
Object(external_wc_tracks_["recordEvent"])('homescreen_display_option', {
|
8279 |
-
display_option: newLayout
|
8280 |
-
});
|
8281 |
-
},
|
8282 |
-
value: layout || defaultHomescreenLayout
|
8283 |
-
})) : null));
|
8284 |
});
|
8285 |
-
};
|
8286 |
|
8287 |
-
|
|
|
|
|
8288 |
|
8289 |
-
|
8290 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8291 |
|
8292 |
-
|
|
|
|
|
|
|
|
|
8293 |
|
8294 |
-
|
8295 |
-
|
8296 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8297 |
|
8298 |
-
// EXTERNAL MODULE: external ["wp","element"]
|
8299 |
-
var external_wp_element_ = __webpack_require__(0);
|
8300 |
|
8301 |
-
// EXTERNAL MODULE: external ["wp","i18n"]
|
8302 |
-
var external_wp_i18n_ = __webpack_require__(2);
|
8303 |
|
8304 |
-
|
8305 |
-
|
|
|
|
|
8306 |
|
8307 |
-
|
8308 |
-
var external_wc_tracks_ = __webpack_require__(16);
|
8309 |
|
8310 |
-
|
8311 |
-
var external_wc_components_ = __webpack_require__(21);
|
8312 |
|
8313 |
-
|
8314 |
-
|
8315 |
|
8316 |
-
|
8317 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8318 |
|
8319 |
-
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/page.js
|
8320 |
-
var page = __webpack_require__(494);
|
8321 |
|
8322 |
-
|
8323 |
-
|
|
|
8324 |
|
8325 |
-
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/comment.js
|
8326 |
|
8327 |
|
8328 |
/**
|
8329 |
-
*
|
8330 |
*/
|
8331 |
|
8332 |
-
var comment = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
|
8333 |
-
viewBox: "0 0 24 24",
|
8334 |
-
xmlns: "http://www.w3.org/2000/svg"
|
8335 |
-
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
|
8336 |
-
d: "M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"
|
8337 |
-
}));
|
8338 |
-
/* harmony default export */ var library_comment = (comment);
|
8339 |
-
//# sourceMappingURL=comment.js.map
|
8340 |
-
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/box.js
|
8341 |
-
var box = __webpack_require__(495);
|
8342 |
|
8343 |
-
// EXTERNAL MODULE: external ["wp","components"]
|
8344 |
-
var external_wp_components_ = __webpack_require__(4);
|
8345 |
|
8346 |
-
//
|
8347 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
8348 |
|
8349 |
-
|
8350 |
-
var
|
|
|
8351 |
|
8352 |
-
|
8353 |
-
|
8354 |
-
|
8355 |
-
|
8356 |
-
|
8357 |
-
const Bell = () => Object(external_wp_element_["createElement"])("svg", {
|
8358 |
-
width: "24",
|
8359 |
-
height: "24",
|
8360 |
-
viewBox: "0 0 24 24",
|
8361 |
-
xmlns: "http://www.w3.org/2000/svg"
|
8362 |
-
}, Object(external_wp_element_["createElement"])("path", {
|
8363 |
-
d: "M0 0h24v24H0z",
|
8364 |
-
fill: "none"
|
8365 |
-
}), Object(external_wp_element_["createElement"])("path", {
|
8366 |
-
d: "M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"
|
8367 |
-
}));
|
8368 |
-
// CONCATENATED MODULE: ./client/header/activity-panel/panels/inbox/abbreviated-notifications-panel.js
|
8369 |
|
|
|
|
|
|
|
8370 |
|
8371 |
-
|
8372 |
-
|
8373 |
-
*/
|
8374 |
|
|
|
|
|
|
|
8375 |
|
8376 |
|
|
|
|
|
8377 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8378 |
|
8379 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8380 |
|
|
|
8381 |
|
8382 |
-
|
8383 |
-
|
8384 |
-
*/
|
8385 |
|
|
|
8386 |
|
|
|
8387 |
|
|
|
|
|
8388 |
|
|
|
8389 |
|
8390 |
-
|
8391 |
-
const ORDER_PANEL_ID = 'orders-panel';
|
8392 |
-
const REVIEWS_PANEL_ID = 'reviews-panel';
|
8393 |
-
const STOCK_PANEL_ID = 'stock-panel';
|
8394 |
-
const ABBREVIATED_NOTIFICATION_SLOT_NAME = 'AbbreviatedNotification';
|
8395 |
-
const AbbreviatedNotificationsPanel = ({
|
8396 |
-
thingsToDoNextCount
|
8397 |
-
}) => {
|
8398 |
-
const {
|
8399 |
-
ordersToProcessCount,
|
8400 |
-
reviewsToModerateCount,
|
8401 |
-
stockNoticesCount,
|
8402 |
-
isSetupTaskListHidden,
|
8403 |
-
isExtendedTaskListHidden
|
8404 |
-
} = Object(external_wp_data_["useSelect"])(select => {
|
8405 |
-
const {
|
8406 |
-
getOption
|
8407 |
-
} = select(external_wc_data_["OPTIONS_STORE_NAME"]);
|
8408 |
-
const orderStatuses = Object(utils["c" /* getOrderStatuses */])(select);
|
8409 |
-
return {
|
8410 |
-
ordersToProcessCount: Object(utils["d" /* getUnreadOrders */])(select, orderStatuses),
|
8411 |
-
reviewsToModerateCount: Object(reviews_utils["b" /* getUnapprovedReviews */])(select),
|
8412 |
-
stockNoticesCount: Object(utils["a" /* getLowStockCount */])(select),
|
8413 |
-
isSetupTaskListHidden: getOption('woocommerce_task_list_hidden') === 'yes',
|
8414 |
-
isExtendedTaskListHidden: getOption('woocommerce_extended_task_list_hidden') === 'yes'
|
8415 |
-
};
|
8416 |
-
});
|
8417 |
|
8418 |
-
|
8419 |
-
|
8420 |
-
task: name
|
8421 |
-
});
|
8422 |
-
};
|
8423 |
|
8424 |
-
|
8425 |
-
Slot
|
8426 |
-
} = Object(external_wp_components_["createSlotFill"])(ABBREVIATED_NOTIFICATION_SLOT_NAME);
|
8427 |
-
const isWCAdminPage = Object(dashboard_utils["f" /* isWCAdmin */])(window.location.href);
|
8428 |
-
return Object(external_wp_element_["createElement"])("div", {
|
8429 |
-
className: "woocommerce-abbreviated-notifications"
|
8430 |
-
}, thingsToDoNextCount > 0 && !isExtendedTaskListHidden && Object(external_wp_element_["createElement"])(external_wc_components_["AbbreviatedCard"], {
|
8431 |
-
className: "woocommerce-abbreviated-notification",
|
8432 |
-
icon: Object(external_wp_element_["createElement"])(Bell, null),
|
8433 |
-
href: `admin.php?page=wc-admin#${EXTENDED_TASK_LIST_ID}`,
|
8434 |
-
onClick: () => trackAbbreviatedCardClick('thingsToDoNext'),
|
8435 |
-
type: isWCAdminPage ? 'wc-admin' : 'wp-admin'
|
8436 |
-
}, Object(external_wp_element_["createElement"])(external_wc_experimental_["Text"], {
|
8437 |
-
as: "h3"
|
8438 |
-
}, Object(external_wp_i18n_["__"])('Things to do next', 'woocommerce-admin')), Object(external_wp_element_["createElement"])(external_wc_experimental_["Text"], {
|
8439 |
-
as: "p"
|
8440 |
-
}, Object(external_wp_i18n_["sprintf"])(
|
8441 |
-
/* translators: Things the user has to do */
|
8442 |
-
Object(external_wp_i18n_["_n"])('You have %d new thing to do', 'You have %d new things to do', thingsToDoNextCount, 'woocommerce-admin'), thingsToDoNextCount))), ordersToProcessCount > 0 && isSetupTaskListHidden && Object(external_wp_element_["createElement"])(external_wc_components_["AbbreviatedCard"], {
|
8443 |
-
className: "woocommerce-abbreviated-notification",
|
8444 |
-
icon: page["a" /* default */],
|
8445 |
-
href: `admin.php?page=wc-admin&opened_panel=${ORDER_PANEL_ID}`,
|
8446 |
-
onClick: () => trackAbbreviatedCardClick('ordersToProcess'),
|
8447 |
-
type: isWCAdminPage ? 'wc-admin' : 'wp-admin'
|
8448 |
-
}, Object(external_wp_element_["createElement"])(external_wc_experimental_["Text"], {
|
8449 |
-
as: "h3"
|
8450 |
-
}, Object(external_wp_i18n_["__"])('Orders to fulfill', 'woocommerce-admin')), Object(external_wp_element_["createElement"])(external_wc_experimental_["Text"], null, Object(external_wp_i18n_["sprintf"])(
|
8451 |
-
/* translators: Number of orders the user has to fulfill */
|
8452 |
-
Object(external_wp_i18n_["_n"])('You have %d order to fulfill', 'You have %d orders to fulfill', ordersToProcessCount, 'woocommerce-admin'), ordersToProcessCount))), reviewsToModerateCount > 0 && isSetupTaskListHidden && Object(external_wp_element_["createElement"])(external_wc_components_["AbbreviatedCard"], {
|
8453 |
-
className: "woocommerce-abbreviated-notification",
|
8454 |
-
icon: library_comment,
|
8455 |
-
href: `admin.php?page=wc-admin&opened_panel=${REVIEWS_PANEL_ID}`,
|
8456 |
-
onClick: () => trackAbbreviatedCardClick('reviewsToModerate'),
|
8457 |
-
type: isWCAdminPage ? 'wc-admin' : 'wp-admin'
|
8458 |
-
}, Object(external_wp_element_["createElement"])(external_wc_experimental_["Text"], {
|
8459 |
-
as: "h3"
|
8460 |
-
}, Object(external_wp_i18n_["__"])('Reviews to moderate', 'woocommerce-admin')), Object(external_wp_element_["createElement"])(external_wc_experimental_["Text"], null, Object(external_wp_i18n_["sprintf"])(
|
8461 |
-
/* translators: Number of reviews the user has to moderate */
|
8462 |
-
Object(external_wp_i18n_["_n"])('You have %d review to moderate', 'You have %d reviews to moderate', reviewsToModerateCount, 'woocommerce-admin'), reviewsToModerateCount))), stockNoticesCount > 0 && isSetupTaskListHidden && Object(external_wp_element_["createElement"])(external_wc_components_["AbbreviatedCard"], {
|
8463 |
-
className: "woocommerce-abbreviated-notification",
|
8464 |
-
icon: box["a" /* default */],
|
8465 |
-
href: `admin.php?page=wc-admin&opened_panel=${STOCK_PANEL_ID}`,
|
8466 |
-
onClick: () => trackAbbreviatedCardClick('stockNotices'),
|
8467 |
-
type: isWCAdminPage ? 'wc-admin' : 'wp-admin'
|
8468 |
-
}, Object(external_wp_element_["createElement"])(external_wc_experimental_["Text"], {
|
8469 |
-
as: "h3"
|
8470 |
-
}, Object(external_wp_i18n_["__"])('Inventory to review', 'woocommerce-admin')), Object(external_wp_element_["createElement"])(external_wc_experimental_["Text"], null, Object(external_wp_i18n_["__"])('You have inventory to review and update', 'woocommerce-admin'))), !isExtendedTaskListHidden && Object(external_wp_element_["createElement"])(Slot, null));
|
8471 |
-
};
|
8472 |
-
/* harmony default export */ var abbreviated_notifications_panel = (AbbreviatedNotificationsPanel);
|
8473 |
|
8474 |
/***/ }),
|
8475 |
|
8476 |
-
/***/
|
8477 |
-
/***/ (function(module,
|
8478 |
|
8479 |
-
|
8480 |
|
8481 |
-
|
8482 |
-
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ DEFAULT_ACTIONABLE_STATUSES; });
|
8483 |
-
__webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ config; });
|
8484 |
|
8485 |
-
|
|
|
8486 |
|
8487 |
-
|
8488 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8489 |
|
8490 |
-
|
8491 |
-
|
|
|
8492 |
|
8493 |
-
|
8494 |
-
var
|
|
|
|
|
|
|
|
|
|
|
8495 |
|
8496 |
-
|
8497 |
-
var lib = __webpack_require__(18);
|
8498 |
-
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
8499 |
|
8500 |
-
|
8501 |
-
|
8502 |
|
8503 |
-
//
|
8504 |
-
var qs_lib = __webpack_require__(32);
|
8505 |
|
8506 |
-
|
8507 |
-
var external_wc_components_ = __webpack_require__(21);
|
8508 |
|
8509 |
-
|
8510 |
-
|
8511 |
|
8512 |
-
//
|
8513 |
-
var external_wc_date_ = __webpack_require__(19);
|
8514 |
|
8515 |
-
|
8516 |
|
|
|
|
|
8517 |
|
8518 |
-
|
8519 |
-
* External dependencies
|
8520 |
-
*/
|
8521 |
|
|
|
8522 |
|
|
|
|
|
8523 |
|
|
|
8524 |
|
|
|
8525 |
|
8526 |
-
|
8527 |
-
|
8528 |
-
onChange
|
8529 |
-
}) => {
|
8530 |
-
const {
|
8531 |
-
wcAdminSettings
|
8532 |
-
} = Object(external_wc_data_["useSettings"])('wc_admin', ['wcAdminSettings']);
|
8533 |
-
const {
|
8534 |
-
woocommerce_default_date_range: defaultDateRange
|
8535 |
-
} = wcAdminSettings;
|
8536 |
|
8537 |
-
|
8538 |
-
onChange({
|
8539 |
-
target: {
|
8540 |
-
name: 'woocommerce_default_date_range',
|
8541 |
-
value: Object(qs_lib["stringify"])(query)
|
8542 |
-
}
|
8543 |
-
});
|
8544 |
-
};
|
8545 |
|
8546 |
-
|
8547 |
-
|
8548 |
-
|
8549 |
-
|
8550 |
-
before,
|
8551 |
-
after
|
8552 |
-
} = Object(external_wc_date_["getDateParamsFromQuery"])(query, defaultDateRange);
|
8553 |
-
const {
|
8554 |
-
primary: primaryDate,
|
8555 |
-
secondary: secondaryDate
|
8556 |
-
} = Object(external_wc_date_["getCurrentDates"])(query, defaultDateRange);
|
8557 |
-
const dateQuery = {
|
8558 |
-
period,
|
8559 |
-
compare,
|
8560 |
-
before,
|
8561 |
-
after,
|
8562 |
-
primaryDate,
|
8563 |
-
secondaryDate
|
8564 |
-
};
|
8565 |
-
return Object(external_wp_element_["createElement"])(external_wc_components_["DateRangeFilterPicker"], {
|
8566 |
-
query: query,
|
8567 |
-
onRangeSelect: change,
|
8568 |
-
dateQuery: dateQuery,
|
8569 |
-
isoDateFormat: external_wc_date_["isoDateFormat"]
|
8570 |
-
});
|
8571 |
-
};
|
8572 |
|
8573 |
-
|
8574 |
-
// CONCATENATED MODULE: ./client/analytics/settings/config.js
|
8575 |
|
|
|
8576 |
|
8577 |
-
|
8578 |
-
|
8579 |
-
*/
|
8580 |
|
|
|
8581 |
|
|
|
|
|
|
|
|
|
|
|
8582 |
|
|
|
8583 |
|
8584 |
-
|
8585 |
-
* Internal dependencies
|
8586 |
-
*/
|
8587 |
|
|
|
|
|
8588 |
|
8589 |
-
|
8590 |
-
const DEFAULT_ACTIONABLE_STATUSES = ['processing', 'on-hold'];
|
8591 |
-
const DEFAULT_ORDER_STATUSES = ['completed', 'processing', 'refunded', 'cancelled', 'failed', 'pending', 'on-hold'];
|
8592 |
-
const DEFAULT_DATE_RANGE = 'period=month&compare=previous_year';
|
8593 |
-
const filteredOrderStatuses = Object.keys(build_module["c" /* ORDER_STATUSES */]).filter(status => status !== 'refunded').map(key => {
|
8594 |
-
return {
|
8595 |
-
value: key,
|
8596 |
-
label: build_module["c" /* ORDER_STATUSES */][key],
|
8597 |
-
description: Object(external_wp_i18n_["sprintf"])(Object(external_wp_i18n_["__"])('Exclude the %s status from reports', 'woocommerce-admin'), build_module["c" /* ORDER_STATUSES */][key])
|
8598 |
-
};
|
8599 |
-
});
|
8600 |
-
const unregisteredOrderStatuses = Object(build_module["f" /* getSetting */])('unregisteredOrderStatuses', {});
|
8601 |
-
const orderStatusOptions = [{
|
8602 |
-
key: 'defaultStatuses',
|
8603 |
-
options: filteredOrderStatuses.filter(status => DEFAULT_ORDER_STATUSES.includes(status.value))
|
8604 |
-
}, {
|
8605 |
-
key: 'customStatuses',
|
8606 |
-
label: Object(external_wp_i18n_["__"])('Custom Statuses', 'woocommerce-admin'),
|
8607 |
-
options: filteredOrderStatuses.filter(status => !DEFAULT_ORDER_STATUSES.includes(status.value))
|
8608 |
-
}, {
|
8609 |
-
key: 'unregisteredStatuses',
|
8610 |
-
label: Object(external_wp_i18n_["__"])('Unregistered Statuses', 'woocommerce-admin'),
|
8611 |
-
options: Object.keys(unregisteredOrderStatuses).map(key => {
|
8612 |
-
return {
|
8613 |
-
value: key,
|
8614 |
-
label: key,
|
8615 |
-
description: Object(external_wp_i18n_["sprintf"])(Object(external_wp_i18n_["__"])('Exclude the %s status from reports', 'woocommerce-admin'), key)
|
8616 |
-
};
|
8617 |
-
})
|
8618 |
-
}];
|
8619 |
-
const config = Object(external_wp_hooks_["applyFilters"])(SETTINGS_FILTER, {
|
8620 |
-
woocommerce_excluded_report_order_statuses: {
|
8621 |
-
label: Object(external_wp_i18n_["__"])('Excluded Statuses:', 'woocommerce-admin'),
|
8622 |
-
inputType: 'checkboxGroup',
|
8623 |
-
options: orderStatusOptions,
|
8624 |
-
helpText: lib_default()({
|
8625 |
-
mixedString: Object(external_wp_i18n_["__"])('Orders with these statuses are excluded from the totals in your reports. ' + 'The {{strong}}Refunded{{/strong}} status can not be excluded.', 'woocommerce-admin'),
|
8626 |
-
components: {
|
8627 |
-
strong: Object(external_wp_element_["createElement"])("strong", null)
|
8628 |
-
}
|
8629 |
-
}),
|
8630 |
-
defaultValue: ['pending', 'cancelled', 'failed']
|
8631 |
-
},
|
8632 |
-
woocommerce_actionable_order_statuses: {
|
8633 |
-
label: Object(external_wp_i18n_["__"])('Actionable Statuses:', 'woocommerce-admin'),
|
8634 |
-
inputType: 'checkboxGroup',
|
8635 |
-
options: orderStatusOptions,
|
8636 |
-
helpText: Object(external_wp_i18n_["__"])('Orders with these statuses require action on behalf of the store admin. ' + 'These orders will show up in the Home Screen - Orders task.', 'woocommerce-admin'),
|
8637 |
-
defaultValue: DEFAULT_ACTIONABLE_STATUSES
|
8638 |
-
},
|
8639 |
-
woocommerce_default_date_range: {
|
8640 |
-
name: 'woocommerce_default_date_range',
|
8641 |
-
label: Object(external_wp_i18n_["__"])('Default Date Range:', 'woocommerce-admin'),
|
8642 |
-
inputType: 'component',
|
8643 |
-
component: default_date,
|
8644 |
-
helpText: Object(external_wp_i18n_["__"])('Select a default date range. When no range is selected, reports will be viewed by ' + 'the default date range.', 'woocommerce-admin'),
|
8645 |
-
defaultValue: DEFAULT_DATE_RANGE
|
8646 |
-
}
|
8647 |
-
});
|
8648 |
|
8649 |
/***/ }),
|
8650 |
|
8651 |
-
/***/
|
8652 |
-
/***/ (function(module,
|
8653 |
|
8654 |
-
|
8655 |
-
|
8656 |
-
|
8657 |
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
8658 |
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
8659 |
-
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
8660 |
-
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
8661 |
-
/* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(256);
|
8662 |
-
/* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__);
|
8663 |
-
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
|
8664 |
-
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
|
8665 |
-
/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(257);
|
8666 |
-
/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_5__);
|
8667 |
-
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4);
|
8668 |
-
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__);
|
8669 |
|
8670 |
|
8671 |
-
|
8672 |
-
* External dependencies
|
8673 |
-
*/
|
8674 |
|
|
|
|
|
8675 |
|
|
|
|
|
8676 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8677 |
|
|
|
|
|
8678 |
|
|
|
8679 |
|
|
|
8680 |
|
8681 |
-
|
8682 |
-
|
8683 |
|
8684 |
-
|
8685 |
-
|
8686 |
-
|
8687 |
-
|
8688 |
-
|
8689 |
-
|
8690 |
-
*/
|
8691 |
|
8692 |
-
|
8693 |
-
|
8694 |
-
|
8695 |
-
|
8696 |
-
|
8697 |
}
|
8698 |
-
}, [spokenMessage, politeness]);
|
8699 |
-
}
|
8700 |
-
|
8701 |
-
function Snackbar({
|
8702 |
-
className,
|
8703 |
-
children,
|
8704 |
-
spokenMessage = children,
|
8705 |
-
politeness = 'polite',
|
8706 |
-
actions = [],
|
8707 |
-
onRemove = lodash__WEBPACK_IMPORTED_MODULE_1__["noop"],
|
8708 |
-
icon = null,
|
8709 |
-
explicitDismiss = false,
|
8710 |
-
// onDismiss is a callback executed when the snackbar is dismissed.
|
8711 |
-
// It is distinct from onRemove, which _looks_ like a callback but is
|
8712 |
-
// actually the function to call to remove the snackbar from the UI.
|
8713 |
-
onDismiss = null
|
8714 |
-
}, ref) {
|
8715 |
-
onDismiss = onDismiss || lodash__WEBPACK_IMPORTED_MODULE_1__["noop"];
|
8716 |
|
8717 |
-
|
8718 |
-
|
8719 |
-
event.preventDefault();
|
8720 |
-
}
|
8721 |
|
8722 |
-
|
8723 |
-
|
8724 |
-
}
|
8725 |
|
8726 |
-
|
8727 |
-
event.stopPropagation();
|
8728 |
-
onRemove();
|
8729 |
|
8730 |
-
|
8731 |
-
|
8732 |
-
}
|
8733 |
-
}
|
8734 |
|
8735 |
-
|
8736 |
|
8737 |
-
|
8738 |
-
|
8739 |
-
|
8740 |
-
|
8741 |
-
onRemove();
|
8742 |
-
}
|
8743 |
-
}, NOTICE_TIMEOUT);
|
8744 |
-
return () => clearTimeout(timeoutHandle);
|
8745 |
-
}, [explicitDismiss, onDismiss, onRemove]);
|
8746 |
-
const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, 'components-snackbar', {
|
8747 |
-
'components-snackbar-explicit-dismiss': !!explicitDismiss
|
8748 |
-
});
|
8749 |
|
8750 |
-
if (
|
8751 |
-
|
8752 |
-
typeof process !== "undefined" && process.env && "production" !== "production" ? _wordpress_warning__WEBPACK_IMPORTED_MODULE_5___default()('Snackbar can only have 1 action, use Notice if your message require many messages') : void 0; // return first element only while keeping it inside an array
|
8753 |
|
8754 |
-
|
|
|
|
|
|
|
|
|
|
|
8755 |
}
|
8756 |
|
8757 |
-
|
8758 |
-
'components-snackbar__content-with-icon': !!icon
|
8759 |
-
});
|
8760 |
-
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
|
8761 |
-
ref: ref,
|
8762 |
-
className: classes,
|
8763 |
-
onClick: !explicitDismiss ? dismissMe : lodash__WEBPACK_IMPORTED_MODULE_1__["noop"],
|
8764 |
-
tabIndex: "0",
|
8765 |
-
role: !explicitDismiss ? 'button' : '',
|
8766 |
-
onKeyPress: !explicitDismiss ? dismissMe : lodash__WEBPACK_IMPORTED_MODULE_1__["noop"],
|
8767 |
-
"aria-label": !explicitDismiss ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Dismiss this notice') : ''
|
8768 |
-
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
|
8769 |
-
className: snackbarContentClassnames
|
8770 |
-
}, icon && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
|
8771 |
-
className: "components-snackbar__icon"
|
8772 |
-
}, icon), children, actions.map(({
|
8773 |
-
label,
|
8774 |
-
onClick,
|
8775 |
-
url
|
8776 |
-
}, index) => {
|
8777 |
-
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__["Button"], {
|
8778 |
-
key: index,
|
8779 |
-
href: url,
|
8780 |
-
isTertiary: true,
|
8781 |
-
onClick: event => onActionClick(event, onClick),
|
8782 |
-
className: "components-snackbar__action"
|
8783 |
-
}, label);
|
8784 |
-
}), explicitDismiss && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("span", {
|
8785 |
-
role: "button",
|
8786 |
-
"aria-label": "Dismiss this notice",
|
8787 |
-
tabIndex: "0",
|
8788 |
-
className: "components-snackbar__dismiss-button",
|
8789 |
-
onClick: dismissMe,
|
8790 |
-
onKeyPress: dismissMe
|
8791 |
-
}, "\u2715")));
|
8792 |
}
|
8793 |
|
8794 |
-
|
8795 |
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(128)))
|
8796 |
|
8797 |
/***/ }),
|
8798 |
|
8799 |
-
/***/
|
8800 |
-
/***/ (function(module,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8801 |
|
8802 |
-
|
|
|
8803 |
|
8804 |
/***/ }),
|
8805 |
|
8806 |
-
/***/
|
8807 |
/***/ (function(module, exports) {
|
8808 |
|
8809 |
-
|
|
|
8810 |
|
8811 |
-
|
|
|
|
|
8812 |
|
8813 |
-
|
8814 |
-
|
8815 |
|
8816 |
-
|
8817 |
|
8818 |
/***/ }),
|
8819 |
|
8820 |
-
/***/
|
8821 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
8822 |
|
8823 |
"use strict";
|
8824 |
|
8825 |
// EXPORTS
|
8826 |
-
__webpack_require__.d(__webpack_exports__, "a", function() { return /*
|
8827 |
-
|
8828 |
-
// UNUSED EXPORTS: CustomerEffortScoreTracks
|
8829 |
-
|
8830 |
-
// NAMESPACE OBJECT: ./client/customer-effort-score-tracks/data/actions.js
|
8831 |
-
var actions_namespaceObject = {};
|
8832 |
-
__webpack_require__.r(actions_namespaceObject);
|
8833 |
-
__webpack_require__.d(actions_namespaceObject, "setCesSurveyQueue", function() { return setCesSurveyQueue; });
|
8834 |
-
__webpack_require__.d(actions_namespaceObject, "addCesSurvey", function() { return addCesSurvey; });
|
8835 |
-
__webpack_require__.d(actions_namespaceObject, "addCesSurveyForAnalytics", function() { return addCesSurveyForAnalytics; });
|
8836 |
-
__webpack_require__.d(actions_namespaceObject, "addCesSurveyForCustomerSearch", function() { return addCesSurveyForCustomerSearch; });
|
8837 |
-
|
8838 |
-
// NAMESPACE OBJECT: ./client/customer-effort-score-tracks/data/resolvers.js
|
8839 |
-
var resolvers_namespaceObject = {};
|
8840 |
-
__webpack_require__.r(resolvers_namespaceObject);
|
8841 |
-
__webpack_require__.d(resolvers_namespaceObject, "getCesSurveyQueue", function() { return resolvers_getCesSurveyQueue; });
|
8842 |
-
|
8843 |
-
// NAMESPACE OBJECT: ./client/customer-effort-score-tracks/data/selectors.js
|
8844 |
-
var selectors_namespaceObject = {};
|
8845 |
-
__webpack_require__.r(selectors_namespaceObject);
|
8846 |
-
__webpack_require__.d(selectors_namespaceObject, "getCesSurveyQueue", function() { return selectors_getCesSurveyQueue; });
|
8847 |
-
|
8848 |
-
// EXTERNAL MODULE: external ["wp","element"]
|
8849 |
-
var external_wp_element_ = __webpack_require__(0);
|
8850 |
|
8851 |
-
//
|
8852 |
-
|
8853 |
-
|
|
|
|
|
|
|
8854 |
|
8855 |
-
|
8856 |
-
|
|
|
8857 |
|
8858 |
-
|
8859 |
-
|
8860 |
-
|
|
|
|
|
8861 |
|
8862 |
-
|
8863 |
-
var external_wp_compose_ = __webpack_require__(13);
|
8864 |
|
8865 |
-
|
8866 |
-
|
8867 |
|
8868 |
-
|
8869 |
-
var external_wc_data_ = __webpack_require__(11);
|
8870 |
|
8871 |
-
|
8872 |
-
var external_wp_i18n_ = __webpack_require__(2);
|
8873 |
|
8874 |
-
|
|
|
8875 |
|
|
|
8876 |
|
8877 |
-
|
8878 |
-
|
8879 |
-
|
|
|
|
|
|
|
|
|
|
|
8880 |
|
|
|
8881 |
|
|
|
8882 |
|
|
|
|
|
8883 |
|
|
|
8884 |
|
|
|
8885 |
|
|
|
|
|
8886 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8887 |
|
8888 |
-
|
8889 |
-
|
8890 |
-
|
8891 |
-
|
8892 |
-
|
8893 |
-
* customer effort score.
|
8894 |
-
*
|
8895 |
-
* @param {Object} props Component props.
|
8896 |
-
* @param {string} props.action The action name sent to Tracks.
|
8897 |
-
* @param {Object} props.trackProps Additional props sent to Tracks.
|
8898 |
-
* @param {string} props.label The label displayed in the modal.
|
8899 |
-
* @param {string} props.onSubmitLabel The label displayed upon survey submission.
|
8900 |
-
* @param {Array} props.cesShownForActions The array of actions that the CES modal has been shown for.
|
8901 |
-
* @param {boolean} props.allowTracking Whether tracking is allowed or not.
|
8902 |
-
* @param {boolean} props.resolving Are values still being resolved.
|
8903 |
-
* @param {number} props.storeAgeInWeeks The age of the store in weeks.
|
8904 |
-
* @param {Function} props.updateOptions Function to update options.
|
8905 |
-
* @param {Function} props.createNotice Function to create a snackbar.
|
8906 |
-
*/
|
8907 |
|
8908 |
-
|
8909 |
-
|
8910 |
-
trackProps,
|
8911 |
-
label,
|
8912 |
-
onSubmitLabel = Object(external_wp_i18n_["__"])('Thank you for your feedback!', 'woocommerce-admin'),
|
8913 |
-
cesShownForActions,
|
8914 |
-
allowTracking,
|
8915 |
-
resolving,
|
8916 |
-
storeAgeInWeeks,
|
8917 |
-
updateOptions,
|
8918 |
-
createNotice
|
8919 |
-
}) {
|
8920 |
-
const [modalShown, setModalShown] = Object(external_wp_element_["useState"])(false);
|
8921 |
|
8922 |
-
|
8923 |
-
return null;
|
8924 |
-
} // Don't show if tracking is disallowed.
|
8925 |
|
|
|
|
|
8926 |
|
8927 |
-
|
8928 |
-
return null;
|
8929 |
-
} // We only want to return null early if the modal was already shown
|
8930 |
-
// for this action *before* this component was initially instantiated.
|
8931 |
-
//
|
8932 |
-
// We want to make sure we still render CustomerEffortScore below
|
8933 |
-
// (we don't want to return null early), if the modal was shown for this
|
8934 |
-
// instantiation, so that the component doesn't go away while we are
|
8935 |
-
// still showing it.
|
8936 |
|
|
|
8937 |
|
8938 |
-
|
8939 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8940 |
}
|
8941 |
|
8942 |
-
|
8943 |
-
|
8944 |
-
|
8945 |
-
|
8946 |
-
|
8947 |
-
|
8948 |
-
};
|
8949 |
|
8950 |
-
|
8951 |
-
|
8952 |
-
|
8953 |
-
|
8954 |
-
|
|
|
8955 |
|
8956 |
-
|
8957 |
-
|
8958 |
-
|
8959 |
-
store_age: storeAgeInWeeks,
|
8960 |
-
...trackProps
|
8961 |
-
});
|
8962 |
-
addActionToShownOption();
|
8963 |
-
};
|
8964 |
|
8965 |
-
|
8966 |
-
|
8967 |
-
|
8968 |
-
action,
|
8969 |
-
store_age: storeAgeInWeeks,
|
8970 |
-
...trackProps
|
8971 |
-
});
|
8972 |
-
addActionToShownOption();
|
8973 |
-
};
|
8974 |
|
8975 |
-
|
8976 |
-
Object(external_wc_tracks_["recordEvent"])('ces_feedback', {
|
8977 |
-
action,
|
8978 |
-
score,
|
8979 |
-
comments: comments || '',
|
8980 |
-
store_age: storeAgeInWeeks,
|
8981 |
-
...trackProps
|
8982 |
});
|
8983 |
-
createNotice('success', onSubmitLabel);
|
8984 |
};
|
8985 |
-
|
8986 |
-
return Object(external_wp_element_["createElement"])(external_wc_customerEffortScore_default.a, {
|
8987 |
-
recordScoreCallback: recordScore,
|
8988 |
-
label: label,
|
8989 |
-
onNoticeShownCallback: onNoticeShown,
|
8990 |
-
onNoticeDismissedCallback: onNoticeDismissed,
|
8991 |
-
onModalShownCallback: onModalShown,
|
8992 |
-
icon: Object(external_wp_element_["createElement"])("span", {
|
8993 |
-
style: {
|
8994 |
-
height: 21,
|
8995 |
-
width: 21
|
8996 |
-
},
|
8997 |
-
role: "img",
|
8998 |
-
"aria-label": Object(external_wp_i18n_["__"])('Pencil icon', 'woocommerce-admin')
|
8999 |
-
}, "\u270F\uFE0F")
|
9000 |
-
});
|
9001 |
}
|
9002 |
|
9003 |
-
|
9004 |
-
/**
|
9005 |
-
* The action name sent to Tracks.
|
9006 |
-
*/
|
9007 |
-
action: prop_types_default.a.string.isRequired,
|
9008 |
|
9009 |
-
|
9010 |
-
* Additional props sent to Tracks.
|
9011 |
-
*/
|
9012 |
-
trackProps: prop_types_default.a.object,
|
9013 |
|
9014 |
-
|
9015 |
-
|
9016 |
-
*/
|
9017 |
-
label: prop_types_default.a.string.isRequired,
|
9018 |
|
9019 |
-
|
9020 |
-
* The label for the snackbar that appears upon survey submission.
|
9021 |
-
*/
|
9022 |
-
onSubmitLabel: prop_types_default.a.string,
|
9023 |
|
9024 |
-
|
9025 |
-
* The array of actions that the CES modal has been shown for.
|
9026 |
-
*/
|
9027 |
-
cesShownForActions: prop_types_default.a.arrayOf(prop_types_default.a.string).isRequired,
|
9028 |
|
9029 |
-
|
9030 |
-
|
9031 |
-
*/
|
9032 |
-
allowTracking: prop_types_default.a.bool,
|
9033 |
|
9034 |
-
|
9035 |
-
* Whether props are still being resolved.
|
9036 |
-
*/
|
9037 |
-
resolving: prop_types_default.a.bool.isRequired,
|
9038 |
|
9039 |
-
|
9040 |
-
|
9041 |
-
|
9042 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9043 |
|
9044 |
-
|
9045 |
-
|
9046 |
-
*/
|
9047 |
-
updateOptions: prop_types_default.a.func,
|
9048 |
|
9049 |
-
|
9050 |
-
|
9051 |
-
*/
|
9052 |
-
createNotice: prop_types_default.a.func
|
9053 |
-
};
|
9054 |
|
9055 |
-
|
9056 |
-
|
9057 |
-
return null;
|
9058 |
-
} // Date.now() is ms since Unix epoch, adminInstallTimestamp is in
|
9059 |
-
// seconds since Unix epoch.
|
9060 |
|
|
|
|
|
9061 |
|
9062 |
-
|
9063 |
-
const storeAgeInWeeks = Math.round(storeAgeInMs / external_wc_data_["WEEK"]);
|
9064 |
-
return storeAgeInWeeks;
|
9065 |
-
}
|
9066 |
|
9067 |
-
/* harmony default export */ var customer_effort_score_tracks = (Object(external_wp_compose_["compose"])(Object(external_wp_data_["withSelect"])(select => {
|
9068 |
-
const {
|
9069 |
-
getOption,
|
9070 |
-
isResolving
|
9071 |
-
} = select(external_wc_data_["OPTIONS_STORE_NAME"]);
|
9072 |
-
const cesShownForActions = getOption(SHOWN_FOR_ACTIONS_OPTION_NAME) || [];
|
9073 |
-
const adminInstallTimestamp = getOption(ADMIN_INSTALL_TIMESTAMP_OPTION_NAME) || 0;
|
9074 |
-
const storeAgeInWeeks = getStoreAgeInWeeks(adminInstallTimestamp);
|
9075 |
-
const allowTrackingOption = getOption(ALLOW_TRACKING_OPTION_NAME) || 'no';
|
9076 |
-
const allowTracking = allowTrackingOption === 'yes';
|
9077 |
-
const resolving = isResolving('getOption', [SHOWN_FOR_ACTIONS_OPTION_NAME]) || storeAgeInWeeks === null || isResolving('getOption', [ADMIN_INSTALL_TIMESTAMP_OPTION_NAME]) || isResolving('getOption', [ALLOW_TRACKING_OPTION_NAME]);
|
9078 |
-
return {
|
9079 |
-
cesShownForActions,
|
9080 |
-
allowTracking,
|
9081 |
-
storeAgeInWeeks,
|
9082 |
-
resolving
|
9083 |
-
};
|
9084 |
-
}), Object(external_wp_data_["withDispatch"])(dispatch => {
|
9085 |
-
const {
|
9086 |
-
updateOptions
|
9087 |
-
} = dispatch(external_wc_data_["OPTIONS_STORE_NAME"]);
|
9088 |
-
const {
|
9089 |
-
createNotice
|
9090 |
-
} = dispatch('core/notices');
|
9091 |
-
return {
|
9092 |
-
updateOptions,
|
9093 |
-
createNotice
|
9094 |
-
};
|
9095 |
-
}))(CustomerEffortScoreTracks));
|
9096 |
-
// EXTERNAL MODULE: ./client/customer-effort-score-tracks/data/constants.js
|
9097 |
-
var constants = __webpack_require__(53);
|
9098 |
|
9099 |
-
|
9100 |
-
var external_wp_dataControls_ = __webpack_require__(10);
|
9101 |
|
9102 |
-
|
9103 |
-
|
9104 |
-
|
9105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9106 |
};
|
9107 |
-
/* harmony default export */ var
|
9108 |
-
|
|
|
|
|
|
|
9109 |
/**
|
9110 |
* External dependencies
|
9111 |
*/
|
@@ -9116,56 +10224,64 @@ const TYPES = {
|
|
9116 |
|
9117 |
|
9118 |
/**
|
9119 |
-
*
|
|
|
9120 |
*
|
9121 |
-
* @param {Object}
|
|
|
|
|
|
|
9122 |
*/
|
9123 |
|
9124 |
-
function
|
9125 |
-
|
9126 |
-
|
9127 |
-
|
9128 |
-
|
9129 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9130 |
/**
|
9131 |
-
*
|
|
|
|
|
9132 |
*
|
9133 |
-
* @
|
9134 |
-
* @param {string} label label for the snackback
|
9135 |
-
* @param {string} pageNow value of window.pagenow
|
9136 |
-
* @param {string} adminPage value of window.adminpage
|
9137 |
-
* @param {string} onsubmit_label label for the snackback onsubmit
|
9138 |
-
* @param {Object} props object for optional props
|
9139 |
*/
|
9140 |
-
|
9141 |
-
function addCesSurvey(action, label, pageNow = window.pagenow, adminPage = window.adminpage, onsubmit_label = undefined, props = {}) {
|
9142 |
-
return {
|
9143 |
-
type: action_types.ADD_CES_SURVEY,
|
9144 |
-
action,
|
9145 |
-
label,
|
9146 |
-
pageNow,
|
9147 |
-
adminPage,
|
9148 |
-
onsubmit_label,
|
9149 |
-
props
|
9150 |
-
};
|
9151 |
-
}
|
9152 |
/**
|
9153 |
-
*
|
|
|
|
|
9154 |
*/
|
9155 |
|
9156 |
-
|
9157 |
-
|
9158 |
-
|
9159 |
-
|
9160 |
-
|
9161 |
-
|
|
|
|
|
9162 |
|
9163 |
-
function addCesSurveyForCustomerSearch() {
|
9164 |
-
return addCesSurvey('ces_search', Object(external_wp_i18n_["__"])('How easy was it to use search?', 'woocommerce-admin'), 'woocommerce_page_wc-admin', 'woocommerce_page_wc-admin', undefined, {
|
9165 |
-
search_area: 'customer'
|
9166 |
-
});
|
9167 |
-
}
|
9168 |
-
// CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/resolvers.js
|
9169 |
/**
|
9170 |
* External dependencies
|
9171 |
*/
|
@@ -9175,869 +10291,1555 @@ function addCesSurveyForCustomerSearch() {
|
|
9175 |
*/
|
9176 |
|
9177 |
|
9178 |
-
|
9179 |
-
function* resolvers_getCesSurveyQueue() {
|
9180 |
-
const response = yield Object(external_wp_dataControls_["apiFetch"])({
|
9181 |
-
path: `${constants["a" /* API_NAMESPACE */]}/options?options=${constants["b" /* QUEUE_OPTION_NAME */]}`
|
9182 |
-
});
|
9183 |
-
|
9184 |
-
if (response) {
|
9185 |
-
yield setCesSurveyQueue(response[constants["b" /* QUEUE_OPTION_NAME */]] || []);
|
9186 |
-
} else {
|
9187 |
-
throw new Error();
|
9188 |
-
}
|
9189 |
-
}
|
9190 |
-
// CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/selectors.js
|
9191 |
-
function selectors_getCesSurveyQueue(state) {
|
9192 |
-
return state.queue;
|
9193 |
-
}
|
9194 |
-
// CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/reducer.js
|
9195 |
/**
|
9196 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9197 |
*/
|
9198 |
|
9199 |
-
|
9200 |
-
|
9201 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9202 |
|
9203 |
-
|
9204 |
-
|
9205 |
-
|
9206 |
-
|
9207 |
-
|
9208 |
-
|
9209 |
|
9210 |
-
|
9211 |
-
|
9212 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9213 |
|
9214 |
-
|
9215 |
-
|
|
|
9216 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9217 |
|
9218 |
-
|
9219 |
-
|
9220 |
-
|
9221 |
-
|
9222 |
-
|
9223 |
-
|
9224 |
-
|
9225 |
-
|
9226 |
-
|
9227 |
-
|
9228 |
-
|
|
|
|
|
|
|
9229 |
|
9230 |
-
|
9231 |
-
|
9232 |
-
|
9233 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9234 |
|
9235 |
-
|
9236 |
-
|
|
|
9237 |
/**
|
9238 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9239 |
*/
|
9240 |
|
9241 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9242 |
/**
|
9243 |
* Internal dependencies
|
9244 |
*/
|
9245 |
|
|
|
9246 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9247 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9248 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9250 |
|
9251 |
-
|
9252 |
-
|
9253 |
-
|
9254 |
-
|
9255 |
-
controls: external_wp_dataControls_["controls"],
|
9256 |
-
reducer: data_reducer
|
9257 |
-
}));
|
9258 |
-
// CONCATENATED MODULE: ./client/customer-effort-score-tracks/customer-effort-score-tracks-container.js
|
9259 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9260 |
|
9261 |
/**
|
9262 |
-
*
|
9263 |
*/
|
9264 |
|
9265 |
|
9266 |
|
9267 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9268 |
/**
|
9269 |
* Internal dependencies
|
9270 |
*/
|
9271 |
|
|
|
9272 |
|
|
|
9273 |
|
|
|
|
|
9274 |
|
9275 |
-
|
9276 |
-
* Maps the queue of CES tracks surveys to CustomerEffortScoreTracks
|
9277 |
-
* components. Note that generally there will only be a single survey per page
|
9278 |
-
* however this is designed to be flexible if multiple surveys per page are
|
9279 |
-
* added in the future.
|
9280 |
-
*
|
9281 |
-
* @param {Object} props Component props.
|
9282 |
-
* @param {Array} props.queue The queue of surveys.
|
9283 |
-
* @param {boolean} props.resolving Whether the queue is resolving.
|
9284 |
-
* @param {Function} props.clearQueue Sets up clearing of the queue on the next page load.
|
9285 |
-
*/
|
9286 |
-
|
9287 |
-
function CustomerEffortScoreTracksContainer({
|
9288 |
-
queue,
|
9289 |
-
resolving,
|
9290 |
-
clearQueue
|
9291 |
-
}) {
|
9292 |
-
if (resolving) {
|
9293 |
-
return null;
|
9294 |
-
}
|
9295 |
|
9296 |
-
|
9297 |
|
9298 |
-
|
9299 |
-
|
9300 |
-
}
|
9301 |
|
9302 |
-
|
9303 |
-
key: index,
|
9304 |
-
action: item.action,
|
9305 |
-
label: item.label,
|
9306 |
-
onSubmitLabel: item.onsubmit_label,
|
9307 |
-
trackProps: item.props || {}
|
9308 |
-
})));
|
9309 |
-
}
|
9310 |
|
9311 |
-
CustomerEffortScoreTracksContainer.propTypes = {
|
9312 |
-
/**
|
9313 |
-
* The queue of CES tracks surveys to display.
|
9314 |
-
*/
|
9315 |
-
queue: prop_types_default.a.arrayOf(prop_types_default.a.object),
|
9316 |
|
9317 |
-
|
9318 |
-
|
9319 |
-
|
9320 |
-
resolving: prop_types_default.a.bool,
|
9321 |
|
9322 |
-
|
9323 |
-
|
9324 |
-
|
9325 |
-
|
9326 |
};
|
9327 |
-
/* harmony default export */ var customer_effort_score_tracks_container = (Object(external_wp_compose_["compose"])(Object(external_wp_data_["withSelect"])(select => {
|
9328 |
-
const {
|
9329 |
-
getCesSurveyQueue,
|
9330 |
-
isResolving
|
9331 |
-
} = select(constants["c" /* STORE_KEY */]);
|
9332 |
-
const queue = getCesSurveyQueue();
|
9333 |
-
const resolving = isResolving('getOption', [constants["b" /* QUEUE_OPTION_NAME */]]);
|
9334 |
-
return {
|
9335 |
-
queue,
|
9336 |
-
resolving
|
9337 |
-
};
|
9338 |
-
}), Object(external_wp_data_["withDispatch"])(dispatch => {
|
9339 |
-
const {
|
9340 |
-
updateOptions
|
9341 |
-
} = dispatch(external_wc_data_["OPTIONS_STORE_NAME"]);
|
9342 |
-
return {
|
9343 |
-
clearQueue: () => {
|
9344 |
-
// This sets an option that should be used on the next page
|
9345 |
-
// load to clear the CES tracks queue for the current page (see
|
9346 |
-
// CustomerEffortScoreTracks.php) - clearing the queue
|
9347 |
-
// directly puts this into an infinite loop which is picked
|
9348 |
-
// up by React.
|
9349 |
-
updateOptions({
|
9350 |
-
woocommerce_clear_ces_tracks_queue_for_page: {
|
9351 |
-
pagenow: window.pagenow,
|
9352 |
-
adminpage: window.adminpage
|
9353 |
-
}
|
9354 |
-
});
|
9355 |
-
}
|
9356 |
-
};
|
9357 |
-
}))(CustomerEffortScoreTracksContainer));
|
9358 |
-
// CONCATENATED MODULE: ./client/customer-effort-score-tracks/index.js
|
9359 |
-
|
9360 |
|
9361 |
|
9362 |
/***/ }),
|
9363 |
|
9364 |
-
/***/
|
9365 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9366 |
|
9367 |
"use strict";
|
|
|
|
|
|
|
9368 |
|
9369 |
-
// EXPORTS
|
9370 |
-
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ EmbeddedBodyLayout; });
|
9371 |
|
9372 |
-
|
9373 |
-
|
9374 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9375 |
|
9376 |
-
|
9377 |
-
var external_wp_element_ = __webpack_require__(0);
|
9378 |
|
9379 |
-
|
9380 |
-
|
9381 |
|
9382 |
-
|
9383 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9384 |
|
9385 |
-
|
9386 |
-
|
9387 |
|
9388 |
-
|
9389 |
-
var external_wc_data_ = __webpack_require__(11);
|
9390 |
|
9391 |
-
|
9392 |
|
|
|
|
|
9393 |
|
9394 |
-
|
9395 |
-
* External dependencies
|
9396 |
-
*/
|
9397 |
|
|
|
9398 |
|
9399 |
-
|
|
|
9400 |
|
9401 |
-
|
9402 |
-
children
|
9403 |
-
}) => {
|
9404 |
-
const {
|
9405 |
-
currentUserCan
|
9406 |
-
} = Object(external_wc_data_["useUser"])();
|
9407 |
-
const isMarketplaceSuggestionsEnabled = Object(external_wp_data_["useSelect"])(select => {
|
9408 |
-
const {
|
9409 |
-
getOption,
|
9410 |
-
hasFinishedResolution
|
9411 |
-
} = select(external_wc_data_["OPTIONS_STORE_NAME"]);
|
9412 |
-
const hasFinishedResolving = hasFinishedResolution('getOption', [SHOW_MARKETPLACE_SUGGESTION_OPTION]);
|
9413 |
-
const canShowMarketplaceSuggestions = getOption(SHOW_MARKETPLACE_SUGGESTION_OPTION) === 'yes';
|
9414 |
-
return hasFinishedResolving && canShowMarketplaceSuggestions;
|
9415 |
-
});
|
9416 |
|
9417 |
-
if (!currentUserCan('install_plugins')) {
|
9418 |
-
return null;
|
9419 |
-
}
|
9420 |
|
9421 |
-
|
9422 |
-
|
9423 |
-
|
|
|
|
|
|
|
|
|
9424 |
|
9425 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9426 |
};
|
9427 |
|
9428 |
-
/* harmony default export */ var recommendations_eligibility_wrapper = (RecommendationsEligibilityWrapper);
|
9429 |
-
// CONCATENATED MODULE: ./client/payments/payment-recommendations-wrapper.tsx
|
9430 |
|
|
|
|
|
|
|
|
|
9431 |
|
|
|
|
|
9432 |
/**
|
9433 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9434 |
*/
|
9435 |
|
9436 |
/**
|
9437 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9438 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
9439 |
|
9440 |
|
9441 |
-
|
9442 |
-
|
9443 |
-
|
9444 |
-
tab,
|
9445 |
-
section
|
9446 |
-
}) => {
|
9447 |
-
if (page === 'wc-settings' && tab === 'checkout' && !section) {
|
9448 |
-
return Object(external_wp_element_["createElement"])(recommendations_eligibility_wrapper, null, Object(external_wp_element_["createElement"])(external_wp_element_["Suspense"], {
|
9449 |
-
fallback: null
|
9450 |
-
}, Object(external_wp_element_["createElement"])(PaymentRecommendationsChunk, null)));
|
9451 |
-
}
|
9452 |
-
|
9453 |
-
return null;
|
9454 |
-
};
|
9455 |
-
// CONCATENATED MODULE: ./client/payments/index.ts
|
9456 |
-
|
9457 |
-
// EXTERNAL MODULE: ./client/embedded-body-layout/style.scss
|
9458 |
-
var style = __webpack_require__(297);
|
9459 |
|
9460 |
-
|
9461 |
|
|
|
|
|
9462 |
|
|
|
|
|
|
|
9463 |
|
9464 |
-
|
9465 |
-
|
9466 |
-
*/
|
|
|
9467 |
|
|
|
|
|
9468 |
|
9469 |
-
|
9470 |
-
|
9471 |
-
|
|
|
|
|
|
|
|
|
9472 |
|
|
|
|
|
9473 |
|
|
|
9474 |
|
|
|
|
|
9475 |
|
9476 |
-
|
9477 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9478 |
}
|
9479 |
|
9480 |
-
|
9481 |
-
/**
|
9482 |
-
* This component is appended to the bottom of the WooCommerce non-react pages (like settings).
|
9483 |
-
* You can add a component by writing a Fill component from slot-fill with the `embedded-body-layout` name.
|
9484 |
-
*
|
9485 |
-
* Each Fill component receives QueryParams, consisting of a page, tab, and section string.
|
9486 |
-
*/
|
9487 |
-
|
9488 |
-
const EmbeddedBodyLayout = () => {
|
9489 |
-
const query = Object(lib["parse"])(location.search.substring(1));
|
9490 |
-
let queryParams = {
|
9491 |
-
page: '',
|
9492 |
-
tab: ''
|
9493 |
-
};
|
9494 |
|
9495 |
-
if (isWPPage(query)) {
|
9496 |
-
queryParams = query;
|
9497 |
-
}
|
9498 |
|
9499 |
-
|
9500 |
-
return Object(external_wp_element_["createElement"])("div", {
|
9501 |
-
className: "woocommerce-embedded-layout__primary",
|
9502 |
-
id: "woocommerce-embedded-layout__primary"
|
9503 |
-
}, componentList.map((Comp, index) => {
|
9504 |
-
return Object(external_wp_element_["createElement"])(Comp, extends_default()({
|
9505 |
-
key: index
|
9506 |
-
}, queryParams));
|
9507 |
-
}));
|
9508 |
-
};
|
9509 |
-
// CONCATENATED MODULE: ./client/embedded-body-layout/index.ts
|
9510 |
|
|
|
|
|
9511 |
|
9512 |
-
|
9513 |
|
9514 |
-
|
9515 |
-
|
|
|
9516 |
|
9517 |
-
|
9518 |
|
9519 |
/***/ }),
|
9520 |
|
9521 |
-
/***/
|
9522 |
-
/***/ (function(module,
|
9523 |
|
9524 |
-
|
9525 |
-
|
9526 |
-
|
9527 |
-
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
9528 |
-
/* harmony import */ var _wordpress_notices__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(127);
|
9529 |
-
/* harmony import */ var _wordpress_notices__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_notices__WEBPACK_IMPORTED_MODULE_1__);
|
9530 |
-
/* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11);
|
9531 |
-
/* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_data__WEBPACK_IMPORTED_MODULE_2__);
|
9532 |
-
/* harmony import */ var _stylesheets_index_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(280);
|
9533 |
-
/* harmony import */ var _stylesheets_index_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_stylesheets_index_scss__WEBPACK_IMPORTED_MODULE_3__);
|
9534 |
-
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(119);
|
9535 |
-
/* harmony import */ var _customer_effort_score_tracks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(268);
|
9536 |
-
/* harmony import */ var _embedded_body_layout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(269);
|
9537 |
|
|
|
9538 |
|
9539 |
-
|
9540 |
-
* External dependencies
|
9541 |
-
*/
|
9542 |
|
|
|
|
|
9543 |
|
|
|
|
|
|
|
9544 |
|
9545 |
-
|
9546 |
-
* Internal dependencies
|
9547 |
-
*/
|
9548 |
|
|
|
9549 |
|
|
|
|
|
9550 |
|
|
|
|
|
|
|
|
|
|
|
|
|
9551 |
|
9552 |
-
|
9553 |
-
|
9554 |
|
9555 |
-
|
9556 |
-
const appRoot = document.getElementById('root');
|
9557 |
-
const embeddedRoot = document.getElementById('woocommerce-embedded-root');
|
9558 |
-
const settingsGroup = 'wc_admin';
|
9559 |
-
const hydrateUser = window.wcSettings.currentUserData;
|
9560 |
|
9561 |
-
|
9562 |
-
|
9563 |
-
const hydrateSettings = window.wcSettings.preloadSettings && window.wcSettings.preloadSettings.general;
|
9564 |
|
9565 |
-
|
9566 |
-
|
9567 |
-
|
9568 |
-
})(HydratedPageLayout);
|
9569 |
-
}
|
9570 |
|
9571 |
-
|
9572 |
-
HydratedPageLayout = Object(_woocommerce_data__WEBPACK_IMPORTED_MODULE_2__["withCurrentUserHydration"])(hydrateUser)(HydratedPageLayout);
|
9573 |
-
}
|
9574 |
|
9575 |
-
|
9576 |
-
|
9577 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9578 |
|
9579 |
-
|
9580 |
-
|
9581 |
-
} // Render the header.
|
9582 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9583 |
|
9584 |
-
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(HydratedEmbedLayout, null), embeddedRoot);
|
9585 |
-
embeddedRoot.classList.remove('is-embed-loading'); // Render notices just above the WP content div.
|
9586 |
|
9587 |
-
|
9588 |
-
const wrap = wpBody.querySelector('.wrap.woocommerce') || wpBody.querySelector('.wrap');
|
9589 |
-
const noticeContainer = document.createElement('div');
|
9590 |
-
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
|
9591 |
-
className: "woocommerce-layout"
|
9592 |
-
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_layout__WEBPACK_IMPORTED_MODULE_4__[/* PrimaryLayout */ "c"], null)), wpBody.insertBefore(noticeContainer, wrap));
|
9593 |
-
const embeddedBodyContainer = document.createElement('div');
|
9594 |
-
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_embedded_body_layout__WEBPACK_IMPORTED_MODULE_6__[/* EmbeddedBodyLayout */ "a"], null), wpBody.insertBefore(embeddedBodyContainer, wrap.nextSibling));
|
9595 |
-
} // Render the CustomerEffortScoreTracksContainer only if
|
9596 |
-
// the feature flag is enabled.
|
9597 |
|
|
|
|
|
9598 |
|
9599 |
-
|
9600 |
-
|
9601 |
-
(function () {
|
9602 |
-
const root = appRoot || embeddedRoot;
|
9603 |
-
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_customer_effort_score_tracks__WEBPACK_IMPORTED_MODULE_5__[/* CustomerEffortScoreTracksContainer */ "a"], null), root.insertBefore(document.createElement('div'), null));
|
9604 |
-
})();
|
9605 |
}
|
9606 |
-
|
|
|
9607 |
|
9608 |
/***/ }),
|
9609 |
|
9610 |
-
/***/
|
9611 |
/***/ (function(module, exports) {
|
9612 |
|
9613 |
-
|
|
|
|
|
|
|
|
|
|
|
9614 |
|
9615 |
-
|
|
|
|
|
9616 |
|
9617 |
-
|
9618 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9619 |
|
9620 |
-
|
|
|
|
|
|
|
9621 |
|
9622 |
/***/ }),
|
9623 |
|
9624 |
-
/***/
|
9625 |
/***/ (function(module, exports) {
|
9626 |
|
9627 |
-
|
|
|
|
|
|
|
|
|
9628 |
|
9629 |
/***/ }),
|
9630 |
|
9631 |
-
/***/
|
9632 |
-
/***/ (function(module,
|
9633 |
|
9634 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9635 |
|
9636 |
-
/***/ }),
|
9637 |
|
9638 |
-
/***/ 283:
|
9639 |
-
/***/ (function(module, exports, __webpack_require__) {
|
9640 |
|
9641 |
-
|
9642 |
|
9643 |
-
|
9644 |
|
9645 |
-
|
9646 |
-
|
|
|
9647 |
|
9648 |
-
|
|
|
|
|
9649 |
|
9650 |
-
/***/ }),
|
9651 |
|
9652 |
-
|
9653 |
-
/***/ (function(module, exports, __webpack_require__) {
|
9654 |
|
9655 |
-
|
|
|
|
|
|
|
|
|
9656 |
|
9657 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9658 |
|
9659 |
-
|
9660 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
9661 |
|
9662 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9663 |
|
9664 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9665 |
|
9666 |
-
|
9667 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
9668 |
|
9669 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9670 |
|
9671 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9672 |
|
9673 |
-
|
9674 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
9675 |
|
9676 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9677 |
|
9678 |
/***/ }),
|
9679 |
|
9680 |
-
/***/
|
9681 |
/***/ (function(module, exports, __webpack_require__) {
|
9682 |
|
9683 |
-
|
|
|
|
|
|
|
|
|
|
|
9684 |
|
9685 |
-
|
|
|
9686 |
|
9687 |
-
|
9688 |
-
|
|
|
|
|
|
|
|
|
|
|
9689 |
|
9690 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9691 |
|
9692 |
-
|
|
|
|
|
|
|
|
|
9693 |
|
9694 |
-
|
9695 |
-
|
|
|
9696 |
|
9697 |
-
|
9698 |
-
|
9699 |
-
|
9700 |
-
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8);
|
9701 |
-
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
|
9702 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9703 |
|
9704 |
-
|
9705 |
-
|
9706 |
-
|
|
|
9707 |
|
9708 |
-
|
9709 |
-
|
9710 |
-
|
9711 |
-
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
|
9712 |
-
d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
|
9713 |
-
}));
|
9714 |
-
/* harmony default export */ __webpack_exports__["a"] = (chevronLeft);
|
9715 |
-
//# sourceMappingURL=chevron-left.js.map
|
9716 |
|
9717 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
9718 |
|
9719 |
-
|
9720 |
-
|
|
|
|
|
|
|
|
|
9721 |
|
9722 |
-
|
9723 |
-
|
9724 |
-
|
9725 |
-
|
9726 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9727 |
|
9728 |
-
for
|
9729 |
-
|
9730 |
-
|
9731 |
-
|
|
|
|
|
|
|
|
|
9732 |
}
|
9733 |
|
9734 |
-
|
9735 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9736 |
|
9737 |
-
|
9738 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9739 |
|
9740 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
9741 |
|
9742 |
-
|
9743 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9744 |
|
9745 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9746 |
|
9747 |
-
|
9748 |
-
subClass.prototype = Object.create(superClass.prototype);
|
9749 |
-
subClass.prototype.constructor = subClass;
|
9750 |
-
setPrototypeOf(subClass, superClass);
|
9751 |
-
}
|
9752 |
|
9753 |
-
|
9754 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9755 |
|
9756 |
-
|
|
|
|
|
|
|
9757 |
|
9758 |
-
|
9759 |
-
|
|
|
|
|
9760 |
|
9761 |
-
|
9762 |
-
|
9763 |
-
|
9764 |
-
|
9765 |
-
};
|
9766 |
|
9767 |
-
|
9768 |
-
|
9769 |
-
}
|
9770 |
|
9771 |
-
|
9772 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9773 |
|
9774 |
-
|
|
|
|
|
|
|
9775 |
|
9776 |
-
|
9777 |
-
|
|
|
|
|
|
|
9778 |
|
9779 |
-
|
9780 |
-
if (self === void 0) {
|
9781 |
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
9782 |
-
}
|
9783 |
|
9784 |
-
|
9785 |
-
|
|
|
9786 |
|
9787 |
-
|
9788 |
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
9789 |
|
9790 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
9791 |
|
9792 |
-
|
9793 |
-
|
|
|
9794 |
|
9795 |
-
|
|
|
|
|
|
|
9796 |
|
9797 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9798 |
|
9799 |
-
|
9800 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9801 |
|
9802 |
-
|
9803 |
-
|
9804 |
-
|
|
|
9805 |
|
|
|
|
|
9806 |
|
9807 |
-
|
9808 |
|
9809 |
-
|
9810 |
-
|
|
|
|
|
|
|
|
|
9811 |
|
9812 |
-
|
9813 |
|
9814 |
-
|
|
|
|
|
|
|
|
|
|
|
9815 |
|
9816 |
-
|
9817 |
-
|
|
|
|
|
9818 |
|
9819 |
-
|
|
|
9820 |
|
9821 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9822 |
|
9823 |
-
|
9824 |
-
|
|
|
|
|
9825 |
|
9826 |
-
|
|
|
|
|
|
|
|
|
9827 |
|
9828 |
-
|
|
|
|
|
9829 |
|
9830 |
-
|
9831 |
-
/***/ (function(module, exports, __webpack_require__) {
|
9832 |
|
9833 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9834 |
|
|
|
|
|
|
|
9835 |
|
9836 |
-
|
9837 |
-
var
|
9838 |
-
var formats = __webpack_require__(39);
|
9839 |
|
9840 |
-
|
9841 |
-
|
9842 |
-
|
9843 |
-
stringify: stringify
|
9844 |
-
};
|
9845 |
|
|
|
|
|
|
|
|
|
9846 |
|
9847 |
-
|
|
|
9848 |
|
9849 |
-
|
9850 |
-
|
|
|
|
|
|
|
|
|
9851 |
|
9852 |
-
function
|
9853 |
-
|
9854 |
-
|
9855 |
-
|
|
|
|
|
|
|
|
|
9856 |
|
9857 |
-
|
9858 |
-
|
9859 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9860 |
}
|
9861 |
}
|
9862 |
-
}
|
9863 |
|
9864 |
-
|
|
|
|
|
|
|
|
|
|
|
9865 |
};
|
9866 |
|
9867 |
-
|
9868 |
-
|
9869 |
-
|
|
|
|
|
|
|
9870 |
|
9871 |
-
|
9872 |
-
|
|
|
9873 |
|
9874 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9875 |
|
9876 |
-
|
9877 |
-
|
9878 |
|
9879 |
-
|
|
|
9880 |
|
|
|
|
|
|
|
9881 |
|
9882 |
-
|
9883 |
-
|
|
|
|
|
9884 |
|
9885 |
-
|
9886 |
-
|
9887 |
-
|
9888 |
-
};
|
9889 |
|
9890 |
-
|
9891 |
-
|
9892 |
-
formatters: {
|
9893 |
-
RFC1738: function (value) {
|
9894 |
-
return replace.call(value, percentTwenties, '+');
|
9895 |
-
},
|
9896 |
-
RFC3986: function (value) {
|
9897 |
-
return String(value);
|
9898 |
-
}
|
9899 |
-
},
|
9900 |
-
RFC1738: Format.RFC1738,
|
9901 |
-
RFC3986: Format.RFC3986
|
9902 |
-
};
|
9903 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9904 |
|
9905 |
-
|
|
|
9906 |
|
9907 |
-
|
9908 |
-
/***/ (function(module, exports) {
|
9909 |
|
9910 |
-
(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9911 |
|
9912 |
-
|
|
|
9913 |
|
9914 |
-
|
9915 |
-
|
|
|
|
|
|
|
9916 |
|
9917 |
-
|
9918 |
-
|
9919 |
-
var prefix = 'Invariant failed';
|
9920 |
-
function invariant(condition, message) {
|
9921 |
-
if (condition) {
|
9922 |
-
return;
|
9923 |
-
}
|
9924 |
-
if (isProduction) {
|
9925 |
-
throw new Error(prefix);
|
9926 |
-
}
|
9927 |
-
throw new Error(prefix + ": " + (message || ''));
|
9928 |
-
}
|
9929 |
|
9930 |
-
|
|
|
|
|
|
|
9931 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9932 |
|
9933 |
-
|
|
|
9934 |
|
9935 |
-
|
9936 |
-
|
|
|
9937 |
|
9938 |
-
"
|
9939 |
-
|
9940 |
-
|
9941 |
-
|
9942 |
-
|
9943 |
-
|
9944 |
-
*/
|
9945 |
|
|
|
|
|
|
|
9946 |
|
|
|
|
|
|
|
|
|
|
|
|
|
9947 |
|
9948 |
-
|
|
|
|
|
|
|
9949 |
|
9950 |
-
|
9951 |
-
|
9952 |
-
|
|
|
9953 |
|
9954 |
-
|
9955 |
-
|
9956 |
-
|
9957 |
-
|
9958 |
-
|
9959 |
-
}
|
9960 |
-
var err = new Error(
|
9961 |
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
9962 |
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
9963 |
-
'Read more at http://fb.me/use-check-prop-types'
|
9964 |
-
);
|
9965 |
-
err.name = 'Invariant Violation';
|
9966 |
-
throw err;
|
9967 |
-
};
|
9968 |
-
shim.isRequired = shim;
|
9969 |
-
function getShim() {
|
9970 |
-
return shim;
|
9971 |
-
};
|
9972 |
-
// Important!
|
9973 |
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
9974 |
-
var ReactPropTypes = {
|
9975 |
-
array: shim,
|
9976 |
-
bool: shim,
|
9977 |
-
func: shim,
|
9978 |
-
number: shim,
|
9979 |
-
object: shim,
|
9980 |
-
string: shim,
|
9981 |
-
symbol: shim,
|
9982 |
|
9983 |
-
|
9984 |
-
|
9985 |
-
|
9986 |
-
|
9987 |
-
|
9988 |
-
|
9989 |
-
|
9990 |
-
|
9991 |
-
|
9992 |
-
|
9993 |
-
exact: getShim,
|
9994 |
|
9995 |
-
|
9996 |
-
|
9997 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
9998 |
|
9999 |
-
|
|
|
|
|
10000 |
|
10001 |
-
|
10002 |
-
|
|
|
|
|
|
|
10003 |
|
|
|
|
|
10004 |
|
10005 |
-
|
|
|
|
|
|
|
10006 |
|
10007 |
-
|
10008 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10009 |
|
10010 |
-
|
10011 |
-
|
10012 |
-
|
10013 |
-
|
10014 |
-
|
10015 |
-
|
10016 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
10017 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10018 |
|
|
|
|
|
|
|
|
|
10019 |
|
10020 |
-
|
|
|
|
|
|
|
|
|
|
|
10021 |
|
10022 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10023 |
|
|
|
|
|
|
|
|
|
|
|
10024 |
|
10025 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
10026 |
|
10027 |
-
|
10028 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10029 |
|
10030 |
-
(function() { module.exports = window["wc"]["csvExport"]; }());
|
10031 |
|
10032 |
/***/ }),
|
10033 |
|
10034 |
-
/***/
|
10035 |
/***/ (function(module, exports, __webpack_require__) {
|
10036 |
|
10037 |
"use strict";
|
10038 |
|
10039 |
|
10040 |
-
var formats = __webpack_require__(
|
10041 |
|
10042 |
var has = Object.prototype.hasOwnProperty;
|
10043 |
var isArray = Array.isArray;
|
@@ -10290,159 +12092,38 @@ module.exports = {
|
|
10290 |
|
10291 |
/***/ }),
|
10292 |
|
10293 |
-
/***/
|
10294 |
-
/***/ (function(module, exports
|
10295 |
-
|
10296 |
-
"use strict";
|
10297 |
-
|
10298 |
-
|
10299 |
-
/**
|
10300 |
-
* Copyright (c) 2013-present, Facebook, Inc.
|
10301 |
-
*
|
10302 |
-
* This source code is licensed under the MIT license found in the
|
10303 |
-
* LICENSE file in the root directory of this source tree.
|
10304 |
-
*
|
10305 |
-
*
|
10306 |
-
*/
|
10307 |
|
10308 |
-
function
|
10309 |
-
|
10310 |
-
return
|
10311 |
};
|
|
|
10312 |
}
|
10313 |
|
10314 |
-
|
10315 |
-
* This function accepts and discards inputs; it has no side effects. This is
|
10316 |
-
* primarily useful idiomatically for overridable function endpoints which
|
10317 |
-
* always need to be callable, since JS lacks a null-call idiom ala Cocoa.
|
10318 |
-
*/
|
10319 |
-
var emptyFunction = function emptyFunction() {};
|
10320 |
-
|
10321 |
-
emptyFunction.thatReturns = makeEmptyFunction;
|
10322 |
-
emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
|
10323 |
-
emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
|
10324 |
-
emptyFunction.thatReturnsNull = makeEmptyFunction(null);
|
10325 |
-
emptyFunction.thatReturnsThis = function () {
|
10326 |
-
return this;
|
10327 |
-
};
|
10328 |
-
emptyFunction.thatReturnsArgument = function (arg) {
|
10329 |
-
return arg;
|
10330 |
-
};
|
10331 |
-
|
10332 |
-
module.exports = emptyFunction;
|
10333 |
-
|
10334 |
-
/***/ }),
|
10335 |
-
|
10336 |
-
/***/ 493:
|
10337 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10338 |
-
|
10339 |
-
"use strict";
|
10340 |
-
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
10341 |
-
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
10342 |
-
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8);
|
10343 |
-
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
|
10344 |
-
|
10345 |
-
|
10346 |
-
/**
|
10347 |
-
* WordPress dependencies
|
10348 |
-
*/
|
10349 |
-
|
10350 |
-
var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
|
10351 |
-
xmlns: "http://www.w3.org/2000/svg",
|
10352 |
-
viewBox: "0 0 24 24"
|
10353 |
-
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
|
10354 |
-
d: "M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"
|
10355 |
-
}));
|
10356 |
-
/* harmony default export */ __webpack_exports__["a"] = (close);
|
10357 |
-
//# sourceMappingURL=close.js.map
|
10358 |
-
|
10359 |
-
/***/ }),
|
10360 |
-
|
10361 |
-
/***/ 494:
|
10362 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10363 |
-
|
10364 |
-
"use strict";
|
10365 |
-
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
10366 |
-
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
10367 |
-
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8);
|
10368 |
-
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
|
10369 |
-
|
10370 |
-
|
10371 |
-
/**
|
10372 |
-
* WordPress dependencies
|
10373 |
-
*/
|
10374 |
-
|
10375 |
-
var page = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
|
10376 |
-
xmlns: "http://www.w3.org/2000/svg",
|
10377 |
-
viewBox: "0 0 24 24"
|
10378 |
-
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
|
10379 |
-
d: "M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"
|
10380 |
-
}));
|
10381 |
-
/* harmony default export */ __webpack_exports__["a"] = (page);
|
10382 |
-
//# sourceMappingURL=page.js.map
|
10383 |
-
|
10384 |
-
/***/ }),
|
10385 |
-
|
10386 |
-
/***/ 495:
|
10387 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10388 |
-
|
10389 |
-
"use strict";
|
10390 |
-
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
10391 |
-
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
10392 |
-
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8);
|
10393 |
-
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
|
10394 |
-
|
10395 |
-
|
10396 |
-
/**
|
10397 |
-
* WordPress dependencies
|
10398 |
-
*/
|
10399 |
-
|
10400 |
-
var box = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
|
10401 |
-
xmlns: "http://www.w3.org/2000/svg",
|
10402 |
-
viewBox: "0 0 24 24"
|
10403 |
-
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
|
10404 |
-
fillRule: "evenodd",
|
10405 |
-
d: "M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z",
|
10406 |
-
clipRule: "evenodd"
|
10407 |
-
}));
|
10408 |
-
/* harmony default export */ __webpack_exports__["a"] = (box);
|
10409 |
-
//# sourceMappingURL=box.js.map
|
10410 |
|
10411 |
/***/ }),
|
10412 |
|
10413 |
-
/***/
|
10414 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10415 |
|
10416 |
"use strict";
|
10417 |
-
/* harmony
|
10418 |
-
|
10419 |
-
|
10420 |
-
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
|
10421 |
-
|
10422 |
-
|
10423 |
-
/**
|
10424 |
-
* WordPress dependencies
|
10425 |
-
*/
|
10426 |
|
10427 |
-
var
|
10428 |
-
|
10429 |
-
|
10430 |
-
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
|
10431 |
-
d: "M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"
|
10432 |
-
}));
|
10433 |
-
/* harmony default export */ __webpack_exports__["a"] = (external);
|
10434 |
-
//# sourceMappingURL=external.js.map
|
10435 |
-
|
10436 |
-
/***/ }),
|
10437 |
-
|
10438 |
-
/***/ 5:
|
10439 |
-
/***/ (function(module, exports) {
|
10440 |
|
10441 |
-
|
|
|
10442 |
|
10443 |
/***/ }),
|
10444 |
|
10445 |
-
/***/
|
10446 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10447 |
|
10448 |
"use strict";
|
@@ -10457,7 +12138,7 @@ __webpack_require__.d(__webpack_exports__, "d", function() { return /* binding *
|
|
10457 |
// UNUSED EXPORTS: createHashHistory, parsePath
|
10458 |
|
10459 |
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
10460 |
-
var esm_extends = __webpack_require__(
|
10461 |
|
10462 |
// CONCATENATED MODULE: ./node_modules/resolve-pathname/esm/resolve-pathname.js
|
10463 |
function isAbsolute(pathname) {
|
@@ -10575,7 +12256,7 @@ function valueEqual(a, b) {
|
|
10575 |
/* harmony default export */ var value_equal = (valueEqual);
|
10576 |
|
10577 |
// EXTERNAL MODULE: ./node_modules/tiny-invariant/dist/tiny-invariant.esm.js
|
10578 |
-
var tiny_invariant_esm = __webpack_require__(
|
10579 |
|
10580 |
// CONCATENATED MODULE: ./node_modules/history/esm/history.js
|
10581 |
|
@@ -11501,339 +13182,230 @@ function createMemoryHistory(props) {
|
|
11501 |
|
11502 |
/***/ }),
|
11503 |
|
11504 |
-
/***/
|
11505 |
-
/***/ (function(module,
|
11506 |
|
11507 |
-
|
11508 |
-
|
11509 |
-
|
11510 |
-
|
11511 |
-
|
11512 |
-
|
11513 |
-
|
|
|
|
|
|
|
11514 |
|
11515 |
/***/ }),
|
11516 |
|
11517 |
-
/***/
|
11518 |
/***/ (function(module, exports) {
|
11519 |
|
11520 |
-
(function() { module.exports =
|
11521 |
|
11522 |
/***/ }),
|
11523 |
|
11524 |
-
/***/
|
11525 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
11526 |
|
11527 |
"use strict";
|
11528 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
11529 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
11530 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
11531 |
-
|
11532 |
-
|
11533 |
-
|
11534 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isWCAdmin; });
|
11535 |
-
/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
|
11536 |
-
/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_0__);
|
11537 |
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
11538 |
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
11539 |
-
/* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15);
|
11540 |
-
/**
|
11541 |
-
* External dependencies
|
11542 |
-
*/
|
11543 |
|
|
|
11544 |
|
|
|
|
|
11545 |
|
|
|
11546 |
/**
|
11547 |
-
*
|
11548 |
*
|
11549 |
-
*
|
11550 |
-
*
|
11551 |
*/
|
11552 |
|
11553 |
-
function getCountryCode(countryState) {
|
11554 |
-
if (!countryState) {
|
11555 |
-
return null;
|
11556 |
-
}
|
11557 |
-
|
11558 |
-
return countryState.split(':')[0];
|
11559 |
-
}
|
11560 |
-
function getCurrencyRegion(countryState) {
|
11561 |
-
let region = getCountryCode(countryState);
|
11562 |
-
const euCountries = Object(lodash__WEBPACK_IMPORTED_MODULE_1__["without"])(Object(_woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_2__[/* getSetting */ "f"])('onboarding', {
|
11563 |
-
euCountries: []
|
11564 |
-
}).euCountries, 'GB');
|
11565 |
-
|
11566 |
-
if (euCountries.includes(region)) {
|
11567 |
-
region = 'EU';
|
11568 |
-
}
|
11569 |
|
11570 |
-
return region;
|
11571 |
-
}
|
11572 |
-
/**
|
11573 |
-
* Gets the product IDs for items based on the product types and theme selected in the onboarding profiler.
|
11574 |
-
*
|
11575 |
-
* @param {Object} profileItems Onboarding profile.
|
11576 |
-
* @param {boolean} includeInstalledItems Include installed items in returned product IDs.
|
11577 |
-
* @param {Array} installedPlugins Installed plugins.
|
11578 |
-
* @return {Array} Product Ids.
|
11579 |
-
*/
|
11580 |
|
11581 |
-
|
11582 |
-
const productList = getProductList(profileItems, includeInstalledItems, installedPlugins);
|
11583 |
-
const productIds = productList.map(product => product.id || product.product);
|
11584 |
-
return productIds;
|
11585 |
-
}
|
11586 |
-
/**
|
11587 |
-
* Gets the labeled/categorized product names and types for items based on the product types and theme selected in the onboarding profiler.
|
11588 |
-
*
|
11589 |
-
* @param {Object} profileItems Onboarding profile.
|
11590 |
-
* @param {Array} installedPlugins Installed plugins.
|
11591 |
-
* @return {Array} Objects with labeled/categorized product names and types.
|
11592 |
-
*/
|
11593 |
|
11594 |
-
function
|
11595 |
-
|
11596 |
-
|
11597 |
-
productList.remainingProducts = getProductList(profileItems, false, installedPlugins);
|
11598 |
-
const uniqueItemsList = [...new Set([...productList.products, ...productList.remainingProducts])];
|
11599 |
-
productList.uniqueItemsList = uniqueItemsList.map(product => {
|
11600 |
-
let cleanedProduct;
|
11601 |
|
11602 |
-
|
11603 |
-
|
11604 |
-
|
11605 |
-
|
11606 |
-
|
11607 |
-
} else {
|
11608 |
-
cleanedProduct = {
|
11609 |
-
type: 'theme',
|
11610 |
-
name: product.title
|
11611 |
-
};
|
11612 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11613 |
|
11614 |
-
|
11615 |
-
|
11616 |
-
|
11617 |
-
|
11618 |
-
|
11619 |
-
|
11620 |
-
|
11621 |
-
|
11622 |
-
|
11623 |
-
|
11624 |
-
|
11625 |
-
*/
|
11626 |
|
11627 |
-
|
11628 |
-
|
11629 |
-
|
11630 |
-
// so bail early if it isn't present.
|
11631 |
|
11632 |
-
|
11633 |
-
|
11634 |
-
|
|
|
11635 |
|
11636 |
-
const productTypes = profileItems.product_types || [];
|
11637 |
-
productTypes.forEach(productType => {
|
11638 |
-
if (onboarding.productTypes[productType] && onboarding.productTypes[productType].product && (includeInstalledItems || !installedPlugins.includes(onboarding.productTypes[productType].slug))) {
|
11639 |
-
productList.push(onboarding.productTypes[productType]);
|
11640 |
-
}
|
11641 |
-
});
|
11642 |
-
const theme = onboarding.themes.find(themeData => themeData.slug === profileItems.theme);
|
11643 |
|
11644 |
-
|
11645 |
-
productList.push(theme);
|
11646 |
-
}
|
11647 |
|
11648 |
-
|
11649 |
-
|
11650 |
-
/**
|
11651 |
-
* Get the value of a price from a string, removing any non-numeric characters.
|
11652 |
-
*
|
11653 |
-
* @param {string} string Price string.
|
11654 |
-
* @return {number} Number value.
|
11655 |
-
*/
|
11656 |
|
11657 |
-
|
11658 |
-
return Number(Object(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_0__["decodeEntities"])(string).replace(/[^0-9.-]+/g, ''));
|
11659 |
-
}
|
11660 |
/**
|
11661 |
-
*
|
11662 |
*
|
11663 |
-
*
|
11664 |
-
*
|
11665 |
*/
|
11666 |
|
11667 |
-
|
11668 |
-
|
11669 |
-
|
|
|
|
|
|
|
11670 |
|
11671 |
/***/ }),
|
11672 |
|
11673 |
-
/***/
|
11674 |
/***/ (function(module, exports, __webpack_require__) {
|
11675 |
|
11676 |
-
|
11677 |
-
Copyright (c) 2018 Jed Watson.
|
11678 |
-
Licensed under the MIT License (MIT), see
|
11679 |
-
http://jedwatson.github.io/classnames
|
11680 |
-
*/
|
11681 |
-
/* global define */
|
11682 |
|
11683 |
-
(function () {
|
11684 |
-
'use strict';
|
11685 |
|
11686 |
-
|
11687 |
|
11688 |
-
|
11689 |
-
|
11690 |
|
11691 |
-
|
11692 |
-
var arg = arguments[i];
|
11693 |
-
if (!arg) continue;
|
11694 |
|
11695 |
-
|
|
|
11696 |
|
11697 |
-
|
11698 |
-
|
11699 |
-
|
11700 |
-
|
11701 |
-
|
11702 |
-
|
11703 |
-
|
11704 |
-
|
11705 |
-
|
11706 |
-
|
11707 |
-
|
11708 |
-
|
11709 |
-
|
11710 |
-
|
11711 |
-
|
11712 |
-
|
11713 |
-
|
11714 |
-
|
11715 |
-
|
11716 |
-
|
11717 |
-
}
|
11718 |
|
11719 |
-
return classes.join(' ');
|
11720 |
-
}
|
11721 |
|
11722 |
-
if ( true && module.exports) {
|
11723 |
-
classNames.default = classNames;
|
11724 |
-
module.exports = classNames;
|
11725 |
-
} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
|
11726 |
-
// register as 'classnames', consistent with npm package name
|
11727 |
-
define('classnames', [], function () {
|
11728 |
-
return classNames;
|
11729 |
-
});
|
11730 |
-
} else {
|
11731 |
-
window.classNames = classNames;
|
11732 |
-
}
|
11733 |
-
}());
|
11734 |
|
11735 |
|
|
|
|
|
|
|
|
|
11736 |
/***/ }),
|
11737 |
|
11738 |
-
/***/
|
11739 |
-
/***/ (function(module,
|
11740 |
|
11741 |
-
|
11742 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getUnreadOrders; });
|
11743 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getOrderStatuses; });
|
11744 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getLowStockCountQuery; });
|
11745 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getLowStockCount; });
|
11746 |
-
/* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
|
11747 |
-
/* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_data__WEBPACK_IMPORTED_MODULE_0__);
|
11748 |
-
/* harmony import */ var _analytics_settings_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(254);
|
11749 |
-
/**
|
11750 |
-
* External dependencies
|
11751 |
-
*/
|
11752 |
|
11753 |
-
|
11754 |
-
|
11755 |
-
|
|
|
11756 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11757 |
|
11758 |
-
|
11759 |
-
|
11760 |
-
|
11761 |
-
getItemsError,
|
11762 |
-
isResolving
|
11763 |
-
} = select(_woocommerce_data__WEBPACK_IMPORTED_MODULE_0__["ITEMS_STORE_NAME"]);
|
11764 |
|
11765 |
-
|
11766 |
-
return 0;
|
11767 |
-
}
|
11768 |
|
11769 |
-
const ordersQuery = {
|
11770 |
-
page: 1,
|
11771 |
-
per_page: 1,
|
11772 |
-
// Core endpoint requires per_page > 0.
|
11773 |
-
status: orderStatuses,
|
11774 |
-
_fields: ['id']
|
11775 |
-
};
|
11776 |
-
const defaultValue = null; // Disable eslint rule requiring `totalOrders` to be defined below because the next two statements
|
11777 |
-
// depend on `getItemsTotalCount` to have been called.
|
11778 |
-
// eslint-disable-next-line @wordpress/no-unused-vars-before-return
|
11779 |
|
11780 |
-
|
11781 |
-
const isError = Boolean(getItemsError('orders', ordersQuery));
|
11782 |
-
const isRequesting = isResolving('getItemsTotalCount', ['orders', ordersQuery, defaultValue]);
|
11783 |
|
11784 |
-
|
11785 |
-
|
11786 |
-
}
|
11787 |
|
11788 |
-
|
11789 |
-
|
11790 |
-
|
11791 |
-
const {
|
11792 |
-
getSetting: getMutableSetting
|
11793 |
-
} = select(_woocommerce_data__WEBPACK_IMPORTED_MODULE_0__["SETTINGS_STORE_NAME"]);
|
11794 |
-
const {
|
11795 |
-
woocommerce_actionable_order_statuses: orderStatuses = _analytics_settings_config__WEBPACK_IMPORTED_MODULE_1__[/* DEFAULT_ACTIONABLE_STATUSES */ "a"]
|
11796 |
-
} = getMutableSetting('wc_admin', 'wcAdminSettings', {});
|
11797 |
-
return orderStatuses;
|
11798 |
-
}
|
11799 |
-
const getLowStockCountQuery = {
|
11800 |
-
page: 1,
|
11801 |
-
per_page: 1,
|
11802 |
-
low_in_stock: true,
|
11803 |
-
status: 'publish',
|
11804 |
-
_fields: ['id']
|
11805 |
-
};
|
11806 |
-
function getLowStockCount(select) {
|
11807 |
-
const {
|
11808 |
-
getItemsTotalCount,
|
11809 |
-
getItemsError,
|
11810 |
-
isResolving
|
11811 |
-
} = select(_woocommerce_data__WEBPACK_IMPORTED_MODULE_0__["ITEMS_STORE_NAME"]);
|
11812 |
-
const defaultValue = null; // Disable eslint rule requiring `totalLowStockProducts` to be defined below because the next two statements
|
11813 |
-
// depend on `getItemsTotalCount` to have been called.
|
11814 |
-
// eslint-disable-next-line @wordpress/no-unused-vars-before-return
|
11815 |
-
|
11816 |
-
const totalLowStockProducts = getItemsTotalCount('products/low-in-stock', getLowStockCountQuery, defaultValue);
|
11817 |
-
const isError = Boolean(getItemsError('products/low-in-stock', getLowStockCountQuery));
|
11818 |
-
const isRequesting = isResolving('getItemsTotalCount', ['products/low-in-stock', getLowStockCountQuery, defaultValue]);
|
11819 |
-
|
11820 |
-
if (isError || isRequesting && totalLowStockProducts === defaultValue) {
|
11821 |
-
return null;
|
11822 |
}
|
11823 |
|
11824 |
-
return
|
11825 |
}
|
11826 |
|
|
|
|
|
11827 |
/***/ }),
|
11828 |
|
11829 |
-
/***/
|
11830 |
/***/ (function(module, exports, __webpack_require__) {
|
11831 |
|
11832 |
"use strict";
|
11833 |
|
11834 |
|
11835 |
-
var utils = __webpack_require__(
|
11836 |
-
var formats = __webpack_require__(
|
11837 |
var has = Object.prototype.hasOwnProperty;
|
11838 |
|
11839 |
var arrayPrefixGenerators = {
|
@@ -12112,13 +13684,13 @@ module.exports = function (object, opts) {
|
|
12112 |
|
12113 |
/***/ }),
|
12114 |
|
12115 |
-
/***/
|
12116 |
/***/ (function(module, exports, __webpack_require__) {
|
12117 |
|
12118 |
"use strict";
|
12119 |
|
12120 |
|
12121 |
-
var utils = __webpack_require__(
|
12122 |
|
12123 |
var has = Object.prototype.hasOwnProperty;
|
12124 |
var isArray = Array.isArray;
|
@@ -12312,586 +13884,271 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesPars
|
|
12312 |
// If there's a remainder, just add whatever is left
|
12313 |
|
12314 |
if (segment) {
|
12315 |
-
keys.push('[' + key.slice(segment.index) + ']');
|
12316 |
-
}
|
12317 |
-
|
12318 |
-
return parseObject(keys, val, options, valuesParsed);
|
12319 |
-
};
|
12320 |
-
|
12321 |
-
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
12322 |
-
if (!opts) {
|
12323 |
-
return defaults;
|
12324 |
-
}
|
12325 |
-
|
12326 |
-
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
12327 |
-
throw new TypeError('Decoder has to be a function.');
|
12328 |
-
}
|
12329 |
-
|
12330 |
-
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
12331 |
-
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
12332 |
-
}
|
12333 |
-
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
12334 |
-
|
12335 |
-
return {
|
12336 |
-
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
12337 |
-
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
12338 |
-
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
12339 |
-
charset: charset,
|
12340 |
-
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
12341 |
-
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
12342 |
-
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
12343 |
-
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
12344 |
-
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
12345 |
-
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
12346 |
-
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
12347 |
-
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
12348 |
-
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
12349 |
-
parseArrays: opts.parseArrays !== false,
|
12350 |
-
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
12351 |
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
12352 |
-
};
|
12353 |
-
};
|
12354 |
-
|
12355 |
-
module.exports = function (str, opts) {
|
12356 |
-
var options = normalizeParseOptions(opts);
|
12357 |
-
|
12358 |
-
if (str === '' || str === null || typeof str === 'undefined') {
|
12359 |
-
return options.plainObjects ? Object.create(null) : {};
|
12360 |
-
}
|
12361 |
-
|
12362 |
-
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
12363 |
-
var obj = options.plainObjects ? Object.create(null) : {};
|
12364 |
-
|
12365 |
-
// Iterate over the keys and setup the new object
|
12366 |
-
|
12367 |
-
var keys = Object.keys(tempObj);
|
12368 |
-
for (var i = 0; i < keys.length; ++i) {
|
12369 |
-
var key = keys[i];
|
12370 |
-
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
12371 |
-
obj = utils.merge(obj, newObj, options);
|
12372 |
-
}
|
12373 |
-
|
12374 |
-
return utils.compact(obj);
|
12375 |
-
};
|
12376 |
-
|
12377 |
-
|
12378 |
-
/***/ }),
|
12379 |
-
|
12380 |
-
/***/ 69:
|
12381 |
-
/***/ (function(module, exports, __webpack_require__) {
|
12382 |
-
|
12383 |
-
"use strict";
|
12384 |
-
/**
|
12385 |
-
* Copyright (c) 2015-present, Facebook, Inc.
|
12386 |
-
*
|
12387 |
-
* This source code is licensed under the MIT license found in the
|
12388 |
-
* LICENSE file in the root directory of this source tree.
|
12389 |
-
*/
|
12390 |
-
|
12391 |
-
|
12392 |
-
|
12393 |
-
var React = __webpack_require__(5);
|
12394 |
-
|
12395 |
-
var REACT_ELEMENT_TYPE =
|
12396 |
-
(typeof Symbol === 'function' && Symbol.for && Symbol.for('react.element')) ||
|
12397 |
-
0xeac7;
|
12398 |
-
|
12399 |
-
var emptyFunction = __webpack_require__(49);
|
12400 |
-
var invariant = __webpack_require__(70);
|
12401 |
-
var warning = __webpack_require__(71);
|
12402 |
-
|
12403 |
-
var SEPARATOR = '.';
|
12404 |
-
var SUBSEPARATOR = ':';
|
12405 |
-
|
12406 |
-
var didWarnAboutMaps = false;
|
12407 |
-
|
12408 |
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
12409 |
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
12410 |
-
|
12411 |
-
function getIteratorFn(maybeIterable) {
|
12412 |
-
var iteratorFn =
|
12413 |
-
maybeIterable &&
|
12414 |
-
((ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL]) ||
|
12415 |
-
maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
12416 |
-
if (typeof iteratorFn === 'function') {
|
12417 |
-
return iteratorFn;
|
12418 |
-
}
|
12419 |
-
}
|
12420 |
-
|
12421 |
-
function escape(key) {
|
12422 |
-
var escapeRegex = /[=:]/g;
|
12423 |
-
var escaperLookup = {
|
12424 |
-
'=': '=0',
|
12425 |
-
':': '=2'
|
12426 |
-
};
|
12427 |
-
var escapedString = ('' + key).replace(escapeRegex, function(match) {
|
12428 |
-
return escaperLookup[match];
|
12429 |
-
});
|
12430 |
-
|
12431 |
-
return '$' + escapedString;
|
12432 |
-
}
|
12433 |
-
|
12434 |
-
function getComponentKey(component, index) {
|
12435 |
-
// Do some typechecking here since we call this blindly. We want to ensure
|
12436 |
-
// that we don't block potential future ES APIs.
|
12437 |
-
if (component && typeof component === 'object' && component.key != null) {
|
12438 |
-
// Explicit key
|
12439 |
-
return escape(component.key);
|
12440 |
-
}
|
12441 |
-
// Implicit key determined by the index in the set
|
12442 |
-
return index.toString(36);
|
12443 |
-
}
|
12444 |
-
|
12445 |
-
function traverseAllChildrenImpl(
|
12446 |
-
children,
|
12447 |
-
nameSoFar,
|
12448 |
-
callback,
|
12449 |
-
traverseContext
|
12450 |
-
) {
|
12451 |
-
var type = typeof children;
|
12452 |
-
|
12453 |
-
if (type === 'undefined' || type === 'boolean') {
|
12454 |
-
// All of the above are perceived as null.
|
12455 |
-
children = null;
|
12456 |
-
}
|
12457 |
-
|
12458 |
-
if (
|
12459 |
-
children === null ||
|
12460 |
-
type === 'string' ||
|
12461 |
-
type === 'number' ||
|
12462 |
-
// The following is inlined from ReactElement. This means we can optimize
|
12463 |
-
// some checks. React Fiber also inlines this logic for similar purposes.
|
12464 |
-
(type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE)
|
12465 |
-
) {
|
12466 |
-
callback(
|
12467 |
-
traverseContext,
|
12468 |
-
children,
|
12469 |
-
// If it's the only child, treat the name as if it was wrapped in an array
|
12470 |
-
// so that it's consistent if the number of children grows.
|
12471 |
-
nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar
|
12472 |
-
);
|
12473 |
-
return 1;
|
12474 |
-
}
|
12475 |
-
|
12476 |
-
var child;
|
12477 |
-
var nextName;
|
12478 |
-
var subtreeCount = 0; // Count of children found in the current subtree.
|
12479 |
-
var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
12480 |
-
|
12481 |
-
if (Array.isArray(children)) {
|
12482 |
-
for (var i = 0; i < children.length; i++) {
|
12483 |
-
child = children[i];
|
12484 |
-
nextName = nextNamePrefix + getComponentKey(child, i);
|
12485 |
-
subtreeCount += traverseAllChildrenImpl(
|
12486 |
-
child,
|
12487 |
-
nextName,
|
12488 |
-
callback,
|
12489 |
-
traverseContext
|
12490 |
-
);
|
12491 |
-
}
|
12492 |
-
} else {
|
12493 |
-
var iteratorFn = getIteratorFn(children);
|
12494 |
-
if (iteratorFn) {
|
12495 |
-
if (false) {}
|
12496 |
-
|
12497 |
-
var iterator = iteratorFn.call(children);
|
12498 |
-
var step;
|
12499 |
-
var ii = 0;
|
12500 |
-
while (!(step = iterator.next()).done) {
|
12501 |
-
child = step.value;
|
12502 |
-
nextName = nextNamePrefix + getComponentKey(child, ii++);
|
12503 |
-
subtreeCount += traverseAllChildrenImpl(
|
12504 |
-
child,
|
12505 |
-
nextName,
|
12506 |
-
callback,
|
12507 |
-
traverseContext
|
12508 |
-
);
|
12509 |
-
}
|
12510 |
-
} else if (type === 'object') {
|
12511 |
-
var addendum = '';
|
12512 |
-
if (false) {}
|
12513 |
-
var childrenString = '' + children;
|
12514 |
-
invariant(
|
12515 |
-
false,
|
12516 |
-
'Objects are not valid as a React child (found: %s).%s',
|
12517 |
-
childrenString === '[object Object]'
|
12518 |
-
? 'object with keys {' + Object.keys(children).join(', ') + '}'
|
12519 |
-
: childrenString,
|
12520 |
-
addendum
|
12521 |
-
);
|
12522 |
-
}
|
12523 |
-
}
|
12524 |
-
|
12525 |
-
return subtreeCount;
|
12526 |
-
}
|
12527 |
-
|
12528 |
-
function traverseAllChildren(children, callback, traverseContext) {
|
12529 |
-
if (children == null) {
|
12530 |
-
return 0;
|
12531 |
-
}
|
12532 |
-
|
12533 |
-
return traverseAllChildrenImpl(children, '', callback, traverseContext);
|
12534 |
-
}
|
12535 |
-
|
12536 |
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
12537 |
-
function escapeUserProvidedKey(text) {
|
12538 |
-
return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
|
12539 |
-
}
|
12540 |
-
|
12541 |
-
function cloneAndReplaceKey(oldElement, newKey) {
|
12542 |
-
return React.cloneElement(
|
12543 |
-
oldElement,
|
12544 |
-
{key: newKey},
|
12545 |
-
oldElement.props !== undefined ? oldElement.props.children : undefined
|
12546 |
-
);
|
12547 |
-
}
|
12548 |
-
|
12549 |
-
var DEFAULT_POOL_SIZE = 10;
|
12550 |
-
var DEFAULT_POOLER = oneArgumentPooler;
|
12551 |
-
|
12552 |
-
var oneArgumentPooler = function(copyFieldsFrom) {
|
12553 |
-
var Klass = this;
|
12554 |
-
if (Klass.instancePool.length) {
|
12555 |
-
var instance = Klass.instancePool.pop();
|
12556 |
-
Klass.call(instance, copyFieldsFrom);
|
12557 |
-
return instance;
|
12558 |
-
} else {
|
12559 |
-
return new Klass(copyFieldsFrom);
|
12560 |
-
}
|
12561 |
-
};
|
12562 |
-
|
12563 |
-
var addPoolingTo = function addPoolingTo(CopyConstructor, pooler) {
|
12564 |
-
// Casting as any so that flow ignores the actual implementation and trusts
|
12565 |
-
// it to match the type we declared
|
12566 |
-
var NewKlass = CopyConstructor;
|
12567 |
-
NewKlass.instancePool = [];
|
12568 |
-
NewKlass.getPooled = pooler || DEFAULT_POOLER;
|
12569 |
-
if (!NewKlass.poolSize) {
|
12570 |
-
NewKlass.poolSize = DEFAULT_POOL_SIZE;
|
12571 |
-
}
|
12572 |
-
NewKlass.release = standardReleaser;
|
12573 |
-
return NewKlass;
|
12574 |
-
};
|
12575 |
|
12576 |
-
|
12577 |
-
var Klass = this;
|
12578 |
-
invariant(
|
12579 |
-
instance instanceof Klass,
|
12580 |
-
'Trying to release an instance into a pool of a different type.'
|
12581 |
-
);
|
12582 |
-
instance.destructor();
|
12583 |
-
if (Klass.instancePool.length < Klass.poolSize) {
|
12584 |
-
Klass.instancePool.push(instance);
|
12585 |
-
}
|
12586 |
};
|
12587 |
|
12588 |
-
var
|
12589 |
-
|
12590 |
-
|
12591 |
-
|
12592 |
-
Klass.call(instance, a1, a2, a3, a4);
|
12593 |
-
return instance;
|
12594 |
-
} else {
|
12595 |
-
return new Klass(a1, a2, a3, a4);
|
12596 |
-
}
|
12597 |
-
};
|
12598 |
|
12599 |
-
|
12600 |
-
|
12601 |
-
|
12602 |
-
this.func = mapFunction;
|
12603 |
-
this.context = mapContext;
|
12604 |
-
this.count = 0;
|
12605 |
-
}
|
12606 |
-
MapBookKeeping.prototype.destructor = function() {
|
12607 |
-
this.result = null;
|
12608 |
-
this.keyPrefix = null;
|
12609 |
-
this.func = null;
|
12610 |
-
this.context = null;
|
12611 |
-
this.count = 0;
|
12612 |
-
};
|
12613 |
-
addPoolingTo(MapBookKeeping, fourArgumentPooler);
|
12614 |
-
|
12615 |
-
function mapSingleChildIntoContext(bookKeeping, child, childKey) {
|
12616 |
-
var result = bookKeeping.result;
|
12617 |
-
var keyPrefix = bookKeeping.keyPrefix;
|
12618 |
-
var func = bookKeeping.func;
|
12619 |
-
var context = bookKeeping.context;
|
12620 |
-
|
12621 |
-
var mappedChild = func.call(context, child, bookKeeping.count++);
|
12622 |
-
if (Array.isArray(mappedChild)) {
|
12623 |
-
mapIntoWithKeyPrefixInternal(
|
12624 |
-
mappedChild,
|
12625 |
-
result,
|
12626 |
-
childKey,
|
12627 |
-
emptyFunction.thatReturnsArgument
|
12628 |
-
);
|
12629 |
-
} else if (mappedChild != null) {
|
12630 |
-
if (React.isValidElement(mappedChild)) {
|
12631 |
-
mappedChild = cloneAndReplaceKey(
|
12632 |
-
mappedChild,
|
12633 |
-
// Keep both the (mapped) and old keys if they differ, just as
|
12634 |
-
// traverseAllChildren used to do for objects as children
|
12635 |
-
keyPrefix +
|
12636 |
-
(mappedChild.key && (!child || child.key !== mappedChild.key)
|
12637 |
-
? escapeUserProvidedKey(mappedChild.key) + '/'
|
12638 |
-
: '') +
|
12639 |
-
childKey
|
12640 |
-
);
|
12641 |
-
}
|
12642 |
-
result.push(mappedChild);
|
12643 |
-
}
|
12644 |
-
}
|
12645 |
-
|
12646 |
-
function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
|
12647 |
-
var escapedPrefix = '';
|
12648 |
-
if (prefix != null) {
|
12649 |
-
escapedPrefix = escapeUserProvidedKey(prefix) + '/';
|
12650 |
-
}
|
12651 |
-
var traverseContext = MapBookKeeping.getPooled(
|
12652 |
-
array,
|
12653 |
-
escapedPrefix,
|
12654 |
-
func,
|
12655 |
-
context
|
12656 |
-
);
|
12657 |
-
traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
|
12658 |
-
MapBookKeeping.release(traverseContext);
|
12659 |
-
}
|
12660 |
|
12661 |
-
|
|
|
|
|
|
|
12662 |
|
12663 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12664 |
|
12665 |
-
function
|
12666 |
-
|
12667 |
-
warning(
|
12668 |
-
false,
|
12669 |
-
'React.addons.createFragment only accepts a single object. Got: %s',
|
12670 |
-
object
|
12671 |
-
);
|
12672 |
-
return object;
|
12673 |
-
}
|
12674 |
-
if (React.isValidElement(object)) {
|
12675 |
-
warning(
|
12676 |
-
false,
|
12677 |
-
'React.addons.createFragment does not accept a ReactElement ' +
|
12678 |
-
'without a wrapper object.'
|
12679 |
-
);
|
12680 |
-
return object;
|
12681 |
-
}
|
12682 |
|
12683 |
-
|
12684 |
-
|
12685 |
-
|
12686 |
-
'elements are not valid children of React components.'
|
12687 |
-
);
|
12688 |
|
12689 |
-
|
|
|
12690 |
|
12691 |
-
|
12692 |
-
if (false) {}
|
12693 |
-
mapIntoWithKeyPrefixInternal(
|
12694 |
-
object[key],
|
12695 |
-
result,
|
12696 |
-
key,
|
12697 |
-
emptyFunction.thatReturnsArgument
|
12698 |
-
);
|
12699 |
-
}
|
12700 |
|
12701 |
-
|
12702 |
-
|
|
|
|
|
|
|
|
|
12703 |
|
12704 |
-
|
|
|
12705 |
|
12706 |
|
12707 |
/***/ }),
|
12708 |
|
12709 |
-
/***/
|
12710 |
-
/***/ (function(module,
|
|
|
|
|
|
|
|
|
12711 |
|
12712 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12713 |
|
12714 |
/***/ }),
|
12715 |
|
12716 |
-
/***/
|
12717 |
-
/***/ (function(module,
|
12718 |
|
12719 |
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12720 |
/**
|
12721 |
-
*
|
12722 |
-
*
|
12723 |
-
* This source code is licensed under the MIT license found in the
|
12724 |
-
* LICENSE file in the root directory of this source tree.
|
12725 |
-
*
|
12726 |
*/
|
12727 |
|
12728 |
|
12729 |
|
12730 |
/**
|
12731 |
-
*
|
12732 |
-
*
|
12733 |
-
* Provide sprintf-style format (only %s is supported) and arguments
|
12734 |
-
* to provide information about what broke and what you were
|
12735 |
-
* expecting.
|
12736 |
*
|
12737 |
-
*
|
12738 |
-
*
|
12739 |
*/
|
12740 |
|
12741 |
-
|
12742 |
-
|
12743 |
-
|
12744 |
-
|
12745 |
-
function invariant(condition, format, a, b, c, d, e, f) {
|
12746 |
-
validateFormat(format);
|
12747 |
-
|
12748 |
-
if (!condition) {
|
12749 |
-
var error;
|
12750 |
-
if (format === undefined) {
|
12751 |
-
error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
|
12752 |
-
} else {
|
12753 |
-
var args = [a, b, c, d, e, f];
|
12754 |
-
var argIndex = 0;
|
12755 |
-
error = new Error(format.replace(/%s/g, function () {
|
12756 |
-
return args[argIndex++];
|
12757 |
-
}));
|
12758 |
-
error.name = 'Invariant Violation';
|
12759 |
-
}
|
12760 |
-
|
12761 |
-
error.framesToPop = 1; // we don't care about invariant's own frame
|
12762 |
-
throw error;
|
12763 |
}
|
12764 |
-
}
|
12765 |
-
|
12766 |
-
module.exports = invariant;
|
12767 |
|
12768 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
12769 |
|
12770 |
-
|
12771 |
-
|
|
|
12772 |
|
12773 |
-
|
|
|
12774 |
/**
|
12775 |
-
*
|
12776 |
-
*
|
12777 |
-
* This source code is licensed under the MIT license found in the
|
12778 |
-
* LICENSE file in the root directory of this source tree.
|
12779 |
*
|
|
|
|
|
|
|
|
|
12780 |
*/
|
12781 |
|
12782 |
-
|
12783 |
-
|
12784 |
-
var
|
12785 |
-
|
|
|
|
|
|
|
|
|
|
|
12786 |
/**
|
12787 |
-
*
|
12788 |
-
*
|
12789 |
-
*
|
12790 |
-
*
|
|
|
12791 |
*/
|
12792 |
|
12793 |
-
|
12794 |
-
|
12795 |
-
|
12796 |
-
|
12797 |
-
module.exports = warning;
|
12798 |
-
|
12799 |
-
/***/ }),
|
12800 |
|
12801 |
-
|
12802 |
-
/***/ (function(module, exports, __webpack_require__) {
|
12803 |
|
12804 |
-
|
|
|
12805 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12806 |
|
12807 |
-
|
12808 |
-
|
12809 |
-
|
12810 |
-
return {
|
12811 |
-
type: 'componentClose',
|
12812 |
-
value: item.replace(/\W/g, '')
|
12813 |
-
};
|
12814 |
-
}
|
12815 |
-
// {{example /}}
|
12816 |
-
if (item.match(/\/\}\}$/)) {
|
12817 |
-
return {
|
12818 |
-
type: 'componentSelfClosing',
|
12819 |
-
value: item.replace(/\W/g, '')
|
12820 |
-
};
|
12821 |
-
}
|
12822 |
-
// {{example}}
|
12823 |
-
if (item.match(/^\{\{/)) {
|
12824 |
-
return {
|
12825 |
-
type: 'componentOpen',
|
12826 |
-
value: item.replace(/\W/g, '')
|
12827 |
-
};
|
12828 |
-
}
|
12829 |
-
return {
|
12830 |
-
type: 'string',
|
12831 |
-
value: item
|
12832 |
-
};
|
12833 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12834 |
|
12835 |
-
|
12836 |
-
|
12837 |
-
|
12838 |
-
};
|
12839 |
-
|
12840 |
-
|
12841 |
-
/***/ }),
|
12842 |
|
12843 |
-
|
12844 |
-
|
|
|
12845 |
|
12846 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12847 |
|
12848 |
-
|
12849 |
-
|
12850 |
-
|
12851 |
-
})();
|
12852 |
|
12853 |
-
|
12854 |
-
// This works if eval is allowed (see CSP)
|
12855 |
-
g = g || new Function("return this")();
|
12856 |
-
} catch (e) {
|
12857 |
-
// This works if the window reference is available
|
12858 |
-
if (typeof window === "object") g = window;
|
12859 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
12860 |
|
12861 |
-
|
12862 |
-
|
12863 |
-
|
12864 |
-
|
12865 |
-
|
12866 |
-
|
12867 |
-
|
12868 |
-
|
12869 |
-
|
12870 |
-
/***/ 8:
|
12871 |
-
/***/ (function(module, exports) {
|
12872 |
-
|
12873 |
-
(function() { module.exports = window["wp"]["primitives"]; }());
|
12874 |
-
|
12875 |
-
/***/ }),
|
12876 |
-
|
12877 |
-
/***/ 88:
|
12878 |
-
/***/ (function(module, exports) {
|
12879 |
|
12880 |
-
|
|
|
|
|
12881 |
|
12882 |
/***/ }),
|
12883 |
|
12884 |
-
/***/
|
12885 |
/***/ (function(module, exports) {
|
12886 |
|
12887 |
-
|
|
|
|
|
|
|
|
|
12888 |
|
12889 |
-
|
|
|
|
|
|
|
|
|
12890 |
|
12891 |
-
|
12892 |
-
|
12893 |
|
12894 |
-
|
12895 |
|
12896 |
/***/ })
|
12897 |
|
35 |
/******/
|
36 |
/******/ // object to store loaded CSS chunks
|
37 |
/******/ var installedCssChunks = {
|
38 |
+
/******/ 21: 0
|
39 |
/******/ }
|
40 |
/******/ var isCssRtlEnabled = function() {
|
41 |
/******/ return document.dir === 'rtl';
|
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) {
|
95 |
/******/
|
96 |
/******/
|
97 |
/******/ // mini-css-extract-plugin CSS loading
|
98 |
+
/******/ var cssChunks = {"0":1,"3":1,"4":1,"7":1,"9":1,"14":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) {
|
259 |
/******/
|
260 |
/******/
|
261 |
/******/ // Load entry module and return exports
|
262 |
+
/******/ return __webpack_require__(__webpack_require__.s = 295);
|
263 |
/******/ })
|
264 |
/************************************************************************/
|
265 |
/******/ ({
|
267 |
/***/ 0:
|
268 |
/***/ (function(module, exports) {
|
269 |
|
270 |
+
(function() { module.exports = this["wp"]["element"]; }());
|
271 |
|
272 |
/***/ }),
|
273 |
|
284 |
if (false) { var throwOnDirectAccess, ReactIs; } else {
|
285 |
// By explicitly using `prop-types` you are opting into new production behavior.
|
286 |
// http://fb.me/prop-types-in-prod
|
287 |
+
module.exports = __webpack_require__(77)();
|
288 |
}
|
289 |
|
290 |
|
293 |
/***/ 10:
|
294 |
/***/ (function(module, exports) {
|
295 |
|
296 |
+
(function() { module.exports = this["React"]; }());
|
297 |
|
298 |
/***/ }),
|
299 |
|
300 |
+
/***/ 11:
|
301 |
+
/***/ (function(module, exports) {
|
|
|
|
|
|
|
302 |
|
303 |
+
(function() { module.exports = this["wp"]["data"]; }());
|
304 |
|
305 |
/***/ }),
|
306 |
|
307 |
+
/***/ 111:
|
308 |
+
/***/ (function(module, exports) {
|
309 |
|
310 |
+
(function() { module.exports = this["wc"]["currency"]; }());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
|
312 |
+
/***/ }),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
|
314 |
+
/***/ 12:
|
315 |
+
/***/ (function(module, exports) {
|
316 |
+
|
317 |
+
function _classCallCheck(instance, Constructor) {
|
318 |
+
if (!(instance instanceof Constructor)) {
|
319 |
+
throw new TypeError("Cannot call a class as a function");
|
320 |
+
}
|
321 |
}
|
322 |
|
323 |
+
module.exports = _classCallCheck;
|
324 |
+
|
325 |
/***/ }),
|
326 |
|
327 |
+
/***/ 121:
|
328 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
329 |
|
330 |
"use strict";
|
331 |
|
332 |
+
// EXPORTS
|
333 |
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ build_module_focus; });
|
334 |
|
335 |
+
// UNUSED EXPORTS: isHorizontalEdge, isVerticalEdge, getRectangleFromRange, computeCaretRect, placeCaretAtHorizontalEdge, placeCaretAtVerticalEdge, isTextField, isNumberInput, documentHasTextSelection, documentHasUncollapsedSelection, documentHasSelection, isEntirelySelected, getScrollContainer, getOffsetParent, replace, remove, insertAfter, unwrap, replaceTag, wrap, __unstableStripHTML, isEmpty, removeInvalidHTML, getPhrasingContentSchema, isPhrasingContent, isTextContent, getFilesFromDataTransfer
|
|
|
|
|
336 |
|
337 |
+
// NAMESPACE OBJECT: ./node_modules/@wordpress/dom/build-module/focusable.js
|
338 |
+
var focusable_namespaceObject = {};
|
339 |
+
__webpack_require__.r(focusable_namespaceObject);
|
340 |
+
__webpack_require__.d(focusable_namespaceObject, "find", function() { return find; });
|
341 |
|
342 |
+
// NAMESPACE OBJECT: ./node_modules/@wordpress/dom/build-module/tabbable.js
|
343 |
+
var tabbable_namespaceObject = {};
|
344 |
+
__webpack_require__.r(tabbable_namespaceObject);
|
345 |
+
__webpack_require__.d(tabbable_namespaceObject, "isTabbableIndex", function() { return isTabbableIndex; });
|
346 |
+
__webpack_require__.d(tabbable_namespaceObject, "find", function() { return tabbable_find; });
|
347 |
+
__webpack_require__.d(tabbable_namespaceObject, "findPrevious", function() { return findPrevious; });
|
348 |
+
__webpack_require__.d(tabbable_namespaceObject, "findNext", function() { return findNext; });
|
349 |
|
350 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/focusable.js
|
351 |
+
/**
|
352 |
+
* References:
|
353 |
+
*
|
354 |
+
* Focusable:
|
355 |
+
* - https://www.w3.org/TR/html5/editing.html#focus-management
|
356 |
+
*
|
357 |
+
* Sequential focus navigation:
|
358 |
+
* - https://www.w3.org/TR/html5/editing.html#sequential-focus-navigation-and-the-tabindex-attribute
|
359 |
+
*
|
360 |
+
* Disabled elements:
|
361 |
+
* - https://www.w3.org/TR/html5/disabled-elements.html#disabled-elements
|
362 |
+
*
|
363 |
+
* getClientRects algorithm (requiring layout box):
|
364 |
+
* - https://www.w3.org/TR/cssom-view-1/#extension-to-the-element-interface
|
365 |
+
*
|
366 |
+
* AREA elements associated with an IMG:
|
367 |
+
* - https://w3c.github.io/html/editing.html#data-model
|
368 |
+
*/
|
369 |
+
var SELECTOR = ['[tabindex]', 'a[href]', 'button:not([disabled])', 'input:not([type="hidden"]):not([disabled])', 'select:not([disabled])', 'textarea:not([disabled])', 'iframe', 'object', 'embed', 'area[href]', '[contenteditable]:not([contenteditable=false])'].join(',');
|
370 |
+
/**
|
371 |
+
* Returns true if the specified element is visible (i.e. neither display: none
|
372 |
+
* nor visibility: hidden).
|
373 |
+
*
|
374 |
+
* @param {Element} element DOM element to test.
|
375 |
+
*
|
376 |
+
* @return {boolean} Whether element is visible.
|
377 |
+
*/
|
378 |
|
379 |
+
function isVisible(element) {
|
380 |
+
return element.offsetWidth > 0 || element.offsetHeight > 0 || element.getClientRects().length > 0;
|
381 |
+
}
|
382 |
+
/**
|
383 |
+
* Returns true if the specified element should be skipped from focusable elements.
|
384 |
+
* For now it rather specific for `iframes` and if tabindex attribute is set to -1.
|
385 |
+
*
|
386 |
+
* @param {Element} element DOM element to test.
|
387 |
+
*
|
388 |
+
* @return {boolean} Whether element should be skipped from focusable elements.
|
389 |
+
*/
|
390 |
|
|
|
391 |
|
392 |
+
function skipFocus(element) {
|
393 |
+
return element.nodeName.toLowerCase() === 'iframe' && element.getAttribute('tabindex') === '-1';
|
394 |
+
}
|
395 |
+
/**
|
396 |
+
* Returns true if the specified area element is a valid focusable element, or
|
397 |
+
* false otherwise. Area is only focusable if within a map where a named map
|
398 |
+
* referenced by an image somewhere in the document.
|
399 |
+
*
|
400 |
+
* @param {Element} element DOM area element to test.
|
401 |
+
*
|
402 |
+
* @return {boolean} Whether area element is valid for focus.
|
403 |
+
*/
|
404 |
|
|
|
405 |
|
406 |
+
function isValidFocusableArea(element) {
|
407 |
+
var map = element.closest('map[name]');
|
408 |
+
|
409 |
+
if (!map) {
|
410 |
+
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
}
|
412 |
|
413 |
+
var img = element.ownerDocument.querySelector('img[usemap="#' + map.name + '"]');
|
414 |
+
return !!img && isVisible(img);
|
415 |
}
|
416 |
+
/**
|
417 |
+
* Returns all focusable elements within a given context.
|
418 |
+
*
|
419 |
+
* @param {Element} context Element in which to search.
|
420 |
+
*
|
421 |
+
* @return {Element[]} Focusable elements.
|
422 |
+
*/
|
423 |
|
|
|
424 |
|
425 |
+
function find(context) {
|
426 |
+
var elements = context.querySelectorAll(SELECTOR);
|
427 |
+
return Array.from(elements).filter(function (element) {
|
428 |
+
if (!isVisible(element) || skipFocus(element)) {
|
429 |
+
return false;
|
430 |
+
}
|
431 |
|
432 |
+
var nodeName = element.nodeName;
|
|
|
433 |
|
434 |
+
if ('AREA' === nodeName) {
|
435 |
+
return isValidFocusableArea(element);
|
|
|
|
|
|
|
436 |
}
|
|
|
437 |
|
438 |
+
return true;
|
439 |
+
});
|
440 |
}
|
441 |
+
//# sourceMappingURL=focusable.js.map
|
442 |
+
// EXTERNAL MODULE: external "lodash"
|
443 |
+
var external_lodash_ = __webpack_require__(3);
|
444 |
|
445 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/tabbable.js
|
446 |
+
/**
|
447 |
+
* External dependencies
|
448 |
+
*/
|
449 |
|
450 |
+
/**
|
451 |
+
* Internal dependencies
|
452 |
+
*/
|
453 |
|
454 |
|
455 |
+
/**
|
456 |
+
* Returns the tab index of the given element. In contrast with the tabIndex
|
457 |
+
* property, this normalizes the default (0) to avoid browser inconsistencies,
|
458 |
+
* operating under the assumption that this function is only ever called with a
|
459 |
+
* focusable node.
|
460 |
+
*
|
461 |
+
* @see https://bugzilla.mozilla.org/show_bug.cgi?id=1190261
|
462 |
+
*
|
463 |
+
* @param {Element} element Element from which to retrieve.
|
464 |
+
*
|
465 |
+
* @return {?number} Tab index of element (default 0).
|
466 |
+
*/
|
467 |
+
|
468 |
+
function getTabIndex(element) {
|
469 |
+
var tabIndex = element.getAttribute('tabindex');
|
470 |
+
return tabIndex === null ? 0 : parseInt(tabIndex, 10);
|
471 |
+
}
|
472 |
+
/**
|
473 |
+
* Returns true if the specified element is tabbable, or false otherwise.
|
474 |
+
*
|
475 |
+
* @param {Element} element Element to test.
|
476 |
+
*
|
477 |
+
* @return {boolean} Whether element is tabbable.
|
478 |
+
*/
|
479 |
|
|
|
480 |
|
481 |
+
function isTabbableIndex(element) {
|
482 |
+
return getTabIndex(element) !== -1;
|
483 |
+
}
|
484 |
/**
|
485 |
+
* Returns a stateful reducer function which constructs a filtered array of
|
486 |
+
* tabbable elements, where at most one radio input is selected for a given
|
487 |
+
* name, giving priority to checked input, falling back to the first
|
488 |
+
* encountered.
|
489 |
+
*
|
490 |
+
* @return {Function} Radio group collapse reducer.
|
491 |
*/
|
492 |
|
493 |
+
function createStatefulCollapseRadioGroup() {
|
494 |
+
var CHOSEN_RADIO_BY_NAME = {};
|
495 |
+
return function collapseRadioGroup(result, element) {
|
496 |
+
var nodeName = element.nodeName,
|
497 |
+
type = element.type,
|
498 |
+
checked = element.checked,
|
499 |
+
name = element.name; // For all non-radio tabbables, construct to array by concatenating.
|
500 |
+
|
501 |
+
if (nodeName !== 'INPUT' || type !== 'radio' || !name) {
|
502 |
+
return result.concat(element);
|
503 |
+
}
|
504 |
+
|
505 |
+
var hasChosen = CHOSEN_RADIO_BY_NAME.hasOwnProperty(name); // Omit by skipping concatenation if the radio element is not chosen.
|
506 |
|
507 |
+
var isChosen = checked || !hasChosen;
|
508 |
+
|
509 |
+
if (!isChosen) {
|
510 |
+
return result;
|
511 |
+
} // At this point, if there had been a chosen element, the current
|
512 |
+
// element is checked and should take priority. Retroactively remove
|
513 |
+
// the element which had previously been considered the chosen one.
|
514 |
+
|
515 |
+
|
516 |
+
if (hasChosen) {
|
517 |
+
var hadChosenElement = CHOSEN_RADIO_BY_NAME[name];
|
518 |
+
result = Object(external_lodash_["without"])(result, hadChosenElement);
|
519 |
+
}
|
520 |
+
|
521 |
+
CHOSEN_RADIO_BY_NAME[name] = element;
|
522 |
+
return result.concat(element);
|
523 |
+
};
|
524 |
+
}
|
525 |
/**
|
526 |
+
* An array map callback, returning an object with the element value and its
|
527 |
+
* array index location as properties. This is used to emulate a proper stable
|
528 |
+
* sort where equal tabIndex should be left in order of their occurrence in the
|
529 |
+
* document.
|
530 |
*
|
531 |
+
* @param {Element} element Element.
|
532 |
+
* @param {number} index Array index of element.
|
|
|
533 |
*
|
534 |
+
* @return {Object} Mapped object with element, index.
|
535 |
*/
|
536 |
|
|
|
|
|
|
|
|
|
|
|
537 |
|
538 |
+
function mapElementToObjectTabbable(element, index) {
|
539 |
+
return {
|
540 |
+
element: element,
|
541 |
+
index: index
|
542 |
+
};
|
543 |
}
|
544 |
+
/**
|
545 |
+
* An array map callback, returning an element of the given mapped object's
|
546 |
+
* element value.
|
547 |
+
*
|
548 |
+
* @param {Object} object Mapped object with index.
|
549 |
+
*
|
550 |
+
* @return {Element} Mapped object element.
|
551 |
+
*/
|
552 |
|
|
|
|
|
553 |
|
554 |
+
function mapObjectTabbableToElement(object) {
|
555 |
+
return object.element;
|
556 |
+
}
|
557 |
+
/**
|
558 |
+
* A sort comparator function used in comparing two objects of mapped elements.
|
559 |
+
*
|
560 |
+
* @see mapElementToObjectTabbable
|
561 |
+
*
|
562 |
+
* @param {Object} a First object to compare.
|
563 |
+
* @param {Object} b Second object to compare.
|
564 |
+
*
|
565 |
+
* @return {number} Comparator result.
|
566 |
+
*/
|
567 |
|
|
|
|
|
568 |
|
569 |
+
function compareObjectTabbables(a, b) {
|
570 |
+
var aTabIndex = getTabIndex(a.element);
|
571 |
+
var bTabIndex = getTabIndex(b.element);
|
572 |
|
573 |
+
if (aTabIndex === bTabIndex) {
|
574 |
+
return a.index - b.index;
|
575 |
+
}
|
576 |
|
577 |
+
return aTabIndex - bTabIndex;
|
578 |
+
}
|
579 |
+
/**
|
580 |
+
* Givin focusable elements, filters out tabbable element.
|
581 |
+
*
|
582 |
+
* @param {Array} focusables Focusable elements to filter.
|
583 |
+
*
|
584 |
+
* @return {Array} Tabbable elements.
|
585 |
+
*/
|
586 |
|
587 |
+
|
588 |
+
function filterTabbable(focusables) {
|
589 |
+
return focusables.filter(isTabbableIndex).map(mapElementToObjectTabbable).sort(compareObjectTabbables).map(mapObjectTabbableToElement).reduce(createStatefulCollapseRadioGroup(), []);
|
590 |
+
}
|
591 |
+
|
592 |
+
function tabbable_find(context) {
|
593 |
+
return filterTabbable(find(context));
|
594 |
+
}
|
595 |
/**
|
596 |
+
* Given a focusable element, find the preceding tabbable element.
|
597 |
+
*
|
598 |
+
* @param {Element} element The focusable element before which to look. Defaults
|
599 |
+
* to the active element.
|
600 |
*/
|
601 |
|
602 |
+
function findPrevious(element) {
|
603 |
+
var focusables = find(element.ownerDocument.body);
|
604 |
+
var index = focusables.indexOf(element); // Remove all focusables after and including `element`.
|
605 |
|
606 |
+
focusables.length = index;
|
607 |
+
return Object(external_lodash_["last"])(filterTabbable(focusables));
|
608 |
+
}
|
609 |
+
/**
|
610 |
+
* Given a focusable element, find the next tabbable element.
|
611 |
+
*
|
612 |
+
* @param {Element} element The focusable element after which to look. Defaults
|
613 |
+
* to the active element.
|
614 |
+
*/
|
615 |
|
616 |
+
function findNext(element) {
|
617 |
+
var focusables = find(element.ownerDocument.body);
|
618 |
+
var index = focusables.indexOf(element); // Remove all focusables before and inside `element`.
|
619 |
|
620 |
+
var remaining = focusables.slice(index + 1).filter(function (node) {
|
621 |
+
return !element.contains(node);
|
622 |
+
});
|
623 |
+
return Object(external_lodash_["first"])(filterTabbable(remaining));
|
624 |
+
}
|
625 |
+
//# sourceMappingURL=tabbable.js.map
|
626 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/dom/build-module/index.js
|
627 |
/**
|
628 |
* Internal dependencies
|
629 |
*/
|
630 |
|
631 |
+
|
632 |
+
/**
|
633 |
+
* Object grouping `focusable` and `tabbable` utils
|
634 |
+
* under the keys with the same name.
|
635 |
+
*/
|
636 |
+
|
637 |
+
var build_module_focus = {
|
638 |
+
focusable: focusable_namespaceObject,
|
639 |
+
tabbable: tabbable_namespaceObject
|
640 |
+
};
|
641 |
+
|
642 |
+
|
643 |
+
|
644 |
+
//# sourceMappingURL=index.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
645 |
|
646 |
/***/ }),
|
647 |
|
648 |
+
/***/ 122:
|
649 |
/***/ (function(module, exports, __webpack_require__) {
|
650 |
|
651 |
"use strict";
|
652 |
+
var _extends=Object.assign||function(a){for(var c,b=1;b<arguments.length;b++)for(var d in c=arguments[b],c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d]);return a};Object.defineProperty(exports,'__esModule',{value:!0});exports.default=function(a){var b=a.size,c=b===void 0?24:b,d=a.onClick,e=a.icon,f=a.className,g=_objectWithoutProperties(a,['size','onClick','icon','className']),j=['gridicon','gridicons-cross-small',f,!1,!1,!1].filter(Boolean).join(' ');return _react2.default.createElement('svg',_extends({className:j,height:c,width:c,onClick:d},g,{xmlns:'http://www.w3.org/2000/svg',viewBox:'0 0 24 24'}),_react2.default.createElement('g',null,_react2.default.createElement('path',{d:'M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z'})))};var _react=__webpack_require__(10),_react2=_interopRequireDefault(_react);function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _objectWithoutProperties(a,b){var d={};for(var c in a)0<=b.indexOf(c)||Object.prototype.hasOwnProperty.call(a,c)&&(d[c]=a[c]);return d}module.exports=exports['default'];
|
653 |
|
654 |
|
655 |
+
/***/ }),
|
656 |
|
657 |
+
/***/ 125:
|
658 |
+
/***/ (function(module, exports) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
659 |
|
660 |
+
// shim for using process in browser
|
661 |
+
var process = module.exports = {};
|
662 |
|
663 |
+
// cached from whatever global is present so that test runners that stub it
|
664 |
+
// don't break things. But we need to wrap it in a try catch in case it is
|
665 |
+
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
666 |
+
// function because try/catches deoptimize in certain engines.
|
667 |
|
668 |
+
var cachedSetTimeout;
|
669 |
+
var cachedClearTimeout;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
670 |
|
671 |
+
function defaultSetTimout() {
|
672 |
+
throw new Error('setTimeout has not been defined');
|
673 |
+
}
|
674 |
+
function defaultClearTimeout () {
|
675 |
+
throw new Error('clearTimeout has not been defined');
|
676 |
+
}
|
677 |
+
(function () {
|
678 |
+
try {
|
679 |
+
if (typeof setTimeout === 'function') {
|
680 |
+
cachedSetTimeout = setTimeout;
|
681 |
+
} else {
|
682 |
+
cachedSetTimeout = defaultSetTimout;
|
683 |
+
}
|
684 |
+
} catch (e) {
|
685 |
+
cachedSetTimeout = defaultSetTimout;
|
686 |
+
}
|
687 |
+
try {
|
688 |
+
if (typeof clearTimeout === 'function') {
|
689 |
+
cachedClearTimeout = clearTimeout;
|
690 |
+
} else {
|
691 |
+
cachedClearTimeout = defaultClearTimeout;
|
692 |
+
}
|
693 |
+
} catch (e) {
|
694 |
+
cachedClearTimeout = defaultClearTimeout;
|
695 |
+
}
|
696 |
+
} ())
|
697 |
+
function runTimeout(fun) {
|
698 |
+
if (cachedSetTimeout === setTimeout) {
|
699 |
+
//normal enviroments in sane situations
|
700 |
+
return setTimeout(fun, 0);
|
701 |
+
}
|
702 |
+
// if setTimeout wasn't available but was latter defined
|
703 |
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
704 |
+
cachedSetTimeout = setTimeout;
|
705 |
+
return setTimeout(fun, 0);
|
706 |
+
}
|
707 |
+
try {
|
708 |
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
709 |
+
return cachedSetTimeout(fun, 0);
|
710 |
+
} catch(e){
|
711 |
+
try {
|
712 |
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
713 |
+
return cachedSetTimeout.call(null, fun, 0);
|
714 |
+
} catch(e){
|
715 |
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
716 |
+
return cachedSetTimeout.call(this, fun, 0);
|
717 |
+
}
|
718 |
}
|
719 |
|
|
|
720 |
|
721 |
+
}
|
722 |
+
function runClearTimeout(marker) {
|
723 |
+
if (cachedClearTimeout === clearTimeout) {
|
724 |
+
//normal enviroments in sane situations
|
725 |
+
return clearTimeout(marker);
|
726 |
+
}
|
727 |
+
// if clearTimeout wasn't available but was latter defined
|
728 |
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
729 |
+
cachedClearTimeout = clearTimeout;
|
730 |
+
return clearTimeout(marker);
|
731 |
+
}
|
732 |
+
try {
|
733 |
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
734 |
+
return cachedClearTimeout(marker);
|
735 |
+
} catch (e){
|
736 |
+
try {
|
737 |
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
738 |
+
return cachedClearTimeout.call(null, marker);
|
739 |
+
} catch (e){
|
740 |
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
741 |
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
742 |
+
return cachedClearTimeout.call(this, marker);
|
743 |
+
}
|
744 |
}
|
745 |
|
|
|
|
|
746 |
|
|
|
|
|
747 |
|
748 |
+
}
|
749 |
+
var queue = [];
|
750 |
+
var draining = false;
|
751 |
+
var currentQueue;
|
752 |
+
var queueIndex = -1;
|
753 |
|
754 |
+
function cleanUpNextTick() {
|
755 |
+
if (!draining || !currentQueue) {
|
756 |
+
return;
|
|
|
|
|
757 |
}
|
758 |
+
draining = false;
|
759 |
+
if (currentQueue.length) {
|
760 |
+
queue = currentQueue.concat(queue);
|
761 |
+
} else {
|
762 |
+
queueIndex = -1;
|
763 |
+
}
|
764 |
+
if (queue.length) {
|
765 |
+
drainQueue();
|
766 |
+
}
|
767 |
+
}
|
768 |
|
769 |
+
function drainQueue() {
|
770 |
+
if (draining) {
|
771 |
+
return;
|
772 |
+
}
|
773 |
+
var timeout = runTimeout(cleanUpNextTick);
|
774 |
+
draining = true;
|
775 |
+
|
776 |
+
var len = queue.length;
|
777 |
+
while(len) {
|
778 |
+
currentQueue = queue;
|
779 |
+
queue = [];
|
780 |
+
while (++queueIndex < len) {
|
781 |
+
if (currentQueue) {
|
782 |
+
currentQueue[queueIndex].run();
|
783 |
+
}
|
784 |
+
}
|
785 |
+
queueIndex = -1;
|
786 |
+
len = queue.length;
|
787 |
+
}
|
788 |
+
currentQueue = null;
|
789 |
+
draining = false;
|
790 |
+
runClearTimeout(timeout);
|
791 |
}
|
792 |
|
793 |
+
process.nextTick = function (fun) {
|
794 |
+
var args = new Array(arguments.length - 1);
|
795 |
+
if (arguments.length > 1) {
|
796 |
+
for (var i = 1; i < arguments.length; i++) {
|
797 |
+
args[i - 1] = arguments[i];
|
798 |
+
}
|
799 |
+
}
|
800 |
+
queue.push(new Item(fun, args));
|
801 |
+
if (queue.length === 1 && !draining) {
|
802 |
+
runTimeout(drainQueue);
|
803 |
+
}
|
804 |
+
};
|
805 |
|
806 |
+
// v8 likes predictible objects
|
807 |
+
function Item(fun, array) {
|
808 |
+
this.fun = fun;
|
809 |
+
this.array = array;
|
810 |
+
}
|
811 |
+
Item.prototype.run = function () {
|
812 |
+
this.fun.apply(null, this.array);
|
813 |
+
};
|
814 |
+
process.title = 'browser';
|
815 |
+
process.browser = true;
|
816 |
+
process.env = {};
|
817 |
+
process.argv = [];
|
818 |
+
process.version = ''; // empty string to avoid regexp issues
|
819 |
+
process.versions = {};
|
820 |
|
821 |
+
function noop() {}
|
822 |
|
823 |
+
process.on = noop;
|
824 |
+
process.addListener = noop;
|
825 |
+
process.once = noop;
|
826 |
+
process.off = noop;
|
827 |
+
process.removeListener = noop;
|
828 |
+
process.removeAllListeners = noop;
|
829 |
+
process.emit = noop;
|
830 |
+
process.prependListener = noop;
|
831 |
+
process.prependOnceListener = noop;
|
832 |
|
833 |
+
process.listeners = function (name) { return [] }
|
834 |
|
835 |
+
process.binding = function (name) {
|
836 |
+
throw new Error('process.binding is not supported');
|
837 |
+
};
|
|
|
838 |
|
839 |
+
process.cwd = function () { return '/' };
|
840 |
+
process.chdir = function (dir) {
|
841 |
+
throw new Error('process.chdir is not supported');
|
842 |
+
};
|
843 |
+
process.umask = function() { return 0; };
|
844 |
|
|
|
|
|
845 |
|
846 |
+
/***/ }),
|
|
|
847 |
|
848 |
+
/***/ 126:
|
849 |
+
/***/ (function(module, exports, __webpack_require__) {
|
850 |
|
851 |
+
"use strict";
|
|
|
852 |
|
|
|
|
|
853 |
|
854 |
+
if (true) {
|
855 |
+
module.exports = __webpack_require__(152);
|
856 |
+
} else {}
|
857 |
|
|
|
|
|
|
|
858 |
|
859 |
+
/***/ }),
|
|
|
860 |
|
861 |
+
/***/ 13:
|
862 |
+
/***/ (function(module, exports) {
|
863 |
|
864 |
+
function _defineProperties(target, props) {
|
865 |
+
for (var i = 0; i < props.length; i++) {
|
866 |
+
var descriptor = props[i];
|
867 |
+
descriptor.enumerable = descriptor.enumerable || false;
|
868 |
+
descriptor.configurable = true;
|
869 |
+
if ("value" in descriptor) descriptor.writable = true;
|
870 |
+
Object.defineProperty(target, descriptor.key, descriptor);
|
871 |
+
}
|
872 |
+
}
|
873 |
|
874 |
+
function _createClass(Constructor, protoProps, staticProps) {
|
875 |
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
876 |
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
877 |
+
return Constructor;
|
878 |
+
}
|
879 |
|
880 |
+
module.exports = _createClass;
|
|
|
|
|
881 |
|
882 |
+
/***/ }),
|
|
|
883 |
|
884 |
+
/***/ 137:
|
885 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
886 |
|
887 |
+
"use strict";
|
888 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
889 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
890 |
+
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(43);
|
891 |
+
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__);
|
892 |
+
/* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(25);
|
893 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0);
|
894 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__);
|
895 |
+
/**
|
896 |
+
* External dependencies
|
897 |
+
*/
|
898 |
|
|
|
899 |
|
900 |
|
901 |
|
902 |
+
var manageStock = Object(_woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_2__[/* getSetting */ "g"])('manageStock', 'no');
|
903 |
+
var REPORTS_FILTER = 'woocommerce_admin_reports_list';
|
904 |
+
/**
|
905 |
+
* Internal dependencies
|
906 |
+
*/
|
907 |
|
908 |
+
var RevenueReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
|
909 |
+
return Promise.all(/* import() | analytics-report-revenue */[__webpack_require__.e(0), __webpack_require__.e(16)]).then(__webpack_require__.bind(null, 487));
|
910 |
+
});
|
911 |
+
var ProductsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
|
912 |
+
return Promise.all(/* import() | analytics-report-products */[__webpack_require__.e(0), __webpack_require__.e(3), __webpack_require__.e(15)]).then(__webpack_require__.bind(null, 483));
|
913 |
+
});
|
914 |
+
var VariationsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
|
915 |
+
return Promise.all(/* import() | analytics-report-variations */[__webpack_require__.e(0), __webpack_require__.e(19)]).then(__webpack_require__.bind(null, 488));
|
916 |
+
});
|
917 |
+
var OrdersReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
|
918 |
+
return Promise.all(/* import() | analytics-report-orders */[__webpack_require__.e(0), __webpack_require__.e(6), __webpack_require__.e(14)]).then(__webpack_require__.bind(null, 489));
|
919 |
+
});
|
920 |
+
var CategoriesReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
|
921 |
+
return Promise.all(/* import() | analytics-report-categories */[__webpack_require__.e(0), __webpack_require__.e(3), __webpack_require__.e(10)]).then(__webpack_require__.bind(null, 485));
|
922 |
+
});
|
923 |
+
var CouponsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
|
924 |
+
return Promise.all(/* import() | analytics-report-coupons */[__webpack_require__.e(0), __webpack_require__.e(11)]).then(__webpack_require__.bind(null, 490));
|
925 |
+
});
|
926 |
+
var TaxesReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
|
927 |
+
return Promise.all(/* import() | analytics-report-taxes */[__webpack_require__.e(0), __webpack_require__.e(18)]).then(__webpack_require__.bind(null, 491));
|
928 |
+
});
|
929 |
+
var DownloadsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
|
930 |
+
return Promise.all(/* import() | analytics-report-downloads */[__webpack_require__.e(0), __webpack_require__.e(13)]).then(__webpack_require__.bind(null, 492));
|
931 |
+
});
|
932 |
+
var StockReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
|
933 |
+
return Promise.all(/* import() | analytics-report-stock */[__webpack_require__.e(0), __webpack_require__.e(17)]).then(__webpack_require__.bind(null, 484));
|
934 |
+
});
|
935 |
+
var CustomersReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
|
936 |
+
return Promise.all(/* import() | analytics-report-customers */[__webpack_require__.e(0), __webpack_require__.e(12)]).then(__webpack_require__.bind(null, 486));
|
937 |
+
});
|
938 |
+
/* harmony default export */ __webpack_exports__["a"] = (function () {
|
939 |
+
var reports = [{
|
940 |
+
report: 'revenue',
|
941 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Revenue', 'woocommerce-admin'),
|
942 |
+
component: RevenueReport,
|
943 |
+
navArgs: {
|
944 |
+
id: 'woocommerce-analytics-revenue'
|
945 |
+
}
|
946 |
+
}, {
|
947 |
+
report: 'products',
|
948 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Products', 'woocommerce-admin'),
|
949 |
+
component: ProductsReport,
|
950 |
+
navArgs: {
|
951 |
+
id: 'woocommerce-analytics-products'
|
952 |
+
}
|
953 |
+
}, {
|
954 |
+
report: 'variations',
|
955 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Variations', 'woocommerce-admin'),
|
956 |
+
component: VariationsReport,
|
957 |
+
navArgs: {
|
958 |
+
id: 'woocommerce-analytics-variations'
|
959 |
+
}
|
960 |
+
}, {
|
961 |
+
report: 'orders',
|
962 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Orders', 'woocommerce-admin'),
|
963 |
+
component: OrdersReport,
|
964 |
+
navArgs: {
|
965 |
+
id: 'woocommerce-analytics-orders'
|
966 |
+
}
|
967 |
+
}, {
|
968 |
+
report: 'categories',
|
969 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Categories', 'woocommerce-admin'),
|
970 |
+
component: CategoriesReport,
|
971 |
+
navArgs: {
|
972 |
+
id: 'woocommerce-analytics-categories'
|
973 |
+
}
|
974 |
+
}, {
|
975 |
+
report: 'coupons',
|
976 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Coupons', 'woocommerce-admin'),
|
977 |
+
component: CouponsReport,
|
978 |
+
navArgs: {
|
979 |
+
id: 'woocommerce-analytics-coupons'
|
980 |
+
}
|
981 |
+
}, {
|
982 |
+
report: 'taxes',
|
983 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Taxes', 'woocommerce-admin'),
|
984 |
+
component: TaxesReport,
|
985 |
+
navArgs: {
|
986 |
+
id: 'woocommerce-analytics-taxes'
|
987 |
+
}
|
988 |
+
}, manageStock === 'yes' ? {
|
989 |
+
report: 'stock',
|
990 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Stock', 'woocommerce-admin'),
|
991 |
+
component: StockReport,
|
992 |
+
navArgs: {
|
993 |
+
id: 'woocommerce-analytics-stock'
|
994 |
+
}
|
995 |
+
} : null, {
|
996 |
+
report: 'customers',
|
997 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Customers', 'woocommerce-admin'),
|
998 |
+
component: CustomersReport
|
999 |
+
}, {
|
1000 |
+
report: 'downloads',
|
1001 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__["__"])('Downloads', 'woocommerce-admin'),
|
1002 |
+
component: DownloadsReport,
|
1003 |
+
navArgs: {
|
1004 |
+
id: 'woocommerce-analytics-downloads'
|
1005 |
+
}
|
1006 |
+
}].filter(Boolean);
|
1007 |
+
return Object(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__["applyFilters"])(REPORTS_FILTER, reports);
|
1008 |
+
});
|
1009 |
|
1010 |
+
/***/ }),
|
1011 |
|
1012 |
+
/***/ 138:
|
1013 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1014 |
|
1015 |
+
"use strict";
|
1016 |
|
1017 |
|
1018 |
+
var reactIs = __webpack_require__(126);
|
1019 |
|
1020 |
+
/**
|
1021 |
+
* Copyright 2015, Yahoo! Inc.
|
1022 |
+
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
1023 |
+
*/
|
1024 |
+
var REACT_STATICS = {
|
1025 |
+
childContextTypes: true,
|
1026 |
+
contextType: true,
|
1027 |
+
contextTypes: true,
|
1028 |
+
defaultProps: true,
|
1029 |
+
displayName: true,
|
1030 |
+
getDefaultProps: true,
|
1031 |
+
getDerivedStateFromError: true,
|
1032 |
+
getDerivedStateFromProps: true,
|
1033 |
+
mixins: true,
|
1034 |
+
propTypes: true,
|
1035 |
+
type: true
|
1036 |
+
};
|
1037 |
+
var KNOWN_STATICS = {
|
1038 |
+
name: true,
|
1039 |
+
length: true,
|
1040 |
+
prototype: true,
|
1041 |
+
caller: true,
|
1042 |
+
callee: true,
|
1043 |
+
arguments: true,
|
1044 |
+
arity: true
|
1045 |
+
};
|
1046 |
+
var FORWARD_REF_STATICS = {
|
1047 |
+
'$$typeof': true,
|
1048 |
+
render: true,
|
1049 |
+
defaultProps: true,
|
1050 |
+
displayName: true,
|
1051 |
+
propTypes: true
|
1052 |
+
};
|
1053 |
+
var MEMO_STATICS = {
|
1054 |
+
'$$typeof': true,
|
1055 |
+
compare: true,
|
1056 |
+
defaultProps: true,
|
1057 |
+
displayName: true,
|
1058 |
+
propTypes: true,
|
1059 |
+
type: true
|
1060 |
+
};
|
1061 |
+
var TYPE_STATICS = {};
|
1062 |
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
1063 |
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
1064 |
|
1065 |
+
function getStatics(component) {
|
1066 |
+
// React v16.11 and below
|
1067 |
+
if (reactIs.isMemo(component)) {
|
1068 |
+
return MEMO_STATICS;
|
1069 |
+
} // React v16.12 and above
|
1070 |
|
1071 |
|
1072 |
+
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
1073 |
+
}
|
1074 |
|
1075 |
+
var defineProperty = Object.defineProperty;
|
1076 |
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
1077 |
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
1078 |
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
1079 |
+
var getPrototypeOf = Object.getPrototypeOf;
|
1080 |
+
var objectPrototype = Object.prototype;
|
1081 |
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
1082 |
+
if (typeof sourceComponent !== 'string') {
|
1083 |
+
// don't hoist over string (html) components
|
1084 |
+
if (objectPrototype) {
|
1085 |
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
1086 |
|
1087 |
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
1088 |
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
1089 |
+
}
|
1090 |
+
}
|
1091 |
|
1092 |
+
var keys = getOwnPropertyNames(sourceComponent);
|
1093 |
|
1094 |
+
if (getOwnPropertySymbols) {
|
1095 |
+
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
1096 |
+
}
|
|
|
|
|
1097 |
|
1098 |
+
var targetStatics = getStatics(targetComponent);
|
1099 |
+
var sourceStatics = getStatics(sourceComponent);
|
|
|
1100 |
|
1101 |
+
for (var i = 0; i < keys.length; ++i) {
|
1102 |
+
var key = keys[i];
|
|
|
1103 |
|
1104 |
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
1105 |
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
|
|
|
1106 |
|
1107 |
+
try {
|
1108 |
+
// Avoid failures from read-only properties
|
1109 |
+
defineProperty(targetComponent, key, descriptor);
|
1110 |
+
} catch (e) {}
|
1111 |
+
}
|
1112 |
+
}
|
1113 |
+
}
|
|
|
1114 |
|
1115 |
+
return targetComponent;
|
1116 |
+
}
|
1117 |
|
1118 |
+
module.exports = hoistNonReactStatics;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1119 |
|
|
|
|
|
1120 |
|
1121 |
+
/***/ }),
|
1122 |
+
|
1123 |
+
/***/ 139:
|
1124 |
+
/***/ (function(module, exports) {
|
1125 |
+
|
1126 |
+
(function() { module.exports = this["wp"]["plugins"]; }());
|
1127 |
+
|
1128 |
+
/***/ }),
|
1129 |
+
|
1130 |
+
/***/ 14:
|
1131 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1132 |
+
|
1133 |
+
var setPrototypeOf = __webpack_require__(72);
|
1134 |
+
|
1135 |
+
function _inherits(subClass, superClass) {
|
1136 |
+
if (typeof superClass !== "function" && superClass !== null) {
|
1137 |
+
throw new TypeError("Super expression must either be null or a function");
|
1138 |
+
}
|
1139 |
+
|
1140 |
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
1141 |
+
constructor: {
|
1142 |
+
value: subClass,
|
1143 |
+
writable: true,
|
1144 |
+
configurable: true
|
1145 |
+
}
|
1146 |
+
});
|
1147 |
+
if (superClass) setPrototypeOf(subClass, superClass);
|
1148 |
+
}
|
1149 |
+
|
1150 |
+
module.exports = _inherits;
|
1151 |
+
|
1152 |
+
/***/ }),
|
1153 |
+
|
1154 |
+
/***/ 140:
|
1155 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1156 |
+
|
1157 |
+
"use strict";
|
1158 |
+
|
1159 |
+
// EXPORTS
|
1160 |
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ speak; });
|
1161 |
+
|
1162 |
+
// UNUSED EXPORTS: setup
|
1163 |
+
|
1164 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/dom-ready/build-module/index.js
|
1165 |
+
var build_module = __webpack_require__(54);
|
1166 |
+
|
1167 |
+
// EXTERNAL MODULE: external {"this":["wp","i18n"]}
|
1168 |
+
var external_this_wp_i18n_ = __webpack_require__(2);
|
1169 |
+
|
1170 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/add-intro-text.js
|
1171 |
+
/**
|
1172 |
+
* WordPress dependencies
|
1173 |
+
*/
|
1174 |
+
|
1175 |
+
/**
|
1176 |
+
* Build the explanatory text to be placed before the aria live regions.
|
1177 |
+
*
|
1178 |
+
* This text is initially hidden from assistive technologies by using a `hidden`
|
1179 |
+
* HTML attribute which is then removed once a message fills the aria-live regions.
|
1180 |
+
*
|
1181 |
+
* @return {HTMLParagraphElement} The explanatory text HTML element.
|
1182 |
+
*/
|
1183 |
+
|
1184 |
+
function addIntroText() {
|
1185 |
+
var introText = document.createElement('p');
|
1186 |
+
introText.id = 'a11y-speak-intro-text';
|
1187 |
+
introText.className = 'a11y-speak-intro-text';
|
1188 |
+
introText.textContent = Object(external_this_wp_i18n_["__"])('Notifications');
|
1189 |
+
introText.setAttribute('style', 'position: absolute;' + 'margin: -1px;' + 'padding: 0;' + 'height: 1px;' + 'width: 1px;' + 'overflow: hidden;' + 'clip: rect(1px, 1px, 1px, 1px);' + '-webkit-clip-path: inset(50%);' + 'clip-path: inset(50%);' + 'border: 0;' + 'word-wrap: normal !important;');
|
1190 |
+
introText.setAttribute('hidden', 'hidden');
|
1191 |
+
var _document = document,
|
1192 |
+
body = _document.body;
|
1193 |
+
|
1194 |
+
if (body) {
|
1195 |
+
body.appendChild(introText);
|
1196 |
+
}
|
1197 |
+
|
1198 |
+
return introText;
|
1199 |
+
}
|
1200 |
+
//# sourceMappingURL=add-intro-text.js.map
|
1201 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/add-container.js
|
1202 |
+
/**
|
1203 |
+
* Build the live regions markup.
|
1204 |
+
*
|
1205 |
+
* @param {string} [ariaLive] Value for the 'aria-live' attribute; default: 'polite'.
|
1206 |
+
*
|
1207 |
+
* @return {HTMLDivElement} The ARIA live region HTML element.
|
1208 |
+
*/
|
1209 |
+
function addContainer() {
|
1210 |
+
var ariaLive = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'polite';
|
1211 |
+
var container = document.createElement('div');
|
1212 |
+
container.id = "a11y-speak-".concat(ariaLive);
|
1213 |
+
container.className = 'a11y-speak-region';
|
1214 |
+
container.setAttribute('style', 'position: absolute;' + 'margin: -1px;' + 'padding: 0;' + 'height: 1px;' + 'width: 1px;' + 'overflow: hidden;' + 'clip: rect(1px, 1px, 1px, 1px);' + '-webkit-clip-path: inset(50%);' + 'clip-path: inset(50%);' + 'border: 0;' + 'word-wrap: normal !important;');
|
1215 |
+
container.setAttribute('aria-live', ariaLive);
|
1216 |
+
container.setAttribute('aria-relevant', 'additions text');
|
1217 |
+
container.setAttribute('aria-atomic', 'true');
|
1218 |
+
var _document = document,
|
1219 |
+
body = _document.body;
|
1220 |
+
|
1221 |
+
if (body) {
|
1222 |
+
body.appendChild(container);
|
1223 |
+
}
|
1224 |
+
|
1225 |
+
return container;
|
1226 |
+
}
|
1227 |
+
//# sourceMappingURL=add-container.js.map
|
1228 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/clear.js
|
1229 |
+
/**
|
1230 |
+
* Clears the a11y-speak-region elements and hides the explanatory text.
|
1231 |
+
*/
|
1232 |
+
function clear() {
|
1233 |
+
var regions = document.getElementsByClassName('a11y-speak-region');
|
1234 |
+
var introText = document.getElementById('a11y-speak-intro-text');
|
1235 |
+
|
1236 |
+
for (var i = 0; i < regions.length; i++) {
|
1237 |
+
regions[i].textContent = '';
|
1238 |
+
} // Make sure the explanatory text is hidden from assistive technologies.
|
1239 |
+
|
1240 |
+
|
1241 |
+
if (introText) {
|
1242 |
+
introText.setAttribute('hidden', 'hidden');
|
1243 |
+
}
|
1244 |
+
}
|
1245 |
+
//# sourceMappingURL=clear.js.map
|
1246 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/filter-message.js
|
1247 |
+
var previousMessage = '';
|
1248 |
+
/**
|
1249 |
+
* Filter the message to be announced to the screenreader.
|
1250 |
+
*
|
1251 |
+
* @param {string} message The message to be announced.
|
1252 |
+
*
|
1253 |
+
* @return {string} The filtered message.
|
1254 |
+
*/
|
1255 |
+
|
1256 |
+
function filterMessage(message) {
|
1257 |
+
/*
|
1258 |
+
* Strip HTML tags (if any) from the message string. Ideally, messages should
|
1259 |
+
* be simple strings, carefully crafted for specific use with A11ySpeak.
|
1260 |
+
* When re-using already existing strings this will ensure simple HTML to be
|
1261 |
+
* stripped out and replaced with a space. Browsers will collapse multiple
|
1262 |
+
* spaces natively.
|
1263 |
+
*/
|
1264 |
+
message = message.replace(/<[^<>]+>/g, ' ');
|
1265 |
+
/*
|
1266 |
+
* Safari + VoiceOver don't announce repeated, identical strings. We use
|
1267 |
+
* a `no-break space` to force them to think identical strings are different.
|
1268 |
+
*/
|
1269 |
+
|
1270 |
+
if (previousMessage === message) {
|
1271 |
+
message += "\xA0";
|
1272 |
+
}
|
1273 |
+
|
1274 |
+
previousMessage = message;
|
1275 |
+
return message;
|
1276 |
+
}
|
1277 |
+
//# sourceMappingURL=filter-message.js.map
|
1278 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/index.js
|
1279 |
+
/**
|
1280 |
+
* WordPress dependencies
|
1281 |
+
*/
|
1282 |
+
|
1283 |
+
/**
|
1284 |
+
* Internal dependencies
|
1285 |
+
*/
|
1286 |
+
|
1287 |
+
|
1288 |
+
|
1289 |
+
|
1290 |
+
|
1291 |
+
/**
|
1292 |
+
* Create the live regions.
|
1293 |
+
*/
|
1294 |
+
|
1295 |
+
function setup() {
|
1296 |
+
var introText = document.getElementById('a11y-speak-intro-text');
|
1297 |
+
var containerAssertive = document.getElementById('a11y-speak-assertive');
|
1298 |
+
var containerPolite = document.getElementById('a11y-speak-polite');
|
1299 |
+
|
1300 |
+
if (introText === null) {
|
1301 |
+
addIntroText();
|
1302 |
+
}
|
1303 |
+
|
1304 |
+
if (containerAssertive === null) {
|
1305 |
+
addContainer('assertive');
|
1306 |
+
}
|
1307 |
+
|
1308 |
+
if (containerPolite === null) {
|
1309 |
+
addContainer('polite');
|
1310 |
+
}
|
1311 |
+
}
|
1312 |
+
/**
|
1313 |
+
* Run setup on domReady.
|
1314 |
+
*/
|
1315 |
+
|
1316 |
+
Object(build_module["a" /* default */])(setup);
|
1317 |
+
/**
|
1318 |
+
* Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.
|
1319 |
+
* This module is inspired by the `speak` function in `wp-a11y.js`.
|
1320 |
+
*
|
1321 |
+
* @param {string} message The message to be announced by assistive technologies.
|
1322 |
+
* @param {string} [ariaLive] The politeness level for aria-live; default: 'polite'.
|
1323 |
+
*
|
1324 |
+
* @example
|
1325 |
+
* ```js
|
1326 |
+
* import { speak } from '@wordpress/a11y';
|
1327 |
+
*
|
1328 |
+
* // For polite messages that shouldn't interrupt what screen readers are currently announcing.
|
1329 |
+
* speak( 'The message you want to send to the ARIA live region' );
|
1330 |
+
*
|
1331 |
+
* // For assertive messages that should interrupt what screen readers are currently announcing.
|
1332 |
+
* speak( 'The message you want to send to the ARIA live region', 'assertive' );
|
1333 |
+
* ```
|
1334 |
+
*/
|
1335 |
+
|
1336 |
+
function speak(message, ariaLive) {
|
1337 |
+
/*
|
1338 |
+
* Clear previous messages to allow repeated strings being read out and hide
|
1339 |
+
* the explanatory text from assistive technologies.
|
1340 |
+
*/
|
1341 |
+
clear();
|
1342 |
+
message = filterMessage(message);
|
1343 |
+
var introText = document.getElementById('a11y-speak-intro-text');
|
1344 |
+
var containerAssertive = document.getElementById('a11y-speak-assertive');
|
1345 |
+
var containerPolite = document.getElementById('a11y-speak-polite');
|
1346 |
+
|
1347 |
+
if (containerAssertive && ariaLive === 'assertive') {
|
1348 |
+
containerAssertive.textContent = message;
|
1349 |
+
} else if (containerPolite) {
|
1350 |
+
containerPolite.textContent = message;
|
1351 |
+
}
|
1352 |
+
/*
|
1353 |
+
* Make the explanatory text available to assistive technologies by removing
|
1354 |
+
* the 'hidden' HTML attribute.
|
1355 |
+
*/
|
1356 |
+
|
1357 |
+
|
1358 |
+
if (introText) {
|
1359 |
+
introText.removeAttribute('hidden');
|
1360 |
+
}
|
1361 |
+
}
|
1362 |
+
//# sourceMappingURL=index.js.map
|
1363 |
+
|
1364 |
+
/***/ }),
|
1365 |
+
|
1366 |
+
/***/ 141:
|
1367 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1368 |
+
|
1369 |
+
"use strict";
|
1370 |
+
|
1371 |
+
// EXPORTS
|
1372 |
+
__webpack_require__.d(__webpack_exports__, "c", function() { return /* binding */ layout_PrimaryLayout; });
|
1373 |
+
__webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ PageLayout; });
|
1374 |
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ EmbedLayout; });
|
1375 |
+
|
1376 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/extends.js
|
1377 |
+
var helpers_extends = __webpack_require__(24);
|
1378 |
+
var extends_default = /*#__PURE__*/__webpack_require__.n(helpers_extends);
|
1379 |
+
|
1380 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
1381 |
+
var objectWithoutProperties = __webpack_require__(34);
|
1382 |
+
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
1383 |
+
|
1384 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
|
1385 |
+
var defineProperty = __webpack_require__(5);
|
1386 |
+
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
1387 |
+
|
1388 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/classCallCheck.js
|
1389 |
+
var classCallCheck = __webpack_require__(12);
|
1390 |
+
var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck);
|
1391 |
+
|
1392 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createClass.js
|
1393 |
+
var createClass = __webpack_require__(13);
|
1394 |
+
var createClass_default = /*#__PURE__*/__webpack_require__.n(createClass);
|
1395 |
+
|
1396 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inherits.js
|
1397 |
+
var inherits = __webpack_require__(14);
|
1398 |
+
var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits);
|
1399 |
+
|
1400 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
|
1401 |
+
var possibleConstructorReturn = __webpack_require__(15);
|
1402 |
+
var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn);
|
1403 |
+
|
1404 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/getPrototypeOf.js
|
1405 |
+
var getPrototypeOf = __webpack_require__(7);
|
1406 |
+
var getPrototypeOf_default = /*#__PURE__*/__webpack_require__.n(getPrototypeOf);
|
1407 |
+
|
1408 |
+
// EXTERNAL MODULE: external {"this":["wp","element"]}
|
1409 |
+
var external_this_wp_element_ = __webpack_require__(0);
|
1410 |
+
|
1411 |
+
// EXTERNAL MODULE: external {"this":["wp","compose"]}
|
1412 |
+
var external_this_wp_compose_ = __webpack_require__(20);
|
1413 |
+
|
1414 |
+
// EXTERNAL MODULE: external {"this":["wp","data"]}
|
1415 |
+
var external_this_wp_data_ = __webpack_require__(11);
|
1416 |
+
|
1417 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js + 1 modules
|
1418 |
+
var inheritsLoose = __webpack_require__(38);
|
1419 |
+
|
1420 |
+
// EXTERNAL MODULE: external "React"
|
1421 |
+
var external_React_ = __webpack_require__(10);
|
1422 |
+
var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_);
|
1423 |
+
|
1424 |
+
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
1425 |
+
var prop_types = __webpack_require__(1);
|
1426 |
+
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
1427 |
+
|
1428 |
+
// EXTERNAL MODULE: ./node_modules/history/esm/history.js + 2 modules
|
1429 |
+
var esm_history = __webpack_require__(71);
|
1430 |
+
|
1431 |
+
// EXTERNAL MODULE: ./node_modules/mini-create-react-context/dist/esm/index.js
|
1432 |
+
var esm = __webpack_require__(183);
|
1433 |
+
|
1434 |
+
// EXTERNAL MODULE: ./node_modules/tiny-invariant/dist/tiny-invariant.esm.js
|
1435 |
+
var tiny_invariant_esm = __webpack_require__(56);
|
1436 |
+
|
1437 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
1438 |
+
var esm_extends = __webpack_require__(32);
|
1439 |
+
|
1440 |
+
// EXTERNAL MODULE: ./node_modules/path-to-regexp/index.js
|
1441 |
+
var path_to_regexp = __webpack_require__(184);
|
1442 |
+
var path_to_regexp_default = /*#__PURE__*/__webpack_require__.n(path_to_regexp);
|
1443 |
+
|
1444 |
+
// EXTERNAL MODULE: ./node_modules/react-is/index.js
|
1445 |
+
var react_is = __webpack_require__(126);
|
1446 |
+
|
1447 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
1448 |
+
var objectWithoutPropertiesLoose = __webpack_require__(42);
|
1449 |
+
|
1450 |
+
// EXTERNAL MODULE: ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
1451 |
+
var hoist_non_react_statics_cjs = __webpack_require__(138);
|
1452 |
+
var hoist_non_react_statics_cjs_default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics_cjs);
|
1453 |
+
|
1454 |
+
// CONCATENATED MODULE: ./node_modules/react-router/esm/react-router.js
|
1455 |
+
|
1456 |
+
|
1457 |
+
|
1458 |
+
|
1459 |
+
|
1460 |
+
|
1461 |
+
|
1462 |
+
|
1463 |
+
|
1464 |
+
|
1465 |
+
|
1466 |
+
|
1467 |
+
|
1468 |
+
// TODO: Replace with React.createContext once we can assume React 16+
|
1469 |
+
|
1470 |
+
var react_router_createNamedContext = function createNamedContext(name) {
|
1471 |
+
var context = Object(esm["a" /* default */])();
|
1472 |
+
context.displayName = name;
|
1473 |
+
return context;
|
1474 |
+
};
|
1475 |
+
|
1476 |
+
var historyContext =
|
1477 |
+
/*#__PURE__*/
|
1478 |
+
react_router_createNamedContext("Router-History");
|
1479 |
+
|
1480 |
+
// TODO: Replace with React.createContext once we can assume React 16+
|
1481 |
+
|
1482 |
+
var createNamedContext$1 = function createNamedContext(name) {
|
1483 |
+
var context = Object(esm["a" /* default */])();
|
1484 |
+
context.displayName = name;
|
1485 |
+
return context;
|
1486 |
+
};
|
1487 |
+
|
1488 |
+
var react_router_context =
|
1489 |
+
/*#__PURE__*/
|
1490 |
+
createNamedContext$1("Router");
|
1491 |
+
|
1492 |
+
/**
|
1493 |
+
* The public API for putting history on context.
|
1494 |
+
*/
|
1495 |
+
|
1496 |
+
var react_router_Router =
|
1497 |
+
/*#__PURE__*/
|
1498 |
+
function (_React$Component) {
|
1499 |
+
Object(inheritsLoose["a" /* default */])(Router, _React$Component);
|
1500 |
+
|
1501 |
+
Router.computeRootMatch = function computeRootMatch(pathname) {
|
1502 |
+
return {
|
1503 |
+
path: "/",
|
1504 |
+
url: "/",
|
1505 |
+
params: {},
|
1506 |
+
isExact: pathname === "/"
|
1507 |
+
};
|
1508 |
+
};
|
1509 |
+
|
1510 |
+
function Router(props) {
|
1511 |
+
var _this;
|
1512 |
+
|
1513 |
+
_this = _React$Component.call(this, props) || this;
|
1514 |
+
_this.state = {
|
1515 |
+
location: props.history.location
|
1516 |
+
}; // This is a bit of a hack. We have to start listening for location
|
1517 |
+
// changes here in the constructor in case there are any <Redirect>s
|
1518 |
+
// on the initial render. If there are, they will replace/push when
|
1519 |
+
// they mount and since cDM fires in children before parents, we may
|
1520 |
+
// get a new location before the <Router> is mounted.
|
1521 |
+
|
1522 |
+
_this._isMounted = false;
|
1523 |
+
_this._pendingLocation = null;
|
1524 |
+
|
1525 |
+
if (!props.staticContext) {
|
1526 |
+
_this.unlisten = props.history.listen(function (location) {
|
1527 |
+
if (_this._isMounted) {
|
1528 |
+
_this.setState({
|
1529 |
+
location: location
|
1530 |
});
|
1531 |
} else {
|
1532 |
_this._pendingLocation = location;
|
2115 |
var external_lodash_ = __webpack_require__(3);
|
2116 |
|
2117 |
// EXTERNAL MODULE: ./node_modules/qs/lib/index.js
|
2118 |
+
var lib = __webpack_require__(49);
|
|
|
|
|
|
|
|
|
|
|
|
|
2119 |
|
2120 |
+
// EXTERNAL MODULE: external {"this":["wc","components"]}
|
2121 |
+
var external_this_wc_components_ = __webpack_require__(47);
|
2122 |
|
2123 |
+
// EXTERNAL MODULE: external {"this":["wc","navigation"]}
|
2124 |
+
var external_this_wc_navigation_ = __webpack_require__(21);
|
2125 |
|
2126 |
+
// EXTERNAL MODULE: ./client/wc-admin-settings/index.js
|
2127 |
+
var wc_admin_settings = __webpack_require__(25);
|
2128 |
|
2129 |
+
// EXTERNAL MODULE: external {"this":["wc","data"]}
|
2130 |
+
var external_this_wc_data_ = __webpack_require__(22);
|
2131 |
|
2132 |
+
// EXTERNAL MODULE: external {"this":["wc","tracks"]}
|
2133 |
+
var external_this_wc_tracks_ = __webpack_require__(27);
|
2134 |
|
2135 |
// EXTERNAL MODULE: ./client/layout/style.scss
|
2136 |
+
var layout_style = __webpack_require__(298);
|
2137 |
|
2138 |
+
// EXTERNAL MODULE: external {"this":["wp","hooks"]}
|
2139 |
+
var external_this_wp_hooks_ = __webpack_require__(43);
|
2140 |
|
2141 |
+
// EXTERNAL MODULE: external {"this":["wp","i18n"]}
|
2142 |
+
var external_this_wp_i18n_ = __webpack_require__(2);
|
2143 |
|
2144 |
// EXTERNAL MODULE: ./client/analytics/report/get-reports.js
|
2145 |
+
var get_reports = __webpack_require__(137);
|
2146 |
|
2147 |
// EXTERNAL MODULE: ./client/dashboard/utils.js
|
2148 |
+
var utils = __webpack_require__(95);
|
2149 |
|
2150 |
// CONCATENATED MODULE: ./client/layout/controller.js
|
2151 |
|
2152 |
|
2153 |
+
|
2154 |
+
|
2155 |
+
|
2156 |
+
|
2157 |
+
|
2158 |
+
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); }; }
|
2159 |
+
|
2160 |
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
2161 |
+
|
2162 |
/**
|
2163 |
* External dependencies
|
2164 |
*/
|
2176 |
|
2177 |
|
2178 |
|
2179 |
+
var AnalyticsReport = Object(external_this_wp_element_["lazy"])(function () {
|
2180 |
+
return __webpack_require__.e(/* import() | analytics-report */ 9).then(__webpack_require__.bind(null, 589));
|
2181 |
+
});
|
2182 |
+
var AnalyticsSettings = Object(external_this_wp_element_["lazy"])(function () {
|
2183 |
+
return __webpack_require__.e(/* import() | analytics-settings */ 20).then(__webpack_require__.bind(null, 608));
|
2184 |
+
});
|
2185 |
+
var Dashboard = Object(external_this_wp_element_["lazy"])(function () {
|
2186 |
+
return __webpack_require__.e(/* import() | dashboard */ 28).then(__webpack_require__.bind(null, 590));
|
2187 |
+
});
|
2188 |
+
var Homescreen = Object(external_this_wp_element_["lazy"])(function () {
|
2189 |
+
return Promise.all(/* import() | homescreen */[__webpack_require__.e(1), __webpack_require__.e(2), __webpack_require__.e(52), __webpack_require__.e(4), __webpack_require__.e(32)]).then(__webpack_require__.bind(null, 605));
|
2190 |
+
});
|
2191 |
+
var MarketingOverview = Object(external_this_wp_element_["lazy"])(function () {
|
2192 |
+
return Promise.all(/* import() | marketing-overview */[__webpack_require__.e(2), __webpack_require__.e(36)]).then(__webpack_require__.bind(null, 609));
|
2193 |
+
});
|
2194 |
+
var ProfileWizard = Object(external_this_wp_element_["lazy"])(function () {
|
2195 |
+
return Promise.all(/* import() | profile-wizard */[__webpack_require__.e(53), __webpack_require__.e(46)]).then(__webpack_require__.bind(null, 606));
|
2196 |
+
});
|
2197 |
+
var SettingsGroup = Object(external_this_wp_element_["lazy"])(function () {
|
2198 |
+
return Promise.all(/* import() | profile-wizard */[__webpack_require__.e(53), __webpack_require__.e(46)]).then(__webpack_require__.bind(null, 601));
|
2199 |
+
});
|
2200 |
+
var PAGES_FILTER = 'woocommerce_admin_pages_list';
|
2201 |
+
var controller_getPages = function getPages() {
|
2202 |
+
var pages = [];
|
2203 |
+
var initialBreadcrumbs = [['', wcSettings.woocommerceTranslation]];
|
2204 |
pages.push({
|
2205 |
container: Homescreen,
|
2206 |
path: '/',
|
2207 |
+
breadcrumbs: [].concat(initialBreadcrumbs, [Object(external_this_wp_i18n_["__"])('Home', 'woocommerce-admin')]),
|
2208 |
wpOpenMenu: 'toplevel_page_woocommerce',
|
2209 |
navArgs: {
|
2210 |
id: 'woocommerce-home'
|
2216 |
pages.push({
|
2217 |
container: Dashboard,
|
2218 |
path: '/analytics/overview',
|
2219 |
+
breadcrumbs: [].concat(initialBreadcrumbs, [['/analytics/overview', Object(external_this_wp_i18n_["__"])('Analytics', 'woocommerce-admin')], Object(external_this_wp_i18n_["__"])('Overview', 'woocommerce-admin')]),
|
2220 |
wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
|
2221 |
navArgs: {
|
2222 |
id: 'woocommerce-analytics-overview'
|
2226 |
pages.push({
|
2227 |
container: AnalyticsSettings,
|
2228 |
path: '/analytics/settings',
|
2229 |
+
breadcrumbs: [].concat(initialBreadcrumbs, [['/analytics/revenue', Object(external_this_wp_i18n_["__"])('Analytics', 'woocommerce-admin')], Object(external_this_wp_i18n_["__"])('Settings', 'woocommerce-admin')]),
|
2230 |
wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
|
2231 |
navArgs: {
|
2232 |
id: 'woocommerce-analytics-settings'
|
2236 |
pages.push({
|
2237 |
container: AnalyticsReport,
|
2238 |
path: '/customers',
|
2239 |
+
breadcrumbs: [].concat(initialBreadcrumbs, [Object(external_this_wp_i18n_["__"])('Customers', 'woocommerce-admin')]),
|
2240 |
wpOpenMenu: 'toplevel_page_woocommerce',
|
2241 |
navArgs: {
|
2242 |
id: 'woocommerce-analytics-customers'
|
2246 |
pages.push({
|
2247 |
container: AnalyticsReport,
|
2248 |
path: '/analytics/:report',
|
2249 |
+
breadcrumbs: function breadcrumbs(_ref) {
|
2250 |
+
var match = _ref.match;
|
2251 |
+
var report = Object(external_lodash_["find"])(Object(get_reports["a" /* default */])(), {
|
|
|
2252 |
report: match.params.report
|
2253 |
});
|
2254 |
|
2256 |
return [];
|
2257 |
}
|
2258 |
|
2259 |
+
return [].concat(initialBreadcrumbs, [['/analytics/revenue', Object(external_this_wp_i18n_["__"])('Analytics', 'woocommerce-admin')], report.title]);
|
2260 |
},
|
2261 |
wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
|
2262 |
capability: 'view_woocommerce_reports'
|
2267 |
pages.push({
|
2268 |
container: MarketingOverview,
|
2269 |
path: '/marketing',
|
2270 |
+
breadcrumbs: [].concat(initialBreadcrumbs, [['/marketing', Object(external_this_wp_i18n_["__"])('Marketing', 'woocommerce-admin')], Object(external_this_wp_i18n_["__"])('Overview', 'woocommerce-admin')]),
|
2271 |
wpOpenMenu: 'toplevel_page_woocommerce-marketing',
|
2272 |
navArgs: {
|
2273 |
id: 'woocommerce-marketing-overview'
|
2280 |
pages.push({
|
2281 |
container: ProfileWizard,
|
2282 |
path: '/setup-wizard',
|
2283 |
+
breadcrumbs: [].concat(initialBreadcrumbs, [['/setup-wizard', Object(external_this_wp_i18n_["__"])('Setup Wizard', 'woocommerce-admin')]]),
|
2284 |
capability: 'manage_woocommerce'
|
2285 |
});
|
2286 |
}
|
2289 |
pages.push({
|
2290 |
container: SettingsGroup,
|
2291 |
path: '/settings/:page',
|
2292 |
+
breadcrumbs: function breadcrumbs(_ref2) {
|
2293 |
+
var match = _ref2.match;
|
|
|
2294 |
// @todo This might need to be refactored to retreive groups via data store.
|
2295 |
+
var settingsPages = Object(wc_admin_settings["g" /* getSetting */])('settingsPages');
|
2296 |
+
var page = settingsPages[match.params.page];
|
2297 |
|
2298 |
if (!page) {
|
2299 |
return [];
|
2300 |
}
|
2301 |
|
2302 |
+
return [].concat(initialBreadcrumbs, [[settingsPages.general ? '/settings/general' : "/settings/".concat(Object.keys(settingsPages)[0]), Object(external_this_wp_i18n_["__"])('Settings', 'woocommerce-admin')], page]);
|
2303 |
},
|
2304 |
wpOpenMenu: 'toplevel_page_woocommerce',
|
2305 |
capability: 'manage_woocommerce'
|
2306 |
});
|
2307 |
}
|
2308 |
|
2309 |
+
return Object(external_this_wp_hooks_["applyFilters"])(PAGES_FILTER, pages);
|
2310 |
};
|
2311 |
+
var controller_Controller = /*#__PURE__*/function (_Component) {
|
2312 |
+
inherits_default()(Controller, _Component);
|
|
|
|
|
|
|
2313 |
|
2314 |
+
var _super = _createSuper(Controller);
|
|
|
|
|
2315 |
|
2316 |
+
function Controller() {
|
2317 |
+
classCallCheck_default()(this, Controller);
|
2318 |
+
|
2319 |
+
return _super.apply(this, arguments);
|
2320 |
+
}
|
2321 |
|
2322 |
+
createClass_default()(Controller, [{
|
2323 |
+
key: "componentDidMount",
|
2324 |
+
value: function componentDidMount() {
|
2325 |
window.document.documentElement.scrollTop = 0;
|
2326 |
+
window.document.body.classList.remove('woocommerce-admin-is-loading');
|
2327 |
}
|
2328 |
+
}, {
|
2329 |
+
key: "componentDidUpdate",
|
2330 |
+
value: function componentDidUpdate(prevProps) {
|
2331 |
+
var prevBaseQuery = Object(external_lodash_["omit"])(prevProps.query, 'chartType', 'filter', 'paged');
|
2332 |
+
var baseQuery = Object(external_lodash_["omit"])(this.props.query, 'chartType', 'filter', 'paged');
|
2333 |
+
|
2334 |
+
if (prevProps.query.paged > 1 && !Object(external_lodash_["isEqual"])(prevBaseQuery, baseQuery)) {
|
2335 |
+
Object(external_this_wc_navigation_["getHistory"])().replace(Object(external_this_wc_navigation_["getNewPath"])({
|
2336 |
+
paged: 1
|
2337 |
+
}));
|
2338 |
+
}
|
2339 |
|
2340 |
+
if (prevProps.match.url !== this.props.match.url) {
|
2341 |
+
window.document.documentElement.scrollTop = 0;
|
2342 |
+
}
|
2343 |
+
}
|
2344 |
+
}, {
|
2345 |
+
key: "render",
|
2346 |
+
value: function render() {
|
2347 |
+
var _this$props = this.props,
|
2348 |
+
page = _this$props.page,
|
2349 |
+
match = _this$props.match,
|
2350 |
+
query = _this$props.query;
|
2351 |
+
var url = match.url,
|
2352 |
+
params = match.params;
|
2353 |
+
window.wpNavMenuUrlUpdate(query);
|
2354 |
+
window.wpNavMenuClassChange(page, url);
|
2355 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Suspense"], {
|
2356 |
+
fallback: Object(external_this_wp_element_["createElement"])(external_this_wc_components_["Spinner"], null)
|
2357 |
+
}, Object(external_this_wp_element_["createElement"])(page.container, {
|
2358 |
+
params: params,
|
2359 |
+
path: url,
|
2360 |
+
pathMatch: page.path,
|
2361 |
+
query: query
|
2362 |
+
}));
|
2363 |
+
}
|
2364 |
+
}]);
|
2365 |
|
2366 |
+
return Controller;
|
2367 |
+
}(external_this_wp_element_["Component"]);
|
2368 |
/**
|
2369 |
* Update an anchor's link in sidebar to include persisted queries. Leave excluded screens
|
2370 |
* as is.
|
2376 |
|
2377 |
function updateLinkHref(item, nextQuery, excludedScreens) {
|
2378 |
if (Object(utils["f" /* isWCAdmin */])(item.href)) {
|
2379 |
+
var search = Object(external_lodash_["last"])(item.href.split('?'));
|
2380 |
+
var query = Object(lib["parse"])(search);
|
2381 |
+
var path = query.path || 'homescreen';
|
2382 |
+
var screen = Object(external_this_wc_navigation_["getScreenFromPath"])(path);
|
2383 |
+
var isExcludedScreen = excludedScreens.includes(screen);
|
2384 |
+
var href = 'admin.php?' + Object(lib["stringify"])(Object.assign(query, isExcludedScreen ? {} : nextQuery)); // Replace the href so you can see the url on hover.
|
2385 |
|
2386 |
item.href = href;
|
2387 |
|
2388 |
+
item.onclick = function (e) {
|
2389 |
e.preventDefault();
|
2390 |
+
Object(external_this_wc_navigation_["getHistory"])().push(href);
|
2391 |
};
|
2392 |
}
|
2393 |
} // Update's wc-admin links in wp-admin menu
|
2394 |
|
2395 |
window.wpNavMenuUrlUpdate = function (query) {
|
2396 |
+
var nextQuery = Object(external_this_wc_navigation_["getPersistedQuery"])(query);
|
2397 |
+
var excludedScreens = Object(external_this_wc_navigation_["getQueryExcludedScreens"])();
|
2398 |
+
Array.from(document.querySelectorAll('#adminmenu a')).forEach(function (item) {
|
2399 |
+
return updateLinkHref(item, nextQuery, excludedScreens);
|
2400 |
+
});
|
2401 |
}; // When the route changes, we need to update wp-admin's menu with the correct section & current link
|
2402 |
|
2403 |
|
2405 |
Array.from(document.getElementsByClassName('current')).forEach(function (item) {
|
2406 |
item.classList.remove('current');
|
2407 |
});
|
2408 |
+
var submenu = Array.from(document.querySelectorAll('.wp-has-current-submenu'));
|
2409 |
submenu.forEach(function (element) {
|
2410 |
element.classList.remove('wp-has-current-submenu');
|
2411 |
element.classList.remove('wp-menu-open');
|
2413 |
element.classList.add('wp-not-current-submenu');
|
2414 |
element.classList.add('menu-top');
|
2415 |
});
|
2416 |
+
var pageUrl = url === '/' ? 'admin.php?page=wc-admin' : 'admin.php?page=wc-admin&path=' + encodeURIComponent(url);
|
2417 |
+
var currentItemsSelector = url === '/' ? "li > a[href$=\"".concat(pageUrl, "\"], li > a[href*=\"").concat(pageUrl, "?\"]") : "li > a[href*=\"".concat(pageUrl, "\"]");
|
2418 |
+
var currentItems = document.querySelectorAll(currentItemsSelector);
|
2419 |
Array.from(currentItems).forEach(function (item) {
|
2420 |
item.parentElement.classList.add('current');
|
2421 |
});
|
2422 |
|
2423 |
if (page.wpOpenMenu) {
|
2424 |
+
var currentMenu = document.querySelector('#' + page.wpOpenMenu);
|
2425 |
|
2426 |
if (currentMenu) {
|
2427 |
currentMenu.classList.remove('wp-not-current-submenu');
|
2431 |
}
|
2432 |
}
|
2433 |
|
2434 |
+
var wpWrap = document.querySelector('#wpwrap');
|
2435 |
wpWrap.classList.remove('wp-responsive-open');
|
2436 |
};
|
2437 |
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
2438 |
var classnames = __webpack_require__(6);
|
2439 |
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
2440 |
|
2441 |
+
// EXTERNAL MODULE: external {"this":["wp","htmlEntities"]}
|
2442 |
+
var external_this_wp_htmlEntities_ = __webpack_require__(41);
|
2443 |
|
2444 |
+
// EXTERNAL MODULE: ./packages/experimental/build-module/index.js
|
2445 |
+
var build_module = __webpack_require__(30);
|
2446 |
|
2447 |
+
// EXTERNAL MODULE: ./client/header/style.scss
|
2448 |
+
var header_style = __webpack_require__(299);
|
2449 |
|
2450 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
2451 |
+
var slicedToArray = __webpack_require__(18);
|
2452 |
+
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
2453 |
|
2454 |
+
// EXTERNAL MODULE: external {"this":["wp","components"]}
|
2455 |
+
var external_this_wp_components_ = __webpack_require__(4);
|
2456 |
|
2457 |
+
// EXTERNAL MODULE: ./node_modules/gridicons/dist/cross-small.js
|
2458 |
+
var cross_small = __webpack_require__(122);
|
2459 |
+
var cross_small_default = /*#__PURE__*/__webpack_require__.n(cross_small);
|
2460 |
|
2461 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
|
2462 |
+
var build_module_icon = __webpack_require__(198);
|
2463 |
+
|
2464 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/primitives/build-module/svg/index.js
|
2465 |
+
var svg = __webpack_require__(67);
|
2466 |
|
2467 |
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/inbox.js
|
2468 |
|
2471 |
* WordPress dependencies
|
2472 |
*/
|
2473 |
|
2474 |
+
var inbox_inbox = Object(external_this_wp_element_["createElement"])(svg["b" /* SVG */], {
|
2475 |
xmlns: "http://www.w3.org/2000/svg",
|
2476 |
viewBox: "0 0 24 24"
|
2477 |
+
}, Object(external_this_wp_element_["createElement"])(svg["a" /* Path */], {
|
2478 |
fillRule: "evenodd",
|
2479 |
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",
|
2480 |
clipRule: "evenodd"
|
2488 |
* WordPress dependencies
|
2489 |
*/
|
2490 |
|
2491 |
+
var help_help = Object(external_this_wp_element_["createElement"])(svg["b" /* SVG */], {
|
2492 |
xmlns: "http://www.w3.org/2000/svg",
|
2493 |
viewBox: "0 0 24 24"
|
2494 |
+
}, Object(external_this_wp_element_["createElement"])(svg["a" /* Path */], {
|
2495 |
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"
|
2496 |
}));
|
2497 |
/* harmony default export */ var library_help = (help_help);
|
2498 |
//# sourceMappingURL=help.js.map
|
|
|
|
|
|
|
2499 |
// EXTERNAL MODULE: ./client/header/activity-panel/style.scss
|
2500 |
+
var activity_panel_style = __webpack_require__(300);
|
2501 |
+
|
2502 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/toggle-bubble.js
|
2503 |
+
|
2504 |
+
|
2505 |
+
/**
|
2506 |
+
* External dependencies
|
2507 |
+
*/
|
2508 |
+
|
2509 |
+
|
2510 |
|
2511 |
+
var toggle_bubble_ActivityPanelToggleBubble = function ActivityPanelToggleBubble(_ref) {
|
2512 |
+
var _ref$height = _ref.height,
|
2513 |
+
height = _ref$height === void 0 ? 24 : _ref$height,
|
2514 |
+
_ref$width = _ref.width,
|
2515 |
+
width = _ref$width === void 0 ? 24 : _ref$width,
|
2516 |
+
_ref$hasUnread = _ref.hasUnread,
|
2517 |
+
hasUnread = _ref$hasUnread === void 0 ? false : _ref$hasUnread;
|
2518 |
+
var classes = classnames_default()('woocommerce-layout__activity-panel-toggle-bubble', {
|
2519 |
+
'has-unread': hasUnread
|
2520 |
+
});
|
2521 |
+
/* eslint-disable max-len */
|
2522 |
+
|
2523 |
+
return Object(external_this_wp_element_["createElement"])("div", {
|
2524 |
+
className: classes
|
2525 |
+
}, Object(external_this_wp_element_["createElement"])("svg", {
|
2526 |
+
height: height,
|
2527 |
+
width: width,
|
2528 |
+
viewBox: "0 0 24 24"
|
2529 |
+
}, Object(external_this_wp_element_["createElement"])("path", {
|
2530 |
+
d: "M18.9 2H5.1C3.4 2 2 3.4 2 5.1v10.7C2 17.6 3.4 19 5.1 19H9l6 3-1-3h4.9c1.7 0 3.1-1.4 3.1-3.1V5.1C22 3.4 20.6 2 18.9 2zm-1.5 4.5c-.4.8-.8 2.1-1 3.9-.3 1.8-.4 3.1-.3 4.1 0 .3 0 .5-.1.7-.1.2-.3.4-.6.4s-.6-.1-.9-.4c-1-1-1.8-2.6-2.4-4.6-.7 1.4-1.2 2.4-1.6 3.1-.6 1.2-1.2 1.8-1.6 1.9-.3 0-.5-.2-.8-.7-.5-1.4-1.1-4.2-1.7-8.2 0-.3 0-.5.2-.7.1-.2.4-.3.7-.4.5 0 .9.2.9.8.3 2.3.7 4.2 1.1 5.7l2.4-4.5c.2-.4.4-.6.8-.6.5 0 .8.3.9.9.3 1.4.6 2.6 1 3.7.3-2.7.8-4.7 1.4-5.9.2-.3.4-.5.7-.5.2 0 .5.1.7.2.2.2.3.4.3.6 0 .2 0 .4-.1.5z"
|
2531 |
+
})));
|
2532 |
+
/* eslint-enable max-len */
|
2533 |
+
};
|
2534 |
+
|
2535 |
+
toggle_bubble_ActivityPanelToggleBubble.propTypes = {
|
2536 |
+
height: prop_types_default.a.number,
|
2537 |
+
width: prop_types_default.a.number,
|
2538 |
+
hasUnread: prop_types_default.a.bool
|
2539 |
+
};
|
2540 |
+
/* harmony default export */ var toggle_bubble = (toggle_bubble_ActivityPanelToggleBubble);
|
2541 |
// EXTERNAL MODULE: ./client/inbox-panel/utils.js
|
2542 |
+
var inbox_panel_utils = __webpack_require__(197);
|
2543 |
|
2544 |
// CONCATENATED MODULE: ./client/header/activity-panel/unread-indicators.js
|
2545 |
/**
|
2552 |
*/
|
2553 |
|
2554 |
|
2555 |
+
var UNREAD_NOTES_QUERY = {
|
2556 |
page: 1,
|
2557 |
+
per_page: external_this_wc_data_["QUERY_DEFAULTS"].pageSize,
|
2558 |
status: 'unactioned',
|
2559 |
+
type: external_this_wc_data_["QUERY_DEFAULTS"].noteTypes,
|
2560 |
orderby: 'date',
|
2561 |
order: 'desc'
|
2562 |
};
|
2563 |
+
function getUnreadNotes(select) {
|
2564 |
+
var _select = select(external_this_wc_data_["NOTES_STORE_NAME"]),
|
2565 |
+
getNotes = _select.getNotes,
|
2566 |
+
getNotesError = _select.getNotesError,
|
2567 |
+
isResolving = _select.isResolving;
|
2568 |
+
|
2569 |
+
var _select2 = select(external_this_wc_data_["USER_STORE_NAME"]),
|
2570 |
+
getCurrentUser = _select2.getCurrentUser;
|
2571 |
+
|
2572 |
+
var userData = getCurrentUser();
|
2573 |
+
var lastRead = parseInt(userData && userData.woocommerce_meta && userData.woocommerce_meta.activity_panel_inbox_last_read, 10);
|
2574 |
|
2575 |
if (!lastRead) {
|
2576 |
return null;
|
2577 |
}
|
2578 |
|
2579 |
getNotes(UNREAD_NOTES_QUERY);
|
2580 |
+
var isError = Boolean(getNotesError('getNotes', [UNREAD_NOTES_QUERY]));
|
2581 |
+
var isRequesting = isResolving('getNotes', [UNREAD_NOTES_QUERY]);
|
2582 |
|
2583 |
if (isError || isRequesting) {
|
2584 |
return null;
|
2585 |
}
|
2586 |
|
2587 |
+
var latestNotes = getNotes(UNREAD_NOTES_QUERY);
|
2588 |
+
var unreadNotesCount = Object(inbox_panel_utils["a" /* getUnreadNotesCount */])(latestNotes, lastRead);
|
2589 |
return unreadNotesCount > 0;
|
2590 |
}
|
2591 |
function getLowStockCount() {
|
2592 |
+
return Object(wc_admin_settings["g" /* getSetting */])('lowStockCount', 0);
|
2593 |
}
|
2594 |
// CONCATENATED MODULE: ./client/header/activity-panel/tab/index.js
|
2595 |
|
2600 |
|
2601 |
|
2602 |
|
2603 |
+
var tab_Tab = function Tab(_ref) {
|
2604 |
+
var icon = _ref.icon,
|
2605 |
+
title = _ref.title,
|
2606 |
+
name = _ref.name,
|
2607 |
+
unread = _ref.unread,
|
2608 |
+
selected = _ref.selected,
|
2609 |
+
isPanelOpen = _ref.isPanelOpen,
|
2610 |
+
onTabClick = _ref.onTabClick;
|
2611 |
+
var className = classnames_default()('woocommerce-layout__activity-panel-tab', {
|
|
|
2612 |
'is-active': isPanelOpen && selected,
|
2613 |
'has-unread': unread
|
2614 |
});
|
2615 |
+
var tabKey = "activity-panel-tab-".concat(name);
|
2616 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
|
2617 |
role: "tab",
|
2618 |
className: className,
|
2619 |
"aria-selected": selected,
|
2620 |
+
"aria-controls": "activity-panel-".concat(name),
|
2621 |
key: tabKey,
|
2622 |
id: tabKey,
|
2623 |
+
onClick: function onClick() {
|
2624 |
onTabClick(name);
|
2625 |
}
|
2626 |
+
}, icon, title, ' ', unread && Object(external_this_wp_element_["createElement"])("span", {
|
2627 |
className: "screen-reader-text"
|
2628 |
+
}, Object(external_this_wp_i18n_["__"])('unread activity', 'woocommerce-admin')));
|
2629 |
};
|
2630 |
// CONCATENATED MODULE: ./client/header/activity-panel/tabs/index.js
|
2631 |
|
2632 |
|
2633 |
|
2634 |
+
|
2635 |
/**
|
2636 |
* External dependencies
|
2637 |
*/
|
2643 |
*/
|
2644 |
|
2645 |
|
2646 |
+
var tabs_Tabs = function Tabs(_ref) {
|
2647 |
+
var tabs = _ref.tabs,
|
2648 |
+
_onTabClick = _ref.onTabClick,
|
2649 |
+
selectedTabName = _ref.selectedTab,
|
2650 |
+
_ref$tabOpen = _ref.tabOpen,
|
2651 |
+
tabOpen = _ref$tabOpen === void 0 ? false : _ref$tabOpen;
|
2652 |
+
|
2653 |
+
var _useState = Object(external_this_wp_element_["useState"])({
|
2654 |
+
tabOpen: tabOpen,
|
|
|
|
|
2655 |
currentTab: selectedTabName
|
2656 |
+
}),
|
2657 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
2658 |
+
_useState2$ = _useState2[0],
|
2659 |
+
tabIsOpenState = _useState2$.tabOpen,
|
2660 |
+
currentTab = _useState2$.currentTab,
|
2661 |
+
setTabState = _useState2[1]; // Keep state synced with props
|
2662 |
+
|
2663 |
|
2664 |
+
Object(external_this_wp_element_["useEffect"])(function () {
|
2665 |
setTabState({
|
2666 |
+
tabOpen: tabOpen,
|
2667 |
currentTab: selectedTabName
|
2668 |
});
|
2669 |
}, [tabOpen, selectedTabName]);
|
2670 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], {
|
2671 |
role: "tablist",
|
2672 |
orientation: "horizontal",
|
2673 |
className: "woocommerce-layout__activity-panel-tabs"
|
2674 |
+
}, tabs && tabs.map(function (tab, i) {
|
2675 |
if (tab.component) {
|
2676 |
+
var Comp = tab.component,
|
2677 |
+
options = tab.options;
|
2678 |
+
return Object(external_this_wp_element_["createElement"])(Comp, extends_default()({
|
|
|
|
|
2679 |
key: i
|
2680 |
}, options));
|
2681 |
}
|
2682 |
|
2683 |
+
return Object(external_this_wp_element_["createElement"])(tab_Tab, extends_default()({
|
2684 |
key: i,
|
2685 |
index: i,
|
2686 |
isPanelOpen: tabIsOpenState,
|
2687 |
selected: currentTab === tab.name
|
2688 |
}, tab, {
|
2689 |
+
onTabClick: function onTabClick() {
|
2690 |
+
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.
|
2691 |
|
2692 |
if (!isTabOpen || currentTab !== tab.name) {
|
2693 |
+
Object(external_this_wc_tracks_["recordEvent"])('activity_panel_open', {
|
2694 |
tab: tab.name
|
2695 |
});
|
2696 |
}
|
2699 |
tabOpen: isTabOpen,
|
2700 |
currentTab: tab.name
|
2701 |
});
|
2702 |
+
|
2703 |
+
_onTabClick(tab, isTabOpen);
|
2704 |
}
|
2705 |
}));
|
2706 |
}));
|
2707 |
};
|
2708 |
// CONCATENATED MODULE: ./client/header/activity-panel/setup-progress.js
|
2709 |
|
2710 |
+
var setup_progress_SetupProgress = function SetupProgress() {
|
2711 |
+
return Object(external_this_wp_element_["createElement"])("svg", {
|
2712 |
+
className: "woocommerce-layout__activity-panel-tab-icon setup-progress",
|
2713 |
+
width: "18",
|
2714 |
+
height: "18",
|
2715 |
+
viewBox: "0 0 24 24",
|
2716 |
+
fill: "none",
|
2717 |
+
xmlns: "http://www.w3.org/2000/svg"
|
2718 |
+
}, Object(external_this_wp_element_["createElement"])("path", {
|
2719 |
+
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",
|
2720 |
+
stroke: "#DCDCDE",
|
2721 |
+
strokeWidth: "2"
|
2722 |
+
}), Object(external_this_wp_element_["createElement"])("path", {
|
2723 |
+
d: "M4 12V12C4 16.4183 7.58172 20 12 20V20C16.4183 20 20 16.4183 20 12V12C20 7.58172 16.4183 4 12 4V4",
|
2724 |
+
strokeWidth: "2",
|
2725 |
+
strokeLinecap: "round"
|
2726 |
+
}));
|
2727 |
+
};
|
2728 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/display-options/icons/display.js
|
2729 |
+
|
2730 |
+
|
2731 |
+
/**
|
2732 |
+
* External dependencies
|
2733 |
+
*/
|
2734 |
+
|
2735 |
+
var display_DisplayIcon = function DisplayIcon() {
|
2736 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("svg", {
|
2737 |
+
className: "woocommerce-layout__activity-panel-tab-icon",
|
2738 |
+
width: "24",
|
2739 |
+
height: "24",
|
2740 |
+
viewBox: "3 3 24 24",
|
2741 |
+
fill: "none",
|
2742 |
+
xmlns: "http://www.w3.org/2000/svg"
|
2743 |
+
}, Object(external_this_wp_element_["createElement"])("path", {
|
2744 |
+
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",
|
2745 |
+
strokeWidth: "1.5",
|
2746 |
+
strokeLinecap: "round",
|
2747 |
+
strokeLinejoin: "round"
|
2748 |
+
}), Object(external_this_wp_element_["createElement"])("path", {
|
2749 |
+
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",
|
2750 |
+
strokeWidth: "1.5",
|
2751 |
+
strokeLinecap: "round",
|
2752 |
+
strokeLinejoin: "round"
|
2753 |
+
}), Object(external_this_wp_element_["createElement"])("path", {
|
2754 |
+
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",
|
2755 |
+
strokeWidth: "1.5",
|
2756 |
+
strokeLinecap: "round",
|
2757 |
+
strokeLinejoin: "round"
|
2758 |
+
}), Object(external_this_wp_element_["createElement"])("path", {
|
2759 |
+
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",
|
2760 |
+
strokeWidth: "1.5",
|
2761 |
+
strokeLinecap: "round",
|
2762 |
+
strokeLinejoin: "round"
|
2763 |
+
})), Object(external_this_wp_i18n_["__"])('Display', 'woocommerce-admin'));
|
2764 |
+
};
|
2765 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/display-options/icons/single-column.js
|
2766 |
+
|
2767 |
+
var single_column_SingleColumnIcon = function SingleColumnIcon() {
|
2768 |
+
return Object(external_this_wp_element_["createElement"])("svg", {
|
2769 |
+
className: "woocommerce-layout__activity-panel-tab-icon",
|
2770 |
+
width: "12",
|
2771 |
+
height: "14",
|
2772 |
+
viewBox: "0 0 12 14",
|
2773 |
+
fill: "none",
|
2774 |
+
xmlns: "http://www.w3.org/2000/svg"
|
2775 |
+
}, Object(external_this_wp_element_["createElement"])("rect", {
|
2776 |
+
x: "0.5",
|
2777 |
+
y: "0.5",
|
2778 |
+
width: "11",
|
2779 |
+
height: "13",
|
2780 |
+
strokeWidth: "1"
|
2781 |
+
}));
|
2782 |
+
};
|
2783 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/display-options/icons/two-columns.js
|
2784 |
+
|
2785 |
+
var two_columns_TwoColumnsIcon = function TwoColumnsIcon() {
|
2786 |
+
return Object(external_this_wp_element_["createElement"])("svg", {
|
2787 |
+
className: "woocommerce-layout__activity-panel-tab-icon",
|
2788 |
+
width: "18",
|
2789 |
+
height: "14",
|
2790 |
+
viewBox: "0 0 18 14",
|
2791 |
+
fill: "none",
|
2792 |
+
xmlns: "http://www.w3.org/2000/svg"
|
2793 |
+
}, Object(external_this_wp_element_["createElement"])("rect", {
|
2794 |
+
x: "0.5",
|
2795 |
+
y: "0.5",
|
2796 |
+
width: "7",
|
2797 |
+
height: "13",
|
2798 |
+
strokeWidth: "1"
|
2799 |
+
}), Object(external_this_wp_element_["createElement"])("rect", {
|
2800 |
+
x: "9.5",
|
2801 |
+
y: "0.5",
|
2802 |
+
width: "7",
|
2803 |
+
height: "13",
|
2804 |
+
strokeWidth: "1"
|
2805 |
+
}));
|
2806 |
+
};
|
2807 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/display-options/index.js
|
2808 |
+
|
2809 |
+
|
2810 |
+
/**
|
2811 |
+
* External dependencies
|
2812 |
+
*/
|
2813 |
+
|
2814 |
+
|
2815 |
+
|
2816 |
+
|
2817 |
+
|
2818 |
+
/**
|
2819 |
+
* Internal dependencies
|
2820 |
+
*/
|
2821 |
+
|
2822 |
+
|
2823 |
+
|
2824 |
+
|
2825 |
+
var LAYOUTS = [{
|
2826 |
+
value: 'single_column',
|
2827 |
+
label: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(single_column_SingleColumnIcon, null), Object(external_this_wp_i18n_["__"])('Single column', 'woocommerce-admin'))
|
2828 |
+
}, {
|
2829 |
+
value: 'two_columns',
|
2830 |
+
label: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(two_columns_TwoColumnsIcon, null), Object(external_this_wp_i18n_["__"])('Two columns', 'woocommerce-admin'))
|
2831 |
+
}];
|
2832 |
+
var display_options_DisplayOptions = function DisplayOptions() {
|
2833 |
+
var defaultHomescreenLayout = Object(external_this_wp_data_["useSelect"])(function (select) {
|
2834 |
+
var _select = select(external_this_wc_data_["OPTIONS_STORE_NAME"]),
|
2835 |
+
getOption = _select.getOption;
|
2836 |
|
2837 |
+
return getOption('woocommerce_default_homepage_layout') || 'single_column';
|
2838 |
+
});
|
2839 |
+
|
2840 |
+
var _useUserPreferences = Object(external_this_wc_data_["useUserPreferences"])(),
|
2841 |
+
updateUserPreferences = _useUserPreferences.updateUserPreferences,
|
2842 |
+
layout = _useUserPreferences.homepage_layout;
|
2843 |
+
|
2844 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], {
|
2845 |
+
icon: Object(external_this_wp_element_["createElement"])(display_DisplayIcon, null)
|
2846 |
+
/* translators: button label text should, if possible, be under 16 characters. */
|
2847 |
+
,
|
2848 |
+
label: Object(external_this_wp_i18n_["__"])('Display options', 'woocommerce-admin'),
|
2849 |
+
toggleProps: {
|
2850 |
+
className: 'woocommerce-layout__activity-panel-tab display-options',
|
2851 |
+
onClick: function onClick() {
|
2852 |
+
return Object(external_this_wc_tracks_["recordEvent"])('homescreen_display_click');
|
2853 |
+
}
|
2854 |
+
},
|
2855 |
+
popoverProps: {
|
2856 |
+
className: 'woocommerce-layout__activity-panel-popover'
|
2857 |
+
}
|
2858 |
+
}, function (_ref) {
|
2859 |
+
var onClose = _ref.onClose;
|
2860 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], {
|
2861 |
+
className: "woocommerce-layout__homescreen-display-options",
|
2862 |
+
label: Object(external_this_wp_i18n_["__"])('Layout', 'woocommerce-admin')
|
2863 |
+
}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItemsChoice"], {
|
2864 |
+
choices: LAYOUTS,
|
2865 |
+
onSelect: function onSelect(newLayout) {
|
2866 |
+
updateUserPreferences({
|
2867 |
+
homepage_layout: newLayout
|
2868 |
+
});
|
2869 |
+
onClose();
|
2870 |
+
Object(external_this_wc_tracks_["recordEvent"])('homescreen_display_option', {
|
2871 |
+
display_option: newLayout
|
2872 |
+
});
|
2873 |
+
},
|
2874 |
+
value: layout || defaultHomescreenLayout
|
2875 |
+
}));
|
2876 |
+
});
|
2877 |
+
};
|
2878 |
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
|
2879 |
+
var library_close = __webpack_require__(498);
|
2880 |
|
2881 |
// EXTERNAL MODULE: ./client/header/activity-panel/highlight-tooltip/style.scss
|
2882 |
+
var highlight_tooltip_style = __webpack_require__(301);
|
2883 |
|
2884 |
// CONCATENATED MODULE: ./client/header/activity-panel/highlight-tooltip/index.js
|
2885 |
|
2886 |
|
2887 |
+
|
2888 |
/**
|
2889 |
* External dependencies
|
2890 |
*/
|
2899 |
*/
|
2900 |
|
2901 |
|
2902 |
+
var SHOW_CLASS = 'highlight-tooltip__show';
|
2903 |
+
|
2904 |
+
function HighlightTooltip(_ref) {
|
2905 |
+
var title = _ref.title,
|
2906 |
+
closeButtonText = _ref.closeButtonText,
|
2907 |
+
content = _ref.content,
|
2908 |
+
_ref$show = _ref.show,
|
2909 |
+
show = _ref$show === void 0 ? true : _ref$show,
|
2910 |
+
id = _ref.id,
|
2911 |
+
onClose = _ref.onClose,
|
2912 |
+
delay = _ref.delay,
|
2913 |
+
_ref$onShow = _ref.onShow,
|
2914 |
+
onShow = _ref$onShow === void 0 ? external_lodash_["noop"] : _ref$onShow,
|
2915 |
+
_ref$useAnchor = _ref.useAnchor,
|
2916 |
+
useAnchor = _ref$useAnchor === void 0 ? false : _ref$useAnchor;
|
2917 |
|
2918 |
+
var _useState = Object(external_this_wp_element_["useState"])(delay > 0 ? null : show),
|
2919 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
2920 |
+
showHighlight = _useState2[0],
|
2921 |
+
setShowHighlight = _useState2[1];
|
2922 |
+
|
2923 |
+
var _useState3 = Object(external_this_wp_element_["useState"])(null),
|
2924 |
+
_useState4 = slicedToArray_default()(_useState3, 2),
|
2925 |
+
node = _useState4[0],
|
2926 |
+
setNode = _useState4[1];
|
2927 |
+
|
2928 |
+
var _useState5 = Object(external_this_wp_element_["useState"])(null),
|
2929 |
+
_useState6 = slicedToArray_default()(_useState5, 2),
|
2930 |
+
anchorRect = _useState6[0],
|
2931 |
+
setAnchorRect = _useState6[1];
|
2932 |
+
|
2933 |
+
Object(external_this_wp_element_["useEffect"])(function () {
|
2934 |
+
var element = document.getElementById(id);
|
2935 |
+
var container, parent;
|
2936 |
|
2937 |
if (element && !node) {
|
2938 |
// Add tooltip container
|
2949 |
setNode(container);
|
2950 |
}
|
2951 |
|
2952 |
+
var timeoutId = triggerShowTooltip(container);
|
2953 |
+
return function () {
|
2954 |
if (container) {
|
2955 |
+
var parentElement = container.parentElement;
|
2956 |
parentElement.removeChild(container);
|
2957 |
|
2958 |
if (useAnchor) {
|
2965 |
}
|
2966 |
};
|
2967 |
}, []);
|
2968 |
+
Object(external_this_wp_element_["useEffect"])(function () {
|
2969 |
if (!showHighlight && node) {
|
2970 |
node.classList.remove(SHOW_CLASS);
|
2971 |
}
|
2972 |
}, [showHighlight]);
|
2973 |
+
Object(external_this_wp_element_["useEffect"])(function () {
|
2974 |
if (show !== showHighlight && showHighlight !== null && node) {
|
2975 |
setShowHighlight(show);
|
2976 |
|
2981 |
}
|
2982 |
}
|
2983 |
}, [show]);
|
2984 |
+
Object(external_this_wp_element_["useLayoutEffect"])(function () {
|
2985 |
window.addEventListener('resize', updateSize);
|
2986 |
+
return function () {
|
2987 |
+
return window.removeEventListener('resize', updateSize);
|
2988 |
+
};
|
2989 |
}, []);
|
2990 |
|
2991 |
function updateSize() {
|
2992 |
if (useAnchor) {
|
2993 |
+
var element = document.getElementById(id);
|
2994 |
setAnchorRect(element.getBoundingClientRect());
|
2995 |
}
|
2996 |
}
|
2997 |
|
2998 |
+
var triggerShowTooltip = function triggerShowTooltip(container) {
|
2999 |
+
var timeoutId = null;
|
3000 |
|
3001 |
if (delay > 0) {
|
3002 |
+
timeoutId = setTimeout(function () {
|
3003 |
timeoutId = null;
|
3004 |
showTooltip(container);
|
3005 |
}, delay);
|
3010 |
return timeoutId;
|
3011 |
};
|
3012 |
|
3013 |
+
var showTooltip = function showTooltip(container) {
|
3014 |
+
var element = document.getElementById(id);
|
3015 |
|
3016 |
if (element && useAnchor) {
|
3017 |
setAnchorRect(element.getBoundingClientRect());
|
3025 |
onShow();
|
3026 |
};
|
3027 |
|
3028 |
+
var triggerClose = function triggerClose() {
|
3029 |
setShowHighlight(false);
|
3030 |
|
3031 |
if (onClose) {
|
3037 |
return null;
|
3038 |
}
|
3039 |
|
3040 |
+
return Object(external_this_wp_element_["createPortal"])(Object(external_this_wp_element_["createElement"])("div", {
|
3041 |
className: "highlight-tooltip__portal"
|
3042 |
+
}, showHighlight ? Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IsolatedEventContainer"], {
|
3043 |
className: "highlight-tooltip__overlay"
|
3044 |
+
}), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], {
|
3045 |
className: "highlight-tooltip__popover",
|
3046 |
noArrow: false,
|
3047 |
anchorRect: anchorRect,
|
3048 |
focusOnMount: "container"
|
3049 |
+
}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Card"], {
|
3050 |
size: "medium"
|
3051 |
+
}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CardHeader"], null, title, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
|
3052 |
isSmall: true,
|
3053 |
onClick: triggerClose,
|
3054 |
icon: library_close["a" /* default */]
|
3055 |
+
})), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CardBody"], null, content || null), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CardFooter"], {
|
3056 |
isBorderless: true
|
3057 |
+
}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
|
3058 |
size: "small",
|
3059 |
isPrimary: true,
|
3060 |
onClick: triggerClose
|
3061 |
+
}, closeButtonText || Object(external_this_wp_i18n_["__"])('Close', 'woocommerce-admin')))))) : null), node);
|
3062 |
}
|
3063 |
|
3064 |
HighlightTooltip.propTypes = {
|
3109 |
useAnchor: prop_types_default.a.bool
|
3110 |
};
|
3111 |
|
3112 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/dom/build-module/index.js + 2 modules
|
3113 |
+
var dom_build_module = __webpack_require__(121);
|
3114 |
|
3115 |
// CONCATENATED MODULE: ./client/hooks/useFocusOnMount.js
|
3116 |
/**
|
3147 |
* ```
|
3148 |
*/
|
3149 |
|
3150 |
+
function useFocusOnMount() {
|
3151 |
+
var focusOnMount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'firstElement';
|
3152 |
+
var focusOnMountRef = Object(external_this_wp_element_["useRef"])(focusOnMount);
|
3153 |
+
Object(external_this_wp_element_["useEffect"])(function () {
|
3154 |
focusOnMountRef.current = focusOnMount;
|
3155 |
}, [focusOnMount]);
|
3156 |
+
return Object(external_this_wp_element_["useCallback"])(function (node) {
|
3157 |
if (!node || focusOnMountRef.current === false) {
|
3158 |
return;
|
3159 |
}
|
3162 |
return;
|
3163 |
}
|
3164 |
|
3165 |
+
var target = node;
|
3166 |
|
3167 |
if (focusOnMountRef.current === 'firstElement') {
|
3168 |
+
var firstTabbable = dom_build_module["a" /* focus */].tabbable.find(node)[0];
|
3169 |
|
3170 |
if (firstTabbable) {
|
3171 |
target = firstTabbable;
|
3188 |
* @type {string[]}
|
3189 |
*/
|
3190 |
|
3191 |
+
var INPUT_BUTTON_TYPES = ['button', 'submit'];
|
3192 |
/**
|
3193 |
* @typedef {HTMLButtonElement | HTMLLinkElement | HTMLInputElement} FocusNormalizedButton
|
3194 |
*/
|
3269 |
|
3270 |
|
3271 |
function useFocusOutside(onFocusOutside) {
|
3272 |
+
var currentOnFocusOutside = Object(external_this_wp_element_["useRef"])(onFocusOutside);
|
3273 |
+
Object(external_this_wp_element_["useEffect"])(function () {
|
3274 |
currentOnFocusOutside.current = onFocusOutside;
|
3275 |
}, [onFocusOutside]);
|
3276 |
+
var preventBlurCheck = Object(external_this_wp_element_["useRef"])(false);
|
3277 |
/**
|
3278 |
* @type {import('react').MutableRefObject<number | undefined>}
|
3279 |
*/
|
3280 |
|
3281 |
+
var blurCheckTimeoutId = Object(external_this_wp_element_["useRef"])();
|
3282 |
/**
|
3283 |
* Cancel a blur check timeout.
|
3284 |
*/
|
3285 |
|
3286 |
+
var cancelBlurCheck = Object(external_this_wp_element_["useCallback"])(function () {
|
3287 |
clearTimeout(blurCheckTimeoutId.current);
|
3288 |
}, []); // Cancel blur checks on unmount.
|
3289 |
|
3290 |
+
Object(external_this_wp_element_["useEffect"])(function () {
|
3291 |
+
return function () {
|
3292 |
+
return cancelBlurCheck();
|
3293 |
+
};
|
3294 |
}, []); // Cancel a blur check if the callback or ref is no longer provided.
|
3295 |
|
3296 |
+
Object(external_this_wp_element_["useEffect"])(function () {
|
3297 |
if (!onFocusOutside) {
|
3298 |
cancelBlurCheck();
|
3299 |
}
|
3310 |
* @param {SyntheticEvent} event Event for mousedown or mouseup.
|
3311 |
*/
|
3312 |
|
3313 |
+
var normalizeButtonFocus = Object(external_this_wp_element_["useCallback"])(function (event) {
|
3314 |
+
var type = event.type,
|
3315 |
+
target = event.target;
|
3316 |
+
var isInteractionEnd = Object(external_lodash_["includes"])(['mouseup', 'touchend'], type);
|
|
|
|
|
3317 |
|
3318 |
if (isInteractionEnd) {
|
3319 |
preventBlurCheck.current = false;
|
3331 |
* @param {SyntheticEvent} event Blur event.
|
3332 |
*/
|
3333 |
|
3334 |
+
var queueBlurCheck = Object(external_this_wp_element_["useCallback"])(function (event) {
|
3335 |
// React does not allow using an event reference asynchronously
|
3336 |
// due to recycling behavior, except when explicitly persisted.
|
3337 |
event.persist(); // Skip blur check if clicking button. See `normalizeButtonFocus`.
|
3340 |
return;
|
3341 |
}
|
3342 |
|
3343 |
+
blurCheckTimeoutId.current = setTimeout(function () {
|
3344 |
// If document is not focused then focus should remain
|
3345 |
// inside the wrapped component and therefore we cancel
|
3346 |
// this blur event thereby leaving focus in place.
|
3380 |
|
3381 |
|
3382 |
|
3383 |
+
var panel_Panel = function Panel(_ref) {
|
3384 |
+
var content = _ref.content,
|
3385 |
+
isPanelOpen = _ref.isPanelOpen,
|
3386 |
+
isPanelSwitching = _ref.isPanelSwitching,
|
3387 |
+
currentTab = _ref.currentTab,
|
3388 |
+
tab = _ref.tab,
|
3389 |
+
closePanel = _ref.closePanel,
|
3390 |
+
clearPanel = _ref.clearPanel;
|
|
|
|
|
3391 |
|
3392 |
+
var handleFocusOutside = function handleFocusOutside(event) {
|
3393 |
+
var isClickOnModalOrSnackbar = event.target.closest('.woocommerce-inbox-dismiss-confirmation_modal') || event.target.closest('.components-snackbar__action');
|
3394 |
|
3395 |
if (isPanelOpen && !isClickOnModalOrSnackbar) {
|
3396 |
closePanel();
|
3397 |
}
|
3398 |
};
|
3399 |
|
3400 |
+
var possibleFocusPanel = function possibleFocusPanel() {
|
3401 |
if (!containerRef.current || !isPanelOpen || !tab) {
|
3402 |
return;
|
3403 |
}
|
3405 |
focusOnMountRef(containerRef.current);
|
3406 |
};
|
3407 |
|
3408 |
+
var finishTransition = function finishTransition(e) {
|
3409 |
if (e && e.propertyName === 'transform') {
|
3410 |
clearPanel();
|
3411 |
possibleFocusPanel();
|
3412 |
}
|
3413 |
};
|
3414 |
|
3415 |
+
var focusOnMountRef = useFocusOnMount();
|
3416 |
+
var useFocusOutsideProps = useFocusOutside(handleFocusOutside);
|
3417 |
+
var containerRef = Object(external_this_wp_element_["useRef"])(null);
|
3418 |
+
var mergedContainerRef = Object(external_this_wp_element_["useCallback"])(function (node) {
|
3419 |
containerRef.current = node;
|
3420 |
focusOnMountRef(node);
|
3421 |
}, []);
|
3422 |
|
3423 |
if (!tab) {
|
3424 |
+
return Object(external_this_wp_element_["createElement"])("div", {
|
3425 |
+
className: "woocommerce-layout__activity-panel-wrapper"
|
3426 |
});
|
3427 |
}
|
3428 |
|
3430 |
return null;
|
3431 |
}
|
3432 |
|
3433 |
+
var classNames = classnames_default()('woocommerce-layout__activity-panel-wrapper', {
|
3434 |
'is-open': isPanelOpen,
|
3435 |
'is-switching': isPanelSwitching
|
3436 |
});
|
3437 |
+
return Object(external_this_wp_element_["createElement"])("div", extends_default()({
|
3438 |
className: classNames,
|
3439 |
tabIndex: 0,
|
3440 |
role: "tabpanel",
|
3442 |
onTransitionEnd: finishTransition
|
3443 |
}, useFocusOutsideProps, {
|
3444 |
ref: mergedContainerRef
|
3445 |
+
}), Object(external_this_wp_element_["createElement"])("div", {
|
3446 |
className: "woocommerce-layout__activity-panel-content",
|
3447 |
key: 'activity-panel-' + currentTab,
|
3448 |
id: 'activity-panel-' + currentTab
|
3449 |
+
}, Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Suspense"], {
|
3450 |
+
fallback: Object(external_this_wp_element_["createElement"])(external_this_wc_components_["Spinner"], null)
|
3451 |
}, content)));
|
3452 |
};
|
3453 |
+
/* harmony default export */ var panel = (panel_Panel);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3454 |
// CONCATENATED MODULE: ./client/header/activity-panel/index.js
|
3455 |
|
3456 |
|
3457 |
+
|
3458 |
/**
|
3459 |
* External dependencies
|
3460 |
*/
|
3470 |
|
3471 |
|
3472 |
|
3473 |
+
|
3474 |
/**
|
3475 |
* Internal dependencies
|
3476 |
*/
|
3484 |
|
3485 |
|
3486 |
|
3487 |
+
var HelpPanel = Object(external_this_wp_element_["lazy"])(function () {
|
3488 |
+
return Promise.all(/* import() | activity-panels-help */[__webpack_require__.e(54), __webpack_require__.e(5), __webpack_require__.e(7)]).then(__webpack_require__.bind(null, 602));
|
3489 |
+
});
|
3490 |
+
var InboxPanel = Object(external_this_wp_element_["lazy"])(function () {
|
3491 |
+
return Promise.all(/* import() | activity-panels-inbox */[__webpack_require__.e(1), __webpack_require__.e(2), __webpack_require__.e(4), __webpack_require__.e(8)]).then(__webpack_require__.bind(null, 587));
|
3492 |
+
});
|
3493 |
+
var activity_panel_ActivityPanel = function ActivityPanel(_ref) {
|
3494 |
+
var isEmbedded = _ref.isEmbedded,
|
3495 |
+
query = _ref.query,
|
3496 |
+
userPreferencesData = _ref.userPreferencesData;
|
3497 |
+
|
3498 |
+
var _useState = Object(external_this_wp_element_["useState"])(''),
|
3499 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
3500 |
+
currentTab = _useState2[0],
|
3501 |
+
setCurrentTab = _useState2[1];
|
3502 |
+
|
3503 |
+
var _useState3 = Object(external_this_wp_element_["useState"])(false),
|
3504 |
+
_useState4 = slicedToArray_default()(_useState3, 2),
|
3505 |
+
isPanelOpen = _useState4[0],
|
3506 |
+
setIsPanelOpen = _useState4[1];
|
3507 |
+
|
3508 |
+
var _useState5 = Object(external_this_wp_element_["useState"])(false),
|
3509 |
+
_useState6 = slicedToArray_default()(_useState5, 2),
|
3510 |
+
isPanelSwitching = _useState6[0],
|
3511 |
+
setIsPanelSwitching = _useState6[1];
|
3512 |
+
|
3513 |
+
var _useState7 = Object(external_this_wp_element_["useState"])(false),
|
3514 |
+
_useState8 = slicedToArray_default()(_useState7, 2),
|
3515 |
+
mobileOpen = _useState8[0],
|
3516 |
+
setMobileOpen = _useState8[1];
|
3517 |
+
|
3518 |
+
var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
|
3519 |
+
var _select = select(external_this_wc_data_["OPTIONS_STORE_NAME"]),
|
3520 |
+
getOption = _select.getOption,
|
3521 |
+
isResolving = _select.isResolving;
|
3522 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3523 |
return {
|
3524 |
+
hasUnreadNotes: getUnreadNotes(select),
|
|
|
|
|
3525 |
requestingTaskListOptions: isResolving('getOption', ['woocommerce_task_list_complete']) || isResolving('getOption', ['woocommerce_task_list_hidden']),
|
3526 |
setupTaskListComplete: getOption('woocommerce_task_list_complete') === 'yes',
|
3527 |
+
setupTaskListHidden: getOption('woocommerce_task_list_hidden') === 'yes',
|
3528 |
+
trackedCompletedTasks: getOption('woocommerce_task_list_tracked_completed_tasks') || []
|
|
|
3529 |
};
|
3530 |
+
}),
|
3531 |
+
hasUnreadNotes = _useSelect.hasUnreadNotes,
|
3532 |
+
requestingTaskListOptions = _useSelect.requestingTaskListOptions,
|
3533 |
+
setupTaskListComplete = _useSelect.setupTaskListComplete,
|
3534 |
+
setupTaskListHidden = _useSelect.setupTaskListHidden,
|
3535 |
+
trackedCompletedTasks = _useSelect.trackedCompletedTasks;
|
3536 |
+
|
3537 |
+
var _useDispatch = Object(external_this_wp_data_["useDispatch"])(external_this_wc_data_["OPTIONS_STORE_NAME"]),
|
3538 |
+
updateOptions = _useDispatch.updateOptions;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3539 |
|
3540 |
+
var _useUser = Object(external_this_wc_data_["useUser"])(),
|
3541 |
+
currentUserCan = _useUser.currentUserCan;
|
3542 |
+
|
3543 |
+
var togglePanel = function togglePanel(_ref2, isTabOpen) {
|
3544 |
+
var tabName = _ref2.name;
|
3545 |
+
var panelSwitching = tabName !== currentTab && currentTab !== '' && isTabOpen && isPanelOpen;
|
3546 |
setCurrentTab(tabName);
|
3547 |
+
setMobileOpen(isTabOpen);
|
3548 |
setIsPanelOpen(isTabOpen);
|
3549 |
setIsPanelSwitching(panelSwitching);
|
3550 |
};
|
3551 |
|
3552 |
+
var _closePanel = function closePanel() {
|
|
|
3553 |
setIsPanelOpen(false);
|
3554 |
};
|
3555 |
|
3556 |
+
var _clearPanel = function clearPanel() {
|
3557 |
if (!isPanelOpen) {
|
|
|
3558 |
setIsPanelSwitching(false);
|
3559 |
setCurrentTab('');
|
3560 |
}
|
3561 |
+
}; // On smaller screen, the panel buttons are hidden behind a toggle.
|
3562 |
+
|
3563 |
+
|
3564 |
+
var toggleMobile = function toggleMobile() {
|
3565 |
+
var tabs = getTabs();
|
3566 |
+
setCurrentTab(mobileOpen ? '' : tabs[0].name);
|
3567 |
+
setMobileOpen(!mobileOpen);
|
3568 |
+
setIsPanelOpen(!mobileOpen);
|
3569 |
};
|
3570 |
|
3571 |
+
var isHomescreen = function isHomescreen() {
|
3572 |
return query.page === 'wc-admin' && !query.path;
|
3573 |
};
|
3574 |
|
3575 |
+
var isPerformingSetupTask = function isPerformingSetupTask() {
|
3576 |
return query.task && !query.path && (requestingTaskListOptions === true || setupTaskListHidden === false && setupTaskListComplete === false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3577 |
}; // @todo Pull in dynamic unread status/count
|
3578 |
|
3579 |
|
3580 |
+
var getTabs = function getTabs() {
|
3581 |
+
var inbox = {
|
3582 |
name: 'inbox',
|
3583 |
+
title: Object(external_this_wp_i18n_["__"])('Inbox', 'woocommerce-admin'),
|
3584 |
+
icon: Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], {
|
3585 |
icon: library_inbox
|
3586 |
}),
|
3587 |
+
unread: hasUnreadNotes,
|
3588 |
visible: (isEmbedded || !isHomescreen()) && !isPerformingSetupTask()
|
3589 |
};
|
3590 |
+
var setup = {
|
3591 |
name: 'setup',
|
3592 |
+
title: Object(external_this_wp_i18n_["__"])('Store Setup', 'woocommerce-admin'),
|
3593 |
+
icon: Object(external_this_wp_element_["createElement"])(setup_progress_SetupProgress, null),
|
3594 |
+
onClick: function onClick() {
|
3595 |
+
var currentLocation = window.location.href;
|
3596 |
+
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
|
3597 |
|
3598 |
if (currentLocation !== homescreenLocation) {
|
3599 |
// Ensure that if the user is trying to get to the task list they can see it even if
|
3611 |
},
|
3612 |
visible: currentUserCan('manage_woocommerce') && !setupTaskListComplete && !setupTaskListHidden && !isPerformingSetupTask() && (!isHomescreen() || isEmbedded)
|
3613 |
};
|
3614 |
+
var help = {
|
3615 |
name: 'help',
|
3616 |
+
title: Object(external_this_wp_i18n_["__"])('Help', 'woocommerce-admin'),
|
3617 |
+
icon: Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], {
|
3618 |
icon: library_help
|
3619 |
}),
|
3620 |
visible: isHomescreen() && !isEmbedded || isPerformingSetupTask()
|
3621 |
};
|
3622 |
+
var displayOptions = {
|
3623 |
+
component: display_options_DisplayOptions,
|
3624 |
visible: !isEmbedded && isHomescreen() && !isPerformingSetupTask()
|
3625 |
};
|
3626 |
+
return [inbox, setup, displayOptions, help].filter(function (tab) {
|
3627 |
+
return tab.visible;
|
3628 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3629 |
};
|
3630 |
|
3631 |
+
var getPanelContent = function getPanelContent(tab) {
|
3632 |
+
var task = query.task;
|
|
|
|
|
3633 |
|
3634 |
switch (tab) {
|
3635 |
case 'inbox':
|
3636 |
+
return Object(external_this_wp_element_["createElement"])(InboxPanel, null);
|
|
|
|
|
|
|
3637 |
|
3638 |
case 'help':
|
3639 |
+
return Object(external_this_wp_element_["createElement"])(HelpPanel, {
|
3640 |
taskName: task
|
3641 |
});
|
3642 |
|
3645 |
}
|
3646 |
};
|
3647 |
|
3648 |
+
var redirectToHomeScreen = function redirectToHomeScreen() {
|
3649 |
+
if (Object(utils["f" /* isWCAdmin */])(window.location.href)) {
|
3650 |
+
Object(external_this_wc_navigation_["getHistory"])().push(Object(external_this_wc_navigation_["getNewPath"])({}, '/', {}));
|
3651 |
+
} else {
|
3652 |
+
window.location.href = Object(wc_admin_settings["f" /* getAdminLink */])('admin.php?page=wc-admin');
|
3653 |
+
}
|
3654 |
+
};
|
3655 |
+
|
3656 |
+
var closedHelpPanelHighlight = function closedHelpPanelHighlight() {
|
3657 |
+
Object(external_this_wc_tracks_["recordEvent"])('help_tooltip_click');
|
3658 |
|
3659 |
if (userPreferencesData && userPreferencesData.updateUserPreferences) {
|
3660 |
userPreferencesData.updateUserPreferences({
|
3663 |
}
|
3664 |
};
|
3665 |
|
3666 |
+
var shouldShowHelpTooltip = function shouldShowHelpTooltip() {
|
3667 |
+
var task = query.task;
|
3668 |
+
var startedTasks = userPreferencesData && userPreferencesData.task_list_tracked_started_tasks;
|
3669 |
+
var highlightShown = userPreferencesData && userPreferencesData.help_panel_highlight_shown;
|
|
|
|
|
3670 |
|
3671 |
if (task && highlightShown !== 'yes' && (startedTasks || {})[task] > 1 && !trackedCompletedTasks.includes(task)) {
|
3672 |
return true;
|
3675 |
return false;
|
3676 |
};
|
3677 |
|
3678 |
+
var tabs = getTabs();
|
3679 |
+
var headerId = Object(external_lodash_["uniqueId"])('activity-panel-header_');
|
3680 |
+
var panelClasses = classnames_default()('woocommerce-layout__activity-panel', {
|
3681 |
+
'is-mobile-open': mobileOpen
|
3682 |
+
});
|
3683 |
+
var showHelpHighlightTooltip = shouldShowHelpTooltip();
|
3684 |
+
var hasUnread = tabs.some(function (tab) {
|
3685 |
+
return tab.unread;
|
3686 |
+
});
|
3687 |
+
var viewLabel = hasUnread ? Object(external_this_wp_i18n_["__"])('View Activity Panel, you have unread activity', 'woocommerce-admin') : Object(external_this_wp_i18n_["__"])('View Activity Panel', 'woocommerce-admin');
|
3688 |
+
return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wc_components_["H"], {
|
3689 |
id: headerId,
|
3690 |
className: "screen-reader-text"
|
3691 |
+
}, Object(external_this_wp_i18n_["__"])('Store Activity', 'woocommerce-admin')), Object(external_this_wp_element_["createElement"])(external_this_wc_components_["Section"], {
|
3692 |
component: "aside",
|
3693 |
id: "woocommerce-activity-panel",
|
|
|
3694 |
"aria-labelledby": headerId
|
3695 |
+
}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
|
3696 |
+
onClick: function onClick() {
|
3697 |
+
toggleMobile();
|
3698 |
+
},
|
3699 |
+
label: mobileOpen ? Object(external_this_wp_i18n_["__"])('Close Activity Panel', 'woocommerce-admin') : viewLabel,
|
3700 |
+
"aria-expanded": mobileOpen,
|
3701 |
+
className: "woocommerce-layout__activity-panel-mobile-toggle"
|
3702 |
+
}, mobileOpen ? Object(external_this_wp_element_["createElement"])(cross_small_default.a, null) : Object(external_this_wp_element_["createElement"])(toggle_bubble, {
|
3703 |
+
hasUnread: hasUnread
|
3704 |
+
})), Object(external_this_wp_element_["createElement"])("div", {
|
3705 |
+
className: panelClasses
|
3706 |
+
}, Object(external_this_wp_element_["createElement"])(tabs_Tabs, {
|
3707 |
tabs: tabs,
|
3708 |
tabOpen: isPanelOpen,
|
3709 |
selectedTab: currentTab,
|
3710 |
+
onTabClick: function onTabClick(tab, tabOpen) {
|
3711 |
if (tab.onClick) {
|
3712 |
tab.onClick();
|
3713 |
return;
|
3715 |
|
3716 |
togglePanel(tab, tabOpen);
|
3717 |
}
|
3718 |
+
}), Object(external_this_wp_element_["createElement"])(panel_Panel, {
|
3719 |
currentTab: true,
|
3720 |
isPanelOpen: isPanelOpen,
|
3721 |
isPanelSwitching: isPanelSwitching,
|
3723 |
name: currentTab
|
3724 |
}),
|
3725 |
content: getPanelContent(currentTab),
|
3726 |
+
closePanel: function closePanel() {
|
3727 |
+
return _closePanel();
|
3728 |
+
},
|
3729 |
+
clearPanel: function clearPanel() {
|
3730 |
+
return _clearPanel();
|
3731 |
+
}
|
3732 |
+
}))), showHelpHighlightTooltip ? Object(external_this_wp_element_["createElement"])(HighlightTooltip, {
|
3733 |
delay: 1000,
|
3734 |
useAnchor: true,
|
3735 |
+
title: Object(external_this_wp_i18n_["__"])("We're here for help", 'woocommerce-admin'),
|
3736 |
+
content: Object(external_this_wp_i18n_["__"])('If you have any questions, feel free to explore the WooCommerce docs listed here.', 'woocommerce-admin'),
|
3737 |
+
closeButtonText: Object(external_this_wp_i18n_["__"])('Got it', 'woocommerce-admin'),
|
3738 |
id: "activity-panel-tab-help",
|
3739 |
+
onClose: function onClose() {
|
3740 |
+
return closedHelpPanelHighlight();
|
3741 |
+
},
|
3742 |
+
onShow: function onShow() {
|
3743 |
+
return Object(external_this_wc_tracks_["recordEvent"])('help_tooltip_view');
|
3744 |
+
}
|
3745 |
}) : null);
|
3746 |
};
|
3747 |
+
activity_panel_ActivityPanel.defaultProps = {
|
3748 |
+
getHistory: external_this_wc_navigation_["getHistory"]
|
3749 |
};
|
3750 |
+
/* harmony default export */ var activity_panel = (activity_panel_ActivityPanel);
|
|
|
|
|
|
|
|
|
3751 |
// CONCATENATED MODULE: ./client/lib/platform/index.js
|
3752 |
+
var ANDROID_PLATFORM = 'android';
|
3753 |
+
var IOS_PLATFORM = 'ios';
|
3754 |
+
var UNKNOWN_PLATFORM = 'unknown';
|
3755 |
/**
|
3756 |
* Provide basic detection of platform based on user agent. This is not
|
3757 |
* a robust check for browser features or the like. You should only use
|
3758 |
* this for non-critical display logic.
|
3759 |
*/
|
3760 |
|
3761 |
+
var platform = function platform() {
|
3762 |
if (/iPhone|iPad|iPod/i.test(window.navigator.userAgent)) {
|
3763 |
return IOS_PLATFORM;
|
3764 |
} else if (/Android/i.test(window.navigator.userAgent)) {
|
3769 |
};
|
3770 |
// CONCATENATED MODULE: ./client/mobile-banner/app-icon.js
|
3771 |
|
3772 |
+
var app_icon_AppIcon = function AppIcon() {
|
3773 |
+
return Object(external_this_wp_element_["createElement"])("svg", {
|
3774 |
width: "37",
|
3775 |
height: "37",
|
3776 |
viewBox: "0 0 92 92",
|
3777 |
fill: "none",
|
3778 |
xmlns: "http://www.w3.org/2000/svg"
|
3779 |
+
}, Object(external_this_wp_element_["createElement"])("rect", {
|
3780 |
width: "92",
|
3781 |
height: "92",
|
3782 |
rx: "21.3953",
|
3783 |
fill: "#7F54B3"
|
3784 |
+
}), Object(external_this_wp_element_["createElement"])("path", {
|
3785 |
fillRule: "evenodd",
|
3786 |
clipRule: "evenodd",
|
3787 |
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",
|
3789 |
}));
|
3790 |
};
|
3791 |
// EXTERNAL MODULE: ./client/mobile-banner/style.scss
|
3792 |
+
var mobile_banner_style = __webpack_require__(302);
|
3793 |
|
3794 |
// CONCATENATED MODULE: ./client/mobile-banner/constants.js
|
3795 |
// The Play Store link is defined as an exported constant mainly for the sake of testing the Mobile App Banner.
|
3796 |
// It is nearly impossible to fake navigation in JSDOM 16, so exposing this link for mocking allows us to
|
3797 |
// avoid triggering a navigation.
|
3798 |
+
var PLAY_STORE_LINK = 'https://play.google.com/store/apps/details?id=com.woocommerce.android';
|
3799 |
+
var TRACKING_EVENT_NAME = 'wcadmin_mobile_android_banner_click';
|
3800 |
// CONCATENATED MODULE: ./client/mobile-banner/index.js
|
3801 |
|
3802 |
|
3803 |
+
|
3804 |
/**
|
3805 |
* External dependencies
|
3806 |
*/
|
3808 |
|
3809 |
|
3810 |
|
|
|
|
|
3811 |
/**
|
3812 |
* Internal dependencies
|
3813 |
*/
|
3816 |
|
3817 |
|
3818 |
|
3819 |
+
var SHOW_APP_BANNER_MODIFIER_CLASS = 'woocommerce-layout__show-app-banner';
|
3820 |
+
var mobile_banner_MobileAppBanner = function MobileAppBanner(_ref) {
|
3821 |
+
var onInstall = _ref.onInstall,
|
3822 |
+
onDismiss = _ref.onDismiss;
|
3823 |
+
Object(external_this_wp_element_["useEffect"])(function () {
|
3824 |
+
var layout = document.getElementsByClassName('woocommerce-layout')[0];
|
|
|
3825 |
|
3826 |
if (platform() === ANDROID_PLATFORM) {
|
3827 |
if (layout) {
|
3832 |
}
|
3833 |
}
|
3834 |
|
3835 |
+
return function () {
|
3836 |
if (layout) {
|
3837 |
layout.classList.remove(SHOW_APP_BANNER_MODIFIER_CLASS);
|
3838 |
}
|
3839 |
};
|
3840 |
}, []);
|
3841 |
+
|
3842 |
+
var _useState = Object(external_this_wp_element_["useState"])(false),
|
3843 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
3844 |
+
isDismissed = _useState2[0],
|
3845 |
+
setDismissed = _useState2[1]; // On iOS the "Smart App Banner" meta tag is used so only display this on Android.
|
3846 |
+
|
3847 |
|
3848 |
if (platform() === ANDROID_PLATFORM && !isDismissed) {
|
3849 |
+
return Object(external_this_wp_element_["createElement"])("div", {
|
3850 |
className: "woocommerce-mobile-app-banner"
|
3851 |
+
}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Icon"], {
|
3852 |
+
icon: "no-alt",
|
3853 |
+
"data-testid": "dismiss-btn",
|
3854 |
+
onClick: function onClick() {
|
|
|
3855 |
onDismiss();
|
3856 |
setDismissed(true);
|
3857 |
+
Object(external_this_wc_tracks_["recordEvent"])(TRACKING_EVENT_NAME, {
|
3858 |
action: 'dismiss'
|
3859 |
});
|
3860 |
}
|
3861 |
+
}), Object(external_this_wp_element_["createElement"])(app_icon_AppIcon, null), Object(external_this_wp_element_["createElement"])("div", {
|
3862 |
className: "woocommerce-mobile-app-banner__description"
|
3863 |
+
}, Object(external_this_wp_element_["createElement"])("p", {
|
3864 |
className: "woocommerce-mobile-app-banner__description__text"
|
3865 |
+
}, Object(external_this_wp_i18n_["__"])('Run your store from anywhere', 'woocommerce-admin')), Object(external_this_wp_element_["createElement"])("p", {
|
3866 |
className: "woocommerce-mobile-app-banner__description__text"
|
3867 |
+
}, Object(external_this_wp_i18n_["__"])('Download the WooCommerce app', 'woocommerce-admin'))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
|
3868 |
href: PLAY_STORE_LINK,
|
3869 |
isSecondary: true,
|
3870 |
+
onClick: function onClick() {
|
3871 |
onInstall();
|
3872 |
setDismissed(true);
|
3873 |
+
Object(external_this_wc_tracks_["recordEvent"])(TRACKING_EVENT_NAME, {
|
3874 |
action: 'install'
|
3875 |
});
|
3876 |
}
|
3877 |
+
}, Object(external_this_wp_i18n_["__"])('Install', 'woocommerce-admin')));
|
3878 |
}
|
3879 |
|
3880 |
return null;
|
3881 |
};
|
3882 |
// CONCATENATED MODULE: ./client/hooks/useIsScrolled.js
|
3883 |
+
|
3884 |
+
|
3885 |
/**
|
3886 |
* External dependencies
|
3887 |
*/
|
3888 |
|
3889 |
function useIsScrolled() {
|
3890 |
+
var _useState = Object(external_this_wp_element_["useState"])(false),
|
3891 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
3892 |
+
isScrolled = _useState2[0],
|
3893 |
+
setIsScrolled = _useState2[1];
|
3894 |
+
|
3895 |
+
var rafHandle = Object(external_this_wp_element_["useRef"])(null);
|
3896 |
+
Object(external_this_wp_element_["useEffect"])(function () {
|
3897 |
+
var updateIsScrolled = function updateIsScrolled() {
|
3898 |
setIsScrolled(window.pageYOffset > 20);
|
3899 |
};
|
3900 |
|
3901 |
+
var scrollListener = function scrollListener() {
|
3902 |
rafHandle.current = window.requestAnimationFrame(updateIsScrolled);
|
3903 |
};
|
3904 |
|
3905 |
window.addEventListener('scroll', scrollListener);
|
3906 |
+
return function () {
|
3907 |
window.removeEventListener('scroll', scrollListener);
|
3908 |
window.cancelAnimationFrame(rafHandle.current);
|
3909 |
};
|
3910 |
}, []);
|
3911 |
return isScrolled;
|
3912 |
}
|
3913 |
+
// EXTERNAL MODULE: external {"this":["wp","plugins"]}
|
3914 |
+
var external_this_wp_plugins_ = __webpack_require__(139);
|
3915 |
+
|
3916 |
// EXTERNAL MODULE: ./client/navigation/style.scss
|
3917 |
+
var navigation_style = __webpack_require__(303);
|
3918 |
+
|
3919 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
|
3920 |
+
var toConsumableArray = __webpack_require__(19);
|
3921 |
+
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
|
3922 |
+
|
3923 |
+
// CONCATENATED MODULE: ./client/navigation/utils.js
|
3924 |
+
|
3925 |
+
|
3926 |
+
|
3927 |
+
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; }
|
3928 |
+
|
3929 |
+
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; }
|
3930 |
|
|
|
3931 |
/**
|
3932 |
* External dependencies
|
3933 |
*/
|
3934 |
|
|
|
3935 |
/**
|
3936 |
* Get the full URL if a relative path is passed.
|
3937 |
+
*
|
3938 |
+
* @param {string} url URL
|
3939 |
+
* @return {string} Full URL
|
3940 |
*/
|
3941 |
+
|
3942 |
+
var getFullUrl = function getFullUrl(url) {
|
3943 |
+
var _window$location = window.location,
|
3944 |
+
origin = _window$location.origin,
|
3945 |
+
pathname = _window$location.pathname,
|
3946 |
+
search = _window$location.search;
|
3947 |
+
|
3948 |
+
if (url.indexOf('#') === 0) {
|
3949 |
+
return origin + pathname + search + url;
|
3950 |
+
}
|
3951 |
+
|
3952 |
if (url.indexOf('http') === 0) {
|
3953 |
return url;
|
3954 |
}
|
3955 |
|
3956 |
+
return origin + url;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3957 |
};
|
3958 |
/**
|
3959 |
* Get a match score for a menu item given a location.
|
3960 |
+
*
|
3961 |
+
* @param {Object} location Window location
|
3962 |
+
* @param {string} itemUrl URL to compare
|
3963 |
+
* @param {string} itemExpression Custom match expression
|
3964 |
+
* @return {number} Number of matches or 0 if not matched.
|
3965 |
*/
|
3966 |
|
3967 |
+
var getMatchScore = function getMatchScore(location, itemUrl) {
|
3968 |
+
var itemExpression = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
3969 |
+
|
3970 |
if (!itemUrl) {
|
3971 |
+
return;
|
3972 |
}
|
3973 |
|
3974 |
+
var fullUrl = getFullUrl(itemUrl);
|
3975 |
+
var href = location.href; // Return highest possible score for exact match.
|
|
|
|
|
3976 |
|
3977 |
if (fullUrl === href) {
|
3978 |
return Number.MAX_SAFE_INTEGER;
|
3979 |
}
|
3980 |
|
3981 |
+
var defaultExpression = utils_getDefaultMatchExpression(fullUrl);
|
3982 |
+
var regexp = new RegExp(itemExpression || defaultExpression, 'i');
|
3983 |
return (decodeURIComponent(href).match(regexp) || []).length;
|
3984 |
};
|
3985 |
+
/**
|
3986 |
+
* Get a default expression to match the path and provided params.
|
3987 |
+
*
|
3988 |
+
* @param {string} url URL to match.
|
3989 |
+
* @return {string} Regex expression.
|
3990 |
+
*/
|
3991 |
+
|
3992 |
+
var utils_getDefaultMatchExpression = function getDefaultMatchExpression(url) {
|
3993 |
+
var escapedUrl = url.replace(/[-\/\\^$*+?.()|[\]{}]/gi, '\\$&');
|
3994 |
+
|
3995 |
+
var _escapedUrl$split = escapedUrl.split(/\\\?|#/),
|
3996 |
+
_escapedUrl$split2 = slicedToArray_default()(_escapedUrl$split, 3),
|
3997 |
+
path = _escapedUrl$split2[0],
|
3998 |
+
args = _escapedUrl$split2[1],
|
3999 |
+
hash = _escapedUrl$split2[2];
|
4000 |
+
|
4001 |
+
var hashExpression = hash ? "(.*#".concat(hash, "$)") : '';
|
4002 |
+
var argsExpression = args ? args.split('&').reduce(function (acc, param) {
|
4003 |
+
return "".concat(acc, "(?=.*[?|&]").concat(param, "(&|$|#))");
|
4004 |
+
}, '') : '';
|
4005 |
+
return '^' + path + argsExpression + hashExpression;
|
4006 |
+
};
|
4007 |
+
/**
|
4008 |
+
* Adds a listener that runs on history change.
|
4009 |
+
*
|
4010 |
+
* @param {Function} listener Listener to add on history change.
|
4011 |
+
* @return {Function} Function to remove listeners.
|
4012 |
+
*/
|
4013 |
+
|
4014 |
+
var addHistoryListener = function addHistoryListener(listener) {
|
4015 |
+
// Monkey patch pushState to allow trigger the pushstate event listener.
|
4016 |
+
if (!window.wcNavigation.historyPatched) {
|
4017 |
+
(function (history) {
|
4018 |
+
/* global CustomEvent */
|
4019 |
+
var pushState = history.pushState;
|
4020 |
+
var replaceState = history.replaceState;
|
4021 |
+
|
4022 |
+
history.pushState = function (state) {
|
4023 |
+
var pushStateEvent = new CustomEvent('pushstate', {
|
4024 |
+
state: state
|
4025 |
+
});
|
4026 |
+
window.dispatchEvent(pushStateEvent);
|
4027 |
+
return pushState.apply(history, arguments);
|
4028 |
+
};
|
4029 |
+
|
4030 |
+
history.replaceState = function (state) {
|
4031 |
+
var replaceStateEvent = new CustomEvent('replacestate', {
|
4032 |
+
state: state
|
4033 |
+
});
|
4034 |
+
window.dispatchEvent(replaceStateEvent);
|
4035 |
+
return replaceState.apply(history, arguments);
|
4036 |
+
};
|
4037 |
+
|
4038 |
+
window.wcNavigation.historyPatched = true;
|
4039 |
+
})(window.history);
|
4040 |
+
}
|
4041 |
|
4042 |
+
window.addEventListener('popstate', listener);
|
4043 |
+
window.addEventListener('pushstate', listener);
|
4044 |
+
window.addEventListener('replacestate', listener);
|
4045 |
+
return function () {
|
4046 |
+
window.removeEventListener('popstate', listener);
|
4047 |
+
window.removeEventListener('pushstate', listener);
|
4048 |
+
window.removeEventListener('replacestate', listener);
|
4049 |
+
};
|
4050 |
+
};
|
4051 |
/**
|
4052 |
* Get the closest matching item.
|
4053 |
*
|
4054 |
* @param {Array} items An array of items to match against.
|
4055 |
*/
|
4056 |
+
|
4057 |
+
var utils_getMatchingItem = function getMatchingItem(items) {
|
4058 |
+
var matchedItem = null;
|
4059 |
+
var highestMatchScore = 0;
|
4060 |
+
items.forEach(function (item) {
|
4061 |
+
var score = getMatchScore(window.location, Object(wc_admin_settings["f" /* getAdminLink */])(item.url), item.matchExpression);
|
4062 |
|
4063 |
if (score > 0 && score >= highestMatchScore) {
|
4064 |
highestMatchScore = score;
|
4071 |
* Available menu IDs.
|
4072 |
*/
|
4073 |
|
4074 |
+
var menuIds = ['primary', 'favorites', 'plugins', 'secondary'];
|
|
|
4075 |
/**
|
4076 |
* Default categories for the menu.
|
4077 |
*/
|
4078 |
+
|
4079 |
+
var defaultCategories = {
|
4080 |
woocommerce: {
|
4081 |
id: 'woocommerce',
|
4082 |
isCategory: true,
|
4094 |
* @return {Array} Sorted menu items.
|
4095 |
*/
|
4096 |
|
4097 |
+
var sortMenuItems = function sortMenuItems(menuItems) {
|
4098 |
+
return menuItems.sort(function (a, b) {
|
4099 |
if (a.order === b.order) {
|
4100 |
return a.title.localeCompare(b.title);
|
4101 |
}
|
4111 |
* @return {Object} Mapped menu items and categories.
|
4112 |
*/
|
4113 |
|
4114 |
+
var getMappedItemsCategories = function getMappedItemsCategories(menuItems) {
|
4115 |
+
var currentUserCan = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
4116 |
+
|
4117 |
+
var categories = _objectSpread({}, defaultCategories);
|
4118 |
+
|
4119 |
+
var items = sortMenuItems(menuItems).reduce(function (acc, item) {
|
4120 |
// Set up the category if it doesn't yet exist.
|
4121 |
if (!acc[item.parent]) {
|
4122 |
acc[item.parent] = {};
|
4123 |
+
menuIds.forEach(function (menuId) {
|
4124 |
acc[item.parent][menuId] = [];
|
4125 |
});
|
4126 |
} // Incorrect menu ID.
|
4140 |
categories[item.id] = item;
|
4141 |
}
|
4142 |
|
4143 |
+
acc[item.parent][item.menuId].push(item);
|
|
|
|
|
|
|
|
|
|
|
4144 |
return acc;
|
4145 |
}, {});
|
4146 |
return {
|
4147 |
+
items: items,
|
4148 |
+
categories: categories
|
4149 |
};
|
4150 |
};
|
4151 |
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/wordpress.js
|
4155 |
* WordPress dependencies
|
4156 |
*/
|
4157 |
|
4158 |
+
var wordpress = Object(external_this_wp_element_["createElement"])(svg["b" /* SVG */], {
|
4159 |
xmlns: "http://www.w3.org/2000/svg",
|
4160 |
viewBox: "-2 -2 24 24"
|
4161 |
+
}, Object(external_this_wp_element_["createElement"])(svg["a" /* Path */], {
|
4162 |
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"
|
4163 |
}));
|
4164 |
/* harmony default export */ var library_wordpress = (wordpress);
|
4166 |
// CONCATENATED MODULE: ./client/navigation/components/header/index.js
|
4167 |
|
4168 |
|
4169 |
+
|
4170 |
/**
|
4171 |
* External dependencies
|
4172 |
*/
|
4179 |
|
4180 |
|
4181 |
|
|
|
4182 |
/**
|
4183 |
* Internal dependencies
|
4184 |
*/
|
4185 |
|
4186 |
|
4187 |
|
4188 |
+
|
4189 |
+
var header_Header = function Header() {
|
4190 |
+
var siteTitle = Object(wc_admin_settings["g" /* getSetting */])('siteTitle', '');
|
4191 |
+
var homeUrl = Object(wc_admin_settings["g" /* getSetting */])('homeUrl', '');
|
4192 |
+
var isScrolled = useIsScrolled();
|
4193 |
+
|
4194 |
+
var _useState = Object(external_this_wp_element_["useState"])(document.body.classList.contains(false)),
|
4195 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
4196 |
+
isFolded = _useState2[0],
|
4197 |
+
setIsFolded = _useState2[1];
|
4198 |
+
|
4199 |
+
var navClasses = {
|
4200 |
folded: 'is-wc-nav-folded',
|
4201 |
expanded: 'is-wc-nav-expanded'
|
4202 |
};
|
4203 |
|
4204 |
+
var foldNav = function foldNav() {
|
4205 |
document.body.classList.add(navClasses.folded);
|
4206 |
document.body.classList.remove(navClasses.expanded);
|
4207 |
setIsFolded(true);
|
4208 |
};
|
4209 |
|
4210 |
+
var expandNav = function expandNav() {
|
4211 |
document.body.classList.remove(navClasses.folded);
|
4212 |
document.body.classList.add(navClasses.expanded);
|
4213 |
setIsFolded(false);
|
4214 |
};
|
4215 |
|
4216 |
+
var toggleFolded = function toggleFolded() {
|
4217 |
if (document.body.classList.contains(navClasses.folded)) {
|
4218 |
expandNav();
|
4219 |
} else {
|
4221 |
}
|
4222 |
};
|
4223 |
|
4224 |
+
var foldOnMobile = function foldOnMobile() {
|
4225 |
+
var screenWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body.clientWidth;
|
4226 |
+
|
4227 |
if (screenWidth <= 960) {
|
4228 |
foldNav();
|
4229 |
} else {
|
4231 |
}
|
4232 |
};
|
4233 |
|
4234 |
+
Object(external_this_wp_element_["useEffect"])(function () {
|
4235 |
foldOnMobile();
|
4236 |
+
var foldEvents = [{
|
4237 |
eventName: 'orientationchange',
|
4238 |
+
handler: function handler(e) {
|
4239 |
+
return foldOnMobile(e.target.screen.availWidth);
|
4240 |
+
}
|
4241 |
}, {
|
4242 |
eventName: 'resize',
|
4243 |
+
handler: Object(external_lodash_["debounce"])(function () {
|
4244 |
+
return foldOnMobile();
|
4245 |
+
}, 200)
|
4246 |
}];
|
4247 |
|
4248 |
+
for (var _i = 0, _foldEvents = foldEvents; _i < _foldEvents.length; _i++) {
|
4249 |
+
var _foldEvents$_i = _foldEvents[_i],
|
4250 |
+
eventName = _foldEvents$_i.eventName,
|
4251 |
+
handler = _foldEvents$_i.handler;
|
4252 |
window.addEventListener(eventName, handler, false);
|
4253 |
}
|
4254 |
|
4255 |
+
addHistoryListener(function () {
|
4256 |
+
return foldOnMobile();
|
4257 |
+
});
|
4258 |
}, []);
|
4259 |
+
var buttonIcon = Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], {
|
4260 |
size: "36px",
|
4261 |
icon: library_wordpress
|
4262 |
});
|
4263 |
+
|
4264 |
+
var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
|
4265 |
+
var _select = select('core/data'),
|
4266 |
+
isResolving = _select.isResolving;
|
4267 |
+
|
4268 |
+
var _select2 = select('core'),
|
4269 |
+
getEntityRecord = _select2.getEntityRecord;
|
4270 |
+
|
4271 |
+
var siteData = getEntityRecord('root', '__unstableBase', undefined) || {};
|
|
|
|
|
4272 |
return {
|
4273 |
isRequestingSiteIcon: isResolving('core', 'getEntityRecord', ['root', '__unstableBase', undefined]),
|
4274 |
siteIconUrl: siteData.siteIconUrl
|
4275 |
};
|
4276 |
+
}),
|
4277 |
+
isRequestingSiteIcon = _useSelect.isRequestingSiteIcon,
|
4278 |
+
siteIconUrl = _useSelect.siteIconUrl;
|
4279 |
|
4280 |
if (siteIconUrl) {
|
4281 |
+
buttonIcon = Object(external_this_wp_element_["createElement"])("img", {
|
4282 |
+
alt: Object(external_this_wp_i18n_["__"])('Site Icon'),
|
4283 |
src: siteIconUrl
|
4284 |
});
|
4285 |
} else if (isRequestingSiteIcon) {
|
4286 |
buttonIcon = null;
|
4287 |
}
|
4288 |
|
4289 |
+
var className = classnames_default()('woocommerce-navigation-header', {
|
4290 |
'is-scrolled': isScrolled
|
4291 |
});
|
4292 |
+
return Object(external_this_wp_element_["createElement"])("div", {
|
4293 |
className: className
|
4294 |
+
}, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
|
4295 |
+
onClick: function onClick() {
|
4296 |
+
return toggleFolded();
|
4297 |
+
},
|
4298 |
className: "woocommerce-navigation-header__site-icon",
|
4299 |
"aria-label": "Fold navigation",
|
4300 |
role: "switch",
|
4301 |
"aria-checked": isFolded ? 'true' : 'false'
|
4302 |
+
}, buttonIcon), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
|
4303 |
href: homeUrl,
|
4304 |
className: "woocommerce-navigation-header__site-title",
|
4305 |
as: "span"
|
4306 |
+
}, Object(external_this_wp_htmlEntities_["decodeEntities"])(siteTitle)));
|
4307 |
};
|
4308 |
|
4309 |
+
/* harmony default export */ var header = (header_Header);
|
4310 |
// EXTERNAL MODULE: ./client/navigation/components/category-title/style.scss
|
4311 |
+
var category_title_style = __webpack_require__(304);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4312 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4313 |
// EXTERNAL MODULE: ./client/navigation/components/favorite-button/style.scss
|
4314 |
+
var favorite_button_style = __webpack_require__(305);
|
4315 |
|
4316 |
// CONCATENATED MODULE: ./client/navigation/components/favorite-button/index.js
|
4317 |
|
4324 |
|
4325 |
|
4326 |
|
|
|
4327 |
/**
|
4328 |
* Internal dependencies
|
4329 |
*/
|
4330 |
|
4331 |
|
4332 |
+
var favorite_button_FavoriteButton = function FavoriteButton(_ref) {
|
4333 |
+
var id = _ref.id;
|
4334 |
+
|
4335 |
+
var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
|
|
|
|
|
|
|
4336 |
return {
|
4337 |
+
favorites: select(external_this_wc_data_["NAVIGATION_STORE_NAME"]).getFavorites(),
|
4338 |
+
isResolving: select(external_this_wc_data_["NAVIGATION_STORE_NAME"]).isResolving('getFavorites')
|
4339 |
};
|
4340 |
+
}),
|
4341 |
+
favorites = _useSelect.favorites,
|
4342 |
+
isResolving = _useSelect.isResolving;
|
4343 |
+
|
4344 |
+
var _useDispatch = Object(external_this_wp_data_["useDispatch"])(external_this_wc_data_["NAVIGATION_STORE_NAME"]),
|
4345 |
+
addFavorite = _useDispatch.addFavorite,
|
4346 |
+
removeFavorite = _useDispatch.removeFavorite;
|
4347 |
+
|
4348 |
+
var isFavorited = favorites.includes(id);
|
4349 |
+
|
4350 |
+
var toggleFavorite = function toggleFavorite() {
|
4351 |
+
var toggle = isFavorited ? removeFavorite : addFavorite;
|
4352 |
toggle(id);
|
4353 |
+
Object(external_this_wc_tracks_["recordEvent"])('navigation_favorite', {
|
4354 |
+
id: id,
|
4355 |
action: isFavorited ? 'unfavorite' : 'favorite'
|
4356 |
});
|
4357 |
};
|
4360 |
return null;
|
4361 |
}
|
4362 |
|
4363 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
|
4364 |
id: "woocommerce-navigation-favorite-button",
|
4365 |
className: "woocommerce-navigation-favorite-button",
|
4366 |
isTertiary: true,
|
4367 |
onClick: toggleFavorite,
|
4368 |
+
icon: isFavorited ? 'star-filled' : 'star-empty',
|
4369 |
+
"aria-label": isFavorited ? Object(external_this_wp_i18n_["__"])('Add this item to your favorites.', 'woocommerce-admin') : Object(external_this_wp_i18n_["__"])('Remove this item from your favorites.', 'woocommerce-admin')
|
4370 |
+
});
|
|
|
|
|
4371 |
};
|
4372 |
+
/* harmony default export */ var favorite_button = (favorite_button_FavoriteButton);
|
4373 |
// CONCATENATED MODULE: ./client/navigation/components/favorites-tooltip/index.js
|
4374 |
|
4375 |
|
4376 |
+
|
4377 |
/**
|
4378 |
* External dependencies
|
4379 |
*/
|
4385 |
*/
|
4386 |
|
4387 |
|
4388 |
+
var tooltipHiddenOption = 'woocommerce_navigation_favorites_tooltip_hidden';
|
4389 |
+
var favorites_tooltip_FavoritesTooltip = function FavoritesTooltip() {
|
4390 |
+
var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
|
4391 |
+
var _select = select(external_this_wc_data_["OPTIONS_STORE_NAME"]),
|
4392 |
+
getOption = _select.getOption,
|
4393 |
+
isResolving = _select.isResolving;
|
4394 |
+
|
|
|
|
|
|
|
|
|
4395 |
return {
|
4396 |
+
isFavoritesResolving: select(external_this_wc_data_["NAVIGATION_STORE_NAME"]).isResolving('getFavorites'),
|
4397 |
isOptionResolving: isResolving('getOption', [tooltipHiddenOption]),
|
4398 |
isTooltipHidden: getOption(tooltipHiddenOption) === 'yes'
|
4399 |
};
|
4400 |
+
}),
|
4401 |
+
isFavoritesResolving = _useSelect.isFavoritesResolving,
|
4402 |
+
isOptionResolving = _useSelect.isOptionResolving,
|
4403 |
+
isTooltipHidden = _useSelect.isTooltipHidden;
|
4404 |
+
|
4405 |
+
var _useDispatch = Object(external_this_wp_data_["useDispatch"])(external_this_wc_data_["OPTIONS_STORE_NAME"]),
|
4406 |
+
updateOptions = _useDispatch.updateOptions;
|
4407 |
|
4408 |
if (isFavoritesResolving || isTooltipHidden || isOptionResolving) {
|
4409 |
return null;
|
4413 |
return null;
|
4414 |
}
|
4415 |
|
4416 |
+
return Object(external_this_wp_element_["createElement"])(HighlightTooltip, {
|
4417 |
delay: 1000,
|
4418 |
+
title: Object(external_this_wp_i18n_["__"])('Introducing favorites', 'woocommerce-admin'),
|
4419 |
+
content: Object(external_this_wp_i18n_["__"])('You can now favorite your extensions to pin them in the top level of the navigation.', 'woocommerce-admin'),
|
4420 |
+
closeButtonText: Object(external_this_wp_i18n_["__"])('Got it', 'woocommerce-admin'),
|
4421 |
id: "woocommerce-navigation-favorite-button",
|
4422 |
+
onClose: function onClose() {
|
4423 |
+
return updateOptions(defineProperty_default()({}, tooltipHiddenOption, 'yes'));
|
4424 |
+
},
|
4425 |
useAnchor: true
|
4426 |
});
|
4427 |
};
|
4428 |
+
/* harmony default export */ var favorites_tooltip = (favorites_tooltip_FavoritesTooltip);
|
4429 |
// CONCATENATED MODULE: ./client/navigation/components/category-title/index.js
|
4430 |
|
4431 |
|
4435 |
|
4436 |
|
4437 |
|
4438 |
+
var category_title_CategoryTitle = function CategoryTitle(_ref) {
|
4439 |
+
var category = _ref.category;
|
4440 |
+
var id = category.id,
|
4441 |
+
title = category.title;
|
4442 |
+
var className = 'woocommerce-navigation-category-title';
|
|
|
|
|
|
|
|
|
4443 |
|
4444 |
+
if (['plugins', 'favorites'].includes(category.menuId)) {
|
4445 |
+
return Object(external_this_wp_element_["createElement"])("span", {
|
4446 |
className: className
|
4447 |
+
}, Object(external_this_wp_element_["createElement"])("span", {
|
4448 |
+
className: "".concat(className, "__text")
|
4449 |
+
}, title), Object(external_this_wp_element_["createElement"])(favorite_button_FavoriteButton, {
|
4450 |
id: id
|
4451 |
+
}), Object(external_this_wp_element_["createElement"])(favorites_tooltip_FavoritesTooltip, null));
|
4452 |
}
|
4453 |
|
4454 |
+
return Object(external_this_wp_element_["createElement"])("span", {
|
4455 |
className: className
|
4456 |
}, title);
|
4457 |
};
|
4458 |
+
/* harmony default export */ var category_title = (category_title_CategoryTitle);
|
4459 |
// CONCATENATED MODULE: ./client/navigation/components/Item/index.js
|
4460 |
|
4461 |
|
4466 |
|
4467 |
|
4468 |
|
4469 |
+
var Item_Item = function Item(_ref) {
|
4470 |
+
var item = _ref.item;
|
4471 |
+
var slot = Object(external_this_wc_navigation_["useNavSlot"])('woocommerce_navigation_' + item.id);
|
4472 |
+
var hasFills = Boolean(slot.fills && slot.fills.length);
|
|
|
|
|
|
|
4473 |
|
4474 |
+
var trackClick = function trackClick(id) {
|
4475 |
+
Object(external_this_wc_tracks_["recordEvent"])('navigation_click', {
|
4476 |
menu_item: id
|
4477 |
});
|
4478 |
}; // Disable reason: The div wrapping the slot item is used for tracking purposes
|
4483 |
|
4484 |
|
4485 |
if (hasFills && !item.isCategory) {
|
4486 |
+
return Object(external_this_wp_element_["createElement"])(build_module["c" /* NavigationItem */], {
|
4487 |
key: item.id,
|
4488 |
item: item.id
|
4489 |
+
}, Object(external_this_wp_element_["createElement"])("div", {
|
4490 |
+
onClick: function onClick() {
|
4491 |
+
return trackClick(item.id);
|
4492 |
+
}
|
4493 |
+
}, Object(external_this_wp_element_["createElement"])(external_this_wc_navigation_["WooNavigationItem"].Slot, {
|
4494 |
name: item.id
|
4495 |
})));
|
4496 |
}
|
4497 |
|
4498 |
+
return Object(external_this_wp_element_["createElement"])(build_module["c" /* NavigationItem */], {
|
4499 |
key: item.id,
|
4500 |
item: item.id,
|
4501 |
title: item.title,
|
4502 |
href: item.url,
|
4503 |
navigateToMenu: !item.url && item.id,
|
4504 |
+
onClick: function onClick() {
|
4505 |
+
return trackClick(item.id);
|
4506 |
+
},
|
4507 |
hideIfTargetMenuEmpty: true
|
4508 |
});
|
4509 |
/* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
|
4510 |
};
|
4511 |
|
4512 |
+
/* harmony default export */ var components_Item = (Item_Item);
|
4513 |
// CONCATENATED MODULE: ./client/navigation/components/container/primary-menu.js
|
4514 |
|
4515 |
|
4518 |
*/
|
4519 |
|
4520 |
|
|
|
4521 |
/**
|
4522 |
* Internal dependencies
|
4523 |
*/
|
4524 |
|
4525 |
|
4526 |
|
4527 |
+
var primary_menu_PrimaryMenu = function PrimaryMenu(_ref) {
|
4528 |
+
var category = _ref.category,
|
4529 |
+
onBackClick = _ref.onBackClick,
|
4530 |
+
pluginItems = _ref.pluginItems,
|
4531 |
+
primaryItems = _ref.primaryItems;
|
4532 |
+
|
4533 |
if (!primaryItems.length && !pluginItems.length) {
|
4534 |
return null;
|
4535 |
}
|
4536 |
|
4537 |
+
var _window$wcNavigation = window.wcNavigation,
|
4538 |
+
rootBackLabel = _window$wcNavigation.rootBackLabel,
|
4539 |
+
rootBackUrl = _window$wcNavigation.rootBackUrl;
|
4540 |
+
var isRootBackVisible = category.id === 'woocommerce' && rootBackUrl;
|
4541 |
+
return Object(external_this_wp_element_["createElement"])(build_module["d" /* NavigationMenu */], {
|
4542 |
+
title: Object(external_this_wp_element_["createElement"])(category_title, {
|
4543 |
category: category
|
4544 |
}),
|
4545 |
menu: category.id,
|
4546 |
parentMenu: category.parent,
|
4547 |
backButtonLabel: isRootBackVisible ? rootBackLabel : category.backButtonLabel || null,
|
4548 |
+
onBackButtonClick: isRootBackVisible ? function () {
|
4549 |
onBackClick('woocommerce');
|
4550 |
window.location = rootBackUrl;
|
4551 |
+
} : function () {
|
4552 |
+
return onBackClick(category.id);
|
4553 |
+
}
|
4554 |
+
}, !!primaryItems.length && Object(external_this_wp_element_["createElement"])(build_module["b" /* NavigationGroup */], null, primaryItems.map(function (item) {
|
4555 |
+
return Object(external_this_wp_element_["createElement"])(components_Item, {
|
4556 |
+
key: item.id,
|
4557 |
+
item: item
|
4558 |
+
});
|
4559 |
+
})), !!pluginItems.length && Object(external_this_wp_element_["createElement"])(build_module["b" /* NavigationGroup */], {
|
4560 |
+
title: category.id === 'woocommerce' ? Object(external_this_wp_i18n_["__"])('Extensions', 'woocommerce-admin') : null
|
4561 |
+
}, pluginItems.map(function (item) {
|
4562 |
+
return Object(external_this_wp_element_["createElement"])(components_Item, {
|
4563 |
+
key: item.id,
|
4564 |
+
item: item
|
4565 |
+
});
|
4566 |
+
})));
|
4567 |
};
|
4568 |
// CONCATENATED MODULE: ./client/navigation/components/container/secondary-menu.js
|
4569 |
|
4578 |
|
4579 |
|
4580 |
|
4581 |
+
var secondary_menu_SecondaryMenu = function SecondaryMenu(_ref) {
|
4582 |
+
var category = _ref.category,
|
4583 |
+
items = _ref.items,
|
4584 |
+
onBackClick = _ref.onBackClick;
|
4585 |
+
|
4586 |
if (!items.length) {
|
4587 |
return null;
|
4588 |
}
|
4589 |
|
4590 |
+
var isRoot = category.id === 'woocommerce';
|
4591 |
+
return Object(external_this_wp_element_["createElement"])(build_module["d" /* NavigationMenu */], {
|
4592 |
className: "components-navigation__menu-secondary",
|
4593 |
+
title: !isRoot && Object(external_this_wp_element_["createElement"])(category_title, {
|
4594 |
category: category
|
4595 |
}),
|
4596 |
menu: category.id,
|
4597 |
parentMenu: category.parent,
|
4598 |
backButtonLabel: category.backButtonLabel || null,
|
4599 |
+
onBackButtonClick: isRoot ? null : function () {
|
4600 |
+
return onBackClick(category.id);
|
4601 |
+
}
|
4602 |
+
}, Object(external_this_wp_element_["createElement"])(build_module["b" /* NavigationGroup */], {
|
4603 |
+
onBackButtonClick: function onBackButtonClick() {
|
4604 |
+
return onBackClick(category.id);
|
4605 |
+
}
|
4606 |
+
}, items.map(function (item) {
|
4607 |
+
return Object(external_this_wp_element_["createElement"])(components_Item, {
|
4608 |
+
key: item.id,
|
4609 |
+
item: item
|
4610 |
+
});
|
4611 |
+
})));
|
4612 |
};
|
4613 |
// CONCATENATED MODULE: ./client/navigation/components/container/index.js
|
4614 |
|
4615 |
|
4616 |
+
|
4617 |
+
|
4618 |
/**
|
4619 |
* External dependencies
|
4620 |
*/
|
4634 |
|
4635 |
|
4636 |
|
4637 |
+
var container_Container = function Container(_ref) {
|
4638 |
+
var menuItems = _ref.menuItems;
|
4639 |
+
Object(external_this_wp_element_["useEffect"])(function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
4640 |
// Collapse the original WP Menu.
|
4641 |
document.documentElement.classList.remove('wp-toolbar');
|
4642 |
document.body.classList.add('has-woocommerce-navigation');
|
4643 |
+
var adminMenu = document.getElementById('adminmenumain');
|
4644 |
|
4645 |
if (!adminMenu) {
|
4646 |
return;
|
4648 |
|
4649 |
adminMenu.classList.add('folded');
|
4650 |
}, []);
|
4651 |
+
|
4652 |
+
var _useState = Object(external_this_wp_element_["useState"])('woocommerce-home'),
|
4653 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
4654 |
+
activeItem = _useState2[0],
|
4655 |
+
setActiveItem = _useState2[1];
|
4656 |
+
|
4657 |
+
var _useState3 = Object(external_this_wp_element_["useState"])('woocommerce'),
|
4658 |
+
_useState4 = slicedToArray_default()(_useState3, 2),
|
4659 |
+
activeLevel = _useState4[0],
|
4660 |
+
setActiveLevel = _useState4[1];
|
4661 |
+
|
4662 |
+
Object(external_this_wp_element_["useEffect"])(function () {
|
4663 |
+
var initialMatchedItem = utils_getMatchingItem(menuItems);
|
4664 |
|
4665 |
if (initialMatchedItem && activeItem !== initialMatchedItem) {
|
4666 |
setActiveItem(initialMatchedItem);
|
4667 |
setActiveLevel(initialMatchedItem.parent);
|
4668 |
}
|
4669 |
|
4670 |
+
var removeListener = addHistoryListener(function () {
|
4671 |
+
setTimeout(function () {
|
4672 |
+
var matchedItem = utils_getMatchingItem(menuItems);
|
4673 |
|
4674 |
if (matchedItem) {
|
4675 |
setActiveItem(matchedItem);
|
|
|
4676 |
}
|
4677 |
}, 0);
|
4678 |
});
|
4679 |
return removeListener;
|
4680 |
}, [menuItems]);
|
4681 |
+
|
4682 |
+
var _useUser = Object(external_this_wc_data_["useUser"])(),
|
4683 |
+
currentUserCan = _useUser.currentUserCan;
|
4684 |
+
|
4685 |
+
var _useMemo = Object(external_this_wp_element_["useMemo"])(function () {
|
4686 |
+
return getMappedItemsCategories(menuItems, currentUserCan);
|
4687 |
+
}, [menuItems, currentUserCan]),
|
4688 |
+
categories = _useMemo.categories,
|
4689 |
+
items = _useMemo.items;
|
4690 |
+
|
4691 |
+
var navDomRef = Object(external_this_wp_element_["useRef"])(null);
|
4692 |
+
|
4693 |
+
var onBackClick = function onBackClick(id) {
|
4694 |
+
Object(external_this_wc_tracks_["recordEvent"])('navigation_back_click', {
|
4695 |
category: id
|
4696 |
});
|
4697 |
};
|
4698 |
|
4699 |
+
var isRoot = activeLevel === 'woocommerce';
|
4700 |
+
var classes = classnames_default()('woocommerce-navigation', {
|
4701 |
'is-root': isRoot
|
4702 |
});
|
4703 |
+
return Object(external_this_wp_element_["createElement"])("div", {
|
4704 |
className: classes
|
4705 |
+
}, Object(external_this_wp_element_["createElement"])(header, null), Object(external_this_wp_element_["createElement"])("div", {
|
4706 |
className: "woocommerce-navigation__wrapper",
|
4707 |
ref: navDomRef
|
4708 |
+
}, Object(external_this_wp_element_["createElement"])(build_module["a" /* Navigation */], {
|
4709 |
activeItem: activeItem ? activeItem.id : null,
|
4710 |
activeMenu: activeLevel,
|
4711 |
+
onActivateMenu: function onActivateMenu() {
|
4712 |
if (navDomRef && navDomRef.current) {
|
4713 |
navDomRef.current.scrollTop = 0;
|
4714 |
}
|
4715 |
|
4716 |
+
setActiveLevel.apply(void 0, arguments);
|
4717 |
}
|
4718 |
+
}, Object.values(categories).map(function (category) {
|
4719 |
+
var categoryItems = items[category.id];
|
4720 |
+
return !!categoryItems && [Object(external_this_wp_element_["createElement"])(primary_menu_PrimaryMenu, {
|
4721 |
key: category.id,
|
4722 |
category: category,
|
4723 |
onBackClick: onBackClick,
|
4724 |
+
primaryItems: [].concat(toConsumableArray_default()(categoryItems.primary), toConsumableArray_default()(categoryItems.favorites)),
|
4725 |
pluginItems: categoryItems.plugins
|
4726 |
+
}), Object(external_this_wp_element_["createElement"])(secondary_menu_SecondaryMenu, {
|
4727 |
+
key: "secondary/".concat(category.id),
|
4728 |
category: category,
|
4729 |
onBackClick: onBackClick,
|
4730 |
items: categoryItems.secondary
|
4732 |
}))));
|
4733 |
};
|
4734 |
|
4735 |
+
/* harmony default export */ var container = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
|
4736 |
+
var _select = select(external_this_wc_data_["NAVIGATION_STORE_NAME"]),
|
4737 |
+
getActiveItem = _select.getActiveItem,
|
4738 |
+
getMenuItems = _select.getMenuItems;
|
4739 |
+
|
4740 |
+
return {
|
4741 |
+
activeItem: getActiveItem(),
|
4742 |
+
menuItems: getMenuItems()
|
4743 |
+
};
|
4744 |
+
}))(container_Container));
|
4745 |
// CONCATENATED MODULE: ./client/navigation/index.js
|
4746 |
+
|
4747 |
+
|
4748 |
/**
|
4749 |
* External dependencies
|
4750 |
*/
|
4751 |
|
4752 |
+
|
4753 |
+
|
4754 |
/**
|
4755 |
* Internal dependencies
|
4756 |
*/
|
4757 |
|
4758 |
|
4759 |
|
4760 |
+
|
4761 |
+
var navigation_Navigation = function Navigation() {
|
4762 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wc_navigation_["NavSlotFillProvider"], null, Object(external_this_wp_element_["createElement"])(container, null), Object(external_this_wp_element_["createElement"])(external_this_wp_plugins_["PluginArea"], null));
|
4763 |
+
};
|
4764 |
+
|
4765 |
+
var HydratedNavigation = Object(external_this_wc_data_["withNavigationHydration"])(window.wcNavigation)(navigation_Navigation);
|
4766 |
/* harmony default export */ var navigation = (HydratedNavigation);
|
4767 |
// CONCATENATED MODULE: ./client/header/index.js
|
4768 |
|
4769 |
|
|
|
|
|
|
|
|
|
4770 |
|
4771 |
|
4772 |
+
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; }
|
4773 |
|
4774 |
+
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; }
|
4775 |
|
4776 |
+
/**
|
4777 |
+
* External dependencies
|
4778 |
+
*/
|
4779 |
|
4780 |
|
4781 |
|
4792 |
|
4793 |
|
4794 |
|
4795 |
+
var client_header_Header = function Header(_ref) {
|
4796 |
+
var sections = _ref.sections,
|
4797 |
+
_ref$isEmbedded = _ref.isEmbedded,
|
4798 |
+
isEmbedded = _ref$isEmbedded === void 0 ? false : _ref$isEmbedded,
|
4799 |
+
query = _ref.query;
|
4800 |
+
var headerElement = Object(external_this_wp_element_["useRef"])(null);
|
4801 |
+
var siteTitle = Object(wc_admin_settings["g" /* getSetting */])('siteTitle', '');
|
4802 |
+
var pageTitle = sections.slice(-1)[0];
|
4803 |
+
var isScrolled = useIsScrolled();
|
4804 |
|
4805 |
+
var _useUserPreferences = Object(external_this_wc_data_["useUserPreferences"])(),
|
4806 |
+
updateUserPreferences = _useUserPreferences.updateUserPreferences,
|
4807 |
+
userData = objectWithoutProperties_default()(_useUserPreferences, ["updateUserPreferences"]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4808 |
|
4809 |
+
var isModalDismissed = userData.android_app_banner_dismissed === 'yes';
|
4810 |
+
var debounceTimer = null;
|
4811 |
+
var className = classnames_default()('woocommerce-layout__header', {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4812 |
'is-scrolled': isScrolled
|
4813 |
});
|
4814 |
+
Object(external_this_wp_element_["useLayoutEffect"])(function () {
|
4815 |
updateBodyMargin();
|
4816 |
window.addEventListener('resize', updateBodyMargin);
|
4817 |
+
return function () {
|
4818 |
window.removeEventListener('resize', updateBodyMargin);
|
4819 |
+
var wpBody = document.querySelector('#wpbody');
|
4820 |
|
4821 |
if (!wpBody) {
|
4822 |
return;
|
4826 |
};
|
4827 |
}, [isModalDismissed]);
|
4828 |
|
4829 |
+
var updateBodyMargin = function updateBodyMargin() {
|
4830 |
clearTimeout(debounceTimer);
|
4831 |
debounceTimer = setTimeout(function () {
|
4832 |
+
var wpBody = document.querySelector('#wpbody');
|
4833 |
|
4834 |
if (!wpBody || !headerElement.current) {
|
4835 |
return;
|
4836 |
}
|
4837 |
|
4838 |
+
wpBody.style.marginTop = "".concat(headerElement.current.offsetHeight, "px");
|
4839 |
}, 200);
|
4840 |
};
|
4841 |
|
4842 |
+
Object(external_this_wp_element_["useEffect"])(function () {
|
4843 |
if (!isEmbedded) {
|
4844 |
+
var documentTitle = sections.map(function (section) {
|
4845 |
return Array.isArray(section) ? section[1] : section;
|
4846 |
}).reverse().join(' ‹ ');
|
4847 |
+
var decodedTitle = Object(external_this_wp_htmlEntities_["decodeEntities"])(Object(external_this_wp_i18n_["sprintf"])(
|
4848 |
/* translators: 1: document title. 2: page title */
|
4849 |
+
Object(external_this_wp_i18n_["__"])('%1$s ‹ %2$s — WooCommerce', 'woocommerce-admin'), documentTitle, siteTitle));
|
4850 |
|
4851 |
if (document.title !== decodedTitle) {
|
4852 |
document.title = decodedTitle;
|
4854 |
}
|
4855 |
}, [isEmbedded, sections, siteTitle]);
|
4856 |
|
4857 |
+
var dismissHandler = function dismissHandler() {
|
4858 |
updateUserPreferences({
|
4859 |
android_app_banner_dismissed: 'yes'
|
4860 |
});
|
4861 |
};
|
4862 |
|
4863 |
+
return Object(external_this_wp_element_["createElement"])("div", {
|
|
|
|
|
4864 |
className: className,
|
4865 |
ref: headerElement
|
4866 |
+
}, !isModalDismissed && Object(external_this_wp_element_["createElement"])(mobile_banner_MobileAppBanner, {
|
4867 |
onDismiss: dismissHandler,
|
4868 |
onInstall: dismissHandler
|
4869 |
+
}), Object(external_this_wp_element_["createElement"])("div", {
|
4870 |
className: "woocommerce-layout__header-wrapper"
|
4871 |
+
}, window.wcAdminFeatures.navigation && Object(external_this_wp_element_["createElement"])(navigation, null), Object(external_this_wp_element_["createElement"])(build_module["e" /* Text */], {
|
4872 |
+
className: "woocommerce-layout__header-heading",
|
4873 |
+
as: "h1",
|
4874 |
+
variant: "subtitle.small"
|
4875 |
+
}, Object(external_this_wp_htmlEntities_["decodeEntities"])(pageTitle)), window.wcAdminFeatures['activity-panels'] && Object(external_this_wp_element_["createElement"])(activity_panel, {
|
4876 |
isEmbedded: isEmbedded,
|
4877 |
query: query,
|
4878 |
+
userPreferencesData: header_objectSpread(header_objectSpread({}, userData), {}, {
|
4879 |
+
updateUserPreferences: updateUserPreferences
|
4880 |
+
})
|
4881 |
})));
|
4882 |
};
|
4883 |
// CONCATENATED MODULE: ./client/layout/notices.js
|
4884 |
|
4885 |
|
4886 |
+
|
4887 |
+
|
4888 |
+
|
4889 |
+
|
4890 |
+
|
4891 |
+
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); }; }
|
4892 |
+
|
4893 |
+
function notices_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
4894 |
+
|
4895 |
/**
|
4896 |
* External dependencies
|
4897 |
*/
|
4898 |
|
4899 |
|
4900 |
+
var notices_Notices = /*#__PURE__*/function (_Component) {
|
4901 |
+
inherits_default()(Notices, _Component);
|
4902 |
+
|
4903 |
+
var _super = notices_createSuper(Notices);
|
4904 |
+
|
4905 |
+
function Notices() {
|
4906 |
+
classCallCheck_default()(this, Notices);
|
4907 |
+
|
4908 |
+
return _super.apply(this, arguments);
|
4909 |
}
|
4910 |
|
4911 |
+
createClass_default()(Notices, [{
|
4912 |
+
key: "render",
|
4913 |
+
value: function render() {
|
4914 |
+
return Object(external_this_wp_element_["createElement"])("div", {
|
4915 |
+
id: "woocommerce-layout__notice-list",
|
4916 |
+
className: "woocommerce-layout__notice-list"
|
4917 |
+
});
|
4918 |
+
}
|
4919 |
+
}]);
|
4920 |
+
|
4921 |
+
return Notices;
|
4922 |
+
}(external_this_wp_element_["Component"]);
|
4923 |
|
4924 |
/* harmony default export */ var layout_notices = (notices_Notices);
|
4925 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
4926 |
+
var regenerator = __webpack_require__(8);
|
4927 |
+
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
4928 |
+
|
4929 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
|
4930 |
+
var asyncToGenerator = __webpack_require__(44);
|
4931 |
+
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
4932 |
+
|
4933 |
// EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js
|
4934 |
+
var web_cjs = __webpack_require__(182);
|
4935 |
|
4936 |
// EXTERNAL MODULE: ./client/layout/transient-notices/snackbar/index.js
|
4937 |
+
var snackbar = __webpack_require__(278);
|
4938 |
|
4939 |
// CONCATENATED MODULE: ./client/layout/transient-notices/snackbar/list.js
|
4940 |
|
4941 |
|
4942 |
|
4943 |
+
|
4944 |
+
|
4945 |
+
|
4946 |
/**
|
4947 |
* External dependencies
|
4948 |
*/
|
4968 |
* @return {Object} The rendered notices list.
|
4969 |
*/
|
4970 |
|
4971 |
+
function SnackbarList(_ref) {
|
4972 |
+
var notices = _ref.notices,
|
4973 |
+
className = _ref.className,
|
4974 |
+
children = _ref.children,
|
4975 |
+
_ref$onRemove = _ref.onRemove,
|
4976 |
+
onRemove = _ref$onRemove === void 0 ? external_lodash_["noop"] : _ref$onRemove,
|
4977 |
+
_ref$onRemove2 = _ref.onRemove2,
|
4978 |
+
onRemove2 = _ref$onRemove2 === void 0 ? external_lodash_["noop"] : _ref$onRemove2;
|
4979 |
+
var isReducedMotion = Object(external_this_wp_compose_["useReducedMotion"])();
|
4980 |
+
|
4981 |
+
var _useState = Object(external_this_wp_element_["useState"])(function () {
|
4982 |
+
return new WeakMap();
|
4983 |
+
}),
|
4984 |
+
_useState2 = slicedToArray_default()(_useState, 1),
|
4985 |
+
refMap = _useState2[0];
|
4986 |
+
|
4987 |
+
var transitions = Object(web_cjs["useTransition"])(notices, function (notice) {
|
4988 |
+
return notice.id;
|
4989 |
+
}, {
|
4990 |
from: {
|
4991 |
opacity: 0,
|
4992 |
height: 0
|
4993 |
},
|
4994 |
+
enter: function enter(item) {
|
4995 |
+
return /*#__PURE__*/function () {
|
4996 |
+
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee(next) {
|
4997 |
+
return regenerator_default.a.wrap(function _callee$(_context) {
|
4998 |
+
while (1) {
|
4999 |
+
switch (_context.prev = _context.next) {
|
5000 |
+
case 0:
|
5001 |
+
_context.next = 2;
|
5002 |
+
return next({
|
5003 |
+
opacity: 1,
|
5004 |
+
height: refMap.get(item).offsetHeight
|
5005 |
+
});
|
5006 |
+
|
5007 |
+
case 2:
|
5008 |
+
return _context.abrupt("return", _context.sent);
|
5009 |
+
|
5010 |
+
case 3:
|
5011 |
+
case "end":
|
5012 |
+
return _context.stop();
|
5013 |
+
}
|
5014 |
+
}
|
5015 |
+
}, _callee);
|
5016 |
+
}));
|
5017 |
+
|
5018 |
+
return function (_x) {
|
5019 |
+
return _ref2.apply(this, arguments);
|
5020 |
+
};
|
5021 |
+
}();
|
5022 |
+
},
|
5023 |
+
leave: function leave() {
|
5024 |
+
return /*#__PURE__*/function () {
|
5025 |
+
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee2(next) {
|
5026 |
+
return regenerator_default.a.wrap(function _callee2$(_context2) {
|
5027 |
+
while (1) {
|
5028 |
+
switch (_context2.prev = _context2.next) {
|
5029 |
+
case 0:
|
5030 |
+
_context2.next = 2;
|
5031 |
+
return next({
|
5032 |
+
opacity: 0
|
5033 |
+
});
|
5034 |
+
|
5035 |
+
case 2:
|
5036 |
+
_context2.next = 4;
|
5037 |
+
return next({
|
5038 |
+
height: 0
|
5039 |
+
});
|
5040 |
+
|
5041 |
+
case 4:
|
5042 |
+
case "end":
|
5043 |
+
return _context2.stop();
|
5044 |
+
}
|
5045 |
+
}
|
5046 |
+
}, _callee2);
|
5047 |
+
}));
|
5048 |
+
|
5049 |
+
return function (_x2) {
|
5050 |
+
return _ref3.apply(this, arguments);
|
5051 |
+
};
|
5052 |
+
}();
|
5053 |
},
|
5054 |
immediate: isReducedMotion
|
5055 |
});
|
5056 |
className = classnames_default()('components-snackbar-list', className);
|
5057 |
|
5058 |
+
var removeNotice = function removeNotice(notice) {
|
5059 |
+
return function () {
|
5060 |
+
onRemove(notice.id); // To be removed when we're no longer using core/notices2.
|
5061 |
|
5062 |
+
onRemove2(notice.id);
|
5063 |
+
};
|
5064 |
};
|
5065 |
|
5066 |
+
return Object(external_this_wp_element_["createElement"])("div", {
|
5067 |
className: className
|
5068 |
+
}, children, transitions.map(function (_ref4) {
|
5069 |
+
var notice = _ref4.item,
|
5070 |
+
key = _ref4.key,
|
5071 |
+
style = _ref4.props;
|
5072 |
+
return Object(external_this_wp_element_["createElement"])(web_cjs["animated"].div, {
|
5073 |
+
key: key,
|
5074 |
+
style: style
|
5075 |
+
}, Object(external_this_wp_element_["createElement"])("div", {
|
5076 |
+
className: "components-snackbar-list__notice-container",
|
5077 |
+
ref: function ref(_ref5) {
|
5078 |
+
return _ref5 && refMap.set(notice, _ref5);
|
5079 |
+
}
|
5080 |
+
}, Object(external_this_wp_element_["createElement"])(snackbar["a" /* default */], extends_default()({}, Object(external_lodash_["omit"])(notice, ['content']), {
|
5081 |
+
onRemove: removeNotice(notice)
|
5082 |
+
}), notice.content)));
|
5083 |
+
}));
|
5084 |
}
|
5085 |
|
5086 |
/* harmony default export */ var list = (SnackbarList);
|
5087 |
// EXTERNAL MODULE: ./client/layout/transient-notices/style.scss
|
5088 |
+
var transient_notices_style = __webpack_require__(307);
|
5089 |
|
5090 |
// CONCATENATED MODULE: ./client/layout/transient-notices/index.js
|
5091 |
|
5096 |
|
5097 |
|
5098 |
|
|
|
|
|
|
|
5099 |
/**
|
5100 |
* Internal dependencies
|
5101 |
*/
|
5102 |
|
5103 |
|
5104 |
|
|
|
|
|
5105 |
|
5106 |
function TransientNotices(props) {
|
5107 |
+
var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/notices'),
|
5108 |
+
onRemove = _useDispatch.removeNotice;
|
5109 |
+
|
5110 |
+
var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])('core/notices2'),
|
5111 |
+
onRemove2 = _useDispatch2.removeNotice;
|
5112 |
+
|
5113 |
+
var noticeData = Object(external_this_wp_data_["useSelect"])(function (select) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5114 |
// NOTE: This uses core/notices2, if this file is copied back upstream
|
5115 |
// to Gutenberg this needs to be changed back to just core/notices.
|
5116 |
+
var notices = select('core/notices').getNotices();
|
5117 |
+
var notices2 = select('core/notices2').getNotices();
|
5118 |
return {
|
5119 |
+
notices: notices,
|
5120 |
+
notices2: notices2
|
|
|
|
|
5121 |
};
|
5122 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5123 |
/**
|
5124 |
* Combines the two notices in the component vs in the useSelect, as we don't want to
|
5125 |
* create new object references on each useSelect call.
|
5126 |
*/
|
5127 |
|
5128 |
+
var getNotices = function getNotices() {
|
5129 |
+
var notices = noticeData.notices,
|
5130 |
+
_noticeData$notices = noticeData.notices2,
|
5131 |
+
notices2 = _noticeData$notices === void 0 ? [] : _noticeData$notices;
|
5132 |
return notices.concat(notices2);
|
5133 |
};
|
5134 |
|
5135 |
+
var className = props.className;
|
5136 |
+
var classes = classnames_default()('woocommerce-transient-notices', 'components-notices__snackbar', className);
|
5137 |
+
var notices = getNotices();
|
5138 |
+
return Object(external_this_wp_element_["createElement"])(list, {
|
5139 |
+
notices: notices,
|
|
|
|
|
5140 |
className: classes,
|
5141 |
onRemove: onRemove,
|
5142 |
onRemove2: onRemove2
|
5158 |
// CONCATENATED MODULE: ./client/layout/navigation.js
|
5159 |
|
5160 |
|
5161 |
+
|
5162 |
+
|
5163 |
+
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; }
|
5164 |
+
|
5165 |
+
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; }
|
5166 |
+
|
5167 |
/**
|
5168 |
* External dependencies
|
5169 |
*/
|
5172 |
|
5173 |
|
5174 |
|
|
|
5175 |
/**
|
5176 |
* Internal dependencies
|
5177 |
*/
|
5180 |
|
5181 |
|
5182 |
|
5183 |
+
|
5184 |
+
var navigation_NavigationPlugin = function NavigationPlugin() {
|
5185 |
+
var _useState = Object(external_this_wp_element_["useState"])(Object(external_this_wc_navigation_["getPersistedQuery"])()),
|
5186 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
5187 |
+
persistedQuery = _useState2[0],
|
5188 |
+
setPersistedQuery = _useState2[1];
|
5189 |
+
|
5190 |
+
var pathIsExcluded = function pathIsExcluded(path) {
|
5191 |
+
return Object(external_this_wc_navigation_["getQueryExcludedScreens"])().includes(Object(external_this_wc_navigation_["getScreenFromPath"])(path));
|
5192 |
+
}; // Update the persisted queries when history is updated
|
5193 |
+
|
5194 |
+
|
5195 |
+
Object(external_this_wp_element_["useEffect"])(function () {
|
5196 |
+
return addHistoryListener(function () {
|
5197 |
+
setTimeout(function () {
|
5198 |
+
if (pathIsExcluded()) {
|
5199 |
+
return;
|
5200 |
+
}
|
5201 |
+
|
5202 |
+
setPersistedQuery(Object(external_this_wc_navigation_["getPersistedQuery"])());
|
5203 |
+
}, 0);
|
5204 |
+
});
|
5205 |
+
}, []);
|
5206 |
/**
|
5207 |
* If the current page is embedded, stay with the default urls
|
5208 |
* provided by Navigation because the router isn't present to
|
5213 |
return null;
|
5214 |
}
|
5215 |
|
5216 |
+
var reports = Object(get_reports["a" /* default */])().filter(function (item) {
|
5217 |
+
return item.navArgs;
|
5218 |
+
});
|
5219 |
+
var pages = controller_getPages().filter(function (page) {
|
5220 |
+
return page.navArgs;
|
5221 |
+
}).map(function (page) {
|
5222 |
if (page.path === '/analytics/settings') {
|
5223 |
+
return navigation_objectSpread(navigation_objectSpread({}, page), {}, {
|
5224 |
+
breadcrumbs: [Object(external_this_wp_i18n_["__"])('Analytics', 'woocommerce-admin')]
|
5225 |
+
});
|
5226 |
}
|
5227 |
|
5228 |
return page;
|
5229 |
});
|
5230 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, pages.map(function (page) {
|
5231 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wc_navigation_["WooNavigationItem"], {
|
5232 |
+
item: page.navArgs.id,
|
5233 |
+
key: page.navArgs.id
|
5234 |
+
}, Object(external_this_wp_element_["createElement"])(external_this_wc_components_["Link"], {
|
5235 |
+
className: "components-button",
|
5236 |
+
href: Object(external_this_wc_navigation_["getNewPath"])(pathIsExcluded(page.path) ? {} : persistedQuery, page.path, {}),
|
5237 |
+
type: "wc-admin"
|
5238 |
+
}, page.breadcrumbs[page.breadcrumbs.length - 1]));
|
5239 |
+
}), reports.map(function (item) {
|
5240 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wc_navigation_["WooNavigationItem"], {
|
5241 |
+
item: item.navArgs.id,
|
5242 |
+
key: item.navArgs.id
|
5243 |
+
}, Object(external_this_wp_element_["createElement"])(external_this_wc_components_["Link"], {
|
5244 |
+
className: "components-button",
|
5245 |
+
href: Object(external_this_wc_navigation_["getNewPath"])(pathIsExcluded(item.report) ? {} : persistedQuery, "/analytics/".concat(item.report), {}),
|
5246 |
+
type: "wc-admin"
|
5247 |
+
}, item.title));
|
5248 |
+
}));
|
5249 |
};
|
5250 |
|
5251 |
+
Object(external_this_wp_plugins_["registerPlugin"])('wc-admin-navigation', {
|
5252 |
+
render: navigation_NavigationPlugin
|
5253 |
});
|
5254 |
// CONCATENATED MODULE: ./client/layout/index.js
|
5255 |
|
5256 |
|
5257 |
|
|
|
|
|
|
|
5258 |
|
5259 |
|
5260 |
|
5262 |
|
5263 |
|
5264 |
|
5265 |
+
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; }
|
5266 |
+
|
5267 |
+
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; }
|
5268 |
+
|
5269 |
+
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); }; }
|
5270 |
+
|
5271 |
+
function layout_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
5272 |
+
|
5273 |
+
/**
|
5274 |
+
* External dependencies
|
5275 |
+
*/
|
5276 |
+
|
5277 |
+
|
5278 |
+
|
5279 |
+
|
5280 |
|
5281 |
|
5282 |
|
5295 |
|
5296 |
|
5297 |
|
5298 |
+
var StoreAlerts = Object(external_this_wp_element_["lazy"])(function () {
|
5299 |
+
return Promise.all(/* import() | store-alerts */[__webpack_require__.e(1), __webpack_require__.e(47)]).then(__webpack_require__.bind(null, 611));
|
5300 |
+
});
|
5301 |
+
var WCPayUsageModal = Object(external_this_wp_element_["lazy"])(function () {
|
5302 |
+
return __webpack_require__.e(/* import() | wcpay-usage-modal */ 51).then(__webpack_require__.bind(null, 510));
|
5303 |
+
});
|
5304 |
+
var layout_PrimaryLayout = /*#__PURE__*/function (_Component) {
|
5305 |
+
inherits_default()(PrimaryLayout, _Component);
|
|
|
|
|
|
|
|
|
|
|
|
|
5306 |
|
5307 |
+
var _super = layout_createSuper(PrimaryLayout);
|
5308 |
|
5309 |
+
function PrimaryLayout() {
|
5310 |
+
classCallCheck_default()(this, PrimaryLayout);
|
|
|
|
|
5311 |
|
5312 |
+
return _super.apply(this, arguments);
|
5313 |
+
}
|
|
|
5314 |
|
5315 |
+
createClass_default()(PrimaryLayout, [{
|
5316 |
+
key: "render",
|
5317 |
+
value: function render() {
|
5318 |
+
var children = this.props.children;
|
5319 |
+
return Object(external_this_wp_element_["createElement"])("div", {
|
5320 |
+
className: "woocommerce-layout__primary",
|
5321 |
+
id: "woocommerce-layout__primary"
|
5322 |
+
}, window.wcAdminFeatures['store-alerts'] && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Suspense"], {
|
5323 |
+
fallback: Object(external_this_wp_element_["createElement"])(external_this_wc_components_["Spinner"], null)
|
5324 |
+
}, Object(external_this_wp_element_["createElement"])(StoreAlerts, null)), Object(external_this_wp_element_["createElement"])(layout_notices, null), children);
|
5325 |
}
|
5326 |
+
}]);
|
5327 |
+
|
5328 |
+
return PrimaryLayout;
|
5329 |
+
}(external_this_wp_element_["Component"]);
|
5330 |
+
|
5331 |
+
var layout_Layout = /*#__PURE__*/function (_Component2) {
|
5332 |
+
inherits_default()(_Layout, _Component2);
|
5333 |
+
|
5334 |
+
var _super2 = layout_createSuper(_Layout);
|
5335 |
|
5336 |
+
function _Layout() {
|
5337 |
+
classCallCheck_default()(this, _Layout);
|
5338 |
+
|
5339 |
+
return _super2.apply(this, arguments);
|
5340 |
+
}
|
5341 |
+
|
5342 |
+
createClass_default()(_Layout, [{
|
5343 |
+
key: "componentDidMount",
|
5344 |
+
value: function componentDidMount() {
|
5345 |
this.recordPageViewTrack();
|
5346 |
}
|
5347 |
+
}, {
|
5348 |
+
key: "componentDidUpdate",
|
5349 |
+
value: function componentDidUpdate(prevProps) {
|
5350 |
+
var previousPath = Object(external_lodash_["get"])(prevProps, 'location.pathname');
|
5351 |
+
var currentPath = Object(external_lodash_["get"])(this.props, 'location.pathname');
|
5352 |
|
5353 |
+
if (!previousPath || !currentPath) {
|
5354 |
+
return;
|
5355 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5356 |
|
5357 |
+
if (previousPath !== currentPath) {
|
5358 |
+
this.recordPageViewTrack();
|
5359 |
+
}
|
|
|
|
|
|
|
|
|
5360 |
}
|
5361 |
+
}, {
|
5362 |
+
key: "recordPageViewTrack",
|
5363 |
+
value: function recordPageViewTrack() {
|
5364 |
+
var _this$props = this.props,
|
5365 |
+
activePlugins = _this$props.activePlugins,
|
5366 |
+
installedPlugins = _this$props.installedPlugins,
|
5367 |
+
isEmbedded = _this$props.isEmbedded,
|
5368 |
+
isJetpackConnected = _this$props.isJetpackConnected;
|
5369 |
+
var navigationFlag = {
|
5370 |
+
has_navigation: !!window.wcNavigation
|
5371 |
+
};
|
5372 |
|
5373 |
+
if (isEmbedded) {
|
5374 |
+
var _path = document.location.pathname + document.location.search;
|
5375 |
|
5376 |
+
Object(external_this_wc_tracks_["recordPageView"])(_path, layout_objectSpread({
|
5377 |
+
is_embedded: true
|
5378 |
+
}, navigationFlag));
|
5379 |
+
return;
|
5380 |
+
}
|
5381 |
|
5382 |
+
var pathname = Object(external_lodash_["get"])(this.props, 'location.pathname');
|
5383 |
|
5384 |
+
if (!pathname) {
|
5385 |
+
return;
|
5386 |
+
} // Remove leading slash, and camel case remaining pathname
|
5387 |
|
|
|
|
|
|
|
5388 |
|
5389 |
+
var path = pathname.substring(1).replace(/\//g, '_'); // When pathname is `/` we are on the home screen.
|
|
|
|
|
|
|
|
|
|
|
|
|
5390 |
|
5391 |
+
if (path.length === 0) {
|
5392 |
+
path = 'home_screen';
|
5393 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5394 |
|
5395 |
+
Object(external_this_wc_tracks_["recordPageView"])(path, layout_objectSpread({
|
5396 |
+
jetpack_installed: installedPlugins.includes('jetpack'),
|
5397 |
+
jetpack_active: activePlugins.includes('jetpack'),
|
5398 |
+
jetpack_connected: isJetpackConnected
|
5399 |
+
}, navigationFlag));
|
5400 |
+
}
|
5401 |
+
}, {
|
5402 |
+
key: "getQuery",
|
5403 |
+
value: function getQuery(searchString) {
|
5404 |
+
if (!searchString) {
|
5405 |
+
return {};
|
5406 |
+
}
|
5407 |
+
|
5408 |
+
var search = searchString.substring(1);
|
5409 |
+
return Object(lib["parse"])(search);
|
5410 |
+
}
|
5411 |
+
}, {
|
5412 |
+
key: "isWCPaySettingsPage",
|
5413 |
+
value: function isWCPaySettingsPage() {
|
5414 |
+
var _getQuery = Object(external_this_wc_navigation_["getQuery"])(),
|
5415 |
+
page = _getQuery.page,
|
5416 |
+
section = _getQuery.section,
|
5417 |
+
tab = _getQuery.tab;
|
5418 |
+
|
5419 |
+
return page === 'wc-settings' && tab === 'checkout' && section === 'woocommerce_payments';
|
5420 |
+
}
|
5421 |
+
}, {
|
5422 |
+
key: "render",
|
5423 |
+
value: function render() {
|
5424 |
+
var _this$props2 = this.props,
|
5425 |
+
isEmbedded = _this$props2.isEmbedded,
|
5426 |
+
restProps = objectWithoutProperties_default()(_this$props2, ["isEmbedded"]);
|
5427 |
+
|
5428 |
+
var _this$props3 = this.props,
|
5429 |
+
location = _this$props3.location,
|
5430 |
+
page = _this$props3.page;
|
5431 |
+
var breadcrumbs = page.breadcrumbs;
|
5432 |
+
var query = this.getQuery(location && location.search);
|
5433 |
+
return Object(external_this_wp_element_["createElement"])("div", {
|
5434 |
+
className: "woocommerce-layout"
|
5435 |
+
}, Object(external_this_wp_element_["createElement"])(client_header_Header, {
|
5436 |
+
sections: Object(external_lodash_["isFunction"])(breadcrumbs) ? breadcrumbs(this.props) : breadcrumbs,
|
5437 |
+
isEmbedded: isEmbedded,
|
5438 |
+
query: query
|
5439 |
+
}), Object(external_this_wp_element_["createElement"])(transient_notices, null), !isEmbedded && Object(external_this_wp_element_["createElement"])(layout_PrimaryLayout, null, Object(external_this_wp_element_["createElement"])("div", {
|
5440 |
+
className: "woocommerce-layout__main"
|
5441 |
+
}, Object(external_this_wp_element_["createElement"])(controller_Controller, extends_default()({}, restProps, {
|
5442 |
+
query: query
|
5443 |
+
})))), isEmbedded && this.isWCPaySettingsPage() && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Suspense"], {
|
5444 |
+
fallback: null
|
5445 |
+
}, Object(external_this_wp_element_["createElement"])(WCPayUsageModal, null)));
|
5446 |
+
}
|
5447 |
+
}]);
|
5448 |
+
|
5449 |
+
return _Layout;
|
5450 |
+
}(external_this_wp_element_["Component"]);
|
5451 |
|
5452 |
layout_Layout.propTypes = {
|
5453 |
isEmbedded: prop_types_default.a.bool,
|
5459 |
wpOpenMenu: prop_types_default.a.string
|
5460 |
}).isRequired
|
5461 |
};
|
5462 |
+
var Layout = Object(external_this_wp_compose_["compose"])(Object(external_this_wc_data_["withPluginsHydration"])(layout_objectSpread(layout_objectSpread({}, window.wcSettings.plugins || {}), {}, {
|
5463 |
jetpackStatus: window.wcSettings.dataEndpoints && window.wcSettings.dataEndpoints.jetpackStatus || false
|
5464 |
+
})), Object(external_this_wp_data_["withSelect"])(function (select, _ref) {
|
5465 |
+
var isEmbedded = _ref.isEmbedded;
|
5466 |
+
|
5467 |
// Embedded pages don't send plugin info to Tracks.
|
5468 |
if (isEmbedded) {
|
5469 |
return;
|
5470 |
}
|
5471 |
|
5472 |
+
var _select = select(external_this_wc_data_["PLUGINS_STORE_NAME"]),
|
5473 |
+
getActivePlugins = _select.getActivePlugins,
|
5474 |
+
getInstalledPlugins = _select.getInstalledPlugins,
|
5475 |
+
isJetpackConnected = _select.isJetpackConnected;
|
5476 |
+
|
5477 |
return {
|
5478 |
activePlugins: getActivePlugins(),
|
5479 |
isJetpackConnected: isJetpackConnected(),
|
5481 |
};
|
5482 |
}))(layout_Layout);
|
5483 |
|
5484 |
+
var layout_PageLayout = function _PageLayout() {
|
5485 |
+
var _useUser = Object(external_this_wc_data_["useUser"])(),
|
5486 |
+
currentUserCan = _useUser.currentUserCan;
|
5487 |
+
|
5488 |
+
return Object(external_this_wp_element_["createElement"])(react_router_Router, {
|
5489 |
+
history: Object(external_this_wc_navigation_["getHistory"])()
|
5490 |
+
}, Object(external_this_wp_element_["createElement"])(react_router_Switch, null, controller_getPages().filter(function (page) {
|
5491 |
+
return !page.capability || currentUserCan(page.capability);
|
5492 |
+
}).map(function (page) {
|
5493 |
+
return Object(external_this_wp_element_["createElement"])(react_router_Route, {
|
5494 |
key: page.path,
|
5495 |
path: page.path,
|
5496 |
exact: true,
|
5497 |
+
render: function render(props) {
|
5498 |
+
return Object(external_this_wp_element_["createElement"])(Layout, extends_default()({
|
5499 |
+
page: page
|
5500 |
+
}, props));
|
5501 |
+
}
|
5502 |
});
|
5503 |
})));
|
5504 |
};
|
5505 |
|
5506 |
+
var PageLayout = Object(external_this_wp_compose_["compose"])(window.wcSettings.preloadOptions ? Object(external_this_wc_data_["withOptionsHydration"])(layout_objectSpread({}, window.wcSettings.preloadOptions)) : external_lodash_["identity"])(layout_PageLayout);
|
|
|
5507 |
|
5508 |
+
var layout_EmbedLayout = function _EmbedLayout() {
|
5509 |
+
return Object(external_this_wp_element_["createElement"])(Layout, {
|
5510 |
+
page: {
|
5511 |
+
breadcrumbs: Object(wc_admin_settings["g" /* getSetting */])('embedBreadcrumbs', [])
|
5512 |
+
},
|
5513 |
+
isEmbedded: true
|
5514 |
+
});
|
5515 |
+
};
|
5516 |
|
5517 |
+
var EmbedLayout = Object(external_this_wp_compose_["compose"])(window.wcSettings.preloadOptions ? Object(external_this_wc_data_["withOptionsHydration"])(layout_objectSpread({}, window.wcSettings.preloadOptions)) : external_lodash_["identity"])(layout_EmbedLayout);
|
|
|
5518 |
|
5519 |
/***/ }),
|
5520 |
|
5521 |
+
/***/ 142:
|
5522 |
/***/ (function(module, exports) {
|
5523 |
|
5524 |
+
(function() { module.exports = this["wc"]["number"]; }());
|
5525 |
|
5526 |
/***/ }),
|
5527 |
|
5528 |
+
/***/ 15:
|
5529 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5530 |
|
5531 |
+
var _typeof = __webpack_require__(31);
|
5532 |
|
5533 |
+
var assertThisInitialized = __webpack_require__(9);
|
5534 |
|
5535 |
+
function _possibleConstructorReturn(self, call) {
|
5536 |
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
5537 |
+
return call;
|
5538 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5539 |
|
5540 |
+
return assertThisInitialized(self);
|
|
|
|
|
|
|
5541 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5542 |
|
5543 |
+
module.exports = _possibleConstructorReturn;
|
5544 |
|
5545 |
/***/ }),
|
5546 |
|
5547 |
+
/***/ 152:
|
5548 |
/***/ (function(module, exports, __webpack_require__) {
|
5549 |
|
5550 |
"use strict";
|
5567 |
|
5568 |
/***/ }),
|
5569 |
|
5570 |
+
/***/ 16:
|
5571 |
/***/ (function(module, exports) {
|
5572 |
|
5573 |
+
(function() { module.exports = this["moment"]; }());
|
5574 |
|
5575 |
/***/ }),
|
5576 |
|
5577 |
+
/***/ 17:
|
5578 |
/***/ (function(module, exports) {
|
5579 |
|
5580 |
+
(function() { module.exports = this["wp"]["dataControls"]; }());
|
5581 |
|
5582 |
/***/ }),
|
5583 |
|
5584 |
+
/***/ 18:
|
5585 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5586 |
|
5587 |
+
var arrayWithHoles = __webpack_require__(60);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5588 |
|
5589 |
+
var iterableToArrayLimit = __webpack_require__(61);
|
|
|
|
|
|
|
|
|
|
|
5590 |
|
5591 |
+
var unsupportedIterableToArray = __webpack_require__(40);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5592 |
|
5593 |
+
var nonIterableRest = __webpack_require__(62);
|
|
|
|
|
|
|
5594 |
|
5595 |
+
function _slicedToArray(arr, i) {
|
5596 |
+
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
|
5597 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5598 |
|
5599 |
+
module.exports = _slicedToArray;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5600 |
|
5601 |
/***/ }),
|
5602 |
|
5603 |
+
/***/ 182:
|
5604 |
/***/ (function(module, exports, __webpack_require__) {
|
5605 |
|
5606 |
"use strict";
|
5610 |
|
5611 |
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
5612 |
|
5613 |
+
var _extends = _interopDefault(__webpack_require__(24));
|
5614 |
+
var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(97));
|
5615 |
+
var React = __webpack_require__(10);
|
5616 |
var React__default = _interopDefault(React);
|
5617 |
+
var _inheritsLoose = _interopDefault(__webpack_require__(306));
|
5618 |
+
var _assertThisInitialized = _interopDefault(__webpack_require__(9));
|
5619 |
|
5620 |
var is = {
|
5621 |
arr: Array.isArray,
|
7929 |
exports.useSprings = useSprings;
|
7930 |
|
7931 |
|
7932 |
+
/***/ }),
|
7933 |
+
|
7934 |
+
/***/ 183:
|
7935 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7936 |
+
|
7937 |
+
"use strict";
|
7938 |
+
/* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
|
7939 |
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
7940 |
+
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38);
|
7941 |
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
7942 |
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
7943 |
+
|
7944 |
+
|
7945 |
+
|
7946 |
+
|
7947 |
+
|
7948 |
+
var MAX_SIGNED_31_BIT_INT = 1073741823;
|
7949 |
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {};
|
7950 |
+
|
7951 |
+
function getUniqueId() {
|
7952 |
+
var key = '__global_unique_id__';
|
7953 |
+
return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;
|
7954 |
+
}
|
7955 |
+
|
7956 |
+
function objectIs(x, y) {
|
7957 |
+
if (x === y) {
|
7958 |
+
return x !== 0 || 1 / x === 1 / y;
|
7959 |
+
} else {
|
7960 |
+
return x !== x && y !== y;
|
7961 |
+
}
|
7962 |
+
}
|
7963 |
+
|
7964 |
+
function createEventEmitter(value) {
|
7965 |
+
var handlers = [];
|
7966 |
+
return {
|
7967 |
+
on: function on(handler) {
|
7968 |
+
handlers.push(handler);
|
7969 |
+
},
|
7970 |
+
off: function off(handler) {
|
7971 |
+
handlers = handlers.filter(function (h) {
|
7972 |
+
return h !== handler;
|
7973 |
+
});
|
7974 |
+
},
|
7975 |
+
get: function get() {
|
7976 |
+
return value;
|
7977 |
+
},
|
7978 |
+
set: function set(newValue, changedBits) {
|
7979 |
+
value = newValue;
|
7980 |
+
handlers.forEach(function (handler) {
|
7981 |
+
return handler(value, changedBits);
|
7982 |
+
});
|
7983 |
+
}
|
7984 |
+
};
|
7985 |
+
}
|
7986 |
+
|
7987 |
+
function onlyChild(children) {
|
7988 |
+
return Array.isArray(children) ? children[0] : children;
|
7989 |
+
}
|
7990 |
+
|
7991 |
+
function createReactContext(defaultValue, calculateChangedBits) {
|
7992 |
+
var _Provider$childContex, _Consumer$contextType;
|
7993 |
+
|
7994 |
+
var contextProp = '__create-react-context-' + getUniqueId() + '__';
|
7995 |
+
|
7996 |
+
var Provider = /*#__PURE__*/function (_Component) {
|
7997 |
+
Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(Provider, _Component);
|
7998 |
+
|
7999 |
+
function Provider() {
|
8000 |
+
var _this;
|
8001 |
+
|
8002 |
+
_this = _Component.apply(this, arguments) || this;
|
8003 |
+
_this.emitter = createEventEmitter(_this.props.value);
|
8004 |
+
return _this;
|
8005 |
+
}
|
8006 |
+
|
8007 |
+
var _proto = Provider.prototype;
|
8008 |
+
|
8009 |
+
_proto.getChildContext = function getChildContext() {
|
8010 |
+
var _ref;
|
8011 |
+
|
8012 |
+
return _ref = {}, _ref[contextProp] = this.emitter, _ref;
|
8013 |
+
};
|
8014 |
+
|
8015 |
+
_proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
8016 |
+
if (this.props.value !== nextProps.value) {
|
8017 |
+
var oldValue = this.props.value;
|
8018 |
+
var newValue = nextProps.value;
|
8019 |
+
var changedBits;
|
8020 |
+
|
8021 |
+
if (objectIs(oldValue, newValue)) {
|
8022 |
+
changedBits = 0;
|
8023 |
+
} else {
|
8024 |
+
changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
|
8025 |
+
|
8026 |
+
if (false) {}
|
8027 |
+
|
8028 |
+
changedBits |= 0;
|
8029 |
+
|
8030 |
+
if (changedBits !== 0) {
|
8031 |
+
this.emitter.set(nextProps.value, changedBits);
|
8032 |
+
}
|
8033 |
+
}
|
8034 |
+
}
|
8035 |
+
};
|
8036 |
+
|
8037 |
+
_proto.render = function render() {
|
8038 |
+
return this.props.children;
|
8039 |
+
};
|
8040 |
+
|
8041 |
+
return Provider;
|
8042 |
+
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
|
8043 |
+
|
8044 |
+
Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object.isRequired, _Provider$childContex);
|
8045 |
+
|
8046 |
+
var Consumer = /*#__PURE__*/function (_Component2) {
|
8047 |
+
Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(Consumer, _Component2);
|
8048 |
+
|
8049 |
+
function Consumer() {
|
8050 |
+
var _this2;
|
8051 |
+
|
8052 |
+
_this2 = _Component2.apply(this, arguments) || this;
|
8053 |
+
_this2.state = {
|
8054 |
+
value: _this2.getValue()
|
8055 |
+
};
|
8056 |
+
|
8057 |
+
_this2.onUpdate = function (newValue, changedBits) {
|
8058 |
+
var observedBits = _this2.observedBits | 0;
|
8059 |
+
|
8060 |
+
if ((observedBits & changedBits) !== 0) {
|
8061 |
+
_this2.setState({
|
8062 |
+
value: _this2.getValue()
|
8063 |
+
});
|
8064 |
+
}
|
8065 |
+
};
|
8066 |
+
|
8067 |
+
return _this2;
|
8068 |
+
}
|
8069 |
+
|
8070 |
+
var _proto2 = Consumer.prototype;
|
8071 |
+
|
8072 |
+
_proto2.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
8073 |
+
var observedBits = nextProps.observedBits;
|
8074 |
+
this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
|
8075 |
+
};
|
8076 |
+
|
8077 |
+
_proto2.componentDidMount = function componentDidMount() {
|
8078 |
+
if (this.context[contextProp]) {
|
8079 |
+
this.context[contextProp].on(this.onUpdate);
|
8080 |
+
}
|
8081 |
+
|
8082 |
+
var observedBits = this.props.observedBits;
|
8083 |
+
this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
|
8084 |
+
};
|
8085 |
+
|
8086 |
+
_proto2.componentWillUnmount = function componentWillUnmount() {
|
8087 |
+
if (this.context[contextProp]) {
|
8088 |
+
this.context[contextProp].off(this.onUpdate);
|
8089 |
+
}
|
8090 |
+
};
|
8091 |
+
|
8092 |
+
_proto2.getValue = function getValue() {
|
8093 |
+
if (this.context[contextProp]) {
|
8094 |
+
return this.context[contextProp].get();
|
8095 |
+
} else {
|
8096 |
+
return defaultValue;
|
8097 |
+
}
|
8098 |
+
};
|
8099 |
+
|
8100 |
+
_proto2.render = function render() {
|
8101 |
+
return onlyChild(this.props.children)(this.state.value);
|
8102 |
+
};
|
8103 |
+
|
8104 |
+
return Consumer;
|
8105 |
+
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
|
8106 |
+
|
8107 |
+
Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, _Consumer$contextType);
|
8108 |
+
return {
|
8109 |
+
Provider: Provider,
|
8110 |
+
Consumer: Consumer
|
8111 |
+
};
|
8112 |
+
}
|
8113 |
+
|
8114 |
+
var index = react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext || createReactContext;
|
8115 |
+
|
8116 |
+
/* harmony default export */ __webpack_exports__["a"] = (index);
|
8117 |
+
|
8118 |
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(84)))
|
8119 |
+
|
8120 |
+
/***/ }),
|
8121 |
+
|
8122 |
+
/***/ 184:
|
8123 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8124 |
+
|
8125 |
+
var isarray = __webpack_require__(308)
|
8126 |
+
|
8127 |
+
/**
|
8128 |
+
* Expose `pathToRegexp`.
|
8129 |
+
*/
|
8130 |
+
module.exports = pathToRegexp
|
8131 |
+
module.exports.parse = parse
|
8132 |
+
module.exports.compile = compile
|
8133 |
+
module.exports.tokensToFunction = tokensToFunction
|
8134 |
+
module.exports.tokensToRegExp = tokensToRegExp
|
8135 |
+
|
8136 |
+
/**
|
8137 |
+
* The main path matching regexp utility.
|
8138 |
+
*
|
8139 |
+
* @type {RegExp}
|
8140 |
+
*/
|
8141 |
+
var PATH_REGEXP = new RegExp([
|
8142 |
+
// Match escaped characters that would otherwise appear in future matches.
|
8143 |
+
// This allows the user to escape special characters that won't transform.
|
8144 |
+
'(\\\\.)',
|
8145 |
+
// Match Express-style parameters and un-named parameters with a prefix
|
8146 |
+
// and optional suffixes. Matches appear as:
|
8147 |
+
//
|
8148 |
+
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
|
8149 |
+
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
|
8150 |
+
// "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
|
8151 |
+
'([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
|
8152 |
+
].join('|'), 'g')
|
8153 |
+
|
8154 |
+
/**
|
8155 |
+
* Parse a string for the raw tokens.
|
8156 |
+
*
|
8157 |
+
* @param {string} str
|
8158 |
+
* @param {Object=} options
|
8159 |
+
* @return {!Array}
|
8160 |
+
*/
|
8161 |
+
function parse (str, options) {
|
8162 |
+
var tokens = []
|
8163 |
+
var key = 0
|
8164 |
+
var index = 0
|
8165 |
+
var path = ''
|
8166 |
+
var defaultDelimiter = options && options.delimiter || '/'
|
8167 |
+
var res
|
8168 |
+
|
8169 |
+
while ((res = PATH_REGEXP.exec(str)) != null) {
|
8170 |
+
var m = res[0]
|
8171 |
+
var escaped = res[1]
|
8172 |
+
var offset = res.index
|
8173 |
+
path += str.slice(index, offset)
|
8174 |
+
index = offset + m.length
|
8175 |
+
|
8176 |
+
// Ignore already escaped sequences.
|
8177 |
+
if (escaped) {
|
8178 |
+
path += escaped[1]
|
8179 |
+
continue
|
8180 |
+
}
|
8181 |
+
|
8182 |
+
var next = str[index]
|
8183 |
+
var prefix = res[2]
|
8184 |
+
var name = res[3]
|
8185 |
+
var capture = res[4]
|
8186 |
+
var group = res[5]
|
8187 |
+
var modifier = res[6]
|
8188 |
+
var asterisk = res[7]
|
8189 |
+
|
8190 |
+
// Push the current path onto the tokens.
|
8191 |
+
if (path) {
|
8192 |
+
tokens.push(path)
|
8193 |
+
path = ''
|
8194 |
+
}
|
8195 |
+
|
8196 |
+
var partial = prefix != null && next != null && next !== prefix
|
8197 |
+
var repeat = modifier === '+' || modifier === '*'
|
8198 |
+
var optional = modifier === '?' || modifier === '*'
|
8199 |
+
var delimiter = res[2] || defaultDelimiter
|
8200 |
+
var pattern = capture || group
|
8201 |
+
|
8202 |
+
tokens.push({
|
8203 |
+
name: name || key++,
|
8204 |
+
prefix: prefix || '',
|
8205 |
+
delimiter: delimiter,
|
8206 |
+
optional: optional,
|
8207 |
+
repeat: repeat,
|
8208 |
+
partial: partial,
|
8209 |
+
asterisk: !!asterisk,
|
8210 |
+
pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
|
8211 |
+
})
|
8212 |
+
}
|
8213 |
+
|
8214 |
+
// Match any characters still remaining.
|
8215 |
+
if (index < str.length) {
|
8216 |
+
path += str.substr(index)
|
8217 |
+
}
|
8218 |
+
|
8219 |
+
// If the path exists, push it onto the end.
|
8220 |
+
if (path) {
|
8221 |
+
tokens.push(path)
|
8222 |
+
}
|
8223 |
+
|
8224 |
+
return tokens
|
8225 |
+
}
|
8226 |
+
|
8227 |
+
/**
|
8228 |
+
* Compile a string to a template function for the path.
|
8229 |
+
*
|
8230 |
+
* @param {string} str
|
8231 |
+
* @param {Object=} options
|
8232 |
+
* @return {!function(Object=, Object=)}
|
8233 |
+
*/
|
8234 |
+
function compile (str, options) {
|
8235 |
+
return tokensToFunction(parse(str, options), options)
|
8236 |
+
}
|
8237 |
+
|
8238 |
+
/**
|
8239 |
+
* Prettier encoding of URI path segments.
|
8240 |
+
*
|
8241 |
+
* @param {string}
|
8242 |
+
* @return {string}
|
8243 |
+
*/
|
8244 |
+
function encodeURIComponentPretty (str) {
|
8245 |
+
return encodeURI(str).replace(/[\/?#]/g, function (c) {
|
8246 |
+
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
8247 |
+
})
|
8248 |
+
}
|
8249 |
+
|
8250 |
+
/**
|
8251 |
+
* Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
|
8252 |
+
*
|
8253 |
+
* @param {string}
|
8254 |
+
* @return {string}
|
8255 |
+
*/
|
8256 |
+
function encodeAsterisk (str) {
|
8257 |
+
return encodeURI(str).replace(/[?#]/g, function (c) {
|
8258 |
+
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
8259 |
+
})
|
8260 |
+
}
|
8261 |
+
|
8262 |
+
/**
|
8263 |
+
* Expose a method for transforming tokens into the path function.
|
8264 |
+
*/
|
8265 |
+
function tokensToFunction (tokens, options) {
|
8266 |
+
// Compile all the tokens into regexps.
|
8267 |
+
var matches = new Array(tokens.length)
|
8268 |
+
|
8269 |
+
// Compile all the patterns before compilation.
|
8270 |
+
for (var i = 0; i < tokens.length; i++) {
|
8271 |
+
if (typeof tokens[i] === 'object') {
|
8272 |
+
matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options))
|
8273 |
+
}
|
8274 |
+
}
|
8275 |
+
|
8276 |
+
return function (obj, opts) {
|
8277 |
+
var path = ''
|
8278 |
+
var data = obj || {}
|
8279 |
+
var options = opts || {}
|
8280 |
+
var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent
|
8281 |
+
|
8282 |
+
for (var i = 0; i < tokens.length; i++) {
|
8283 |
+
var token = tokens[i]
|
8284 |
+
|
8285 |
+
if (typeof token === 'string') {
|
8286 |
+
path += token
|
8287 |
+
|
8288 |
+
continue
|
8289 |
+
}
|
8290 |
+
|
8291 |
+
var value = data[token.name]
|
8292 |
+
var segment
|
8293 |
+
|
8294 |
+
if (value == null) {
|
8295 |
+
if (token.optional) {
|
8296 |
+
// Prepend partial segment prefixes.
|
8297 |
+
if (token.partial) {
|
8298 |
+
path += token.prefix
|
8299 |
+
}
|
8300 |
+
|
8301 |
+
continue
|
8302 |
+
} else {
|
8303 |
+
throw new TypeError('Expected "' + token.name + '" to be defined')
|
8304 |
+
}
|
8305 |
+
}
|
8306 |
|
8307 |
+
if (isarray(value)) {
|
8308 |
+
if (!token.repeat) {
|
8309 |
+
throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
|
8310 |
+
}
|
8311 |
|
8312 |
+
if (value.length === 0) {
|
8313 |
+
if (token.optional) {
|
8314 |
+
continue
|
8315 |
+
} else {
|
8316 |
+
throw new TypeError('Expected "' + token.name + '" to not be empty')
|
8317 |
+
}
|
8318 |
+
}
|
8319 |
|
8320 |
+
for (var j = 0; j < value.length; j++) {
|
8321 |
+
segment = encode(value[j])
|
8322 |
|
8323 |
+
if (!matches[i].test(segment)) {
|
8324 |
+
throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
|
8325 |
+
}
|
8326 |
|
8327 |
+
path += (j === 0 ? token.prefix : token.delimiter) + segment
|
8328 |
+
}
|
|
|
|
|
|
|
|
|
8329 |
|
8330 |
+
continue
|
8331 |
+
}
|
8332 |
|
8333 |
+
segment = token.asterisk ? encodeAsterisk(value) : encode(value)
|
8334 |
|
8335 |
+
if (!matches[i].test(segment)) {
|
8336 |
+
throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
|
8337 |
+
}
|
8338 |
|
8339 |
+
path += token.prefix + segment
|
8340 |
+
}
|
8341 |
|
8342 |
+
return path
|
8343 |
+
}
|
8344 |
+
}
|
8345 |
|
8346 |
+
/**
|
8347 |
+
* Escape a regular expression string.
|
8348 |
+
*
|
8349 |
+
* @param {string} str
|
8350 |
+
* @return {string}
|
8351 |
+
*/
|
8352 |
+
function escapeString (str) {
|
8353 |
+
return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
|
8354 |
}
|
8355 |
|
8356 |
+
/**
|
8357 |
+
* Escape the capturing group by escaping special characters and meaning.
|
8358 |
+
*
|
8359 |
+
* @param {string} group
|
8360 |
+
* @return {string}
|
8361 |
+
*/
|
8362 |
+
function escapeGroup (group) {
|
8363 |
+
return group.replace(/([=!:$\/()])/g, '\\$1')
|
8364 |
}
|
8365 |
|
8366 |
+
/**
|
8367 |
+
* Attach the keys as a property of the regexp.
|
8368 |
+
*
|
8369 |
+
* @param {!RegExp} re
|
8370 |
+
* @param {Array} keys
|
8371 |
+
* @return {!RegExp}
|
8372 |
+
*/
|
8373 |
+
function attachKeys (re, keys) {
|
8374 |
+
re.keys = keys
|
8375 |
+
return re
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8376 |
}
|
8377 |
|
8378 |
+
/**
|
8379 |
+
* Get the flags for a regexp from the options.
|
8380 |
+
*
|
8381 |
+
* @param {Object} options
|
8382 |
+
* @return {string}
|
8383 |
+
*/
|
8384 |
+
function flags (options) {
|
8385 |
+
return options && options.sensitive ? '' : 'i'
|
8386 |
}
|
8387 |
|
8388 |
+
/**
|
8389 |
+
* Pull out keys from a regexp.
|
8390 |
+
*
|
8391 |
+
* @param {!RegExp} path
|
8392 |
+
* @param {!Array} keys
|
8393 |
+
* @return {!RegExp}
|
8394 |
+
*/
|
8395 |
+
function regexpToRegexp (path, keys) {
|
8396 |
+
// Use a negative lookahead to match only capturing groups.
|
8397 |
+
var groups = path.source.match(/\((?!\?)/g)
|
8398 |
|
8399 |
+
if (groups) {
|
8400 |
+
for (var i = 0; i < groups.length; i++) {
|
8401 |
+
keys.push({
|
8402 |
+
name: i,
|
8403 |
+
prefix: null,
|
8404 |
+
delimiter: null,
|
8405 |
+
optional: false,
|
8406 |
+
repeat: false,
|
8407 |
+
partial: false,
|
8408 |
+
asterisk: false,
|
8409 |
+
pattern: null
|
8410 |
+
})
|
8411 |
+
}
|
8412 |
+
}
|
8413 |
|
8414 |
+
return attachKeys(path, keys)
|
8415 |
+
}
|
8416 |
|
8417 |
+
/**
|
8418 |
+
* Transform an array into a regexp.
|
8419 |
+
*
|
8420 |
+
* @param {!Array} path
|
8421 |
+
* @param {Array} keys
|
8422 |
+
* @param {!Object} options
|
8423 |
+
* @return {!RegExp}
|
8424 |
+
*/
|
8425 |
+
function arrayToRegexp (path, keys, options) {
|
8426 |
+
var parts = []
|
8427 |
|
8428 |
+
for (var i = 0; i < path.length; i++) {
|
8429 |
+
parts.push(pathToRegexp(path[i], keys, options).source)
|
8430 |
+
}
|
|
|
8431 |
|
8432 |
+
var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options))
|
8433 |
|
8434 |
+
return attachKeys(regexp, keys)
|
8435 |
+
}
|
8436 |
|
8437 |
+
/**
|
8438 |
+
* Create a path regexp from string input.
|
8439 |
+
*
|
8440 |
+
* @param {string} path
|
8441 |
+
* @param {!Array} keys
|
8442 |
+
* @param {!Object} options
|
8443 |
+
* @return {!RegExp}
|
8444 |
+
*/
|
8445 |
+
function stringToRegexp (path, keys, options) {
|
8446 |
+
return tokensToRegExp(parse(path, options), keys, options)
|
8447 |
+
}
|
8448 |
|
8449 |
+
/**
|
8450 |
+
* Expose a function for taking tokens and returning a RegExp.
|
8451 |
+
*
|
8452 |
+
* @param {!Array} tokens
|
8453 |
+
* @param {(Array|Object)=} keys
|
8454 |
+
* @param {Object=} options
|
8455 |
+
* @return {!RegExp}
|
8456 |
+
*/
|
8457 |
+
function tokensToRegExp (tokens, keys, options) {
|
8458 |
+
if (!isarray(keys)) {
|
8459 |
+
options = /** @type {!Object} */ (keys || options)
|
8460 |
+
keys = []
|
8461 |
+
}
|
8462 |
|
8463 |
+
options = options || {}
|
|
|
|
|
|
|
8464 |
|
8465 |
+
var strict = options.strict
|
8466 |
+
var end = options.end !== false
|
8467 |
+
var route = ''
|
8468 |
|
8469 |
+
// Iterate over the tokens and create our regexp string.
|
8470 |
+
for (var i = 0; i < tokens.length; i++) {
|
8471 |
+
var token = tokens[i]
|
8472 |
|
8473 |
+
if (typeof token === 'string') {
|
8474 |
+
route += escapeString(token)
|
8475 |
+
} else {
|
8476 |
+
var prefix = escapeString(token.prefix)
|
8477 |
+
var capture = '(?:' + token.pattern + ')'
|
|
|
8478 |
|
8479 |
+
keys.push(token)
|
|
|
|
|
8480 |
|
8481 |
+
if (token.repeat) {
|
8482 |
+
capture += '(?:' + prefix + capture + ')*'
|
8483 |
+
}
|
8484 |
|
8485 |
+
if (token.optional) {
|
8486 |
+
if (!token.partial) {
|
8487 |
+
capture = '(?:' + prefix + '(' + capture + '))?'
|
8488 |
+
} else {
|
8489 |
+
capture = prefix + '(' + capture + ')?'
|
8490 |
+
}
|
8491 |
+
} else {
|
8492 |
+
capture = prefix + '(' + capture + ')'
|
8493 |
+
}
|
8494 |
|
8495 |
+
route += capture
|
8496 |
+
}
|
8497 |
+
}
|
8498 |
+
|
8499 |
+
var delimiter = escapeString(options.delimiter || '/')
|
8500 |
+
var endsWithDelimiter = route.slice(-delimiter.length) === delimiter
|
8501 |
|
8502 |
+
// In non-strict mode we allow a slash at the end of match. If the path to
|
8503 |
+
// match already ends with a slash, we remove it for consistency. The slash
|
8504 |
+
// is valid at the end of a path match, not in the middle. This is important
|
8505 |
+
// in non-ending mode, where "/test/" shouldn't match "/test//route".
|
8506 |
+
if (!strict) {
|
8507 |
+
route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?'
|
8508 |
+
}
|
8509 |
|
8510 |
+
if (end) {
|
8511 |
+
route += '$'
|
8512 |
+
} else {
|
8513 |
+
// In non-ending mode, we need the capturing groups to match as much as
|
8514 |
+
// possible by using a positive lookahead to the end or next path segment.
|
8515 |
+
route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)'
|
8516 |
+
}
|
8517 |
|
8518 |
+
return attachKeys(new RegExp('^' + route, flags(options)), keys)
|
8519 |
+
}
|
8520 |
|
8521 |
+
/**
|
8522 |
+
* Normalize the given path string, returning a regular expression.
|
8523 |
+
*
|
8524 |
+
* An empty array can be passed in for the keys, which will hold the
|
8525 |
+
* placeholder key descriptions. For example, using `/user/:id`, `keys` will
|
8526 |
+
* contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
|
8527 |
+
*
|
8528 |
+
* @param {(string|RegExp|Array)} path
|
8529 |
+
* @param {(Array|Object)=} keys
|
8530 |
+
* @param {Object=} options
|
8531 |
+
* @return {!RegExp}
|
8532 |
+
*/
|
8533 |
+
function pathToRegexp (path, keys, options) {
|
8534 |
+
if (!isarray(keys)) {
|
8535 |
+
options = /** @type {!Object} */ (keys || options)
|
8536 |
+
keys = []
|
8537 |
+
}
|
8538 |
|
8539 |
+
options = options || {}
|
|
|
8540 |
|
8541 |
+
if (path instanceof RegExp) {
|
8542 |
+
return regexpToRegexp(path, /** @type {!Array} */ (keys))
|
8543 |
+
}
|
8544 |
|
8545 |
+
if (isarray(path)) {
|
8546 |
+
return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)
|
8547 |
+
}
|
|
|
8548 |
|
8549 |
+
return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)
|
8550 |
+
}
|
|
|
|
|
8551 |
|
|
|
|
|
|
|
8552 |
|
8553 |
+
/***/ }),
|
|
|
|
|
|
|
|
|
8554 |
|
8555 |
+
/***/ 19:
|
8556 |
+
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
8557 |
|
8558 |
+
var arrayWithoutHoles = __webpack_require__(57);
|
|
|
|
|
8559 |
|
8560 |
+
var iterableToArray = __webpack_require__(58);
|
|
|
8561 |
|
8562 |
+
var unsupportedIterableToArray = __webpack_require__(40);
|
|
|
|
|
|
|
|
|
|
|
8563 |
|
8564 |
+
var nonIterableSpread = __webpack_require__(59);
|
8565 |
|
8566 |
+
function _toConsumableArray(arr) {
|
8567 |
+
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
8568 |
+
}
|
8569 |
|
8570 |
+
module.exports = _toConsumableArray;
|
8571 |
|
8572 |
/***/ }),
|
8573 |
|
8574 |
+
/***/ 197:
|
8575 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
8576 |
|
8577 |
+
"use strict";
|
8578 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getUnreadNotesCount; });
|
8579 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return hasValidNotes; });
|
8580 |
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
|
8581 |
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
|
8582 |
/**
|
8583 |
+
* External dependencies
|
8584 |
*/
|
|
|
|
|
|
|
|
|
|
|
8585 |
|
8586 |
/**
|
8587 |
+
* Get the count of the unread notes from the received list.
|
8588 |
*
|
8589 |
+
* @param {Array} notes - List of notes, contains read and unread notes.
|
8590 |
+
* @param {number} lastRead - The timestamp that the user read a note.
|
8591 |
+
* @return {number} - Unread notes count.
|
8592 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8593 |
|
8594 |
+
function getUnreadNotesCount(notes, lastRead) {
|
8595 |
+
var unreadNotes = Object(lodash__WEBPACK_IMPORTED_MODULE_0__["filter"])(notes, function (note) {
|
8596 |
+
var isDeleted = note.is_deleted,
|
8597 |
+
dateCreatedGmt = note.date_created_gmt,
|
8598 |
+
status = note.status;
|
8599 |
+
|
8600 |
+
if (!isDeleted) {
|
8601 |
+
var unread = !lastRead || !dateCreatedGmt || new Date(dateCreatedGmt + 'Z').getTime() > lastRead;
|
8602 |
+
return unread && status === 'unactioned';
|
8603 |
+
}
|
8604 |
+
});
|
8605 |
+
return unreadNotes.length;
|
8606 |
+
}
|
8607 |
/**
|
8608 |
+
* Verifies if there are any valid notes in the list.
|
8609 |
*
|
8610 |
+
* @param {Array} notes - List of notes, contains read and unread notes.
|
8611 |
+
* @return {boolean} - Whether there are valid notes or not.
|
|
|
8612 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8613 |
|
8614 |
+
function hasValidNotes(notes) {
|
8615 |
+
var validNotes = Object(lodash__WEBPACK_IMPORTED_MODULE_0__["filter"])(notes, function (note) {
|
8616 |
+
var isDeleted = note.is_deleted;
|
8617 |
+
return !isDeleted;
|
8618 |
+
});
|
8619 |
+
return validNotes.length > 0;
|
8620 |
+
}
|
8621 |
|
8622 |
+
/***/ }),
|
|
|
|
|
|
|
|
|
|
|
|
|
8623 |
|
8624 |
+
/***/ 198:
|
8625 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
8626 |
|
8627 |
+
"use strict";
|
8628 |
+
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36);
|
8629 |
+
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55);
|
8630 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
|
8631 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
|
8632 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8633 |
|
|
|
|
|
|
|
|
|
8634 |
|
8635 |
+
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; }
|
|
|
|
|
|
|
8636 |
|
8637 |
+
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) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(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; }
|
|
|
8638 |
|
8639 |
/**
|
8640 |
+
* WordPress dependencies
|
|
|
|
|
|
|
|
|
8641 |
*/
|
|
|
|
|
|
|
8642 |
|
8643 |
+
/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8644 |
|
8645 |
/**
|
8646 |
+
* Return an SVG icon.
|
8647 |
*
|
8648 |
+
* @param {IconProps} props icon is the SVG component to render
|
8649 |
+
* size is a number specifiying the icon size in pixels
|
8650 |
+
* Other props will be passed to wrapped SVG component
|
8651 |
+
*
|
8652 |
+
* @return {JSX.Element} Icon component
|
8653 |
*/
|
8654 |
+
|
8655 |
+
function Icon(_ref) {
|
8656 |
+
var icon = _ref.icon,
|
8657 |
+
_ref$size = _ref.size,
|
8658 |
+
size = _ref$size === void 0 ? 24 : _ref$size,
|
8659 |
+
props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]);
|
8660 |
+
|
8661 |
+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({
|
8662 |
+
width: size,
|
8663 |
+
height: size
|
8664 |
+
}, props));
|
8665 |
}
|
8666 |
|
8667 |
+
/* harmony default export */ __webpack_exports__["a"] = (Icon);
|
8668 |
+
//# sourceMappingURL=index.js.map
|
|
|
|
|
|
|
|
|
8669 |
|
8670 |
+
/***/ }),
|
|
|
|
|
|
|
|
|
|
|
8671 |
|
8672 |
+
/***/ 2:
|
8673 |
+
/***/ (function(module, exports) {
|
|
|
|
|
|
|
8674 |
|
8675 |
+
(function() { module.exports = this["wp"]["i18n"]; }());
|
|
|
8676 |
|
8677 |
+
/***/ }),
|
|
|
8678 |
|
8679 |
+
/***/ 20:
|
8680 |
+
/***/ (function(module, exports) {
|
8681 |
|
8682 |
+
(function() { module.exports = this["wp"]["compose"]; }());
|
|
|
8683 |
|
8684 |
+
/***/ }),
|
|
|
|
|
|
|
|
|
|
|
8685 |
|
8686 |
+
/***/ 21:
|
8687 |
+
/***/ (function(module, exports) {
|
|
|
|
|
|
|
8688 |
|
8689 |
+
(function() { module.exports = this["wc"]["navigation"]; }());
|
|
|
|
|
|
|
8690 |
|
8691 |
+
/***/ }),
|
|
|
|
|
|
|
|
|
|
|
|
|
8692 |
|
8693 |
+
/***/ 22:
|
8694 |
+
/***/ (function(module, exports) {
|
8695 |
|
8696 |
+
(function() { module.exports = this["wc"]["data"]; }());
|
|
|
|
|
8697 |
|
8698 |
+
/***/ }),
|
|
|
8699 |
|
8700 |
+
/***/ 23:
|
8701 |
+
/***/ (function(module, exports) {
|
8702 |
|
8703 |
+
(function() { module.exports = this["wp"]["url"]; }());
|
8704 |
|
8705 |
+
/***/ }),
|
|
|
|
|
8706 |
|
8707 |
+
/***/ 24:
|
8708 |
+
/***/ (function(module, exports) {
|
8709 |
+
|
8710 |
+
function _extends() {
|
8711 |
+
module.exports = _extends = Object.assign || function (target) {
|
8712 |
+
for (var i = 1; i < arguments.length; i++) {
|
8713 |
+
var source = arguments[i];
|
8714 |
+
|
8715 |
+
for (var key in source) {
|
8716 |
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
8717 |
+
target[key] = source[key];
|
8718 |
+
}
|
8719 |
+
}
|
8720 |
}
|
8721 |
|
8722 |
+
return target;
|
8723 |
+
};
|
|
|
8724 |
|
8725 |
+
return _extends.apply(this, arguments);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8726 |
}
|
8727 |
|
8728 |
+
module.exports = _extends;
|
8729 |
+
|
8730 |
+
/***/ }),
|
8731 |
+
|
8732 |
+
/***/ 25:
|
8733 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
8734 |
+
|
8735 |
+
"use strict";
|
8736 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ADMIN_URL; });
|
8737 |
+
/* unused harmony export COUNTRIES */
|
8738 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return CURRENCY; });
|
8739 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return LOCALE; });
|
8740 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return ORDER_STATUSES; });
|
8741 |
+
/* unused harmony export SITE_TITLE */
|
8742 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return WC_ASSET_URL; });
|
8743 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getSetting; });
|
8744 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setSetting; });
|
8745 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getAdminLink; });
|
8746 |
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
|
8747 |
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
|
8748 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
8749 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
|
8750 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8751 |
|
8752 |
/**
|
8753 |
+
* External dependencies
|
|
|
|
|
|
|
8754 |
*/
|
8755 |
+
// Remove mutable data from settings object to prevent access. Data stores should be used instead.
|
8756 |
+
|
8757 |
+
var mutableSources = ['wcAdminSettings', 'preloadSettings'];
|
8758 |
+
var settings = (typeof wcSettings === "undefined" ? "undefined" : _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(wcSettings)) === 'object' ? wcSettings : {};
|
8759 |
+
var SOURCE = Object.keys(settings).reduce(function (source, key) {
|
8760 |
+
if (!mutableSources.includes(key)) {
|
8761 |
+
source[key] = settings[key];
|
8762 |
+
}
|
8763 |
|
8764 |
+
return source;
|
8765 |
+
}, {});
|
8766 |
+
var ADMIN_URL = SOURCE.adminUrl;
|
8767 |
+
var COUNTRIES = SOURCE.countries;
|
8768 |
+
var CURRENCY = SOURCE.currency;
|
8769 |
+
var LOCALE = SOURCE.locale;
|
8770 |
+
var ORDER_STATUSES = SOURCE.orderStatuses;
|
8771 |
+
var SITE_TITLE = SOURCE.siteTitle;
|
8772 |
+
var WC_ASSET_URL = SOURCE.wcAssetUrl;
|
8773 |
/**
|
8774 |
+
* Retrieves a setting value from the setting state.
|
8775 |
*
|
8776 |
+
* @param {string} name The identifier for the setting.
|
8777 |
+
* @param {*} [fallback=false] The value to use as a fallback
|
8778 |
+
* if the setting is not in the
|
8779 |
+
* state.
|
8780 |
+
* @param {Function} [filter=( val ) => val] A callback for filtering the
|
8781 |
+
* value before it's returned.
|
8782 |
+
* Receives both the found value
|
8783 |
+
* (if it exists for the key) and
|
8784 |
+
* the provided fallback arg.
|
8785 |
+
*
|
8786 |
+
* @return {*} The value present in the settings state for the given
|
8787 |
+
* name.
|
8788 |
*/
|
|
|
|
|
|
|
8789 |
|
8790 |
+
function getSetting(name) {
|
8791 |
+
var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
8792 |
+
var filter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function (val) {
|
8793 |
+
return val;
|
8794 |
+
};
|
8795 |
+
|
8796 |
+
if (mutableSources.includes(name)) {
|
8797 |
+
throw new Error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Mutable settings should be accessed via data store.'));
|
|
|
|
|
|
|
|
|
|
|
8798 |
}
|
8799 |
|
8800 |
+
var value = SOURCE.hasOwnProperty(name) ? SOURCE[name] : fallback;
|
8801 |
+
return filter(value, fallback);
|
8802 |
}
|
|
|
8803 |
/**
|
8804 |
+
* Sets a value to a property on the settings state.
|
8805 |
*
|
8806 |
+
* NOTE: This feature is to be removed in favour of data stores when a full migration
|
8807 |
+
* is complete.
|
8808 |
+
*
|
8809 |
+
* @deprecated
|
8810 |
+
*
|
8811 |
+
* @param {string} name The setting property key for the
|
8812 |
+
* setting being mutated.
|
8813 |
+
* @param {*} value The value to set.
|
8814 |
+
* @param {Function} [filter=( val ) => val] Allows for providing a callback
|
8815 |
+
* to sanitize the setting (eg.
|
8816 |
+
* ensure it's a number)
|
8817 |
*/
|
|
|
|
|
8818 |
|
8819 |
+
function setSetting(name, value) {
|
8820 |
+
var filter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function (val) {
|
8821 |
+
return val;
|
8822 |
+
};
|
8823 |
|
8824 |
+
if (mutableSources.includes(name)) {
|
8825 |
+
throw new Error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Mutable settings should be mutated via data store.'));
|
8826 |
+
}
|
8827 |
|
8828 |
+
SOURCE[name] = filter(value);
|
8829 |
}
|
|
|
8830 |
/**
|
8831 |
+
* Returns a string with the site's wp-admin URL appended. JS version of `admin_url`.
|
8832 |
*
|
8833 |
+
* @param {string} path Relative path.
|
8834 |
+
* @return {string} Full admin URL.
|
|
|
|
|
8835 |
*/
|
8836 |
+
|
8837 |
+
function getAdminLink(path) {
|
8838 |
+
return (ADMIN_URL || '') + path;
|
8839 |
}
|
8840 |
|
8841 |
+
/***/ }),
|
8842 |
+
|
8843 |
+
/***/ 26:
|
8844 |
+
/***/ (function(module, exports) {
|
8845 |
+
|
8846 |
+
(function() { module.exports = this["wp"]["apiFetch"]; }());
|
8847 |
+
|
8848 |
+
/***/ }),
|
8849 |
+
|
8850 |
+
/***/ 27:
|
8851 |
+
/***/ (function(module, exports) {
|
8852 |
+
|
8853 |
+
(function() { module.exports = this["wc"]["tracks"]; }());
|
8854 |
+
|
8855 |
+
/***/ }),
|
8856 |
+
|
8857 |
+
/***/ 278:
|
8858 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
8859 |
+
|
8860 |
+
"use strict";
|
8861 |
+
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
8862 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
8863 |
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
8864 |
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
8865 |
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
8866 |
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
8867 |
+
/* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(140);
|
8868 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
|
8869 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
|
8870 |
+
/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(279);
|
8871 |
+
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4);
|
8872 |
+
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__);
|
8873 |
+
|
8874 |
+
|
8875 |
/**
|
8876 |
+
* External dependencies
|
|
|
|
|
|
|
|
|
|
|
8877 |
*/
|
|
|
|
|
|
|
|
|
|
|
8878 |
|
|
|
8879 |
|
|
|
|
|
|
|
8880 |
|
|
|
|
|
|
|
8881 |
|
|
|
|
|
|
|
|
|
|
|
8882 |
|
|
|
8883 |
|
|
|
|
|
|
|
8884 |
|
8885 |
+
var NOTICE_TIMEOUT = 10000;
|
8886 |
+
/** @typedef {import('@wordpress/element').WPElement} WPElement */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8887 |
|
8888 |
+
/**
|
8889 |
+
* Custom hook which announces the message with the given politeness, if a
|
8890 |
+
* valid message is provided.
|
8891 |
+
*
|
8892 |
+
* @param {string|WPElement} [message] Message to announce.
|
8893 |
+
* @param {'polite'|'assertive'} politeness Politeness to announce.
|
8894 |
+
*/
|
8895 |
+
|
8896 |
+
function useSpokenMessage(message, politeness) {
|
8897 |
+
var spokenMessage = typeof message === 'string' ? message : Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["renderToString"])(message);
|
8898 |
+
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () {
|
8899 |
+
if (spokenMessage) {
|
8900 |
+
Object(_wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__[/* speak */ "a"])(spokenMessage, politeness);
|
8901 |
}
|
8902 |
+
}, [spokenMessage, politeness]);
|
8903 |
+
}
|
8904 |
|
8905 |
+
function Snackbar(_ref, ref) {
|
8906 |
+
var className = _ref.className,
|
8907 |
+
children = _ref.children,
|
8908 |
+
_ref$spokenMessage = _ref.spokenMessage,
|
8909 |
+
spokenMessage = _ref$spokenMessage === void 0 ? children : _ref$spokenMessage,
|
8910 |
+
_ref$politeness = _ref.politeness,
|
8911 |
+
politeness = _ref$politeness === void 0 ? 'polite' : _ref$politeness,
|
8912 |
+
_ref$actions = _ref.actions,
|
8913 |
+
actions = _ref$actions === void 0 ? [] : _ref$actions,
|
8914 |
+
_ref$onRemove = _ref.onRemove,
|
8915 |
+
onRemove = _ref$onRemove === void 0 ? lodash__WEBPACK_IMPORTED_MODULE_1__["noop"] : _ref$onRemove,
|
8916 |
+
_ref$icon = _ref.icon,
|
8917 |
+
icon = _ref$icon === void 0 ? null : _ref$icon,
|
8918 |
+
_ref$explicitDismiss = _ref.explicitDismiss,
|
8919 |
+
explicitDismiss = _ref$explicitDismiss === void 0 ? false : _ref$explicitDismiss,
|
8920 |
+
_ref$onDismiss = _ref.onDismiss,
|
8921 |
+
onDismiss = _ref$onDismiss === void 0 ? null : _ref$onDismiss;
|
8922 |
+
onDismiss = onDismiss || lodash__WEBPACK_IMPORTED_MODULE_1__["noop"];
|
8923 |
|
8924 |
+
function dismissMe(event) {
|
8925 |
+
if (event && event.preventDefault) {
|
8926 |
+
event.preventDefault();
|
8927 |
+
}
|
|
|
|
|
|
|
8928 |
|
8929 |
+
onDismiss();
|
8930 |
+
onRemove();
|
|
|
|
|
|
|
|
|
8931 |
}
|
8932 |
|
8933 |
+
function onActionClick(event, onClick) {
|
8934 |
+
event.stopPropagation();
|
8935 |
+
onRemove();
|
8936 |
|
8937 |
+
if (onClick) {
|
8938 |
+
onClick(event);
|
8939 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8940 |
}
|
8941 |
|
8942 |
+
useSpokenMessage(spokenMessage, politeness); // Only set up the timeout dismiss if we're not explicitly dismissing.
|
8943 |
|
8944 |
+
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () {
|
8945 |
+
var timeoutHandle = setTimeout(function () {
|
8946 |
+
if (!explicitDismiss) {
|
8947 |
+
onDismiss();
|
8948 |
+
onRemove();
|
8949 |
+
}
|
8950 |
+
}, NOTICE_TIMEOUT);
|
8951 |
+
return function () {
|
8952 |
+
return clearTimeout(timeoutHandle);
|
8953 |
+
};
|
8954 |
+
}, [explicitDismiss, onDismiss, onRemove]);
|
8955 |
+
var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, 'components-snackbar', {
|
8956 |
+
'components-snackbar-explicit-dismiss': !!explicitDismiss
|
8957 |
+
});
|
8958 |
|
8959 |
+
if (actions && actions.length > 1) {
|
8960 |
+
// we need to inform developers that snackbar only accepts 1 action
|
8961 |
+
typeof process !== "undefined" && process.env && "production" !== "production" ? Object(_wordpress_warning__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])('Snackbar can only have 1 action, use Notice if your message require many messages') : void 0; // return first element only while keeping it inside an array
|
8962 |
+
|
8963 |
+
actions = [actions[0]];
|
8964 |
}
|
8965 |
|
8966 |
+
var snackbarContentClassnames = classnames__WEBPACK_IMPORTED_MODULE_2___default()('components-snackbar__content', {
|
8967 |
+
'components-snackbar__content-with-icon': !!icon
|
8968 |
+
});
|
8969 |
+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
|
8970 |
+
ref: ref,
|
8971 |
+
className: classes,
|
8972 |
+
onClick: !explicitDismiss ? dismissMe : lodash__WEBPACK_IMPORTED_MODULE_1__["noop"],
|
8973 |
+
tabIndex: "0",
|
8974 |
+
role: !explicitDismiss ? 'button' : '',
|
8975 |
+
onKeyPress: !explicitDismiss ? dismissMe : lodash__WEBPACK_IMPORTED_MODULE_1__["noop"],
|
8976 |
+
"aria-label": !explicitDismiss ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Dismiss this notice') : ''
|
8977 |
+
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
|
8978 |
+
className: snackbarContentClassnames
|
8979 |
+
}, icon && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
|
8980 |
+
className: "components-snackbar__icon"
|
8981 |
+
}, icon), children, actions.map(function (_ref2, index) {
|
8982 |
+
var label = _ref2.label,
|
8983 |
+
_onClick = _ref2.onClick,
|
8984 |
+
url = _ref2.url;
|
8985 |
+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__["Button"], {
|
8986 |
+
key: index,
|
8987 |
+
href: url,
|
8988 |
+
isTertiary: true,
|
8989 |
+
onClick: function onClick(event) {
|
8990 |
+
return onActionClick(event, _onClick);
|
8991 |
+
},
|
8992 |
+
className: "components-snackbar__action"
|
8993 |
+
}, label);
|
8994 |
+
}), explicitDismiss && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("span", {
|
8995 |
+
role: "button",
|
8996 |
+
"aria-label": "Dismiss this notice",
|
8997 |
+
tabIndex: "0",
|
8998 |
+
className: "components-snackbar__dismiss-button",
|
8999 |
+
onClick: dismissMe,
|
9000 |
+
onKeyPress: dismissMe
|
9001 |
+
}, "\u2715")));
|
9002 |
}
|
9003 |
|
9004 |
+
/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(Snackbar));
|
9005 |
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(125)))
|
9006 |
|
9007 |
/***/ }),
|
9008 |
|
9009 |
+
/***/ 279:
|
9010 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9011 |
|
9012 |
"use strict";
|
9013 |
+
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return warning; });
|
9014 |
+
function isDev() {
|
9015 |
+
return typeof process !== 'undefined' && process.env && "production" !== 'production';
|
9016 |
+
}
|
|
|
|
|
|
|
|
|
9017 |
/**
|
9018 |
+
* Shows a warning with `message` if environment is not `production`.
|
9019 |
*
|
9020 |
+
* @param {string} message Message to show in the warning.
|
9021 |
+
*
|
9022 |
+
* @example
|
9023 |
+
* ```js
|
9024 |
+
* import warning from '@wordpress/warning';
|
9025 |
+
*
|
9026 |
+
* function MyComponent( props ) {
|
9027 |
+
* if ( ! props.title ) {
|
9028 |
+
* warning( '`props.title` was not passed' );
|
9029 |
+
* }
|
9030 |
+
* ...
|
9031 |
+
* }
|
9032 |
+
* ```
|
9033 |
*/
|
9034 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9035 |
|
9036 |
+
function warning(message) {
|
9037 |
+
if (!isDev()) {
|
9038 |
+
return;
|
9039 |
+
} // eslint-disable-next-line no-console
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9040 |
|
9041 |
+
|
9042 |
+
console.warn(message); // Throwing an error and catching it immediately to improve debugging
|
9043 |
+
// A consumer can use 'pause on caught exceptions'
|
9044 |
+
// https://github.com/facebook/react/issues/4216
|
9045 |
+
|
9046 |
+
try {
|
9047 |
+
throw Error(message);
|
9048 |
+
} catch (x) {// do nothing
|
9049 |
+
}
|
9050 |
}
|
9051 |
+
//# sourceMappingURL=index.js.map
|
9052 |
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(125)))
|
9053 |
|
9054 |
/***/ }),
|
9055 |
|
9056 |
+
/***/ 280:
|
9057 |
/***/ (function(module, exports) {
|
9058 |
|
9059 |
+
(function() { module.exports = this["wc"]["customerEffortScore"]; }());
|
9060 |
|
9061 |
/***/ }),
|
9062 |
|
9063 |
+
/***/ 287:
|
9064 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9065 |
+
|
9066 |
+
"use strict";
|
9067 |
+
|
9068 |
+
// EXPORTS
|
9069 |
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ customer_effort_score_tracks_container; });
|
9070 |
+
|
9071 |
+
// UNUSED EXPORTS: CustomerEffortScoreTracks
|
9072 |
+
|
9073 |
+
// NAMESPACE OBJECT: ./client/customer-effort-score-tracks/data/actions.js
|
9074 |
+
var actions_namespaceObject = {};
|
9075 |
+
__webpack_require__.r(actions_namespaceObject);
|
9076 |
+
__webpack_require__.d(actions_namespaceObject, "setCesSurveyQueue", function() { return setCesSurveyQueue; });
|
9077 |
+
__webpack_require__.d(actions_namespaceObject, "addCesSurvey", function() { return addCesSurvey; });
|
9078 |
+
__webpack_require__.d(actions_namespaceObject, "addCesSurveyForAnalytics", function() { return addCesSurveyForAnalytics; });
|
9079 |
+
|
9080 |
+
// NAMESPACE OBJECT: ./client/customer-effort-score-tracks/data/resolvers.js
|
9081 |
+
var resolvers_namespaceObject = {};
|
9082 |
+
__webpack_require__.r(resolvers_namespaceObject);
|
9083 |
+
__webpack_require__.d(resolvers_namespaceObject, "getCesSurveyQueue", function() { return resolvers_getCesSurveyQueue; });
|
9084 |
+
|
9085 |
+
// NAMESPACE OBJECT: ./client/customer-effort-score-tracks/data/selectors.js
|
9086 |
+
var selectors_namespaceObject = {};
|
9087 |
+
__webpack_require__.r(selectors_namespaceObject);
|
9088 |
+
__webpack_require__.d(selectors_namespaceObject, "getCesSurveyQueue", function() { return selectors_getCesSurveyQueue; });
|
9089 |
+
|
9090 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
|
9091 |
+
var toConsumableArray = __webpack_require__(19);
|
9092 |
+
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
|
9093 |
+
|
9094 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
|
9095 |
+
var defineProperty = __webpack_require__(5);
|
9096 |
+
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
9097 |
+
|
9098 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
9099 |
+
var slicedToArray = __webpack_require__(18);
|
9100 |
+
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
9101 |
+
|
9102 |
+
// EXTERNAL MODULE: external {"this":["wp","element"]}
|
9103 |
+
var external_this_wp_element_ = __webpack_require__(0);
|
9104 |
+
|
9105 |
+
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
9106 |
+
var prop_types = __webpack_require__(1);
|
9107 |
+
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
9108 |
+
|
9109 |
+
// EXTERNAL MODULE: external {"this":["wc","tracks"]}
|
9110 |
+
var external_this_wc_tracks_ = __webpack_require__(27);
|
9111 |
+
|
9112 |
+
// EXTERNAL MODULE: external {"this":["wc","customerEffortScore"]}
|
9113 |
+
var external_this_wc_customerEffortScore_ = __webpack_require__(280);
|
9114 |
+
var external_this_wc_customerEffortScore_default = /*#__PURE__*/__webpack_require__.n(external_this_wc_customerEffortScore_);
|
9115 |
+
|
9116 |
+
// EXTERNAL MODULE: external {"this":["wp","compose"]}
|
9117 |
+
var external_this_wp_compose_ = __webpack_require__(20);
|
9118 |
+
|
9119 |
+
// EXTERNAL MODULE: external {"this":["wp","data"]}
|
9120 |
+
var external_this_wp_data_ = __webpack_require__(11);
|
9121 |
+
|
9122 |
+
// EXTERNAL MODULE: external {"this":["wc","data"]}
|
9123 |
+
var external_this_wc_data_ = __webpack_require__(22);
|
9124 |
+
|
9125 |
+
// EXTERNAL MODULE: external {"this":["wp","i18n"]}
|
9126 |
+
var external_this_wp_i18n_ = __webpack_require__(2);
|
9127 |
+
|
9128 |
+
// CONCATENATED MODULE: ./client/customer-effort-score-tracks/customer-effort-score-tracks.js
|
9129 |
+
|
9130 |
+
|
9131 |
+
|
9132 |
+
|
9133 |
+
|
9134 |
+
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; }
|
9135 |
+
|
9136 |
+
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; }
|
9137 |
+
|
9138 |
+
/**
|
9139 |
+
* External dependencies
|
9140 |
+
*/
|
9141 |
+
|
9142 |
+
|
9143 |
|
|
|
9144 |
|
9145 |
|
|
|
|
|
|
|
9146 |
|
|
|
|
|
|
|
9147 |
|
9148 |
|
9149 |
+
var SHOWN_FOR_ACTIONS_OPTION_NAME = 'woocommerce_ces_shown_for_actions';
|
9150 |
+
var ADMIN_INSTALL_TIMESTAMP_OPTION_NAME = 'woocommerce_admin_install_timestamp';
|
9151 |
+
var ALLOW_TRACKING_OPTION_NAME = 'woocommerce_allow_tracking';
|
9152 |
/**
|
9153 |
+
* A CustomerEffortScore wrapper that uses tracks to track the selected
|
9154 |
+
* customer effort score.
|
9155 |
+
*
|
9156 |
+
* @param {Object} props Component props.
|
9157 |
+
* @param {string} props.action The action name sent to Tracks.
|
9158 |
+
* @param {Object} props.trackProps Additional props sent to Tracks.
|
9159 |
+
* @param {string} props.label The label displayed in the modal.
|
9160 |
+
* @param {string} props.onSubmitLabel The label displayed upon survey submission.
|
9161 |
+
* @param {Array} props.cesShownForActions The array of actions that the CES modal has been shown for.
|
9162 |
+
* @param {boolean} props.allowTracking Whether tracking is allowed or not.
|
9163 |
+
* @param {boolean} props.resolving Are values still being resolved.
|
9164 |
+
* @param {number} props.storeAgeInWeeks The age of the store in weeks.
|
9165 |
+
* @param {Function} props.updateOptions Function to update options.
|
9166 |
+
* @param {Function} props.createNotice Function to create a snackbar.
|
9167 |
*/
|
9168 |
|
9169 |
+
function CustomerEffortScoreTracks(_ref) {
|
9170 |
+
var action = _ref.action,
|
9171 |
+
trackProps = _ref.trackProps,
|
9172 |
+
label = _ref.label,
|
9173 |
+
_ref$onSubmitLabel = _ref.onSubmitLabel,
|
9174 |
+
onSubmitLabel = _ref$onSubmitLabel === void 0 ? Object(external_this_wp_i18n_["__"])('Thank you for your feedback!', 'woocommerce-admin') : _ref$onSubmitLabel,
|
9175 |
+
cesShownForActions = _ref.cesShownForActions,
|
9176 |
+
allowTracking = _ref.allowTracking,
|
9177 |
+
resolving = _ref.resolving,
|
9178 |
+
storeAgeInWeeks = _ref.storeAgeInWeeks,
|
9179 |
+
updateOptions = _ref.updateOptions,
|
9180 |
+
createNotice = _ref.createNotice;
|
9181 |
+
|
9182 |
+
var _useState = Object(external_this_wp_element_["useState"])(false),
|
9183 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
9184 |
+
modalShown = _useState2[0],
|
9185 |
+
setModalShown = _useState2[1];
|
9186 |
|
9187 |
+
if (resolving) {
|
9188 |
+
return null;
|
9189 |
+
} // Don't show if tracking is disallowed.
|
|
|
|
|
9190 |
|
|
|
9191 |
|
9192 |
+
if (!allowTracking) {
|
9193 |
+
return null;
|
9194 |
+
} // We only want to return null early if the modal was already shown
|
9195 |
+
// for this action *before* this component was initially instantiated.
|
9196 |
+
//
|
9197 |
+
// We want to make sure we still render CustomerEffortScore below
|
9198 |
+
// (we don't want to return null early), if the modal was shown for this
|
9199 |
+
// instantiation, so that the component doesn't go away while we are
|
9200 |
+
// still showing it.
|
9201 |
|
|
|
9202 |
|
9203 |
+
if (cesShownForActions.indexOf(action) !== -1 && !modalShown) {
|
9204 |
+
return null;
|
9205 |
+
}
|
9206 |
|
9207 |
+
var onNoticeShown = function onNoticeShown() {
|
9208 |
+
Object(external_this_wc_tracks_["recordEvent"])('ces_snackbar_view', _objectSpread({
|
9209 |
+
action: action,
|
9210 |
+
store_age: storeAgeInWeeks
|
9211 |
+
}, trackProps));
|
9212 |
+
};
|
9213 |
|
9214 |
+
var addActionToShownOption = function addActionToShownOption() {
|
9215 |
+
updateOptions(defineProperty_default()({}, SHOWN_FOR_ACTIONS_OPTION_NAME, [action].concat(toConsumableArray_default()(cesShownForActions))));
|
9216 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9217 |
|
9218 |
+
var onNoticeDismissed = function onNoticeDismissed() {
|
9219 |
+
Object(external_this_wc_tracks_["recordEvent"])('ces_snackbar_dismiss', _objectSpread({
|
9220 |
+
action: action,
|
9221 |
+
store_age: storeAgeInWeeks
|
9222 |
+
}, trackProps));
|
9223 |
+
addActionToShownOption();
|
9224 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
9225 |
|
9226 |
+
var onModalShown = function onModalShown() {
|
9227 |
+
setModalShown(true);
|
9228 |
+
Object(external_this_wc_tracks_["recordEvent"])('ces_view', _objectSpread({
|
9229 |
+
action: action,
|
9230 |
+
store_age: storeAgeInWeeks
|
9231 |
+
}, trackProps));
|
9232 |
+
addActionToShownOption();
|
9233 |
+
};
|
9234 |
|
9235 |
+
var recordScore = function recordScore(score, comments) {
|
9236 |
+
Object(external_this_wc_tracks_["recordEvent"])('ces_feedback', _objectSpread({
|
9237 |
+
action: action,
|
9238 |
+
score: score,
|
9239 |
+
comments: comments || '',
|
9240 |
+
store_age: storeAgeInWeeks
|
9241 |
+
}, trackProps));
|
9242 |
+
createNotice('success', onSubmitLabel);
|
9243 |
+
};
|
9244 |
|
9245 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wc_customerEffortScore_default.a, {
|
9246 |
+
recordScoreCallback: recordScore,
|
9247 |
+
label: label,
|
9248 |
+
onNoticeShownCallback: onNoticeShown,
|
9249 |
+
onNoticeDismissedCallback: onNoticeDismissed,
|
9250 |
+
onModalShownCallback: onModalShown,
|
9251 |
+
icon: Object(external_this_wp_element_["createElement"])("span", {
|
9252 |
+
style: {
|
9253 |
+
height: 21,
|
9254 |
+
width: 21
|
9255 |
+
},
|
9256 |
+
role: "img",
|
9257 |
+
"aria-label": Object(external_this_wp_i18n_["__"])('Pencil icon', 'woocommerce-admin')
|
9258 |
+
}, "\u270F\uFE0F")
|
9259 |
+
});
|
9260 |
}
|
9261 |
|
9262 |
+
CustomerEffortScoreTracks.propTypes = {
|
9263 |
+
/**
|
9264 |
+
* The action name sent to Tracks.
|
9265 |
+
*/
|
9266 |
+
action: prop_types_default.a.string.isRequired,
|
9267 |
|
9268 |
+
/**
|
9269 |
+
* Additional props sent to Tracks.
|
9270 |
+
*/
|
9271 |
+
trackProps: prop_types_default.a.object,
|
9272 |
|
9273 |
+
/**
|
9274 |
+
* The label displayed in the modal.
|
9275 |
+
*/
|
9276 |
+
label: prop_types_default.a.string.isRequired,
|
9277 |
|
9278 |
+
/**
|
9279 |
+
* The label for the snackbar that appears upon survey submission.
|
9280 |
+
*/
|
9281 |
+
onSubmitLabel: prop_types_default.a.string,
|
9282 |
|
9283 |
+
/**
|
9284 |
+
* The array of actions that the CES modal has been shown for.
|
9285 |
+
*/
|
9286 |
+
cesShownForActions: prop_types_default.a.arrayOf(prop_types_default.a.string).isRequired,
|
9287 |
|
9288 |
+
/**
|
9289 |
+
* Whether tracking is allowed or not.
|
9290 |
+
*/
|
9291 |
+
allowTracking: prop_types_default.a.bool,
|
9292 |
|
9293 |
+
/**
|
9294 |
+
* Whether props are still being resolved.
|
9295 |
+
*/
|
9296 |
+
resolving: prop_types_default.a.bool.isRequired,
|
9297 |
|
9298 |
+
/**
|
9299 |
+
* The age of the store in weeks.
|
9300 |
+
*/
|
9301 |
+
storeAgeInWeeks: prop_types_default.a.number,
|
|
|
|
|
9302 |
|
9303 |
+
/**
|
9304 |
+
* Function to update options.
|
9305 |
+
*/
|
9306 |
+
updateOptions: prop_types_default.a.func,
|
9307 |
|
9308 |
+
/**
|
9309 |
+
* Function to create a snackbar
|
9310 |
+
*/
|
9311 |
+
createNotice: prop_types_default.a.func
|
9312 |
+
};
|
9313 |
|
9314 |
+
function getStoreAgeInWeeks(adminInstallTimestamp) {
|
9315 |
+
if (adminInstallTimestamp === 0) {
|
9316 |
+
return null;
|
9317 |
+
} // Date.now() is ms since Unix epoch, adminInstallTimestamp is in
|
9318 |
+
// seconds since Unix epoch.
|
9319 |
|
|
|
|
|
9320 |
|
9321 |
+
var storeAgeInMs = Date.now() - adminInstallTimestamp * 1000;
|
9322 |
+
var storeAgeInWeeks = Math.round(storeAgeInMs / external_this_wc_data_["WEEK"]);
|
9323 |
+
return storeAgeInWeeks;
|
9324 |
+
}
|
9325 |
|
9326 |
+
/* harmony default export */ var customer_effort_score_tracks = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
|
9327 |
+
var _select = select(external_this_wc_data_["OPTIONS_STORE_NAME"]),
|
9328 |
+
getOption = _select.getOption,
|
9329 |
+
isResolving = _select.isResolving;
|
9330 |
|
9331 |
+
var cesShownForActions = getOption(SHOWN_FOR_ACTIONS_OPTION_NAME) || [];
|
9332 |
+
var adminInstallTimestamp = getOption(ADMIN_INSTALL_TIMESTAMP_OPTION_NAME) || 0;
|
9333 |
+
var storeAgeInWeeks = getStoreAgeInWeeks(adminInstallTimestamp);
|
9334 |
+
var allowTrackingOption = getOption(ALLOW_TRACKING_OPTION_NAME) || 'no';
|
9335 |
+
var allowTracking = allowTrackingOption === 'yes';
|
9336 |
+
var resolving = isResolving('getOption', [SHOWN_FOR_ACTIONS_OPTION_NAME]) || storeAgeInWeeks === null || isResolving('getOption', [ADMIN_INSTALL_TIMESTAMP_OPTION_NAME]) || isResolving('getOption', [ALLOW_TRACKING_OPTION_NAME]);
|
9337 |
+
return {
|
9338 |
+
cesShownForActions: cesShownForActions,
|
9339 |
+
allowTracking: allowTracking,
|
9340 |
+
storeAgeInWeeks: storeAgeInWeeks,
|
9341 |
+
resolving: resolving
|
9342 |
+
};
|
9343 |
+
}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
|
9344 |
+
var _dispatch = dispatch(external_this_wc_data_["OPTIONS_STORE_NAME"]),
|
9345 |
+
updateOptions = _dispatch.updateOptions;
|
9346 |
|
9347 |
+
var _dispatch2 = dispatch('core/notices'),
|
9348 |
+
createNotice = _dispatch2.createNotice;
|
9349 |
|
9350 |
+
return {
|
9351 |
+
updateOptions: updateOptions,
|
9352 |
+
createNotice: createNotice
|
9353 |
+
};
|
9354 |
+
}))(CustomerEffortScoreTracks));
|
9355 |
+
// EXTERNAL MODULE: ./client/customer-effort-score-tracks/data/constants.js
|
9356 |
+
var constants = __webpack_require__(76);
|
9357 |
|
9358 |
+
// EXTERNAL MODULE: external {"this":["wp","dataControls"]}
|
9359 |
+
var external_this_wp_dataControls_ = __webpack_require__(17);
|
9360 |
|
9361 |
+
// CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/action-types.js
|
9362 |
+
var TYPES = {
|
9363 |
+
SET_CES_SURVEY_QUEUE: 'SET_CES_SURVEY_QUEUE',
|
9364 |
+
ADD_CES_SURVEY: 'ADD_CES_SURVEY'
|
9365 |
+
};
|
9366 |
+
/* harmony default export */ var action_types = (TYPES);
|
9367 |
+
// CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/actions.js
|
9368 |
+
/**
|
9369 |
+
* External dependencies
|
9370 |
+
*/
|
9371 |
|
9372 |
+
/**
|
9373 |
+
* Internal dependencies
|
9374 |
+
*/
|
9375 |
|
|
|
|
|
9376 |
|
9377 |
+
/**
|
9378 |
+
* Initialize the state
|
9379 |
+
*
|
9380 |
+
* @param {Object} queue initial queue
|
9381 |
+
*/
|
9382 |
|
9383 |
+
function setCesSurveyQueue(queue) {
|
9384 |
+
return {
|
9385 |
+
type: action_types.SET_CES_SURVEY_QUEUE,
|
9386 |
+
queue: queue
|
9387 |
+
};
|
9388 |
+
}
|
9389 |
+
/**
|
9390 |
+
* Add a new CES track to the state.
|
9391 |
+
*
|
9392 |
+
* @param {string} action action name for the survey
|
9393 |
+
* @param {string} label label for the snackback
|
9394 |
+
* @param {string} pageNow value of window.pagenow
|
9395 |
+
* @param {string} adminPage value of window.adminpage
|
9396 |
+
* @param {string} onsubmit_label label for the snackback onsubmit
|
9397 |
+
*/
|
9398 |
|
9399 |
+
function addCesSurvey(action, label) {
|
9400 |
+
var pageNow = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : window.pagenow;
|
9401 |
+
var adminPage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : window.adminpage;
|
9402 |
+
var onsubmit_label = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;
|
9403 |
+
return {
|
9404 |
+
type: action_types.ADD_CES_SURVEY,
|
9405 |
+
action: action,
|
9406 |
+
label: label,
|
9407 |
+
pageNow: pageNow,
|
9408 |
+
adminPage: adminPage,
|
9409 |
+
onsubmit_label: onsubmit_label
|
9410 |
+
};
|
9411 |
+
}
|
9412 |
+
/**
|
9413 |
+
* Add a new CES survey track for the pages in Analytics menu
|
9414 |
+
*/
|
9415 |
|
9416 |
+
function addCesSurveyForAnalytics() {
|
9417 |
+
return addCesSurvey('analytics_filtered', Object(external_this_wp_i18n_["__"])('How easy was it to filter your store analytics?', 'woocommerce-admin'), 'woocommerce_page_wc-admin', 'woocommerce_page_wc-admin');
|
9418 |
+
}
|
9419 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
9420 |
+
var regenerator = __webpack_require__(8);
|
9421 |
+
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
|
9422 |
|
9423 |
+
// CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/resolvers.js
|
|
|
|
|
|
|
|
|
9424 |
|
|
|
|
|
9425 |
|
9426 |
+
var _marked = /*#__PURE__*/regenerator_default.a.mark(resolvers_getCesSurveyQueue);
|
9427 |
|
9428 |
+
/**
|
9429 |
+
* External dependencies
|
9430 |
+
*/
|
9431 |
|
9432 |
+
/**
|
9433 |
+
* Internal dependencies
|
9434 |
+
*/
|
|
|
|
|
|
|
9435 |
|
|
|
|
|
|
|
|
|
|
|
|
|
9436 |
|
|
|
|
|
9437 |
|
9438 |
+
function resolvers_getCesSurveyQueue() {
|
9439 |
+
var response;
|
9440 |
+
return regenerator_default.a.wrap(function getCesSurveyQueue$(_context) {
|
9441 |
+
while (1) {
|
9442 |
+
switch (_context.prev = _context.next) {
|
9443 |
+
case 0:
|
9444 |
+
_context.next = 2;
|
9445 |
+
return Object(external_this_wp_dataControls_["apiFetch"])({
|
9446 |
+
path: "".concat(constants["a" /* API_NAMESPACE */], "/options?options=").concat(constants["b" /* QUEUE_OPTION_NAME */])
|
9447 |
+
});
|
9448 |
|
9449 |
+
case 2:
|
9450 |
+
response = _context.sent;
|
9451 |
|
9452 |
+
if (!response) {
|
9453 |
+
_context.next = 8;
|
9454 |
+
break;
|
9455 |
+
}
|
9456 |
|
9457 |
+
_context.next = 6;
|
9458 |
+
return setCesSurveyQueue(response[constants["b" /* QUEUE_OPTION_NAME */]] || []);
|
9459 |
|
9460 |
+
case 6:
|
9461 |
+
_context.next = 9;
|
9462 |
+
break;
|
9463 |
|
9464 |
+
case 8:
|
9465 |
+
throw new Error();
|
|
|
|
|
|
|
|
|
9466 |
|
9467 |
+
case 9:
|
9468 |
+
case "end":
|
9469 |
+
return _context.stop();
|
9470 |
+
}
|
9471 |
+
}
|
9472 |
+
}, _marked);
|
9473 |
}
|
9474 |
+
// CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/selectors.js
|
9475 |
+
function selectors_getCesSurveyQueue(state) {
|
9476 |
+
return state.queue;
|
|
|
|
|
|
|
9477 |
}
|
9478 |
+
// CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/reducer.js
|
9479 |
|
|
|
9480 |
|
|
|
|
|
9481 |
|
9482 |
+
function reducer_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; }
|
9483 |
|
9484 |
+
function reducer_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { reducer_ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { reducer_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
|
|
|
9485 |
|
9486 |
+
/**
|
9487 |
+
* Internal dependencies
|
9488 |
+
*/
|
9489 |
|
9490 |
+
var DEFAULT_STATE = {
|
9491 |
+
queue: []
|
9492 |
+
};
|
9493 |
|
9494 |
+
var reducer_reducer = function reducer() {
|
9495 |
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_STATE;
|
9496 |
+
var action = arguments.length > 1 ? arguments[1] : undefined;
|
9497 |
|
9498 |
+
switch (action.type) {
|
9499 |
+
case action_types.SET_CES_SURVEY_QUEUE:
|
9500 |
+
return reducer_objectSpread(reducer_objectSpread({}, state), {}, {
|
9501 |
+
queue: action.queue
|
9502 |
+
});
|
9503 |
|
9504 |
+
case action_types.ADD_CES_SURVEY:
|
9505 |
+
// Prevent duplicate
|
9506 |
+
var hasDuplicate = state.queue.filter(function (track) {
|
9507 |
+
return track.action === action.action;
|
9508 |
+
});
|
9509 |
|
9510 |
+
if (hasDuplicate.length) {
|
9511 |
+
return state;
|
9512 |
+
}
|
9513 |
|
9514 |
+
var newTrack = {
|
9515 |
+
action: action.action,
|
9516 |
+
label: action.label,
|
9517 |
+
pagenow: action.pageNow,
|
9518 |
+
adminpage: action.adminPage,
|
9519 |
+
onSubmitLabel: action.onSubmitLabel
|
9520 |
+
};
|
9521 |
+
return reducer_objectSpread(reducer_objectSpread({}, state), {}, {
|
9522 |
+
queue: [].concat(toConsumableArray_default()(state.queue), [newTrack])
|
9523 |
+
});
|
9524 |
|
9525 |
+
default:
|
9526 |
+
return state;
|
9527 |
+
}
|
9528 |
+
};
|
9529 |
|
9530 |
+
/* harmony default export */ var data_reducer = (reducer_reducer);
|
9531 |
+
// CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/index.js
|
9532 |
/**
|
9533 |
* External dependencies
|
9534 |
*/
|
9535 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9536 |
|
9537 |
+
/**
|
9538 |
+
* Internal dependencies
|
9539 |
+
*/
|
9540 |
+
|
9541 |
+
|
9542 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9543 |
|
9544 |
+
|
9545 |
+
|
9546 |
+
/* harmony default export */ var data = (Object(external_this_wp_data_["registerStore"])(constants["c" /* STORE_KEY */], {
|
9547 |
+
actions: actions_namespaceObject,
|
9548 |
+
selectors: selectors_namespaceObject,
|
9549 |
+
resolvers: resolvers_namespaceObject,
|
9550 |
+
controls: external_this_wp_dataControls_["controls"],
|
9551 |
+
reducer: data_reducer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9552 |
}));
|
9553 |
+
// CONCATENATED MODULE: ./client/customer-effort-score-tracks/customer-effort-score-tracks-container.js
|
9554 |
|
9555 |
|
9556 |
/**
|
9560 |
|
9561 |
|
9562 |
|
|
|
9563 |
/**
|
9564 |
* Internal dependencies
|
9565 |
*/
|
9567 |
|
9568 |
|
9569 |
|
9570 |
+
/**
|
9571 |
+
* Maps the queue of CES tracks surveys to CustomerEffortScoreTracks
|
9572 |
+
* components. Note that generally there will only be a single survey per page
|
9573 |
+
* however this is designed to be flexible if multiple surveys per page are
|
9574 |
+
* added in the future.
|
9575 |
+
*
|
9576 |
+
* @param {Object} props Component props.
|
9577 |
+
* @param {Array} props.queue The queue of surveys.
|
9578 |
+
* @param {boolean} props.resolving Whether the queue is resolving.
|
9579 |
+
* @param {Function} props.clearQueue Sets up clearing of the queue on the next page load.
|
9580 |
+
*/
|
9581 |
|
9582 |
+
function CustomerEffortScoreTracksContainer(_ref) {
|
9583 |
+
var queue = _ref.queue,
|
9584 |
+
resolving = _ref.resolving,
|
9585 |
+
clearQueue = _ref.clearQueue;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9586 |
|
9587 |
+
if (resolving) {
|
9588 |
+
return null;
|
9589 |
+
}
|
9590 |
+
|
9591 |
+
var queueForPage = queue.filter(function (item) {
|
9592 |
+
return item.pagenow === window.pagenow && item.adminpage === window.adminpage;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9593 |
});
|
|
|
9594 |
|
9595 |
+
if (queueForPage.length) {
|
9596 |
+
clearQueue();
|
9597 |
+
}
|
9598 |
|
9599 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, queueForPage.map(function (item, index) {
|
9600 |
+
return Object(external_this_wp_element_["createElement"])(customer_effort_score_tracks, {
|
9601 |
+
key: index,
|
9602 |
+
action: item.action,
|
9603 |
+
label: item.label,
|
9604 |
+
onSubmitLabel: item.onsubmit_label,
|
9605 |
+
trackProps: item.props || {}
|
9606 |
+
});
|
9607 |
+
}));
|
9608 |
+
}
|
9609 |
|
9610 |
+
CustomerEffortScoreTracksContainer.propTypes = {
|
9611 |
+
/**
|
9612 |
+
* The queue of CES tracks surveys to display.
|
9613 |
+
*/
|
9614 |
+
queue: prop_types_default.a.arrayOf(prop_types_default.a.object),
|
9615 |
|
9616 |
+
/**
|
9617 |
+
* If the queue option is being resolved.
|
9618 |
+
*/
|
9619 |
+
resolving: prop_types_default.a.bool,
|
9620 |
+
|
9621 |
+
/**
|
9622 |
+
* Set up clearing the queue on the next page load.
|
9623 |
+
*/
|
9624 |
+
clearQueue: prop_types_default.a.func
|
9625 |
+
};
|
9626 |
+
/* harmony default export */ var customer_effort_score_tracks_container = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
|
9627 |
+
var _select = select(constants["c" /* STORE_KEY */]),
|
9628 |
+
getCesSurveyQueue = _select.getCesSurveyQueue,
|
9629 |
+
isResolving = _select.isResolving;
|
9630 |
+
|
9631 |
+
var queue = getCesSurveyQueue();
|
9632 |
+
var resolving = isResolving('getOption', [constants["b" /* QUEUE_OPTION_NAME */]]);
|
9633 |
+
return {
|
9634 |
+
queue: queue,
|
9635 |
+
resolving: resolving
|
9636 |
+
};
|
9637 |
+
}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
|
9638 |
+
var _dispatch = dispatch(external_this_wc_data_["OPTIONS_STORE_NAME"]),
|
9639 |
+
updateOptions = _dispatch.updateOptions;
|
9640 |
+
|
9641 |
+
return {
|
9642 |
+
clearQueue: function clearQueue() {
|
9643 |
+
// This sets an option that should be used on the next page
|
9644 |
+
// load to clear the CES tracks queue for the current page (see
|
9645 |
+
// CustomerEffortScoreTracks.php) - clearing the queue
|
9646 |
+
// directly puts this into an infinite loop which is picked
|
9647 |
+
// up by React.
|
9648 |
+
updateOptions({
|
9649 |
+
woocommerce_clear_ces_tracks_queue_for_page: {
|
9650 |
+
pagenow: window.pagenow,
|
9651 |
+
adminpage: window.adminpage
|
9652 |
+
}
|
9653 |
+
});
|
9654 |
+
}
|
9655 |
+
};
|
9656 |
+
}))(CustomerEffortScoreTracksContainer));
|
9657 |
+
// CONCATENATED MODULE: ./client/customer-effort-score-tracks/index.js
|
9658 |
|
|
|
|
|
9659 |
|
|
|
|
|
9660 |
|
9661 |
+
/***/ }),
|
9662 |
+
|
9663 |
+
/***/ 29:
|
9664 |
+
/***/ (function(module, exports) {
|
9665 |
|
9666 |
+
(function() { module.exports = this["wc"]["date"]; }());
|
|
|
9667 |
|
9668 |
+
/***/ }),
|
|
|
9669 |
|
9670 |
+
/***/ 295:
|
9671 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9672 |
|
9673 |
+
"use strict";
|
9674 |
+
__webpack_require__.r(__webpack_exports__);
|
9675 |
+
/* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
9676 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
9677 |
+
/* harmony import */ var _wordpress_notices__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(470);
|
9678 |
+
/* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22);
|
9679 |
+
/* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_data__WEBPACK_IMPORTED_MODULE_2__);
|
9680 |
+
/* harmony import */ var _stylesheets_index_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(297);
|
9681 |
+
/* harmony import */ var _stylesheets_index_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_stylesheets_index_scss__WEBPACK_IMPORTED_MODULE_3__);
|
9682 |
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(141);
|
9683 |
+
/* harmony import */ var _customer_effort_score_tracks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(287);
|
9684 |
|
|
|
|
|
9685 |
|
9686 |
+
/**
|
9687 |
+
* External dependencies
|
9688 |
+
*/
|
9689 |
|
|
|
9690 |
|
9691 |
|
9692 |
/**
|
9693 |
+
* Internal dependencies
|
9694 |
*/
|
9695 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9696 |
|
|
|
|
|
9697 |
|
9698 |
+
// Modify webpack pubilcPath at runtime based on location of WordPress Plugin.
|
9699 |
+
// eslint-disable-next-line no-undef,camelcase
|
9700 |
+
|
9701 |
+
__webpack_require__.p = global.wcAdminAssets.path;
|
9702 |
+
var appRoot = document.getElementById('root');
|
9703 |
+
var embeddedRoot = document.getElementById('woocommerce-embedded-root');
|
9704 |
+
var settingsGroup = 'wc_admin';
|
9705 |
+
var hydrateUser = window.wcSettings.currentUserData;
|
9706 |
|
9707 |
+
if (appRoot) {
|
9708 |
+
var HydratedPageLayout = Object(_woocommerce_data__WEBPACK_IMPORTED_MODULE_2__["withSettingsHydration"])(settingsGroup, window.wcSettings)(_layout__WEBPACK_IMPORTED_MODULE_4__[/* PageLayout */ "b"]);
|
9709 |
+
var hydrateSettings = window.wcSettings.preloadSettings && window.wcSettings.preloadSettings.general;
|
9710 |
|
9711 |
+
if (hydrateSettings) {
|
9712 |
+
HydratedPageLayout = Object(_woocommerce_data__WEBPACK_IMPORTED_MODULE_2__["withSettingsHydration"])('general', {
|
9713 |
+
general: window.wcSettings.preloadSettings.general
|
9714 |
+
})(HydratedPageLayout);
|
9715 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9716 |
|
9717 |
+
if (hydrateUser) {
|
9718 |
+
HydratedPageLayout = Object(_woocommerce_data__WEBPACK_IMPORTED_MODULE_2__["withCurrentUserHydration"])(hydrateUser)(HydratedPageLayout);
|
9719 |
+
}
|
9720 |
|
9721 |
+
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(HydratedPageLayout, null), appRoot);
|
9722 |
+
} else if (embeddedRoot) {
|
9723 |
+
var HydratedEmbedLayout = Object(_woocommerce_data__WEBPACK_IMPORTED_MODULE_2__["withSettingsHydration"])(settingsGroup, window.wcSettings)(_layout__WEBPACK_IMPORTED_MODULE_4__[/* EmbedLayout */ "a"]);
|
9724 |
|
9725 |
+
if (hydrateUser) {
|
9726 |
+
HydratedEmbedLayout = Object(_woocommerce_data__WEBPACK_IMPORTED_MODULE_2__["withCurrentUserHydration"])(hydrateUser)(HydratedEmbedLayout);
|
9727 |
+
} // Render the header.
|
9728 |
|
9729 |
|
9730 |
+
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(HydratedEmbedLayout, null), embeddedRoot);
|
9731 |
+
embeddedRoot.classList.remove('is-embed-loading'); // Render notices just above the WP content div.
|
9732 |
|
9733 |
+
var wpBody = document.getElementById('wpbody-content');
|
9734 |
+
var wrap = wpBody.querySelector('.wrap.woocommerce') || wpBody.querySelector('[class="wrap"]');
|
9735 |
+
var noticeContainer = document.createElement('div');
|
9736 |
+
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
|
9737 |
+
className: "woocommerce-layout"
|
9738 |
+
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_layout__WEBPACK_IMPORTED_MODULE_4__[/* PrimaryLayout */ "c"], null)), wpBody.insertBefore(noticeContainer, wrap));
|
9739 |
+
} // Render the CustomerEffortScoreTracksContainer only if
|
9740 |
+
// the feature flag is enabled.
|
9741 |
|
9742 |
|
9743 |
+
if (window.wcAdminFeatures && window.wcAdminFeatures['customer-effort-score-tracks'] === true) {
|
9744 |
+
// Set up customer effort score survey.
|
9745 |
+
(function () {
|
9746 |
+
var root = appRoot || embeddedRoot;
|
9747 |
+
Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_customer_effort_score_tracks__WEBPACK_IMPORTED_MODULE_5__[/* CustomerEffortScoreTracksContainer */ "a"], null), root.insertBefore(document.createElement('div'), null));
|
9748 |
+
})();
|
9749 |
+
}
|
9750 |
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(84)))
|
9751 |
|
9752 |
+
/***/ }),
|
9753 |
|
9754 |
+
/***/ 297:
|
9755 |
+
/***/ (function(module, exports, __webpack_require__) {
|
|
|
9756 |
|
9757 |
+
// extracted by mini-css-extract-plugin
|
9758 |
|
9759 |
+
/***/ }),
|
9760 |
|
9761 |
+
/***/ 298:
|
9762 |
+
/***/ (function(module, exports, __webpack_require__) {
|
9763 |
|
9764 |
+
// extracted by mini-css-extract-plugin
|
9765 |
|
9766 |
+
/***/ }),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9767 |
|
9768 |
+
/***/ 299:
|
9769 |
+
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
9770 |
|
9771 |
+
// extracted by mini-css-extract-plugin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9772 |
|
9773 |
/***/ }),
|
9774 |
|
9775 |
+
/***/ 3:
|
9776 |
+
/***/ (function(module, exports) {
|
9777 |
|
9778 |
+
(function() { module.exports = this["lodash"]; }());
|
9779 |
|
9780 |
+
/***/ }),
|
|
|
|
|
9781 |
|
9782 |
+
/***/ 30:
|
9783 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9784 |
|
9785 |
+
"use strict";
|
9786 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Navigation; });
|
9787 |
+
/* unused harmony export NavigationBackButton */
|
9788 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return NavigationGroup; });
|
9789 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return NavigationMenu; });
|
9790 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return NavigationItem; });
|
9791 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return Text; });
|
9792 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return useSlot; });
|
9793 |
+
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
|
9794 |
+
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_0__);
|
9795 |
+
/**
|
9796 |
+
* External dependencies
|
9797 |
+
*/
|
9798 |
|
9799 |
+
/**
|
9800 |
+
* Prioritize exports of non-experimental components over experimental.
|
9801 |
+
*/
|
9802 |
|
9803 |
+
var Navigation = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["Navigation"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigation"];
|
9804 |
+
var NavigationBackButton = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationBackButton"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationBackButton"];
|
9805 |
+
var NavigationGroup = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationGroup"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationGroup"];
|
9806 |
+
var NavigationMenu = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationMenu"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationMenu"];
|
9807 |
+
var NavigationItem = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationItem"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationItem"];
|
9808 |
+
var Text = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["Text"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalText"];
|
9809 |
+
var useSlot = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["useSlot"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalUseSlot"];
|
9810 |
|
9811 |
+
/***/ }),
|
|
|
|
|
9812 |
|
9813 |
+
/***/ 300:
|
9814 |
+
/***/ (function(module, exports, __webpack_require__) {
|
9815 |
|
9816 |
+
// extracted by mini-css-extract-plugin
|
|
|
9817 |
|
9818 |
+
/***/ }),
|
|
|
9819 |
|
9820 |
+
/***/ 301:
|
9821 |
+
/***/ (function(module, exports, __webpack_require__) {
|
9822 |
|
9823 |
+
// extracted by mini-css-extract-plugin
|
|
|
9824 |
|
9825 |
+
/***/ }),
|
9826 |
|
9827 |
+
/***/ 302:
|
9828 |
+
/***/ (function(module, exports, __webpack_require__) {
|
9829 |
|
9830 |
+
// extracted by mini-css-extract-plugin
|
|
|
|
|
9831 |
|
9832 |
+
/***/ }),
|
9833 |
|
9834 |
+
/***/ 303:
|
9835 |
+
/***/ (function(module, exports, __webpack_require__) {
|
9836 |
|
9837 |
+
// extracted by mini-css-extract-plugin
|
9838 |
|
9839 |
+
/***/ }),
|
9840 |
|
9841 |
+
/***/ 304:
|
9842 |
+
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9843 |
|
9844 |
+
// extracted by mini-css-extract-plugin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9845 |
|
9846 |
+
/***/ }),
|
9847 |
+
|
9848 |
+
/***/ 305:
|
9849 |
+
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9850 |
|
9851 |
+
// extracted by mini-css-extract-plugin
|
|
|
9852 |
|
9853 |
+
/***/ }),
|
9854 |
|
9855 |
+
/***/ 306:
|
9856 |
+
/***/ (function(module, exports, __webpack_require__) {
|
|
|
9857 |
|
9858 |
+
var setPrototypeOf = __webpack_require__(72);
|
9859 |
|
9860 |
+
function _inheritsLoose(subClass, superClass) {
|
9861 |
+
subClass.prototype = Object.create(superClass.prototype);
|
9862 |
+
subClass.prototype.constructor = subClass;
|
9863 |
+
setPrototypeOf(subClass, superClass);
|
9864 |
+
}
|
9865 |
|
9866 |
+
module.exports = _inheritsLoose;
|
9867 |
|
9868 |
+
/***/ }),
|
|
|
|
|
9869 |
|
9870 |
+
/***/ 307:
|
9871 |
+
/***/ (function(module, exports, __webpack_require__) {
|
9872 |
|
9873 |
+
// extracted by mini-css-extract-plugin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9874 |
|
9875 |
/***/ }),
|
9876 |
|
9877 |
+
/***/ 308:
|
9878 |
+
/***/ (function(module, exports) {
|
9879 |
|
9880 |
+
module.exports = Array.isArray || function (arr) {
|
9881 |
+
return Object.prototype.toString.call(arr) == '[object Array]';
|
9882 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9883 |
|
9884 |
|
9885 |
+
/***/ }),
|
|
|
|
|
9886 |
|
9887 |
+
/***/ 31:
|
9888 |
+
/***/ (function(module, exports) {
|
9889 |
|
9890 |
+
function _typeof(obj) {
|
9891 |
+
"@babel/helpers - typeof";
|
9892 |
|
9893 |
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
9894 |
+
module.exports = _typeof = function _typeof(obj) {
|
9895 |
+
return typeof obj;
|
9896 |
+
};
|
9897 |
+
} else {
|
9898 |
+
module.exports = _typeof = function _typeof(obj) {
|
9899 |
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
9900 |
+
};
|
9901 |
+
}
|
9902 |
|
9903 |
+
return _typeof(obj);
|
9904 |
+
}
|
9905 |
|
9906 |
+
module.exports = _typeof;
|
9907 |
|
9908 |
+
/***/ }),
|
9909 |
|
9910 |
+
/***/ 32:
|
9911 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9912 |
|
9913 |
+
"use strict";
|
9914 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
|
9915 |
+
function _extends() {
|
9916 |
+
_extends = Object.assign || function (target) {
|
9917 |
+
for (var i = 1; i < arguments.length; i++) {
|
9918 |
+
var source = arguments[i];
|
|
|
9919 |
|
9920 |
+
for (var key in source) {
|
9921 |
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
9922 |
+
target[key] = source[key];
|
9923 |
+
}
|
9924 |
+
}
|
9925 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9926 |
|
9927 |
+
return target;
|
9928 |
+
};
|
|
|
|
|
9929 |
|
9930 |
+
return _extends.apply(this, arguments);
|
9931 |
+
}
|
|
|
9932 |
|
9933 |
+
/***/ }),
|
|
|
|
|
9934 |
|
9935 |
+
/***/ 34:
|
9936 |
+
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
9937 |
|
9938 |
+
var objectWithoutPropertiesLoose = __webpack_require__(97);
|
9939 |
|
9940 |
+
function _objectWithoutProperties(source, excluded) {
|
9941 |
+
if (source == null) return {};
|
9942 |
+
var target = objectWithoutPropertiesLoose(source, excluded);
|
9943 |
+
var key, i;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9944 |
|
9945 |
+
if (Object.getOwnPropertySymbols) {
|
9946 |
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
|
9947 |
|
9948 |
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
9949 |
+
key = sourceSymbolKeys[i];
|
9950 |
+
if (excluded.indexOf(key) >= 0) continue;
|
9951 |
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
9952 |
+
target[key] = source[key];
|
9953 |
+
}
|
9954 |
}
|
9955 |
|
9956 |
+
return target;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9957 |
}
|
9958 |
|
9959 |
+
module.exports = _objectWithoutProperties;
|
|
|
9960 |
|
9961 |
/***/ }),
|
9962 |
|
9963 |
+
/***/ 36:
|
9964 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9965 |
+
|
9966 |
+
"use strict";
|
9967 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
|
9968 |
+
function _defineProperty(obj, key, value) {
|
9969 |
+
if (key in obj) {
|
9970 |
+
Object.defineProperty(obj, key, {
|
9971 |
+
value: value,
|
9972 |
+
enumerable: true,
|
9973 |
+
configurable: true,
|
9974 |
+
writable: true
|
9975 |
+
});
|
9976 |
+
} else {
|
9977 |
+
obj[key] = value;
|
9978 |
+
}
|
9979 |
|
9980 |
+
return obj;
|
9981 |
+
}
|
9982 |
|
9983 |
/***/ }),
|
9984 |
|
9985 |
+
/***/ 37:
|
9986 |
/***/ (function(module, exports) {
|
9987 |
|
9988 |
+
function _arrayLikeToArray(arr, len) {
|
9989 |
+
if (len == null || len > arr.length) len = arr.length;
|
9990 |
|
9991 |
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
9992 |
+
arr2[i] = arr[i];
|
9993 |
+
}
|
9994 |
|
9995 |
+
return arr2;
|
9996 |
+
}
|
9997 |
|
9998 |
+
module.exports = _arrayLikeToArray;
|
9999 |
|
10000 |
/***/ }),
|
10001 |
|
10002 |
+
/***/ 38:
|
10003 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10004 |
|
10005 |
"use strict";
|
10006 |
|
10007 |
// EXPORTS
|
10008 |
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _inheritsLoose; });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10009 |
|
10010 |
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
10011 |
+
function _setPrototypeOf(o, p) {
|
10012 |
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
10013 |
+
o.__proto__ = p;
|
10014 |
+
return o;
|
10015 |
+
};
|
10016 |
|
10017 |
+
return _setPrototypeOf(o, p);
|
10018 |
+
}
|
10019 |
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
10020 |
|
10021 |
+
function _inheritsLoose(subClass, superClass) {
|
10022 |
+
subClass.prototype = Object.create(superClass.prototype);
|
10023 |
+
subClass.prototype.constructor = subClass;
|
10024 |
+
_setPrototypeOf(subClass, superClass);
|
10025 |
+
}
|
10026 |
|
10027 |
+
/***/ }),
|
|
|
10028 |
|
10029 |
+
/***/ 4:
|
10030 |
+
/***/ (function(module, exports) {
|
10031 |
|
10032 |
+
(function() { module.exports = this["wp"]["components"]; }());
|
|
|
10033 |
|
10034 |
+
/***/ }),
|
|
|
10035 |
|
10036 |
+
/***/ 40:
|
10037 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10038 |
|
10039 |
+
var arrayLikeToArray = __webpack_require__(37);
|
10040 |
|
10041 |
+
function _unsupportedIterableToArray(o, minLen) {
|
10042 |
+
if (!o) return;
|
10043 |
+
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
10044 |
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
10045 |
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
10046 |
+
if (n === "Map" || n === "Set") return Array.from(o);
|
10047 |
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
10048 |
+
}
|
10049 |
|
10050 |
+
module.exports = _unsupportedIterableToArray;
|
10051 |
|
10052 |
+
/***/ }),
|
10053 |
|
10054 |
+
/***/ 41:
|
10055 |
+
/***/ (function(module, exports) {
|
10056 |
|
10057 |
+
(function() { module.exports = this["wp"]["htmlEntities"]; }());
|
10058 |
|
10059 |
+
/***/ }),
|
10060 |
|
10061 |
+
/***/ 42:
|
10062 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10063 |
|
10064 |
+
"use strict";
|
10065 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
|
10066 |
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
10067 |
+
if (source == null) return {};
|
10068 |
+
var target = {};
|
10069 |
+
var sourceKeys = Object.keys(source);
|
10070 |
+
var key, i;
|
10071 |
|
10072 |
+
for (i = 0; i < sourceKeys.length; i++) {
|
10073 |
+
key = sourceKeys[i];
|
10074 |
+
if (excluded.indexOf(key) >= 0) continue;
|
10075 |
+
target[key] = source[key];
|
10076 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10077 |
|
10078 |
+
return target;
|
10079 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10080 |
|
10081 |
+
/***/ }),
|
|
|
|
|
10082 |
|
10083 |
+
/***/ 43:
|
10084 |
+
/***/ (function(module, exports) {
|
10085 |
|
10086 |
+
(function() { module.exports = this["wp"]["hooks"]; }());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10087 |
|
10088 |
+
/***/ }),
|
10089 |
|
10090 |
+
/***/ 44:
|
10091 |
+
/***/ (function(module, exports) {
|
10092 |
+
|
10093 |
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
10094 |
+
try {
|
10095 |
+
var info = gen[key](arg);
|
10096 |
+
var value = info.value;
|
10097 |
+
} catch (error) {
|
10098 |
+
reject(error);
|
10099 |
+
return;
|
10100 |
}
|
10101 |
|
10102 |
+
if (info.done) {
|
10103 |
+
resolve(value);
|
10104 |
+
} else {
|
10105 |
+
Promise.resolve(value).then(_next, _throw);
|
10106 |
+
}
|
10107 |
+
}
|
|
|
10108 |
|
10109 |
+
function _asyncToGenerator(fn) {
|
10110 |
+
return function () {
|
10111 |
+
var self = this,
|
10112 |
+
args = arguments;
|
10113 |
+
return new Promise(function (resolve, reject) {
|
10114 |
+
var gen = fn.apply(self, args);
|
10115 |
|
10116 |
+
function _next(value) {
|
10117 |
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
10118 |
+
}
|
|
|
|
|
|
|
|
|
|
|
10119 |
|
10120 |
+
function _throw(err) {
|
10121 |
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
10122 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
10123 |
|
10124 |
+
_next(undefined);
|
|
|
|
|
|
|
|
|
|
|
|
|
10125 |
});
|
|
|
10126 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10127 |
}
|
10128 |
|
10129 |
+
module.exports = _asyncToGenerator;
|
|
|
|
|
|
|
|
|
10130 |
|
10131 |
+
/***/ }),
|
|
|
|
|
|
|
10132 |
|
10133 |
+
/***/ 47:
|
10134 |
+
/***/ (function(module, exports) {
|
|
|
|
|
10135 |
|
10136 |
+
(function() { module.exports = this["wc"]["components"]; }());
|
|
|
|
|
|
|
10137 |
|
10138 |
+
/***/ }),
|
|
|
|
|
|
|
10139 |
|
10140 |
+
/***/ 470:
|
10141 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
10142 |
|
10143 |
+
"use strict";
|
|
|
|
|
|
|
10144 |
|
10145 |
+
// NAMESPACE OBJECT: ./node_modules/@wordpress/notices/build-module/store/actions.js
|
10146 |
+
var actions_namespaceObject = {};
|
10147 |
+
__webpack_require__.r(actions_namespaceObject);
|
10148 |
+
__webpack_require__.d(actions_namespaceObject, "createNotice", function() { return createNotice; });
|
10149 |
+
__webpack_require__.d(actions_namespaceObject, "createSuccessNotice", function() { return createSuccessNotice; });
|
10150 |
+
__webpack_require__.d(actions_namespaceObject, "createInfoNotice", function() { return createInfoNotice; });
|
10151 |
+
__webpack_require__.d(actions_namespaceObject, "createErrorNotice", function() { return createErrorNotice; });
|
10152 |
+
__webpack_require__.d(actions_namespaceObject, "createWarningNotice", function() { return createWarningNotice; });
|
10153 |
+
__webpack_require__.d(actions_namespaceObject, "removeNotice", function() { return removeNotice; });
|
10154 |
+
|
10155 |
+
// NAMESPACE OBJECT: ./node_modules/@wordpress/notices/build-module/store/selectors.js
|
10156 |
+
var selectors_namespaceObject = {};
|
10157 |
+
__webpack_require__.r(selectors_namespaceObject);
|
10158 |
+
__webpack_require__.d(selectors_namespaceObject, "getNotices", function() { return getNotices; });
|
10159 |
|
10160 |
+
// EXTERNAL MODULE: external {"this":["wp","data"]}
|
10161 |
+
var external_this_wp_data_ = __webpack_require__(11);
|
|
|
|
|
10162 |
|
10163 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
10164 |
+
var toConsumableArray = __webpack_require__(82);
|
|
|
|
|
|
|
10165 |
|
10166 |
+
// EXTERNAL MODULE: external "lodash"
|
10167 |
+
var external_lodash_ = __webpack_require__(3);
|
|
|
|
|
|
|
10168 |
|
10169 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
10170 |
+
var defineProperty = __webpack_require__(36);
|
10171 |
|
10172 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/utils/on-sub-key.js
|
|
|
|
|
|
|
10173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10174 |
|
10175 |
+
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; }
|
|
|
10176 |
|
10177 |
+
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) { Object(defineProperty["a" /* 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; }
|
10178 |
+
|
10179 |
+
/**
|
10180 |
+
* Higher-order reducer creator which creates a combined reducer object, keyed
|
10181 |
+
* by a property on the action object.
|
10182 |
+
*
|
10183 |
+
* @param {string} actionProperty Action property by which to key object.
|
10184 |
+
*
|
10185 |
+
* @return {Function} Higher-order reducer.
|
10186 |
+
*/
|
10187 |
+
var on_sub_key_onSubKey = function onSubKey(actionProperty) {
|
10188 |
+
return function (reducer) {
|
10189 |
+
return function () {
|
10190 |
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
10191 |
+
var action = arguments.length > 1 ? arguments[1] : undefined;
|
10192 |
+
// Retrieve subkey from action. Do not track if undefined; useful for cases
|
10193 |
+
// where reducer is scoped by action shape.
|
10194 |
+
var key = action[actionProperty];
|
10195 |
+
|
10196 |
+
if (key === undefined) {
|
10197 |
+
return state;
|
10198 |
+
} // Avoid updating state if unchanged. Note that this also accounts for a
|
10199 |
+
// reducer which returns undefined on a key which is not yet tracked.
|
10200 |
+
|
10201 |
+
|
10202 |
+
var nextKeyState = reducer(state[key], action);
|
10203 |
+
|
10204 |
+
if (nextKeyState === state[key]) {
|
10205 |
+
return state;
|
10206 |
+
}
|
10207 |
+
|
10208 |
+
return _objectSpread({}, state, Object(defineProperty["a" /* default */])({}, key, nextKeyState));
|
10209 |
+
};
|
10210 |
+
};
|
10211 |
};
|
10212 |
+
/* harmony default export */ var on_sub_key = (on_sub_key_onSubKey);
|
10213 |
+
//# sourceMappingURL=on-sub-key.js.map
|
10214 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/reducer.js
|
10215 |
+
|
10216 |
+
|
10217 |
/**
|
10218 |
* External dependencies
|
10219 |
*/
|
10224 |
|
10225 |
|
10226 |
/**
|
10227 |
+
* Reducer returning the next notices state. The notices state is an object
|
10228 |
+
* where each key is a context, its value an array of notice objects.
|
10229 |
*
|
10230 |
+
* @param {Object} state Current state.
|
10231 |
+
* @param {Object} action Dispatched action.
|
10232 |
+
*
|
10233 |
+
* @return {Object} Updated state.
|
10234 |
*/
|
10235 |
|
10236 |
+
var notices = on_sub_key('context')(function () {
|
10237 |
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
10238 |
+
var action = arguments.length > 1 ? arguments[1] : undefined;
|
10239 |
+
|
10240 |
+
switch (action.type) {
|
10241 |
+
case 'CREATE_NOTICE':
|
10242 |
+
// Avoid duplicates on ID.
|
10243 |
+
return [].concat(Object(toConsumableArray["a" /* default */])(Object(external_lodash_["reject"])(state, {
|
10244 |
+
id: action.notice.id
|
10245 |
+
})), [action.notice]);
|
10246 |
+
|
10247 |
+
case 'REMOVE_NOTICE':
|
10248 |
+
return Object(external_lodash_["reject"])(state, {
|
10249 |
+
id: action.id
|
10250 |
+
});
|
10251 |
+
}
|
10252 |
+
|
10253 |
+
return state;
|
10254 |
+
});
|
10255 |
+
/* harmony default export */ var store_reducer = (notices);
|
10256 |
+
//# sourceMappingURL=reducer.js.map
|
10257 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
10258 |
+
var regenerator = __webpack_require__(8);
|
10259 |
+
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
10260 |
+
|
10261 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/constants.js
|
10262 |
/**
|
10263 |
+
* Default context to use for notice grouping when not otherwise specified. Its
|
10264 |
+
* specific value doesn't hold much meaning, but it must be reasonably unique
|
10265 |
+
* and, more importantly, referenced consistently in the store implementation.
|
10266 |
*
|
10267 |
+
* @type {string}
|
|
|
|
|
|
|
|
|
|
|
10268 |
*/
|
10269 |
+
var DEFAULT_CONTEXT = 'global';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10270 |
/**
|
10271 |
+
* Default notice status.
|
10272 |
+
*
|
10273 |
+
* @type {string}
|
10274 |
*/
|
10275 |
|
10276 |
+
var DEFAULT_STATUS = 'info';
|
10277 |
+
//# sourceMappingURL=constants.js.map
|
10278 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/actions.js
|
10279 |
+
|
10280 |
+
|
10281 |
+
var _marked =
|
10282 |
+
/*#__PURE__*/
|
10283 |
+
regenerator_default.a.mark(createNotice);
|
10284 |
|
|
|
|
|
|
|
|
|
|
|
|
|
10285 |
/**
|
10286 |
* External dependencies
|
10287 |
*/
|
10291 |
*/
|
10292 |
|
10293 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10294 |
/**
|
10295 |
+
* @typedef {Object} WPNoticeAction Object describing a user action option associated with a notice.
|
10296 |
+
*
|
10297 |
+
* @property {string} label Message to use as action label.
|
10298 |
+
* @property {?string} url Optional URL of resource if action incurs
|
10299 |
+
* browser navigation.
|
10300 |
+
* @property {?Function} onClick Optional function to invoke when action is
|
10301 |
+
* triggered by user.
|
10302 |
+
*
|
10303 |
*/
|
10304 |
|
10305 |
+
/**
|
10306 |
+
* Yields action objects used in signalling that a notice is to be created.
|
10307 |
+
*
|
10308 |
+
* @param {string} [status='info'] Notice status.
|
10309 |
+
* @param {string} content Notice message.
|
10310 |
+
* @param {Object} [options] Notice options.
|
10311 |
+
* @param {string} [options.context='global'] Context under which to
|
10312 |
+
* group notice.
|
10313 |
+
* @param {string} [options.id] Identifier for notice.
|
10314 |
+
* Automatically assigned
|
10315 |
+
* if not specified.
|
10316 |
+
* @param {boolean} [options.isDismissible=true] Whether the notice can
|
10317 |
+
* be dismissed by user.
|
10318 |
+
* @param {string} [options.type='default'] Type of notice, one of
|
10319 |
+
* `default`, or `snackbar`.
|
10320 |
+
* @param {boolean} [options.speak=true] Whether the notice
|
10321 |
+
* content should be
|
10322 |
+
* announced to screen
|
10323 |
+
* readers.
|
10324 |
+
* @param {Array<WPNoticeAction>} [options.actions] User actions to be
|
10325 |
+
* presented with notice.
|
10326 |
+
*/
|
10327 |
+
|
10328 |
+
function createNotice() {
|
10329 |
+
var status,
|
10330 |
+
content,
|
10331 |
+
options,
|
10332 |
+
_options$speak,
|
10333 |
+
speak,
|
10334 |
+
_options$isDismissibl,
|
10335 |
+
isDismissible,
|
10336 |
+
_options$context,
|
10337 |
+
context,
|
10338 |
+
_options$id,
|
10339 |
+
id,
|
10340 |
+
_options$actions,
|
10341 |
+
actions,
|
10342 |
+
_options$type,
|
10343 |
+
type,
|
10344 |
+
__unstableHTML,
|
10345 |
+
_args = arguments;
|
10346 |
+
|
10347 |
+
return regenerator_default.a.wrap(function createNotice$(_context) {
|
10348 |
+
while (1) {
|
10349 |
+
switch (_context.prev = _context.next) {
|
10350 |
+
case 0:
|
10351 |
+
status = _args.length > 0 && _args[0] !== undefined ? _args[0] : DEFAULT_STATUS;
|
10352 |
+
content = _args.length > 1 ? _args[1] : undefined;
|
10353 |
+
options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
|
10354 |
+
_options$speak = options.speak, speak = _options$speak === void 0 ? true : _options$speak, _options$isDismissibl = options.isDismissible, isDismissible = _options$isDismissibl === void 0 ? true : _options$isDismissibl, _options$context = options.context, context = _options$context === void 0 ? DEFAULT_CONTEXT : _options$context, _options$id = options.id, id = _options$id === void 0 ? Object(external_lodash_["uniqueId"])(context) : _options$id, _options$actions = options.actions, actions = _options$actions === void 0 ? [] : _options$actions, _options$type = options.type, type = _options$type === void 0 ? 'default' : _options$type, __unstableHTML = options.__unstableHTML; // The supported value shape of content is currently limited to plain text
|
10355 |
+
// strings. To avoid setting expectation that e.g. a WPElement could be
|
10356 |
+
// supported, cast to a string.
|
10357 |
+
|
10358 |
+
content = String(content);
|
10359 |
+
|
10360 |
+
if (!speak) {
|
10361 |
+
_context.next = 8;
|
10362 |
+
break;
|
10363 |
+
}
|
10364 |
|
10365 |
+
_context.next = 8;
|
10366 |
+
return {
|
10367 |
+
type: 'SPEAK',
|
10368 |
+
message: content,
|
10369 |
+
ariaLive: type === 'snackbar' ? 'polite' : 'assertive'
|
10370 |
+
};
|
10371 |
|
10372 |
+
case 8:
|
10373 |
+
_context.next = 10;
|
10374 |
+
return {
|
10375 |
+
type: 'CREATE_NOTICE',
|
10376 |
+
context: context,
|
10377 |
+
notice: {
|
10378 |
+
id: id,
|
10379 |
+
status: status,
|
10380 |
+
content: content,
|
10381 |
+
__unstableHTML: __unstableHTML,
|
10382 |
+
isDismissible: isDismissible,
|
10383 |
+
actions: actions,
|
10384 |
+
type: type
|
10385 |
+
}
|
10386 |
+
};
|
10387 |
|
10388 |
+
case 10:
|
10389 |
+
case "end":
|
10390 |
+
return _context.stop();
|
10391 |
}
|
10392 |
+
}
|
10393 |
+
}, _marked);
|
10394 |
+
}
|
10395 |
+
/**
|
10396 |
+
* Returns an action object used in signalling that a success notice is to be
|
10397 |
+
* created. Refer to `createNotice` for options documentation.
|
10398 |
+
*
|
10399 |
+
* @see createNotice
|
10400 |
+
*
|
10401 |
+
* @param {string} content Notice message.
|
10402 |
+
* @param {Object} [options] Optional notice options.
|
10403 |
+
*
|
10404 |
+
* @return {Object} Action object.
|
10405 |
+
*/
|
10406 |
|
10407 |
+
function createSuccessNotice(content, options) {
|
10408 |
+
return createNotice('success', content, options);
|
10409 |
+
}
|
10410 |
+
/**
|
10411 |
+
* Returns an action object used in signalling that an info notice is to be
|
10412 |
+
* created. Refer to `createNotice` for options documentation.
|
10413 |
+
*
|
10414 |
+
* @see createNotice
|
10415 |
+
*
|
10416 |
+
* @param {string} content Notice message.
|
10417 |
+
* @param {Object} [options] Optional notice options.
|
10418 |
+
*
|
10419 |
+
* @return {Object} Action object.
|
10420 |
+
*/
|
10421 |
|
10422 |
+
function createInfoNotice(content, options) {
|
10423 |
+
return createNotice('info', content, options);
|
10424 |
+
}
|
10425 |
+
/**
|
10426 |
+
* Returns an action object used in signalling that an error notice is to be
|
10427 |
+
* created. Refer to `createNotice` for options documentation.
|
10428 |
+
*
|
10429 |
+
* @see createNotice
|
10430 |
+
*
|
10431 |
+
* @param {string} content Notice message.
|
10432 |
+
* @param {Object} [options] Optional notice options.
|
10433 |
+
*
|
10434 |
+
* @return {Object} Action object.
|
10435 |
+
*/
|
10436 |
|
10437 |
+
function createErrorNotice(content, options) {
|
10438 |
+
return createNotice('error', content, options);
|
10439 |
+
}
|
10440 |
/**
|
10441 |
+
* Returns an action object used in signalling that a warning notice is to be
|
10442 |
+
* created. Refer to `createNotice` for options documentation.
|
10443 |
+
*
|
10444 |
+
* @see createNotice
|
10445 |
+
*
|
10446 |
+
* @param {string} content Notice message.
|
10447 |
+
* @param {Object} [options] Optional notice options.
|
10448 |
+
*
|
10449 |
+
* @return {Object} Action object.
|
10450 |
+
*/
|
10451 |
+
|
10452 |
+
function createWarningNotice(content, options) {
|
10453 |
+
return createNotice('warning', content, options);
|
10454 |
+
}
|
10455 |
+
/**
|
10456 |
+
* Returns an action object used in signalling that a notice is to be removed.
|
10457 |
+
*
|
10458 |
+
* @param {string} id Notice unique identifier.
|
10459 |
+
* @param {string} [context='global'] Optional context (grouping) in which the notice is
|
10460 |
+
* intended to appear. Defaults to default context.
|
10461 |
+
*
|
10462 |
+
* @return {Object} Action object.
|
10463 |
*/
|
10464 |
|
10465 |
+
function removeNotice(id) {
|
10466 |
+
var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_CONTEXT;
|
10467 |
+
return {
|
10468 |
+
type: 'REMOVE_NOTICE',
|
10469 |
+
id: id,
|
10470 |
+
context: context
|
10471 |
+
};
|
10472 |
+
}
|
10473 |
+
//# sourceMappingURL=actions.js.map
|
10474 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/selectors.js
|
10475 |
/**
|
10476 |
* Internal dependencies
|
10477 |
*/
|
10478 |
|
10479 |
+
/** @typedef {import('./actions').WPNoticeAction} WPNoticeAction */
|
10480 |
|
10481 |
+
/**
|
10482 |
+
* The default empty set of notices to return when there are no notices
|
10483 |
+
* assigned for a given notices context. This can occur if the getNotices
|
10484 |
+
* selector is called without a notice ever having been created for the
|
10485 |
+
* context. A shared value is used to ensure referential equality between
|
10486 |
+
* sequential selector calls, since otherwise `[] !== []`.
|
10487 |
+
*
|
10488 |
+
* @type {Array}
|
10489 |
+
*/
|
10490 |
|
10491 |
+
var DEFAULT_NOTICES = [];
|
10492 |
+
/**
|
10493 |
+
* @typedef {Object} WPNotice Notice object.
|
10494 |
+
*
|
10495 |
+
* @property {string} id Unique identifier of notice.
|
10496 |
+
* @property {string} status Status of notice, one of `success`,
|
10497 |
+
* `info`, `error`, or `warning`. Defaults
|
10498 |
+
* to `info`.
|
10499 |
+
* @property {string} content Notice message.
|
10500 |
+
* @property {string} __unstableHTML Notice message as raw HTML. Intended to
|
10501 |
+
* serve primarily for compatibility of
|
10502 |
+
* server-rendered notices, and SHOULD NOT
|
10503 |
+
* be used for notices. It is subject to
|
10504 |
+
* removal without notice.
|
10505 |
+
* @property {boolean} isDismissible Whether the notice can be dismissed by
|
10506 |
+
* user. Defaults to `true`.
|
10507 |
+
* @property {string} type Type of notice, one of `default`,
|
10508 |
+
* or `snackbar`. Defaults to `default`.
|
10509 |
+
* @property {boolean} speak Whether the notice content should be
|
10510 |
+
* announced to screen readers. Defaults to
|
10511 |
+
* `true`.
|
10512 |
+
* @property {WPNoticeAction[]} actions User actions to present with notice.
|
10513 |
+
*
|
10514 |
+
*/
|
10515 |
|
10516 |
+
/**
|
10517 |
+
* Returns all notices as an array, optionally for a given context. Defaults to
|
10518 |
+
* the global context.
|
10519 |
+
*
|
10520 |
+
* @param {Object} state Notices state.
|
10521 |
+
* @param {?string} context Optional grouping context.
|
10522 |
+
*
|
10523 |
+
* @return {WPNotice[]} Array of notices.
|
10524 |
+
*/
|
10525 |
|
10526 |
+
function getNotices(state) {
|
10527 |
+
var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_CONTEXT;
|
10528 |
+
return state[context] || DEFAULT_NOTICES;
|
10529 |
+
}
|
10530 |
+
//# sourceMappingURL=selectors.js.map
|
10531 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/a11y/build-module/index.js + 4 modules
|
10532 |
+
var build_module = __webpack_require__(140);
|
10533 |
|
10534 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/controls.js
|
10535 |
+
/**
|
10536 |
+
* WordPress dependencies
|
10537 |
+
*/
|
|
|
|
|
|
|
|
|
10538 |
|
10539 |
+
/* harmony default export */ var controls = ({
|
10540 |
+
SPEAK: function SPEAK(action) {
|
10541 |
+
Object(build_module["a" /* speak */])(action.message, action.ariaLive || 'assertive');
|
10542 |
+
}
|
10543 |
+
});
|
10544 |
+
//# sourceMappingURL=controls.js.map
|
10545 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/index.js
|
10546 |
+
/**
|
10547 |
+
* WordPress dependencies
|
10548 |
+
*/
|
10549 |
|
10550 |
/**
|
10551 |
+
* Internal dependencies
|
10552 |
*/
|
10553 |
|
10554 |
|
10555 |
|
10556 |
|
10557 |
+
|
10558 |
+
/* harmony default export */ var store = (Object(external_this_wp_data_["registerStore"])('core/notices', {
|
10559 |
+
reducer: store_reducer,
|
10560 |
+
actions: actions_namespaceObject,
|
10561 |
+
selectors: selectors_namespaceObject,
|
10562 |
+
controls: controls
|
10563 |
+
}));
|
10564 |
+
//# sourceMappingURL=index.js.map
|
10565 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/index.js
|
10566 |
/**
|
10567 |
* Internal dependencies
|
10568 |
*/
|
10569 |
|
10570 |
+
//# sourceMappingURL=index.js.map
|
10571 |
|
10572 |
+
/***/ }),
|
10573 |
|
10574 |
+
/***/ 482:
|
10575 |
+
/***/ (function(module, exports) {
|
10576 |
|
10577 |
+
(function() { module.exports = this["wc"]["csvExport"]; }());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10578 |
|
10579 |
+
/***/ }),
|
10580 |
|
10581 |
+
/***/ 49:
|
10582 |
+
/***/ (function(module, exports, __webpack_require__) {
|
|
|
10583 |
|
10584 |
+
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10585 |
|
|
|
|
|
|
|
|
|
|
|
10586 |
|
10587 |
+
var stringify = __webpack_require__(90);
|
10588 |
+
var parse = __webpack_require__(91);
|
10589 |
+
var formats = __webpack_require__(52);
|
|
|
10590 |
|
10591 |
+
module.exports = {
|
10592 |
+
formats: formats,
|
10593 |
+
parse: parse,
|
10594 |
+
stringify: stringify
|
10595 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10596 |
|
10597 |
|
10598 |
/***/ }),
|
10599 |
|
10600 |
+
/***/ 498:
|
10601 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10602 |
|
10603 |
"use strict";
|
10604 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
10605 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
10606 |
+
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67);
|
10607 |
|
|
|
|
|
10608 |
|
10609 |
+
/**
|
10610 |
+
* WordPress dependencies
|
10611 |
+
*/
|
10612 |
+
|
10613 |
+
var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__[/* SVG */ "b"], {
|
10614 |
+
xmlns: "http://www.w3.org/2000/svg",
|
10615 |
+
viewBox: "0 0 24 24"
|
10616 |
+
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__[/* Path */ "a"], {
|
10617 |
+
d: "M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"
|
10618 |
+
}));
|
10619 |
+
/* harmony default export */ __webpack_exports__["a"] = (close);
|
10620 |
+
//# sourceMappingURL=close.js.map
|
10621 |
|
10622 |
+
/***/ }),
|
|
|
10623 |
|
10624 |
+
/***/ 5:
|
10625 |
+
/***/ (function(module, exports) {
|
10626 |
|
10627 |
+
function _defineProperty(obj, key, value) {
|
10628 |
+
if (key in obj) {
|
10629 |
+
Object.defineProperty(obj, key, {
|
10630 |
+
value: value,
|
10631 |
+
enumerable: true,
|
10632 |
+
configurable: true,
|
10633 |
+
writable: true
|
10634 |
+
});
|
10635 |
+
} else {
|
10636 |
+
obj[key] = value;
|
10637 |
+
}
|
10638 |
|
10639 |
+
return obj;
|
10640 |
+
}
|
10641 |
|
10642 |
+
module.exports = _defineProperty;
|
|
|
10643 |
|
10644 |
+
/***/ }),
|
10645 |
|
10646 |
+
/***/ 50:
|
10647 |
+
/***/ (function(module, exports) {
|
10648 |
|
10649 |
+
(function() { module.exports = this["ReactDOM"]; }());
|
|
|
|
|
10650 |
|
10651 |
+
/***/ }),
|
10652 |
|
10653 |
+
/***/ 52:
|
10654 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10655 |
|
10656 |
+
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10657 |
|
|
|
|
|
|
|
10658 |
|
10659 |
+
var replace = String.prototype.replace;
|
10660 |
+
var percentTwenties = /%20/g;
|
10661 |
+
|
10662 |
+
var Format = {
|
10663 |
+
RFC1738: 'RFC1738',
|
10664 |
+
RFC3986: 'RFC3986'
|
10665 |
+
};
|
10666 |
|
10667 |
+
module.exports = {
|
10668 |
+
'default': Format.RFC3986,
|
10669 |
+
formatters: {
|
10670 |
+
RFC1738: function (value) {
|
10671 |
+
return replace.call(value, percentTwenties, '+');
|
10672 |
+
},
|
10673 |
+
RFC3986: function (value) {
|
10674 |
+
return String(value);
|
10675 |
+
}
|
10676 |
+
},
|
10677 |
+
RFC1738: Format.RFC1738,
|
10678 |
+
RFC3986: Format.RFC3986
|
10679 |
};
|
10680 |
|
|
|
|
|
10681 |
|
10682 |
+
/***/ }),
|
10683 |
+
|
10684 |
+
/***/ 54:
|
10685 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10686 |
|
10687 |
+
"use strict";
|
10688 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return domReady; });
|
10689 |
/**
|
10690 |
+
* @typedef {() => void} Callback
|
10691 |
+
*
|
10692 |
+
* TODO: Remove this typedef and inline `() => void` type.
|
10693 |
+
*
|
10694 |
+
* This typedef is used so that a descriptive type is provided in our
|
10695 |
+
* automatically generated documentation.
|
10696 |
+
*
|
10697 |
+
* An in-line type `() => void` would be preferable, but the generated
|
10698 |
+
* documentation is `null` in that case.
|
10699 |
+
*
|
10700 |
+
* @see https://github.com/WordPress/gutenberg/issues/18045
|
10701 |
*/
|
10702 |
|
10703 |
/**
|
10704 |
+
* Specify a function to execute when the DOM is fully loaded.
|
10705 |
+
*
|
10706 |
+
* @param {Callback} callback A function to execute after the DOM is ready.
|
10707 |
+
*
|
10708 |
+
* @example
|
10709 |
+
* ```js
|
10710 |
+
* import domReady from '@wordpress/dom-ready';
|
10711 |
+
*
|
10712 |
+
* domReady( function() {
|
10713 |
+
* //do something after DOM loads.
|
10714 |
+
* } );
|
10715 |
+
* ```
|
10716 |
+
*
|
10717 |
+
* @return {void}
|
10718 |
*/
|
10719 |
+
function domReady(callback) {
|
10720 |
+
if (document.readyState === 'complete' || // DOMContentLoaded + Images/Styles/etc loaded, so we call directly.
|
10721 |
+
document.readyState === 'interactive' // DOMContentLoaded fires at this point, so we call directly.
|
10722 |
+
) {
|
10723 |
+
return void callback();
|
10724 |
+
} // DOMContentLoaded has not fired yet, delay callback until then.
|
10725 |
|
10726 |
|
10727 |
+
document.addEventListener('DOMContentLoaded', callback);
|
10728 |
+
}
|
10729 |
+
//# sourceMappingURL=index.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10730 |
|
10731 |
+
/***/ }),
|
10732 |
|
10733 |
+
/***/ 55:
|
10734 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10735 |
|
10736 |
+
"use strict";
|
10737 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
10738 |
+
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42);
|
10739 |
|
10740 |
+
function _objectWithoutProperties(source, excluded) {
|
10741 |
+
if (source == null) return {};
|
10742 |
+
var target = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
10743 |
+
var key, i;
|
10744 |
|
10745 |
+
if (Object.getOwnPropertySymbols) {
|
10746 |
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
10747 |
|
10748 |
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
10749 |
+
key = sourceSymbolKeys[i];
|
10750 |
+
if (excluded.indexOf(key) >= 0) continue;
|
10751 |
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
10752 |
+
target[key] = source[key];
|
10753 |
+
}
|
10754 |
+
}
|
10755 |
|
10756 |
+
return target;
|
10757 |
+
}
|
10758 |
|
10759 |
+
/***/ }),
|
10760 |
|
10761 |
+
/***/ 56:
|
10762 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10763 |
|
10764 |
+
"use strict";
|
10765 |
+
var isProduction = "production" === 'production';
|
10766 |
+
var prefix = 'Invariant failed';
|
10767 |
+
function invariant(condition, message) {
|
10768 |
+
if (condition) {
|
10769 |
+
return;
|
10770 |
+
}
|
10771 |
+
if (isProduction) {
|
10772 |
+
throw new Error(prefix);
|
10773 |
+
}
|
10774 |
+
throw new Error(prefix + ": " + (message || ''));
|
10775 |
}
|
10776 |
|
10777 |
+
/* harmony default export */ __webpack_exports__["a"] = (invariant);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10778 |
|
|
|
|
|
|
|
10779 |
|
10780 |
+
/***/ }),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10781 |
|
10782 |
+
/***/ 57:
|
10783 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10784 |
|
10785 |
+
var arrayLikeToArray = __webpack_require__(37);
|
10786 |
|
10787 |
+
function _arrayWithoutHoles(arr) {
|
10788 |
+
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
10789 |
+
}
|
10790 |
|
10791 |
+
module.exports = _arrayWithoutHoles;
|
10792 |
|
10793 |
/***/ }),
|
10794 |
|
10795 |
+
/***/ 58:
|
10796 |
+
/***/ (function(module, exports) {
|
10797 |
|
10798 |
+
function _iterableToArray(iter) {
|
10799 |
+
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
10800 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10801 |
|
10802 |
+
module.exports = _iterableToArray;
|
10803 |
|
10804 |
+
/***/ }),
|
|
|
|
|
10805 |
|
10806 |
+
/***/ 59:
|
10807 |
+
/***/ (function(module, exports) {
|
10808 |
|
10809 |
+
function _nonIterableSpread() {
|
10810 |
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
10811 |
+
}
|
10812 |
|
10813 |
+
module.exports = _nonIterableSpread;
|
|
|
|
|
10814 |
|
10815 |
+
/***/ }),
|
10816 |
|
10817 |
+
/***/ 6:
|
10818 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10819 |
|
10820 |
+
/*!
|
10821 |
+
Copyright (c) 2017 Jed Watson.
|
10822 |
+
Licensed under the MIT License (MIT), see
|
10823 |
+
http://jedwatson.github.io/classnames
|
10824 |
+
*/
|
10825 |
+
/* global define */
|
10826 |
|
10827 |
+
(function () {
|
10828 |
+
'use strict';
|
10829 |
|
10830 |
+
var hasOwn = {}.hasOwnProperty;
|
|
|
|
|
|
|
|
|
10831 |
|
10832 |
+
function classNames () {
|
10833 |
+
var classes = [];
|
|
|
10834 |
|
10835 |
+
for (var i = 0; i < arguments.length; i++) {
|
10836 |
+
var arg = arguments[i];
|
10837 |
+
if (!arg) continue;
|
|
|
|
|
10838 |
|
10839 |
+
var argType = typeof arg;
|
|
|
|
|
10840 |
|
10841 |
+
if (argType === 'string' || argType === 'number') {
|
10842 |
+
classes.push(arg);
|
10843 |
+
} else if (Array.isArray(arg) && arg.length) {
|
10844 |
+
var inner = classNames.apply(null, arg);
|
10845 |
+
if (inner) {
|
10846 |
+
classes.push(inner);
|
10847 |
+
}
|
10848 |
+
} else if (argType === 'object') {
|
10849 |
+
for (var key in arg) {
|
10850 |
+
if (hasOwn.call(arg, key) && arg[key]) {
|
10851 |
+
classes.push(key);
|
10852 |
+
}
|
10853 |
+
}
|
10854 |
+
}
|
10855 |
+
}
|
10856 |
|
10857 |
+
return classes.join(' ');
|
10858 |
+
}
|
|
|
10859 |
|
10860 |
+
if ( true && module.exports) {
|
10861 |
+
classNames.default = classNames;
|
10862 |
+
module.exports = classNames;
|
10863 |
+
} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
|
10864 |
+
// register as 'classnames', consistent with npm package name
|
10865 |
+
define('classnames', [], function () {
|
10866 |
+
return classNames;
|
10867 |
+
});
|
10868 |
+
} else {
|
10869 |
+
window.classNames = classNames;
|
10870 |
+
}
|
10871 |
+
}());
|
10872 |
|
|
|
|
|
10873 |
|
10874 |
+
/***/ }),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10875 |
|
10876 |
+
/***/ 60:
|
10877 |
+
/***/ (function(module, exports) {
|
10878 |
|
10879 |
+
function _arrayWithHoles(arr) {
|
10880 |
+
if (Array.isArray(arr)) return arr;
|
|
|
|
|
|
|
|
|
10881 |
}
|
10882 |
+
|
10883 |
+
module.exports = _arrayWithHoles;
|
10884 |
|
10885 |
/***/ }),
|
10886 |
|
10887 |
+
/***/ 61:
|
10888 |
/***/ (function(module, exports) {
|
10889 |
|
10890 |
+
function _iterableToArrayLimit(arr, i) {
|
10891 |
+
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
10892 |
+
var _arr = [];
|
10893 |
+
var _n = true;
|
10894 |
+
var _d = false;
|
10895 |
+
var _e = undefined;
|
10896 |
|
10897 |
+
try {
|
10898 |
+
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
10899 |
+
_arr.push(_s.value);
|
10900 |
|
10901 |
+
if (i && _arr.length === i) break;
|
10902 |
+
}
|
10903 |
+
} catch (err) {
|
10904 |
+
_d = true;
|
10905 |
+
_e = err;
|
10906 |
+
} finally {
|
10907 |
+
try {
|
10908 |
+
if (!_n && _i["return"] != null) _i["return"]();
|
10909 |
+
} finally {
|
10910 |
+
if (_d) throw _e;
|
10911 |
+
}
|
10912 |
+
}
|
10913 |
|
10914 |
+
return _arr;
|
10915 |
+
}
|
10916 |
+
|
10917 |
+
module.exports = _iterableToArrayLimit;
|
10918 |
|
10919 |
/***/ }),
|
10920 |
|
10921 |
+
/***/ 62:
|
10922 |
/***/ (function(module, exports) {
|
10923 |
|
10924 |
+
function _nonIterableRest() {
|
10925 |
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
10926 |
+
}
|
10927 |
+
|
10928 |
+
module.exports = _nonIterableRest;
|
10929 |
|
10930 |
/***/ }),
|
10931 |
|
10932 |
+
/***/ 67:
|
10933 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10934 |
|
10935 |
+
"use strict";
|
10936 |
+
/* unused harmony export Circle */
|
10937 |
+
/* unused harmony export G */
|
10938 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Path; });
|
10939 |
+
/* unused harmony export Polygon */
|
10940 |
+
/* unused harmony export Rect */
|
10941 |
+
/* unused harmony export Defs */
|
10942 |
+
/* unused harmony export RadialGradient */
|
10943 |
+
/* unused harmony export LinearGradient */
|
10944 |
+
/* unused harmony export Stop */
|
10945 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SVG; });
|
10946 |
+
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36);
|
10947 |
+
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55);
|
10948 |
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
10949 |
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
10950 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0);
|
10951 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__);
|
10952 |
|
|
|
10953 |
|
|
|
|
|
10954 |
|
10955 |
+
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; }
|
10956 |
|
10957 |
+
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) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(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; }
|
10958 |
|
10959 |
+
/**
|
10960 |
+
* External dependencies
|
10961 |
+
*/
|
10962 |
|
10963 |
+
/**
|
10964 |
+
* WordPress dependencies
|
10965 |
+
*/
|
10966 |
|
|
|
10967 |
|
10968 |
+
/** @typedef {{isPressed?: boolean} & import('react').ComponentPropsWithoutRef<'svg'>} SVGProps */
|
|
|
10969 |
|
10970 |
+
/**
|
10971 |
+
* @param {import('react').ComponentPropsWithoutRef<'circle'>} props
|
10972 |
+
*
|
10973 |
+
* @return {JSX.Element} Circle component
|
10974 |
+
*/
|
10975 |
|
10976 |
+
var Circle = function Circle(props) {
|
10977 |
+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('circle', props);
|
10978 |
+
};
|
10979 |
+
/**
|
10980 |
+
* @param {import('react').ComponentPropsWithoutRef<'g'>} props
|
10981 |
+
*
|
10982 |
+
* @return {JSX.Element} G component
|
10983 |
+
*/
|
10984 |
|
10985 |
+
var G = function G(props) {
|
10986 |
+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('g', props);
|
10987 |
+
};
|
10988 |
+
/**
|
10989 |
+
* @param {import('react').ComponentPropsWithoutRef<'path'>} props
|
10990 |
+
*
|
10991 |
+
* @return {JSX.Element} Path component
|
10992 |
+
*/
|
10993 |
|
10994 |
+
var Path = function Path(props) {
|
10995 |
+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('path', props);
|
10996 |
+
};
|
10997 |
+
/**
|
10998 |
+
* @param {import('react').ComponentPropsWithoutRef<'polygon'>} props
|
10999 |
+
*
|
11000 |
+
* @return {JSX.Element} Polygon component
|
11001 |
+
*/
|
11002 |
|
11003 |
+
var Polygon = function Polygon(props) {
|
11004 |
+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('polygon', props);
|
11005 |
+
};
|
11006 |
+
/**
|
11007 |
+
* @param {import('react').ComponentPropsWithoutRef<'rect'>} props
|
11008 |
+
*
|
11009 |
+
* @return {JSX.Element} Rect component
|
11010 |
+
*/
|
11011 |
|
11012 |
+
var Rect = function Rect(props) {
|
11013 |
+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('rect', props);
|
11014 |
+
};
|
11015 |
+
/**
|
11016 |
+
* @param {import('react').ComponentPropsWithoutRef<'defs'>} props
|
11017 |
+
*
|
11018 |
+
* @return {JSX.Element} Defs component
|
11019 |
+
*/
|
11020 |
|
11021 |
+
var Defs = function Defs(props) {
|
11022 |
+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('defs', props);
|
11023 |
+
};
|
11024 |
+
/**
|
11025 |
+
* @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props
|
11026 |
+
*
|
11027 |
+
* @return {JSX.Element} RadialGradient component
|
11028 |
+
*/
|
11029 |
|
11030 |
+
var RadialGradient = function RadialGradient(props) {
|
11031 |
+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('radialGradient', props);
|
11032 |
+
};
|
11033 |
+
/**
|
11034 |
+
* @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props
|
11035 |
+
*
|
11036 |
+
* @return {JSX.Element} LinearGradient component
|
11037 |
+
*/
|
11038 |
|
11039 |
+
var LinearGradient = function LinearGradient(props) {
|
11040 |
+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('linearGradient', props);
|
11041 |
+
};
|
11042 |
+
/**
|
11043 |
+
* @param {import('react').ComponentPropsWithoutRef<'stop'>} props
|
11044 |
+
*
|
11045 |
+
* @return {JSX.Element} Stop component
|
11046 |
+
*/
|
11047 |
|
11048 |
+
var Stop = function Stop(props) {
|
11049 |
+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('stop', props);
|
11050 |
+
};
|
11051 |
+
/**
|
11052 |
+
*
|
11053 |
+
* @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed.
|
11054 |
+
* Other props will be passed through to svg component.
|
11055 |
+
*
|
11056 |
+
* @return {JSX.Element} Stop component
|
11057 |
+
*/
|
11058 |
+
|
11059 |
+
var SVG = function SVG(_ref) {
|
11060 |
+
var className = _ref.className,
|
11061 |
+
isPressed = _ref.isPressed,
|
11062 |
+
props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["className", "isPressed"]);
|
11063 |
+
|
11064 |
+
var appliedProps = _objectSpread(_objectSpread({}, props), {}, {
|
11065 |
+
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, {
|
11066 |
+
'is-pressed': isPressed
|
11067 |
+
}) || undefined,
|
11068 |
+
role: 'img',
|
11069 |
+
'aria-hidden': true,
|
11070 |
+
focusable: false
|
11071 |
+
}); // Disable reason: We need to have a way to render HTML tag for web.
|
11072 |
+
// eslint-disable-next-line react/forbid-elements
|
11073 |
+
|
11074 |
+
|
11075 |
+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("svg", appliedProps);
|
11076 |
+
};
|
11077 |
+
//# sourceMappingURL=index.js.map
|
11078 |
|
11079 |
/***/ }),
|
11080 |
|
11081 |
+
/***/ 68:
|
11082 |
/***/ (function(module, exports, __webpack_require__) {
|
11083 |
|
11084 |
+
/**
|
11085 |
+
* Copyright (c) 2014-present, Facebook, Inc.
|
11086 |
+
*
|
11087 |
+
* This source code is licensed under the MIT license found in the
|
11088 |
+
* LICENSE file in the root directory of this source tree.
|
11089 |
+
*/
|
11090 |
|
11091 |
+
var runtime = (function (exports) {
|
11092 |
+
"use strict";
|
11093 |
|
11094 |
+
var Op = Object.prototype;
|
11095 |
+
var hasOwn = Op.hasOwnProperty;
|
11096 |
+
var undefined; // More compressible than void 0.
|
11097 |
+
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
11098 |
+
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
11099 |
+
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
11100 |
+
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
11101 |
|
11102 |
+
function define(obj, key, value) {
|
11103 |
+
Object.defineProperty(obj, key, {
|
11104 |
+
value: value,
|
11105 |
+
enumerable: true,
|
11106 |
+
configurable: true,
|
11107 |
+
writable: true
|
11108 |
+
});
|
11109 |
+
return obj[key];
|
11110 |
+
}
|
11111 |
+
try {
|
11112 |
+
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
11113 |
+
define({}, "");
|
11114 |
+
} catch (err) {
|
11115 |
+
define = function(obj, key, value) {
|
11116 |
+
return obj[key] = value;
|
11117 |
+
};
|
11118 |
+
}
|
11119 |
|
11120 |
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
11121 |
+
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
11122 |
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
11123 |
+
var generator = Object.create(protoGenerator.prototype);
|
11124 |
+
var context = new Context(tryLocsList || []);
|
11125 |
|
11126 |
+
// The ._invoke method unifies the implementations of the .next,
|
11127 |
+
// .throw, and .return methods.
|
11128 |
+
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
11129 |
|
11130 |
+
return generator;
|
11131 |
+
}
|
11132 |
+
exports.wrap = wrap;
|
|
|
|
|
11133 |
|
11134 |
+
// Try/catch helper to minimize deoptimizations. Returns a completion
|
11135 |
+
// record like context.tryEntries[i].completion. This interface could
|
11136 |
+
// have been (and was previously) designed to take a closure to be
|
11137 |
+
// invoked without arguments, but in all the cases we care about we
|
11138 |
+
// already have an existing method we want to call, so there's no need
|
11139 |
+
// to create a new function object. We can even get away with assuming
|
11140 |
+
// the method takes exactly one argument, since that happens to be true
|
11141 |
+
// in every case, so we don't have to touch the arguments object. The
|
11142 |
+
// only additional allocation required is the completion record, which
|
11143 |
+
// has a stable shape and so hopefully should be cheap to allocate.
|
11144 |
+
function tryCatch(fn, obj, arg) {
|
11145 |
+
try {
|
11146 |
+
return { type: "normal", arg: fn.call(obj, arg) };
|
11147 |
+
} catch (err) {
|
11148 |
+
return { type: "throw", arg: err };
|
11149 |
+
}
|
11150 |
+
}
|
11151 |
|
11152 |
+
var GenStateSuspendedStart = "suspendedStart";
|
11153 |
+
var GenStateSuspendedYield = "suspendedYield";
|
11154 |
+
var GenStateExecuting = "executing";
|
11155 |
+
var GenStateCompleted = "completed";
|
11156 |
|
11157 |
+
// Returning this object from the innerFn has the same effect as
|
11158 |
+
// breaking out of the dispatch switch statement.
|
11159 |
+
var ContinueSentinel = {};
|
|
|
|
|
|
|
|
|
|
|
11160 |
|
11161 |
+
// Dummy constructor functions that we use as the .constructor and
|
11162 |
+
// .constructor.prototype properties for functions that return Generator
|
11163 |
+
// objects. For full spec compliance, you may wish to configure your
|
11164 |
+
// minifier not to mangle the names of these two functions.
|
11165 |
+
function Generator() {}
|
11166 |
+
function GeneratorFunction() {}
|
11167 |
+
function GeneratorFunctionPrototype() {}
|
11168 |
|
11169 |
+
// This is a polyfill for %IteratorPrototype% for environments that
|
11170 |
+
// don't natively support it.
|
11171 |
+
var IteratorPrototype = {};
|
11172 |
+
IteratorPrototype[iteratorSymbol] = function () {
|
11173 |
+
return this;
|
11174 |
+
};
|
11175 |
|
11176 |
+
var getProto = Object.getPrototypeOf;
|
11177 |
+
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
11178 |
+
if (NativeIteratorPrototype &&
|
11179 |
+
NativeIteratorPrototype !== Op &&
|
11180 |
+
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
11181 |
+
// This environment has a native %IteratorPrototype%; use it instead
|
11182 |
+
// of the polyfill.
|
11183 |
+
IteratorPrototype = NativeIteratorPrototype;
|
11184 |
+
}
|
11185 |
+
|
11186 |
+
var Gp = GeneratorFunctionPrototype.prototype =
|
11187 |
+
Generator.prototype = Object.create(IteratorPrototype);
|
11188 |
+
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
11189 |
+
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
11190 |
+
GeneratorFunction.displayName = define(
|
11191 |
+
GeneratorFunctionPrototype,
|
11192 |
+
toStringTagSymbol,
|
11193 |
+
"GeneratorFunction"
|
11194 |
+
);
|
11195 |
|
11196 |
+
// Helper for defining the .next, .throw, and .return methods of the
|
11197 |
+
// Iterator interface in terms of a single ._invoke method.
|
11198 |
+
function defineIteratorMethods(prototype) {
|
11199 |
+
["next", "throw", "return"].forEach(function(method) {
|
11200 |
+
define(prototype, method, function(arg) {
|
11201 |
+
return this._invoke(method, arg);
|
11202 |
+
});
|
11203 |
+
});
|
11204 |
}
|
11205 |
|
11206 |
+
exports.isGeneratorFunction = function(genFun) {
|
11207 |
+
var ctor = typeof genFun === "function" && genFun.constructor;
|
11208 |
+
return ctor
|
11209 |
+
? ctor === GeneratorFunction ||
|
11210 |
+
// For the native GeneratorFunction constructor, the best we can
|
11211 |
+
// do is to check its .name property.
|
11212 |
+
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
11213 |
+
: false;
|
11214 |
+
};
|
11215 |
|
11216 |
+
exports.mark = function(genFun) {
|
11217 |
+
if (Object.setPrototypeOf) {
|
11218 |
+
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
11219 |
+
} else {
|
11220 |
+
genFun.__proto__ = GeneratorFunctionPrototype;
|
11221 |
+
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
11222 |
+
}
|
11223 |
+
genFun.prototype = Object.create(Gp);
|
11224 |
+
return genFun;
|
11225 |
+
};
|
11226 |
|
11227 |
+
// Within the body of any async function, `await x` is transformed to
|
11228 |
+
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
11229 |
+
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
11230 |
+
// meant to be awaited.
|
11231 |
+
exports.awrap = function(arg) {
|
11232 |
+
return { __await: arg };
|
11233 |
+
};
|
11234 |
|
11235 |
+
function AsyncIterator(generator, PromiseImpl) {
|
11236 |
+
function invoke(method, arg, resolve, reject) {
|
11237 |
+
var record = tryCatch(generator[method], generator, arg);
|
11238 |
+
if (record.type === "throw") {
|
11239 |
+
reject(record.arg);
|
11240 |
+
} else {
|
11241 |
+
var result = record.arg;
|
11242 |
+
var value = result.value;
|
11243 |
+
if (value &&
|
11244 |
+
typeof value === "object" &&
|
11245 |
+
hasOwn.call(value, "__await")) {
|
11246 |
+
return PromiseImpl.resolve(value.__await).then(function(value) {
|
11247 |
+
invoke("next", value, resolve, reject);
|
11248 |
+
}, function(err) {
|
11249 |
+
invoke("throw", err, resolve, reject);
|
11250 |
+
});
|
11251 |
+
}
|
11252 |
|
11253 |
+
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
11254 |
+
// When a yielded Promise is resolved, its final value becomes
|
11255 |
+
// the .value of the Promise<{value,done}> result for the
|
11256 |
+
// current iteration.
|
11257 |
+
result.value = unwrapped;
|
11258 |
+
resolve(result);
|
11259 |
+
}, function(error) {
|
11260 |
+
// If a rejected Promise was yielded, throw the rejection back
|
11261 |
+
// into the async generator function so it can be handled there.
|
11262 |
+
return invoke("throw", error, resolve, reject);
|
11263 |
+
});
|
11264 |
+
}
|
11265 |
+
}
|
11266 |
|
11267 |
+
var previousPromise;
|
|
|
|
|
|
|
|
|
11268 |
|
11269 |
+
function enqueue(method, arg) {
|
11270 |
+
function callInvokeWithMethodAndArg() {
|
11271 |
+
return new PromiseImpl(function(resolve, reject) {
|
11272 |
+
invoke(method, arg, resolve, reject);
|
11273 |
+
});
|
11274 |
+
}
|
11275 |
+
|
11276 |
+
return previousPromise =
|
11277 |
+
// If enqueue has been called before, then we want to wait until
|
11278 |
+
// all previous Promises have been resolved before calling invoke,
|
11279 |
+
// so that results are always delivered in the correct order. If
|
11280 |
+
// enqueue has not been called before, then it is important to
|
11281 |
+
// call invoke immediately, without waiting on a callback to fire,
|
11282 |
+
// so that the async generator function has the opportunity to do
|
11283 |
+
// any necessary setup in a predictable way. This predictability
|
11284 |
+
// is why the Promise constructor synchronously invokes its
|
11285 |
+
// executor callback, and why async functions synchronously
|
11286 |
+
// execute code before the first await. Since we implement simple
|
11287 |
+
// async functions in terms of async generators, it is especially
|
11288 |
+
// important to get this right, even though it requires care.
|
11289 |
+
previousPromise ? previousPromise.then(
|
11290 |
+
callInvokeWithMethodAndArg,
|
11291 |
+
// Avoid propagating failures to Promises returned by later
|
11292 |
+
// invocations of the iterator.
|
11293 |
+
callInvokeWithMethodAndArg
|
11294 |
+
) : callInvokeWithMethodAndArg();
|
11295 |
+
}
|
11296 |
+
|
11297 |
+
// Define the unified helper method that is used to implement .next,
|
11298 |
+
// .throw, and .return (see defineIteratorMethods).
|
11299 |
+
this._invoke = enqueue;
|
11300 |
+
}
|
11301 |
+
|
11302 |
+
defineIteratorMethods(AsyncIterator.prototype);
|
11303 |
+
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
11304 |
+
return this;
|
11305 |
+
};
|
11306 |
+
exports.AsyncIterator = AsyncIterator;
|
11307 |
+
|
11308 |
+
// Note that simple async functions are implemented on top of
|
11309 |
+
// AsyncIterator objects; they just return a Promise for the value of
|
11310 |
+
// the final result produced by the iterator.
|
11311 |
+
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
11312 |
+
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
11313 |
+
|
11314 |
+
var iter = new AsyncIterator(
|
11315 |
+
wrap(innerFn, outerFn, self, tryLocsList),
|
11316 |
+
PromiseImpl
|
11317 |
+
);
|
11318 |
+
|
11319 |
+
return exports.isGeneratorFunction(outerFn)
|
11320 |
+
? iter // If outerFn is a generator, return the full iterator.
|
11321 |
+
: iter.next().then(function(result) {
|
11322 |
+
return result.done ? result.value : iter.next();
|
11323 |
+
});
|
11324 |
+
};
|
11325 |
+
|
11326 |
+
function makeInvokeMethod(innerFn, self, context) {
|
11327 |
+
var state = GenStateSuspendedStart;
|
11328 |
|
11329 |
+
return function invoke(method, arg) {
|
11330 |
+
if (state === GenStateExecuting) {
|
11331 |
+
throw new Error("Generator is already running");
|
11332 |
+
}
|
11333 |
|
11334 |
+
if (state === GenStateCompleted) {
|
11335 |
+
if (method === "throw") {
|
11336 |
+
throw arg;
|
11337 |
+
}
|
11338 |
|
11339 |
+
// Be forgiving, per 25.3.3.3.3 of the spec:
|
11340 |
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
11341 |
+
return doneResult();
|
11342 |
+
}
|
|
|
11343 |
|
11344 |
+
context.method = method;
|
11345 |
+
context.arg = arg;
|
|
|
11346 |
|
11347 |
+
while (true) {
|
11348 |
+
var delegate = context.delegate;
|
11349 |
+
if (delegate) {
|
11350 |
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
11351 |
+
if (delegateResult) {
|
11352 |
+
if (delegateResult === ContinueSentinel) continue;
|
11353 |
+
return delegateResult;
|
11354 |
+
}
|
11355 |
+
}
|
11356 |
|
11357 |
+
if (context.method === "next") {
|
11358 |
+
// Setting context._sent for legacy support of Babel's
|
11359 |
+
// function.sent implementation.
|
11360 |
+
context.sent = context._sent = context.arg;
|
11361 |
|
11362 |
+
} else if (context.method === "throw") {
|
11363 |
+
if (state === GenStateSuspendedStart) {
|
11364 |
+
state = GenStateCompleted;
|
11365 |
+
throw context.arg;
|
11366 |
+
}
|
11367 |
|
11368 |
+
context.dispatchException(context.arg);
|
|
|
|
|
|
|
11369 |
|
11370 |
+
} else if (context.method === "return") {
|
11371 |
+
context.abrupt("return", context.arg);
|
11372 |
+
}
|
11373 |
|
11374 |
+
state = GenStateExecuting;
|
|
|
11375 |
|
11376 |
+
var record = tryCatch(innerFn, self, context);
|
11377 |
+
if (record.type === "normal") {
|
11378 |
+
// If an exception is thrown from innerFn, we leave state ===
|
11379 |
+
// GenStateExecuting and loop back for another invocation.
|
11380 |
+
state = context.done
|
11381 |
+
? GenStateCompleted
|
11382 |
+
: GenStateSuspendedYield;
|
11383 |
|
11384 |
+
if (record.arg === ContinueSentinel) {
|
11385 |
+
continue;
|
11386 |
+
}
|
11387 |
|
11388 |
+
return {
|
11389 |
+
value: record.arg,
|
11390 |
+
done: context.done
|
11391 |
+
};
|
11392 |
|
11393 |
+
} else if (record.type === "throw") {
|
11394 |
+
state = GenStateCompleted;
|
11395 |
+
// Dispatch the exception by looping back around to the
|
11396 |
+
// context.dispatchException(context.arg) call above.
|
11397 |
+
context.method = "throw";
|
11398 |
+
context.arg = record.arg;
|
11399 |
+
}
|
11400 |
+
}
|
11401 |
+
};
|
11402 |
+
}
|
11403 |
|
11404 |
+
// Call delegate.iterator[context.method](context.arg) and handle the
|
11405 |
+
// result, either by returning a { value, done } result from the
|
11406 |
+
// delegate iterator, or by modifying context.method and context.arg,
|
11407 |
+
// setting context.delegate to null, and returning the ContinueSentinel.
|
11408 |
+
function maybeInvokeDelegate(delegate, context) {
|
11409 |
+
var method = delegate.iterator[context.method];
|
11410 |
+
if (method === undefined) {
|
11411 |
+
// A .throw or .return when the delegate iterator has no .throw
|
11412 |
+
// method always terminates the yield* loop.
|
11413 |
+
context.delegate = null;
|
11414 |
+
|
11415 |
+
if (context.method === "throw") {
|
11416 |
+
// Note: ["return"] must be used for ES3 parsing compatibility.
|
11417 |
+
if (delegate.iterator["return"]) {
|
11418 |
+
// If the delegate iterator has a return method, give it a
|
11419 |
+
// chance to clean up.
|
11420 |
+
context.method = "return";
|
11421 |
+
context.arg = undefined;
|
11422 |
+
maybeInvokeDelegate(delegate, context);
|
11423 |
+
|
11424 |
+
if (context.method === "throw") {
|
11425 |
+
// If maybeInvokeDelegate(context) changed context.method from
|
11426 |
+
// "return" to "throw", let that override the TypeError below.
|
11427 |
+
return ContinueSentinel;
|
11428 |
+
}
|
11429 |
+
}
|
11430 |
|
11431 |
+
context.method = "throw";
|
11432 |
+
context.arg = new TypeError(
|
11433 |
+
"The iterator does not provide a 'throw' method");
|
11434 |
+
}
|
11435 |
|
11436 |
+
return ContinueSentinel;
|
11437 |
+
}
|
11438 |
|
11439 |
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
11440 |
|
11441 |
+
if (record.type === "throw") {
|
11442 |
+
context.method = "throw";
|
11443 |
+
context.arg = record.arg;
|
11444 |
+
context.delegate = null;
|
11445 |
+
return ContinueSentinel;
|
11446 |
+
}
|
11447 |
|
11448 |
+
var info = record.arg;
|
11449 |
|
11450 |
+
if (! info) {
|
11451 |
+
context.method = "throw";
|
11452 |
+
context.arg = new TypeError("iterator result is not an object");
|
11453 |
+
context.delegate = null;
|
11454 |
+
return ContinueSentinel;
|
11455 |
+
}
|
11456 |
|
11457 |
+
if (info.done) {
|
11458 |
+
// Assign the result of the finished delegate to the temporary
|
11459 |
+
// variable specified by delegate.resultName (see delegateYield).
|
11460 |
+
context[delegate.resultName] = info.value;
|
11461 |
|
11462 |
+
// Resume execution at the desired location (see delegateYield).
|
11463 |
+
context.next = delegate.nextLoc;
|
11464 |
|
11465 |
+
// If context.method was "throw" but the delegate handled the
|
11466 |
+
// exception, let the outer generator proceed normally. If
|
11467 |
+
// context.method was "next", forget context.arg since it has been
|
11468 |
+
// "consumed" by the delegate iterator. If context.method was
|
11469 |
+
// "return", allow the original .return call to continue in the
|
11470 |
+
// outer generator.
|
11471 |
+
if (context.method !== "return") {
|
11472 |
+
context.method = "next";
|
11473 |
+
context.arg = undefined;
|
11474 |
+
}
|
11475 |
|
11476 |
+
} else {
|
11477 |
+
// Re-yield the result returned by the delegate method.
|
11478 |
+
return info;
|
11479 |
+
}
|
11480 |
|
11481 |
+
// The delegate iterator is finished, so forget it and continue with
|
11482 |
+
// the outer generator.
|
11483 |
+
context.delegate = null;
|
11484 |
+
return ContinueSentinel;
|
11485 |
+
}
|
11486 |
|
11487 |
+
// Define Generator.prototype.{next,throw,return} in terms of the
|
11488 |
+
// unified ._invoke helper method.
|
11489 |
+
defineIteratorMethods(Gp);
|
11490 |
|
11491 |
+
define(Gp, toStringTagSymbol, "Generator");
|
|
|
11492 |
|
11493 |
+
// A Generator should always return itself as the iterator object when the
|
11494 |
+
// @@iterator function is called on it. Some browsers' implementations of the
|
11495 |
+
// iterator prototype chain incorrectly implement this, causing the Generator
|
11496 |
+
// object to not be returned from this call. This ensures that doesn't happen.
|
11497 |
+
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
11498 |
+
Gp[iteratorSymbol] = function() {
|
11499 |
+
return this;
|
11500 |
+
};
|
11501 |
|
11502 |
+
Gp.toString = function() {
|
11503 |
+
return "[object Generator]";
|
11504 |
+
};
|
11505 |
|
11506 |
+
function pushTryEntry(locs) {
|
11507 |
+
var entry = { tryLoc: locs[0] };
|
|
|
11508 |
|
11509 |
+
if (1 in locs) {
|
11510 |
+
entry.catchLoc = locs[1];
|
11511 |
+
}
|
|
|
|
|
11512 |
|
11513 |
+
if (2 in locs) {
|
11514 |
+
entry.finallyLoc = locs[2];
|
11515 |
+
entry.afterLoc = locs[3];
|
11516 |
+
}
|
11517 |
|
11518 |
+
this.tryEntries.push(entry);
|
11519 |
+
}
|
11520 |
|
11521 |
+
function resetTryEntry(entry) {
|
11522 |
+
var record = entry.completion || {};
|
11523 |
+
record.type = "normal";
|
11524 |
+
delete record.arg;
|
11525 |
+
entry.completion = record;
|
11526 |
+
}
|
11527 |
|
11528 |
+
function Context(tryLocsList) {
|
11529 |
+
// The root entry object (effectively a try statement without a catch
|
11530 |
+
// or a finally block) gives us a place to store values thrown from
|
11531 |
+
// locations where there is no enclosing try statement.
|
11532 |
+
this.tryEntries = [{ tryLoc: "root" }];
|
11533 |
+
tryLocsList.forEach(pushTryEntry, this);
|
11534 |
+
this.reset(true);
|
11535 |
+
}
|
11536 |
|
11537 |
+
exports.keys = function(object) {
|
11538 |
+
var keys = [];
|
11539 |
+
for (var key in object) {
|
11540 |
+
keys.push(key);
|
11541 |
+
}
|
11542 |
+
keys.reverse();
|
11543 |
+
|
11544 |
+
// Rather than returning an object with a next method, we keep
|
11545 |
+
// things simple and return the next function itself.
|
11546 |
+
return function next() {
|
11547 |
+
while (keys.length) {
|
11548 |
+
var key = keys.pop();
|
11549 |
+
if (key in object) {
|
11550 |
+
next.value = key;
|
11551 |
+
next.done = false;
|
11552 |
+
return next;
|
11553 |
}
|
11554 |
}
|
|
|
11555 |
|
11556 |
+
// To avoid creating an additional object, we just hang the .value
|
11557 |
+
// and .done properties off the next function object itself. This
|
11558 |
+
// also ensures that the minifier will not anonymize the function.
|
11559 |
+
next.done = true;
|
11560 |
+
return next;
|
11561 |
+
};
|
11562 |
};
|
11563 |
|
11564 |
+
function values(iterable) {
|
11565 |
+
if (iterable) {
|
11566 |
+
var iteratorMethod = iterable[iteratorSymbol];
|
11567 |
+
if (iteratorMethod) {
|
11568 |
+
return iteratorMethod.call(iterable);
|
11569 |
+
}
|
11570 |
|
11571 |
+
if (typeof iterable.next === "function") {
|
11572 |
+
return iterable;
|
11573 |
+
}
|
11574 |
|
11575 |
+
if (!isNaN(iterable.length)) {
|
11576 |
+
var i = -1, next = function next() {
|
11577 |
+
while (++i < iterable.length) {
|
11578 |
+
if (hasOwn.call(iterable, i)) {
|
11579 |
+
next.value = iterable[i];
|
11580 |
+
next.done = false;
|
11581 |
+
return next;
|
11582 |
+
}
|
11583 |
+
}
|
11584 |
|
11585 |
+
next.value = undefined;
|
11586 |
+
next.done = true;
|
11587 |
|
11588 |
+
return next;
|
11589 |
+
};
|
11590 |
|
11591 |
+
return next.next = next;
|
11592 |
+
}
|
11593 |
+
}
|
11594 |
|
11595 |
+
// Return an iterator with no values.
|
11596 |
+
return { next: doneResult };
|
11597 |
+
}
|
11598 |
+
exports.values = values;
|
11599 |
|
11600 |
+
function doneResult() {
|
11601 |
+
return { value: undefined, done: true };
|
11602 |
+
}
|
|
|
11603 |
|
11604 |
+
Context.prototype = {
|
11605 |
+
constructor: Context,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11606 |
|
11607 |
+
reset: function(skipTempReset) {
|
11608 |
+
this.prev = 0;
|
11609 |
+
this.next = 0;
|
11610 |
+
// Resetting context._sent for legacy support of Babel's
|
11611 |
+
// function.sent implementation.
|
11612 |
+
this.sent = this._sent = undefined;
|
11613 |
+
this.done = false;
|
11614 |
+
this.delegate = null;
|
11615 |
|
11616 |
+
this.method = "next";
|
11617 |
+
this.arg = undefined;
|
11618 |
|
11619 |
+
this.tryEntries.forEach(resetTryEntry);
|
|
|
11620 |
|
11621 |
+
if (!skipTempReset) {
|
11622 |
+
for (var name in this) {
|
11623 |
+
// Not sure about the optimal order of these conditions:
|
11624 |
+
if (name.charAt(0) === "t" &&
|
11625 |
+
hasOwn.call(this, name) &&
|
11626 |
+
!isNaN(+name.slice(1))) {
|
11627 |
+
this[name] = undefined;
|
11628 |
+
}
|
11629 |
+
}
|
11630 |
+
}
|
11631 |
+
},
|
11632 |
|
11633 |
+
stop: function() {
|
11634 |
+
this.done = true;
|
11635 |
|
11636 |
+
var rootEntry = this.tryEntries[0];
|
11637 |
+
var rootRecord = rootEntry.completion;
|
11638 |
+
if (rootRecord.type === "throw") {
|
11639 |
+
throw rootRecord.arg;
|
11640 |
+
}
|
11641 |
|
11642 |
+
return this.rval;
|
11643 |
+
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11644 |
|
11645 |
+
dispatchException: function(exception) {
|
11646 |
+
if (this.done) {
|
11647 |
+
throw exception;
|
11648 |
+
}
|
11649 |
|
11650 |
+
var context = this;
|
11651 |
+
function handle(loc, caught) {
|
11652 |
+
record.type = "throw";
|
11653 |
+
record.arg = exception;
|
11654 |
+
context.next = loc;
|
11655 |
+
|
11656 |
+
if (caught) {
|
11657 |
+
// If the dispatched exception was caught by a catch block,
|
11658 |
+
// then let that catch block handle the exception normally.
|
11659 |
+
context.method = "next";
|
11660 |
+
context.arg = undefined;
|
11661 |
+
}
|
11662 |
|
11663 |
+
return !! caught;
|
11664 |
+
}
|
11665 |
|
11666 |
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
11667 |
+
var entry = this.tryEntries[i];
|
11668 |
+
var record = entry.completion;
|
11669 |
|
11670 |
+
if (entry.tryLoc === "root") {
|
11671 |
+
// Exception thrown outside of any try block that could handle
|
11672 |
+
// it, so set the completion value of the entire function to
|
11673 |
+
// throw the exception.
|
11674 |
+
return handle("end");
|
11675 |
+
}
|
|
|
11676 |
|
11677 |
+
if (entry.tryLoc <= this.prev) {
|
11678 |
+
var hasCatch = hasOwn.call(entry, "catchLoc");
|
11679 |
+
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
11680 |
|
11681 |
+
if (hasCatch && hasFinally) {
|
11682 |
+
if (this.prev < entry.catchLoc) {
|
11683 |
+
return handle(entry.catchLoc, true);
|
11684 |
+
} else if (this.prev < entry.finallyLoc) {
|
11685 |
+
return handle(entry.finallyLoc);
|
11686 |
+
}
|
11687 |
|
11688 |
+
} else if (hasCatch) {
|
11689 |
+
if (this.prev < entry.catchLoc) {
|
11690 |
+
return handle(entry.catchLoc, true);
|
11691 |
+
}
|
11692 |
|
11693 |
+
} else if (hasFinally) {
|
11694 |
+
if (this.prev < entry.finallyLoc) {
|
11695 |
+
return handle(entry.finallyLoc);
|
11696 |
+
}
|
11697 |
|
11698 |
+
} else {
|
11699 |
+
throw new Error("try statement without catch or finally");
|
11700 |
+
}
|
11701 |
+
}
|
11702 |
+
}
|
11703 |
+
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11704 |
|
11705 |
+
abrupt: function(type, arg) {
|
11706 |
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
11707 |
+
var entry = this.tryEntries[i];
|
11708 |
+
if (entry.tryLoc <= this.prev &&
|
11709 |
+
hasOwn.call(entry, "finallyLoc") &&
|
11710 |
+
this.prev < entry.finallyLoc) {
|
11711 |
+
var finallyEntry = entry;
|
11712 |
+
break;
|
11713 |
+
}
|
11714 |
+
}
|
|
|
11715 |
|
11716 |
+
if (finallyEntry &&
|
11717 |
+
(type === "break" ||
|
11718 |
+
type === "continue") &&
|
11719 |
+
finallyEntry.tryLoc <= arg &&
|
11720 |
+
arg <= finallyEntry.finallyLoc) {
|
11721 |
+
// Ignore the finally entry if control is not jumping to a
|
11722 |
+
// location outside the try/catch block.
|
11723 |
+
finallyEntry = null;
|
11724 |
+
}
|
11725 |
|
11726 |
+
var record = finallyEntry ? finallyEntry.completion : {};
|
11727 |
+
record.type = type;
|
11728 |
+
record.arg = arg;
|
11729 |
|
11730 |
+
if (finallyEntry) {
|
11731 |
+
this.method = "next";
|
11732 |
+
this.next = finallyEntry.finallyLoc;
|
11733 |
+
return ContinueSentinel;
|
11734 |
+
}
|
11735 |
|
11736 |
+
return this.complete(record);
|
11737 |
+
},
|
11738 |
|
11739 |
+
complete: function(record, afterLoc) {
|
11740 |
+
if (record.type === "throw") {
|
11741 |
+
throw record.arg;
|
11742 |
+
}
|
11743 |
|
11744 |
+
if (record.type === "break" ||
|
11745 |
+
record.type === "continue") {
|
11746 |
+
this.next = record.arg;
|
11747 |
+
} else if (record.type === "return") {
|
11748 |
+
this.rval = this.arg = record.arg;
|
11749 |
+
this.method = "return";
|
11750 |
+
this.next = "end";
|
11751 |
+
} else if (record.type === "normal" && afterLoc) {
|
11752 |
+
this.next = afterLoc;
|
11753 |
+
}
|
11754 |
|
11755 |
+
return ContinueSentinel;
|
11756 |
+
},
|
11757 |
+
|
11758 |
+
finish: function(finallyLoc) {
|
11759 |
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
11760 |
+
var entry = this.tryEntries[i];
|
11761 |
+
if (entry.finallyLoc === finallyLoc) {
|
11762 |
+
this.complete(entry.completion, entry.afterLoc);
|
11763 |
+
resetTryEntry(entry);
|
11764 |
+
return ContinueSentinel;
|
11765 |
+
}
|
11766 |
+
}
|
11767 |
+
},
|
11768 |
|
11769 |
+
"catch": function(tryLoc) {
|
11770 |
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
11771 |
+
var entry = this.tryEntries[i];
|
11772 |
+
if (entry.tryLoc === tryLoc) {
|
11773 |
+
var record = entry.completion;
|
11774 |
+
if (record.type === "throw") {
|
11775 |
+
var thrown = record.arg;
|
11776 |
+
resetTryEntry(entry);
|
11777 |
+
}
|
11778 |
+
return thrown;
|
11779 |
+
}
|
11780 |
+
}
|
11781 |
|
11782 |
+
// The context.catch method must only be called with a location
|
11783 |
+
// argument that corresponds to a known catch block.
|
11784 |
+
throw new Error("illegal catch attempt");
|
11785 |
+
},
|
11786 |
|
11787 |
+
delegateYield: function(iterable, resultName, nextLoc) {
|
11788 |
+
this.delegate = {
|
11789 |
+
iterator: values(iterable),
|
11790 |
+
resultName: resultName,
|
11791 |
+
nextLoc: nextLoc
|
11792 |
+
};
|
11793 |
|
11794 |
+
if (this.method === "next") {
|
11795 |
+
// Deliberately forget the last sent value so that we don't
|
11796 |
+
// accidentally pass it on to the delegate.
|
11797 |
+
this.arg = undefined;
|
11798 |
+
}
|
11799 |
+
|
11800 |
+
return ContinueSentinel;
|
11801 |
+
}
|
11802 |
+
};
|
11803 |
|
11804 |
+
// Regardless of whether this script is executing as a CommonJS module
|
11805 |
+
// or not, return the runtime object so that we can declare the variable
|
11806 |
+
// regeneratorRuntime in the outer scope, which allows this module to be
|
11807 |
+
// injected easily by `bin/regenerator --include-runtime script.js`.
|
11808 |
+
return exports;
|
11809 |
|
11810 |
+
}(
|
11811 |
+
// If this script is executing as a CommonJS module, use module.exports
|
11812 |
+
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
11813 |
+
// object. Either way, the resulting object will be used to initialize
|
11814 |
+
// the regeneratorRuntime variable at the top of this file.
|
11815 |
+
true ? module.exports : undefined
|
11816 |
+
));
|
11817 |
|
11818 |
+
try {
|
11819 |
+
regeneratorRuntime = runtime;
|
11820 |
+
} catch (accidentalStrictMode) {
|
11821 |
+
// This module should not be running in strict mode, so the above
|
11822 |
+
// assignment should always work unless something is misconfigured. Just
|
11823 |
+
// in case runtime.js accidentally runs in strict mode, we can escape
|
11824 |
+
// strict mode using a global Function call. This could conceivably fail
|
11825 |
+
// if a Content Security Policy forbids using Function, but in that case
|
11826 |
+
// the proper solution is to fix the accidental strict mode problem. If
|
11827 |
+
// you've misconfigured your bundler to force strict mode and applied a
|
11828 |
+
// CSP to forbid Function, and you're not willing to fix either of those
|
11829 |
+
// problems, please detail your unique predicament in a GitHub issue.
|
11830 |
+
Function("r", "regeneratorRuntime = r")(runtime);
|
11831 |
+
}
|
11832 |
|
|
|
11833 |
|
11834 |
/***/ }),
|
11835 |
|
11836 |
+
/***/ 69:
|
11837 |
/***/ (function(module, exports, __webpack_require__) {
|
11838 |
|
11839 |
"use strict";
|
11840 |
|
11841 |
|
11842 |
+
var formats = __webpack_require__(52);
|
11843 |
|
11844 |
var has = Object.prototype.hasOwnProperty;
|
11845 |
var isArray = Array.isArray;
|
12092 |
|
12093 |
/***/ }),
|
12094 |
|
12095 |
+
/***/ 7:
|
12096 |
+
/***/ (function(module, exports) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12097 |
|
12098 |
+
function _getPrototypeOf(o) {
|
12099 |
+
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
12100 |
+
return o.__proto__ || Object.getPrototypeOf(o);
|
12101 |
};
|
12102 |
+
return _getPrototypeOf(o);
|
12103 |
}
|
12104 |
|
12105 |
+
module.exports = _getPrototypeOf;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12106 |
|
12107 |
/***/ }),
|
12108 |
|
12109 |
+
/***/ 70:
|
12110 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
12111 |
|
12112 |
"use strict";
|
12113 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; });
|
12114 |
+
function _arrayLikeToArray(arr, len) {
|
12115 |
+
if (len == null || len > arr.length) len = arr.length;
|
|
|
|
|
|
|
|
|
|
|
|
|
12116 |
|
12117 |
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
12118 |
+
arr2[i] = arr[i];
|
12119 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12120 |
|
12121 |
+
return arr2;
|
12122 |
+
}
|
12123 |
|
12124 |
/***/ }),
|
12125 |
|
12126 |
+
/***/ 71:
|
12127 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
12128 |
|
12129 |
"use strict";
|
12138 |
// UNUSED EXPORTS: createHashHistory, parsePath
|
12139 |
|
12140 |
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
12141 |
+
var esm_extends = __webpack_require__(32);
|
12142 |
|
12143 |
// CONCATENATED MODULE: ./node_modules/resolve-pathname/esm/resolve-pathname.js
|
12144 |
function isAbsolute(pathname) {
|
12256 |
/* harmony default export */ var value_equal = (valueEqual);
|
12257 |
|
12258 |
// EXTERNAL MODULE: ./node_modules/tiny-invariant/dist/tiny-invariant.esm.js
|
12259 |
+
var tiny_invariant_esm = __webpack_require__(56);
|
12260 |
|
12261 |
// CONCATENATED MODULE: ./node_modules/history/esm/history.js
|
12262 |
|
13182 |
|
13183 |
/***/ }),
|
13184 |
|
13185 |
+
/***/ 72:
|
13186 |
+
/***/ (function(module, exports) {
|
13187 |
|
13188 |
+
function _setPrototypeOf(o, p) {
|
13189 |
+
module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
13190 |
+
o.__proto__ = p;
|
13191 |
+
return o;
|
13192 |
+
};
|
13193 |
+
|
13194 |
+
return _setPrototypeOf(o, p);
|
13195 |
+
}
|
13196 |
+
|
13197 |
+
module.exports = _setPrototypeOf;
|
13198 |
|
13199 |
/***/ }),
|
13200 |
|
13201 |
+
/***/ 75:
|
13202 |
/***/ (function(module, exports) {
|
13203 |
|
13204 |
+
(function() { module.exports = this["wp"]["date"]; }());
|
13205 |
|
13206 |
/***/ }),
|
13207 |
|
13208 |
+
/***/ 76:
|
13209 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
13210 |
|
13211 |
"use strict";
|
13212 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return STORE_KEY; });
|
13213 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return API_NAMESPACE; });
|
13214 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return QUEUE_OPTION_NAME; });
|
13215 |
+
var STORE_KEY = 'wc/customer-effort-score';
|
13216 |
+
var API_NAMESPACE = '/wc-admin';
|
13217 |
+
var QUEUE_OPTION_NAME = 'woocommerce_ces_tracks_queue';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13218 |
|
13219 |
+
/***/ }),
|
13220 |
|
13221 |
+
/***/ 77:
|
13222 |
+
/***/ (function(module, exports, __webpack_require__) {
|
13223 |
|
13224 |
+
"use strict";
|
13225 |
/**
|
13226 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
13227 |
*
|
13228 |
+
* This source code is licensed under the MIT license found in the
|
13229 |
+
* LICENSE file in the root directory of this source tree.
|
13230 |
*/
|
13231 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13233 |
|
13234 |
+
var ReactPropTypesSecret = __webpack_require__(78);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13235 |
|
13236 |
+
function emptyFunction() {}
|
13237 |
+
function emptyFunctionWithReset() {}
|
13238 |
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
|
|
|
|
|
|
|
13239 |
|
13240 |
+
module.exports = function() {
|
13241 |
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
13242 |
+
if (secret === ReactPropTypesSecret) {
|
13243 |
+
// It is still safe when called from React.
|
13244 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
13245 |
}
|
13246 |
+
var err = new Error(
|
13247 |
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
13248 |
+
'Use PropTypes.checkPropTypes() to call them. ' +
|
13249 |
+
'Read more at http://fb.me/use-check-prop-types'
|
13250 |
+
);
|
13251 |
+
err.name = 'Invariant Violation';
|
13252 |
+
throw err;
|
13253 |
+
};
|
13254 |
+
shim.isRequired = shim;
|
13255 |
+
function getShim() {
|
13256 |
+
return shim;
|
13257 |
+
};
|
13258 |
+
// Important!
|
13259 |
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
13260 |
+
var ReactPropTypes = {
|
13261 |
+
array: shim,
|
13262 |
+
bool: shim,
|
13263 |
+
func: shim,
|
13264 |
+
number: shim,
|
13265 |
+
object: shim,
|
13266 |
+
string: shim,
|
13267 |
+
symbol: shim,
|
13268 |
|
13269 |
+
any: shim,
|
13270 |
+
arrayOf: getShim,
|
13271 |
+
element: shim,
|
13272 |
+
elementType: shim,
|
13273 |
+
instanceOf: getShim,
|
13274 |
+
node: shim,
|
13275 |
+
objectOf: getShim,
|
13276 |
+
oneOf: getShim,
|
13277 |
+
oneOfType: getShim,
|
13278 |
+
shape: getShim,
|
13279 |
+
exact: getShim,
|
|
|
13280 |
|
13281 |
+
checkPropTypes: emptyFunctionWithReset,
|
13282 |
+
resetWarningCache: emptyFunction
|
13283 |
+
};
|
|
|
13284 |
|
13285 |
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
13286 |
+
|
13287 |
+
return ReactPropTypes;
|
13288 |
+
};
|
13289 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13290 |
|
13291 |
+
/***/ }),
|
|
|
|
|
13292 |
|
13293 |
+
/***/ 78:
|
13294 |
+
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
|
|
13295 |
|
13296 |
+
"use strict";
|
|
|
|
|
13297 |
/**
|
13298 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
13299 |
*
|
13300 |
+
* This source code is licensed under the MIT license found in the
|
13301 |
+
* LICENSE file in the root directory of this source tree.
|
13302 |
*/
|
13303 |
|
13304 |
+
|
13305 |
+
|
13306 |
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
13307 |
+
|
13308 |
+
module.exports = ReactPropTypesSecret;
|
13309 |
+
|
13310 |
|
13311 |
/***/ }),
|
13312 |
|
13313 |
+
/***/ 8:
|
13314 |
/***/ (function(module, exports, __webpack_require__) {
|
13315 |
|
13316 |
+
module.exports = __webpack_require__(68);
|
|
|
|
|
|
|
|
|
|
|
13317 |
|
|
|
|
|
13318 |
|
13319 |
+
/***/ }),
|
13320 |
|
13321 |
+
/***/ 82:
|
13322 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
13323 |
|
13324 |
+
"use strict";
|
|
|
|
|
13325 |
|
13326 |
+
// EXPORTS
|
13327 |
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; });
|
13328 |
|
13329 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
13330 |
+
var arrayLikeToArray = __webpack_require__(70);
|
13331 |
+
|
13332 |
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
13333 |
+
|
13334 |
+
function _arrayWithoutHoles(arr) {
|
13335 |
+
if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
|
13336 |
+
}
|
13337 |
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
13338 |
+
function _iterableToArray(iter) {
|
13339 |
+
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
13340 |
+
}
|
13341 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
13342 |
+
var unsupportedIterableToArray = __webpack_require__(94);
|
13343 |
+
|
13344 |
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
13345 |
+
function _nonIterableSpread() {
|
13346 |
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
13347 |
+
}
|
13348 |
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
|
13349 |
|
|
|
|
|
13350 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13351 |
|
13352 |
|
13353 |
+
function _toConsumableArray(arr) {
|
13354 |
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread();
|
13355 |
+
}
|
13356 |
+
|
13357 |
/***/ }),
|
13358 |
|
13359 |
+
/***/ 84:
|
13360 |
+
/***/ (function(module, exports) {
|
13361 |
|
13362 |
+
var g;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13363 |
|
13364 |
+
// This works in non-strict mode
|
13365 |
+
g = (function() {
|
13366 |
+
return this;
|
13367 |
+
})();
|
13368 |
|
13369 |
+
try {
|
13370 |
+
// This works if eval is allowed (see CSP)
|
13371 |
+
g = g || new Function("return this")();
|
13372 |
+
} catch (e) {
|
13373 |
+
// This works if the window reference is available
|
13374 |
+
if (typeof window === "object") g = window;
|
13375 |
+
}
|
13376 |
|
13377 |
+
// g can still be undefined, but nothing to do about it...
|
13378 |
+
// We return undefined, instead of nothing here, so it's
|
13379 |
+
// easier to handle this case. if(!global) { ...}
|
|
|
|
|
|
|
13380 |
|
13381 |
+
module.exports = g;
|
|
|
|
|
13382 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13383 |
|
13384 |
+
/***/ }),
|
|
|
|
|
13385 |
|
13386 |
+
/***/ 9:
|
13387 |
+
/***/ (function(module, exports) {
|
|
|
13388 |
|
13389 |
+
function _assertThisInitialized(self) {
|
13390 |
+
if (self === void 0) {
|
13391 |
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13392 |
}
|
13393 |
|
13394 |
+
return self;
|
13395 |
}
|
13396 |
|
13397 |
+
module.exports = _assertThisInitialized;
|
13398 |
+
|
13399 |
/***/ }),
|
13400 |
|
13401 |
+
/***/ 90:
|
13402 |
/***/ (function(module, exports, __webpack_require__) {
|
13403 |
|
13404 |
"use strict";
|
13405 |
|
13406 |
|
13407 |
+
var utils = __webpack_require__(69);
|
13408 |
+
var formats = __webpack_require__(52);
|
13409 |
var has = Object.prototype.hasOwnProperty;
|
13410 |
|
13411 |
var arrayPrefixGenerators = {
|
13684 |
|
13685 |
/***/ }),
|
13686 |
|
13687 |
+
/***/ 91:
|
13688 |
/***/ (function(module, exports, __webpack_require__) {
|
13689 |
|
13690 |
"use strict";
|
13691 |
|
13692 |
|
13693 |
+
var utils = __webpack_require__(69);
|
13694 |
|
13695 |
var has = Object.prototype.hasOwnProperty;
|
13696 |
var isArray = Array.isArray;
|
13884 |
// If there's a remainder, just add whatever is left
|
13885 |
|
13886 |
if (segment) {
|
13887 |
+
keys.push('[' + key.slice(segment.index) + ']');
|
13888 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13889 |
|
13890 |
+
return parseObject(keys, val, options, valuesParsed);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13891 |
};
|
13892 |
|
13893 |
+
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
13894 |
+
if (!opts) {
|
13895 |
+
return defaults;
|
13896 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
13897 |
|
13898 |
+
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
13899 |
+
throw new TypeError('Decoder has to be a function.');
|
13900 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13901 |
|
13902 |
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
13903 |
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
13904 |
+
}
|
13905 |
+
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
13906 |
|
13907 |
+
return {
|
13908 |
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
13909 |
+
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
13910 |
+
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
13911 |
+
charset: charset,
|
13912 |
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
13913 |
+
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
13914 |
+
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
13915 |
+
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
13916 |
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
13917 |
+
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
13918 |
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
13919 |
+
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
13920 |
+
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
13921 |
+
parseArrays: opts.parseArrays !== false,
|
13922 |
+
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
13923 |
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
13924 |
+
};
|
13925 |
+
};
|
13926 |
|
13927 |
+
module.exports = function (str, opts) {
|
13928 |
+
var options = normalizeParseOptions(opts);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13929 |
|
13930 |
+
if (str === '' || str === null || typeof str === 'undefined') {
|
13931 |
+
return options.plainObjects ? Object.create(null) : {};
|
13932 |
+
}
|
|
|
|
|
13933 |
|
13934 |
+
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
13935 |
+
var obj = options.plainObjects ? Object.create(null) : {};
|
13936 |
|
13937 |
+
// Iterate over the keys and setup the new object
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13938 |
|
13939 |
+
var keys = Object.keys(tempObj);
|
13940 |
+
for (var i = 0; i < keys.length; ++i) {
|
13941 |
+
var key = keys[i];
|
13942 |
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
13943 |
+
obj = utils.merge(obj, newObj, options);
|
13944 |
+
}
|
13945 |
|
13946 |
+
return utils.compact(obj);
|
13947 |
+
};
|
13948 |
|
13949 |
|
13950 |
/***/ }),
|
13951 |
|
13952 |
+
/***/ 94:
|
13953 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
13954 |
+
|
13955 |
+
"use strict";
|
13956 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; });
|
13957 |
+
/* harmony import */ var _babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
|
13958 |
|
13959 |
+
function _unsupportedIterableToArray(o, minLen) {
|
13960 |
+
if (!o) return;
|
13961 |
+
if (typeof o === "string") return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
|
13962 |
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
13963 |
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
13964 |
+
if (n === "Map" || n === "Set") return Array.from(o);
|
13965 |
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
|
13966 |
+
}
|
13967 |
|
13968 |
/***/ }),
|
13969 |
|
13970 |
+
/***/ 95:
|
13971 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
13972 |
|
13973 |
"use strict";
|
13974 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getCountryCode; });
|
13975 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getCurrencyRegion; });
|
13976 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getProductIdsForCart; });
|
13977 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getCategorizedOnboardingProducts; });
|
13978 |
+
/* unused harmony export getProductList */
|
13979 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getPriceValue; });
|
13980 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isWCAdmin; });
|
13981 |
+
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19);
|
13982 |
+
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
|
13983 |
+
/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(41);
|
13984 |
+
/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_1__);
|
13985 |
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
|
13986 |
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
|
13987 |
+
/* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
|
13988 |
+
|
13989 |
+
|
13990 |
/**
|
13991 |
+
* External dependencies
|
|
|
|
|
|
|
|
|
13992 |
*/
|
13993 |
|
13994 |
|
13995 |
|
13996 |
/**
|
13997 |
+
* Gets the country code from a country:state value string.
|
|
|
|
|
|
|
|
|
13998 |
*
|
13999 |
+
* @param {string} countryState Country state string, e.g. US:GA.
|
14000 |
+
* @return {string} Country string.
|
14001 |
*/
|
14002 |
|
14003 |
+
function getCountryCode(countryState) {
|
14004 |
+
if (!countryState) {
|
14005 |
+
return null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14006 |
}
|
|
|
|
|
|
|
14007 |
|
14008 |
+
return countryState.split(':')[0];
|
14009 |
+
}
|
14010 |
+
function getCurrencyRegion(countryState) {
|
14011 |
+
var region = getCountryCode(countryState);
|
14012 |
+
var euCountries = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["without"])(Object(_woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_3__[/* getSetting */ "g"])('onboarding', {
|
14013 |
+
euCountries: []
|
14014 |
+
}).euCountries, 'GB');
|
14015 |
|
14016 |
+
if (euCountries.includes(region)) {
|
14017 |
+
region = 'EU';
|
14018 |
+
}
|
14019 |
|
14020 |
+
return region;
|
14021 |
+
}
|
14022 |
/**
|
14023 |
+
* Gets the product IDs for items based on the product types and theme selected in the onboarding profiler.
|
|
|
|
|
|
|
14024 |
*
|
14025 |
+
* @param {Object} profileItems Onboarding profile.
|
14026 |
+
* @param {boolean} includeInstalledItems Include installed items in returned product IDs.
|
14027 |
+
* @param {Array} installedPlugins Installed plugins.
|
14028 |
+
* @return {Array} Product Ids.
|
14029 |
*/
|
14030 |
|
14031 |
+
function getProductIdsForCart(profileItems) {
|
14032 |
+
var includeInstalledItems = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
14033 |
+
var installedPlugins = arguments.length > 2 ? arguments[2] : undefined;
|
14034 |
+
var productList = getProductList(profileItems, includeInstalledItems, installedPlugins);
|
14035 |
+
var productIds = productList.map(function (product) {
|
14036 |
+
return product.id || product.product;
|
14037 |
+
});
|
14038 |
+
return productIds;
|
14039 |
+
}
|
14040 |
/**
|
14041 |
+
* Gets the labeled/categorized product names and types for items based on the product types and theme selected in the onboarding profiler.
|
14042 |
+
*
|
14043 |
+
* @param {Object} profileItems Onboarding profile.
|
14044 |
+
* @param {Array} installedPlugins Installed plugins.
|
14045 |
+
* @return {Array} Objects with labeled/categorized product names and types.
|
14046 |
*/
|
14047 |
|
14048 |
+
function getCategorizedOnboardingProducts(profileItems, installedPlugins) {
|
14049 |
+
var productList = {};
|
14050 |
+
productList.products = getProductList(profileItems, true, installedPlugins);
|
14051 |
+
productList.remainingProducts = getProductList(profileItems, false, installedPlugins);
|
|
|
|
|
|
|
14052 |
|
14053 |
+
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))));
|
|
|
14054 |
|
14055 |
+
productList.uniqueItemsList = uniqueItemsList.map(function (product) {
|
14056 |
+
var cleanedProduct;
|
14057 |
|
14058 |
+
if (product.label) {
|
14059 |
+
cleanedProduct = {
|
14060 |
+
type: 'extension',
|
14061 |
+
name: product.label
|
14062 |
+
};
|
14063 |
+
} else {
|
14064 |
+
cleanedProduct = {
|
14065 |
+
type: 'theme',
|
14066 |
+
name: product.title
|
14067 |
+
};
|
14068 |
+
}
|
14069 |
|
14070 |
+
return cleanedProduct;
|
14071 |
+
});
|
14072 |
+
return productList;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14073 |
}
|
14074 |
+
/**
|
14075 |
+
* Gets a product list for items based on the product types and theme selected in the onboarding profiler.
|
14076 |
+
*
|
14077 |
+
* @param {Object} profileItems Onboarding profile.
|
14078 |
+
* @param {boolean} includeInstalledItems Include installed items in returned product list.
|
14079 |
+
* @param {Array} installedPlugins Installed plugins.
|
14080 |
+
* @return {Array} Products.
|
14081 |
+
*/
|
14082 |
|
14083 |
+
function getProductList(profileItems) {
|
14084 |
+
var includeInstalledItems = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
14085 |
+
var installedPlugins = arguments.length > 2 ? arguments[2] : undefined;
|
14086 |
+
var onboarding = Object(_woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_3__[/* getSetting */ "g"])('onboarding', {});
|
14087 |
+
var productList = []; // The population of onboarding.productTypes only happens if the task list should be shown
|
14088 |
+
// so bail early if it isn't present.
|
|
|
14089 |
|
14090 |
+
if (!onboarding.productTypes) {
|
14091 |
+
return productList;
|
14092 |
+
}
|
14093 |
|
14094 |
+
var productTypes = profileItems.product_types || [];
|
14095 |
+
productTypes.forEach(function (productType) {
|
14096 |
+
if (onboarding.productTypes[productType] && onboarding.productTypes[productType].product && (includeInstalledItems || !installedPlugins.includes(onboarding.productTypes[productType].slug))) {
|
14097 |
+
productList.push(onboarding.productTypes[productType]);
|
14098 |
+
}
|
14099 |
+
});
|
14100 |
+
var theme = onboarding.themes.find(function (themeData) {
|
14101 |
+
return themeData.slug === profileItems.theme;
|
14102 |
+
});
|
14103 |
|
14104 |
+
if (theme && theme.id && getPriceValue(theme.price) > 0 && (includeInstalledItems || !theme.is_installed)) {
|
14105 |
+
productList.push(theme);
|
14106 |
+
}
|
|
|
14107 |
|
14108 |
+
return productList;
|
|
|
|
|
|
|
|
|
|
|
14109 |
}
|
14110 |
+
/**
|
14111 |
+
* Get the value of a price from a string, removing any non-numeric characters.
|
14112 |
+
*
|
14113 |
+
* @param {string} string Price string.
|
14114 |
+
* @return {number} Number value.
|
14115 |
+
*/
|
14116 |
|
14117 |
+
function getPriceValue(string) {
|
14118 |
+
return Number(Object(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_1__["decodeEntities"])(string).replace(/[^0-9.-]+/g, ''));
|
14119 |
+
}
|
14120 |
+
/**
|
14121 |
+
* Determines if a URL is a WC admin url.
|
14122 |
+
*
|
14123 |
+
* @param {*} url - the url to test
|
14124 |
+
* @return {boolean} true if the url is a wc-admin URL
|
14125 |
+
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14126 |
|
14127 |
+
function isWCAdmin(url) {
|
14128 |
+
return /admin.php\?page=wc-admin/.test(url);
|
14129 |
+
}
|
14130 |
|
14131 |
/***/ }),
|
14132 |
|
14133 |
+
/***/ 97:
|
14134 |
/***/ (function(module, exports) {
|
14135 |
|
14136 |
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
14137 |
+
if (source == null) return {};
|
14138 |
+
var target = {};
|
14139 |
+
var sourceKeys = Object.keys(source);
|
14140 |
+
var key, i;
|
14141 |
|
14142 |
+
for (i = 0; i < sourceKeys.length; i++) {
|
14143 |
+
key = sourceKeys[i];
|
14144 |
+
if (excluded.indexOf(key) >= 0) continue;
|
14145 |
+
target[key] = source[key];
|
14146 |
+
}
|
14147 |
|
14148 |
+
return target;
|
14149 |
+
}
|
14150 |
|
14151 |
+
module.exports = _objectWithoutPropertiesLoose;
|
14152 |
|
14153 |
/***/ })
|
14154 |
|
dist/app/index.min.asset.php
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wc-components', 'wc-csv', 'wc-currency', 'wc-customer-effort-score', 'wc-date', 'wc-experimental', 'wc-explat', 'wc-navigation', 'wc-notices', 'wc-number', 'wc-store-data', 'wc-tracks', 'wp-a11y', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-primitives', 'wp-url', 'wp-warning'), 'version' => '9789c5d51f392b0d1bcb4d9371691c8c');
|
|
dist/app/index.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
/*! For license information please see index.min.js.LICENSE.txt */
|
2 |
-
this.wc=this.wc||{},this.wc.app=function(e){function t(t){for(var n,r,i=t[0],a=t[1],c=0,s=[];c<i.length;c++)r=i[c],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&s.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(u&&u(t);s.length;)s.shift()()}var n={},r={18:0},o={18:0};function i(e){var t=function(e){return a.p+"chunks/"+({4:"activity-panels-help",5:"activity-panels-inbox",6:"analytics-report",7:"analytics-report-categories",8:"analytics-report-coupons",9:"analytics-report-customers",10:"analytics-report-downloads",11:"analytics-report-orders",12:"analytics-report-products",13:"analytics-report-revenue",14:"analytics-report-stock",15:"analytics-report-taxes",16:"analytics-report-variations",17:"analytics-settings",24:"customizable-dashboard",25:"dashboard",26:"dashboard-charts",31:"homescreen",32:"leaderboards",34:"marketing-overview",44:"payment-recommendations",46:"profile-wizard",47:"store-alerts",48:"store-performance",49:"task-list",51:"wcpay-usage-modal"}[e]||e)+".min.js"}(e);return window.wcAdminAssets&&window.wcAdminAssets.version&&(t+="?ver="+window.wcAdminAssets.version),t}function a(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{0:1,4:1,5:1,6:1,7:1,9:1,11:1,12:1,14:1,17:1,25:1,26:1,31:1,32:1,34:1,44:1,46:1,47:1,48:1,49:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var o="rtl"===document.dir?"./chunks/"+e+".style.rtl.css":"./chunks/"+e+".style.css",i=a.p+o,c=document.getElementsByTagName("link"),s=0;s<c.length;s++){var l=(d=c[s]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(l===o||l===i))return t()}var u=document.getElementsByTagName("style");for(s=0;s<u.length;s++){var d;if((l=(d=u[s]).getAttribute("data-href"))===o||l===i)return t()}var m=document.createElement("link");m.rel="stylesheet",m.type="text/css",m.setAttribute("data-webpack",!0),m.onload=t,m.onerror=function(t){var o=t&&t.target&&t.target.src||i,a=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=o,delete r[e],m.parentNode.removeChild(m),n(a)},m.href=i,window.wcAdminAssets&&window.wcAdminAssets.version&&(m.href+="?ver="+window.wcAdminAssets.version),document.getElementsByTagName("head")[0].appendChild(m)})).then((function(){r[e]=0})));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var c=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=c);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.src=i(e);var u=new Error;s=function(t){l.onerror=l.onload=null,clearTimeout(d);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",u.name="ChunkLoadError",u.type=r,u.request=i,n[1](u)}o[e]=void 0}};var d=setTimeout((function(){s({type:"timeout",target:l})}),12e4);l.onerror=l.onload=s,document.head.appendChild(l)}return Promise.all(t)},a.m=e,a.c=n,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var c=window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[],s=c.push.bind(c);c.push=t,c=c.slice();for(var l=0;l<c.length;l++)t(c[l]);var u=s;return a(a.s=278)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t,n){e.exports=n(46)()},10:function(e,t){e.exports=window.wp.dataControls},100:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,i=(e.icon,e.className),c=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-cross-small",i,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:s,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})))};var o,i=n(5),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},102:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(11);const o=5,i={page:1,per_page:1,status:"hold",_embed:1,_fields:["id"]};function a(e){const{getReviewsTotalCount:t,getReviewsError:n,isResolving:o}=e(r.REVIEWS_STORE_NAME),a=t(i),c=Boolean(n(i)),s=o("getReviewsTotalCount",[i]);return c||s&&void 0===a?null:a}},103:function(e,t,n){"use strict";e.exports=n(129)},11:function(e,t){e.exports=window.wc.data},115:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(22);var i=n(0);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}t.a=function(e){var t=e.icon,n=e.size,c=void 0===n?24:n,s=function(e,t){if(null==e)return{};var n,r,i=Object(o.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["icon","size"]);return Object(i.cloneElement)(t,function(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){r(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}({width:c,height:c},s))}},116:function(e,t){e.exports=window.wp.plugins},117:function(e,t,n){"use strict";var r=n(2),o=n(30),i=n(15),a=n(0);const c=Object(i.f)("manageStock","no"),s=Object(a.lazy)(()=>Promise.all([n.e(0),n.e(13)]).then(n.bind(null,477))),l=Object(a.lazy)(()=>Promise.all([n.e(0),n.e(12)]).then(n.bind(null,473))),u=Object(a.lazy)(()=>Promise.all([n.e(0),n.e(16)]).then(n.bind(null,478))),d=Object(a.lazy)(()=>Promise.all([n.e(0),n.e(11)]).then(n.bind(null,479))),m=Object(a.lazy)(()=>Promise.all([n.e(0),n.e(7)]).then(n.bind(null,475))),p=Object(a.lazy)(()=>Promise.all([n.e(0),n.e(8)]).then(n.bind(null,480))),f=Object(a.lazy)(()=>Promise.all([n.e(0),n.e(15)]).then(n.bind(null,481))),h=Object(a.lazy)(()=>Promise.all([n.e(0),n.e(10)]).then(n.bind(null,482))),b=Object(a.lazy)(()=>n.e(14).then(n.bind(null,474))),v=Object(a.lazy)(()=>n.e(9).then(n.bind(null,476)));t.a=()=>{const e=[{report:"revenue",title:Object(r.__)("Revenue","woocommerce-admin"),component:s,navArgs:{id:"woocommerce-analytics-revenue"}},{report:"products",title:Object(r.__)("Products","woocommerce-admin"),component:l,navArgs:{id:"woocommerce-analytics-products"}},{report:"variations",title:Object(r.__)("Variations","woocommerce-admin"),component:u,navArgs:{id:"woocommerce-analytics-variations"}},{report:"orders",title:Object(r.__)("Orders","woocommerce-admin"),component:d,navArgs:{id:"woocommerce-analytics-orders"}},{report:"categories",title:Object(r.__)("Categories","woocommerce-admin"),component:m,navArgs:{id:"woocommerce-analytics-categories"}},{report:"coupons",title:Object(r.__)("Coupons","woocommerce-admin"),component:p,navArgs:{id:"woocommerce-analytics-coupons"}},{report:"taxes",title:Object(r.__)("Taxes","woocommerce-admin"),component:f,navArgs:{id:"woocommerce-analytics-taxes"}},"yes"===c?{report:"stock",title:Object(r.__)("Stock","woocommerce-admin"),component:b,navArgs:{id:"woocommerce-analytics-stock"}}:null,{report:"customers",title:Object(r.__)("Customers","woocommerce-admin"),component:v},{report:"downloads",title:Object(r.__)("Downloads","woocommerce-admin"),component:h,navArgs:{id:"woocommerce-analytics-downloads"}}].filter(Boolean);return Object(o.applyFilters)("woocommerce_admin_reports_list",e)}},118:function(e,t,n){"use strict";var r=n(103),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=p(n);o&&o!==f&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var c=s(t),h=s(n),b=0;b<a.length;++b){var v=a[b];if(!(i[v]||r&&r[v]||h&&h[v]||c&&c[v])){var g=m(n,v);try{l(t,v,g)}catch(e){}}}}return t}},119:function(e,t,n){"use strict";n.d(t,"c",(function(){return ht})),n.d(t,"b",(function(){return gt})),n.d(t,"a",(function(){return yt}));var r=n(35),o=n.n(r),i=n(0),a=n(4),c=n(13),s=n(7),l=n(25),u=n(5),d=n.n(u),m=n(1),p=n.n(m),f=n(51),h=n(160),b=n(41),v=n(23),g=n(161),y=n.n(g),w=(n(103),n(22)),O=(n(118),function(e){var t=Object(h.a)();return t.displayName=e,t}("Router-History")),j=function(e){var t=Object(h.a)();return t.displayName=e,t}("Router"),_=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(l.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return d.a.createElement(j.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},d.a.createElement(O.Provider,{children:this.props.children||null,value:this.props.history}))},t}(d.a.Component);d.a.Component;d.a.Component;var E={},k=0;function S(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,c=void 0!==a&&a,s=n.sensitive,l=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=E[n]||(E[n]={});if(r[e])return r[e];var o=[],i={regexp:y()(e,o,t),keys:o};return k<1e4&&(r[e]=i,k++),i}(n,{end:i,strict:c,sensitive:l}),o=r.regexp,a=r.keys,s=o.exec(e);if(!s)return null;var u=s[0],d=s.slice(1),m=e===u;return i&&!m?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:m,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var x=function(e){function t(){return e.apply(this,arguments)||this}return Object(l.a)(t,e),t.prototype.render=function(){var e=this;return d.a.createElement(j.Consumer,null,(function(t){t||Object(b.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?S(n.pathname,e.props):t.match,o=Object(v.a)({},t,{location:n,match:r}),i=e.props,a=i.children,c=i.component,s=i.render;return Array.isArray(a)&&0===a.length&&(a=null),d.a.createElement(j.Provider,{value:o},o.match?a?"function"==typeof a?a(o):a:c?d.a.createElement(c,o):s?s(o):null:"function"==typeof a?a(o):null)}))},t}(d.a.Component);function C(e){return"/"===e.charAt(0)?e:"/"+e}function T(e,t){if(!e)return t;var n=C(e);return 0!==t.pathname.indexOf(n)?t:Object(v.a)({},t,{pathname:t.pathname.substr(n.length)})}function A(e){return"string"==typeof e?e:Object(f.d)(e)}function P(e){return function(){Object(b.a)(!1)}}function N(){}d.a.Component;var R=function(e){function t(){return e.apply(this,arguments)||this}return Object(l.a)(t,e),t.prototype.render=function(){var e=this;return d.a.createElement(j.Consumer,null,(function(t){t||Object(b.a)(!1);var n,r,o=e.props.location||t.location;return d.a.Children.forEach(e.props.children,(function(e){if(null==r&&d.a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?S(o.pathname,Object(v.a)({},e.props,{path:i})):t.match}})),r?d.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(d.a.Component);d.a.useContext;var M=n(3),L=n(32),V=n(21),I=n(12),F=n(15),D=n(11),z=n(16),U=(n(281),n(116)),B=(n(282),n(30)),H=n(2),q=n(117),$=n(59);const W=Object(i.lazy)(()=>n.e(6).then(n.bind(null,597))),Q=Object(i.lazy)(()=>n.e(17).then(n.bind(null,606))),G=Object(i.lazy)(()=>n.e(25).then(n.bind(null,598))),Y=Object(i.lazy)(()=>Promise.all([n.e(1),n.e(2),n.e(31)]).then(n.bind(null,604))),Z=Object(i.lazy)(()=>Promise.all([n.e(2),n.e(34)]).then(n.bind(null,607))),K=Object(i.lazy)(()=>Promise.all([n.e(1),n.e(46)]).then(n.bind(null,605))),J=Object(i.lazy)(()=>Promise.all([n.e(1),n.e(46)]).then(n.bind(null,599))),X=()=>{const e=[],t=[["",wcSettings.woocommerceTranslation]];return e.push({container:Y,path:"/",breadcrumbs:[...t,Object(H.__)("Home","woocommerce-admin")],wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-home"},capability:"manage_woocommerce"}),window.wcAdminFeatures.analytics&&(e.push({container:G,path:"/analytics/overview",breadcrumbs:[...t,["/analytics/overview",Object(H.__)("Analytics","woocommerce-admin")],Object(H.__)("Overview","woocommerce-admin")],wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-overview"},capability:"view_woocommerce_reports"}),e.push({container:Q,path:"/analytics/settings",breadcrumbs:[...t,["/analytics/revenue",Object(H.__)("Analytics","woocommerce-admin")],Object(H.__)("Settings","woocommerce-admin")],wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-settings"},capability:"view_woocommerce_reports"}),e.push({container:W,path:"/customers",breadcrumbs:[...t,Object(H.__)("Customers","woocommerce-admin")],wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-analytics-customers"},capability:"view_woocommerce_reports"}),e.push({container:W,path:"/analytics/:report",breadcrumbs:({match:e})=>{const n=Object(M.find)(Object(q.a)(),{report:e.params.report});return n?[...t,["/analytics/revenue",Object(H.__)("Analytics","woocommerce-admin")],n.title]:[]},wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",capability:"view_woocommerce_reports"})),window.wcAdminFeatures.marketing&&e.push({container:Z,path:"/marketing",breadcrumbs:[...t,["/marketing",Object(H.__)("Marketing","woocommerce-admin")],Object(H.__)("Overview","woocommerce-admin")],wpOpenMenu:"toplevel_page_woocommerce-marketing",navArgs:{id:"woocommerce-marketing-overview"},capability:"view_woocommerce_reports"}),window.wcAdminFeatures.onboarding&&e.push({container:K,path:"/setup-wizard",breadcrumbs:[...t,["/setup-wizard",Object(H.__)("Setup Wizard","woocommerce-admin")]],capability:"manage_woocommerce"}),window.wcAdminFeatures.settings&&e.push({container:J,path:"/settings/:page",breadcrumbs:({match:e})=>{const n=Object(F.f)("settingsPages"),r=n[e.params.page];return r?[...t,[n.general?"/settings/general":"/settings/"+Object.keys(n)[0],Object(H.__)("Settings","woocommerce-admin")],r]:[]},wpOpenMenu:"toplevel_page_woocommerce",capability:"manage_woocommerce"}),Object(B.applyFilters)("woocommerce_admin_pages_list",e)};class ee extends i.Component{componentDidMount(){window.document.documentElement.scrollTop=0,window.document.body.classList.remove("woocommerce-admin-is-loading")}componentDidUpdate(e){const t=Object(M.omit)(e.query,"chartType","filter","paged"),n=Object(M.omit)(this.props.query,"chartType","filter","paged");e.query.paged>1&&!Object(M.isEqual)(t,n)&&Object(I.getHistory)().replace(Object(I.getNewPath)({paged:1})),e.match.url!==this.props.match.url&&(window.document.documentElement.scrollTop=0)}render(){const{page:e,match:t,query:n}=this.props,{url:r,params:o}=t;return window.wpNavMenuUrlUpdate(n),window.wpNavMenuClassChange(e,r),Object(i.createElement)(i.Suspense,{fallback:Object(i.createElement)(V.Spinner,null)},Object(i.createElement)(e.container,{params:o,path:r,pathMatch:e.path,query:n}))}}window.wpNavMenuUrlUpdate=function(e){const t=Object(I.getPersistedQuery)(e),n=Object(I.getQueryExcludedScreens)();Array.from(document.querySelectorAll("#adminmenu a")).forEach(e=>function(e,t,n){if(Object($.f)(e.href)){const r=Object(M.last)(e.href.split("?")),o=Object(L.parse)(r),i=o.path||"homescreen",a=Object(I.getScreenFromPath)(i),c=n.includes(a),s="admin.php?"+Object(L.stringify)(Object.assign(o,c?{}:t));e.href=s,e.onclick=e=>{e.preventDefault(),Object(I.getHistory)().push(s)}}}(e,t,n))},window.wpNavMenuClassChange=function(e,t){Array.from(document.getElementsByClassName("current")).forEach((function(e){e.classList.remove("current")}));Array.from(document.querySelectorAll(".wp-has-current-submenu")).forEach((function(e){e.classList.remove("wp-has-current-submenu"),e.classList.remove("wp-menu-open"),e.classList.remove("selected"),e.classList.add("wp-not-current-submenu"),e.classList.add("menu-top")}));const n="/"===t?"admin.php?page=wc-admin":"admin.php?page=wc-admin&path="+encodeURIComponent(t),r="/"===t?`li > a[href$="${n}"], li > a[href*="${n}?"]`:`li > a[href*="${n}"]`,o=document.querySelectorAll(r);if(Array.from(o).forEach((function(e){e.parentElement.classList.add("current")})),e.wpOpenMenu){const t=document.querySelector("#"+e.wpOpenMenu);t&&(t.classList.remove("wp-not-current-submenu"),t.classList.add("wp-has-current-submenu"),t.classList.add("wp-menu-open"),t.classList.add("current"))}document.querySelector("#wpwrap").classList.remove("wp-responsive-open")};var te=n(6),ne=n.n(te),re=n(28),oe=n(20),ie=n(115),ae=n(290),ce=n(27),se=(n(283),n(8)),le=Object(i.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(se.Path,{fillRule:"evenodd",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",clipRule:"evenodd"})),ue=Object(i.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(se.Path,{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"})),de=n(496),me=(n(284),n(164));const pe={page:1,per_page:D.QUERY_DEFAULTS.pageSize,status:"unactioned",type:D.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc"};function fe(e){const{getNotes:t,getNotesError:n,isResolving:r}=e(D.NOTES_STORE_NAME),{getCurrentUser:o}=e(D.USER_STORE_NAME),i=o(),a=parseInt(i&&i.woocommerce_meta&&i.woocommerce_meta.activity_panel_inbox_last_read,10);if(!a)return null;t(pe);const c=Boolean(n("getNotes",[pe])),s=r("getNotes",[pe]);if(c||s)return null;const l=t(pe);return Object(me.a)(l,a)>0}const he=({icon:e,title:t,name:n,unread:r,selected:o,isPanelOpen:c,onTabClick:s})=>{const l=ne()("woocommerce-layout__activity-panel-tab",{"is-active":c&&o,"has-unread":r}),u="activity-panel-tab-"+n;return Object(i.createElement)(a.Button,{role:"tab",className:l,"aria-selected":o,"aria-controls":"activity-panel-"+n,key:u,id:u,onClick:()=>{s(n)}},e,t," ",r&&Object(i.createElement)("span",{className:"screen-reader-text"},Object(H.__)("unread activity","woocommerce-admin")))},be=({tabs:e,onTabClick:t,selectedTab:n,tabOpen:r=!1})=>{const[{tabOpen:c,currentTab:s},l]=Object(i.useState)({tabOpen:r,currentTab:n});return Object(i.useEffect)(()=>{l({tabOpen:r,currentTab:n})},[r,n]),Object(i.createElement)(a.NavigableMenu,{role:"tablist",orientation:"horizontal",className:"woocommerce-layout__activity-panel-tabs"},e&&e.map((e,n)=>{if(e.component){const{component:t,options:r}=e;return Object(i.createElement)(t,o()({key:n},r))}return Object(i.createElement)(he,o()({key:n,index:n,isPanelOpen:c,selected:s===e.name},e,{onTabClick:()=>{const n=s!==e.name&&""!==s||!c;n&&s===e.name||Object(z.recordEvent)("activity_panel_open",{tab:e.name}),l({tabOpen:n,currentTab:e.name}),t(e,n)}}))}))},ve=()=>Object(i.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon setup-progress",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)("path",{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",stroke:"#DCDCDE",strokeWidth:"2"}),Object(i.createElement)("path",{d:"M4 12V12C4 16.4183 7.58172 20 12 20V20C16.4183 20 20 16.4183 20 12V12C20 7.58172 16.4183 4 12 4V4",strokeWidth:"2",strokeLinecap:"round"}));var ge=n(252),ye=n(493);n(285);const we="highlight-tooltip__show";function Oe({title:e,closeButtonText:t,content:n,show:r=!0,id:o,onClose:c,delay:s,onShow:l=M.noop,useAnchor:u=!1}){const[d,m]=Object(i.useState)(s>0?null:r),[p,f]=Object(i.useState)(null),[h,b]=Object(i.useState)(null);function v(){if(u){const e=document.getElementById(o);b(e.getBoundingClientRect())}}Object(i.useEffect)(()=>{const e=document.getElementById(o);let t,n;e&&!p&&(u?(n=document.createElement("div"),document.body.appendChild(n)):n=e.parentElement,t=document.createElement("div"),t.classList.add("highlight-tooltip__container"),n.appendChild(t),f(t));const r=g(t);return()=>{if(t){const e=t.parentElement;e.removeChild(t),u&&e.remove()}r&&clearTimeout(r)}},[]),Object(i.useEffect)(()=>{!d&&p&&p.classList.remove(we)},[d]),Object(i.useEffect)(()=>{r!==d&&null!==d&&p&&(m(r),r?p&&g(p):p.classList.remove(we))},[r]),Object(i.useLayoutEffect)(()=>(window.addEventListener("resize",v),()=>window.removeEventListener("resize",v)),[]);const g=e=>{let t=null;return s>0?t=setTimeout(()=>{t=null,y(e)},s):d||y(e),t},y=e=>{const t=document.getElementById(o);t&&u&&b(t.getBoundingClientRect()),e&&e.classList.add(we),m(!0),l()},w=()=>{m(!1),c&&c()};return p?Object(i.createPortal)(Object(i.createElement)("div",{className:"highlight-tooltip__portal"},d?Object(i.createElement)(i.Fragment,null,Object(i.createElement)(a.IsolatedEventContainer,{className:"highlight-tooltip__overlay"}),Object(i.createElement)(a.Popover,{className:"highlight-tooltip__popover",noArrow:!1,anchorRect:h,focusOnMount:"container"},Object(i.createElement)(a.Card,{size:"medium"},Object(i.createElement)(a.CardHeader,null,e,Object(i.createElement)(a.Button,{isSmall:!0,onClick:w,icon:ye.a})),Object(i.createElement)(a.CardBody,null,n||null),Object(i.createElement)(a.CardFooter,{isBorderless:!0},Object(i.createElement)(a.Button,{size:"small",isPrimary:!0,onClick:w},t||Object(H.__)("Close","woocommerce-admin")))))):null),p):null}Oe.propTypes={id:p.a.string.isRequired,title:p.a.string.isRequired,closeButtonText:p.a.string.isRequired,content:p.a.oneOfType([p.a.string,p.a.node]),show:p.a.bool,onClose:p.a.func,delay:p.a.number,onShow:p.a.func,useAnchor:p.a.bool};var je=n(90);const _e=["button","submit"];function Ee(e){const t=Object(i.useRef)(e);Object(i.useEffect)(()=>{t.current=e},[e]);const n=Object(i.useRef)(!1),r=Object(i.useRef)(),o=Object(i.useCallback)(()=>{clearTimeout(r.current)},[]);Object(i.useEffect)(()=>()=>o(),[]),Object(i.useEffect)(()=>{e||o()},[e,o]);const a=Object(i.useCallback)(e=>{const{type:t,target:r}=e;Object(M.includes)(["mouseup","touchend"],t)?n.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(M.includes)(_e,e.type)}return!1}(r)&&(n.current=!0)},[]),c=Object(i.useCallback)(e=>{e.persist(),n.current||(r.current=setTimeout(()=>{document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()},0))},[]);return{onFocus:o,onMouseDown:a,onMouseUp:a,onTouchStart:a,onTouchEnd:a,onBlur:c}}const ke=({content:e,isPanelOpen:t,isPanelSwitching:n,currentTab:r,tab:a,closePanel:c,clearPanel:s})=>{const l="woocommerce-layout__activity-panel-wrapper",u=function(e="firstElement"){const t=Object(i.useRef)(e);return Object(i.useEffect)(()=>{t.current=e},[e]),Object(i.useCallback)(e=>{if(!e||!1===t.current)return;if(e.contains(e.ownerDocument.activeElement))return;let n=e;if("firstElement"===t.current){const t=je.focus.tabbable.find(e)[0];t&&(n=t)}n.focus()},[])}(),d=Ee(e=>{const n=e.relatedTarget&&(e.relatedTarget.closest(".woocommerce-inbox-dismiss-confirmation_modal")||e.relatedTarget.closest(".components-snackbar__action"));t&&!n&&c()}),m=Object(i.useRef)(null),p=Object(i.useCallback)(e=>{m.current=e,u(e)},[]);if(!a)return Object(i.createElement)("div",{className:l});if(!e)return null;const f=ne()(l,{"is-open":t,"is-switching":n});return Object(i.createElement)("div",o()({className:f,tabIndex:0,role:"tabpanel","aria-label":a.title,onTransitionEnd:e=>{e&&"transform"===e.propertyName&&(s(),m.current&&t&&a&&u(m.current))}},d,{ref:p}),Object(i.createElement)("div",{className:"woocommerce-layout__activity-panel-content",key:"activity-panel-"+r,id:"activity-panel-"+r},Object(i.createElement)(i.Suspense,{fallback:Object(i.createElement)(V.Spinner,null)},e)))};var Se=n(65),xe=n(102),Ce=n(253);const Te=Object(i.lazy)(()=>n.e(4).then(n.bind(null,610))),Ae=Object(i.lazy)(()=>Promise.all([n.e(2),n.e(5)]).then(n.bind(null,600))),Pe=({isEmbedded:e,query:t,userPreferencesData:n})=>{const[r,o]=Object(i.useState)(""),[a,c]=Object(i.useState)(!1),[l,u]=Object(i.useState)(!1),[d,m]=Object(i.useState)(!1),{fills:p}=Object(oe.useSlot)(Ce.a),f=Boolean(null==p?void 0:p.length),h=(e,n)=>{let r={};if("wc-admin"===t.page&&"appearance"===t.task){var o;const{getTasksStatus:t}=e(D.ONBOARDING_STORE_NAME),i=t();r={set_notice:n("woocommerce_demo_store_notice")?"Y":"N",create_homepage:!0===i.hasHomepage?"Y":"N",upload_logo:null!==(o=i.themeMods)&&void 0!==o&&o.custom_logo?"Y":"N"}}return r};function b(e,t,n){const r=Object(Se.c)(e),o=!(!t||!l)&&Object(Se.d)(e,r)>0,i=!(!t||!l)&&Object(xe.b)(e),a=!(!t||!l)&&Object(Se.a)(e);return n>0||o||i||a||f}const{hasUnreadNotes:v,hasAbbreviatedNotifications:g,thingsToDoNextCount:y,requestingTaskListOptions:w,setupTaskListComplete:O,setupTaskListHidden:j,trackedCompletedTasks:_,previewSiteBtnTrackData:E}=Object(s.useSelect)(e=>{const{getOption:n,isResolving:r}=e(D.OPTIONS_STORE_NAME),o="yes"===n("woocommerce_task_list_hidden"),i="yes"===n("woocommerce_extended_task_list_hidden"),a=function(e,t,n){return!e||n?0:e.filter(e=>e.visible&&!e.completed&&!t.includes(e.key)).length}(Object(B.applyFilters)("woocommerce_admin_onboarding_task_list",[],t),n("woocommerce_task_list_dismissed_tasks")||[],i);return{hasUnreadNotes:fe(e),hasAbbreviatedNotifications:b(e,o,a),thingsToDoNextCount:a,requestingTaskListOptions:r("getOption",["woocommerce_task_list_complete"])||r("getOption",["woocommerce_task_list_hidden"]),setupTaskListComplete:"yes"===n("woocommerce_task_list_complete"),setupTaskListHidden:o,trackedCompletedTasks:n("woocommerce_task_list_tracked_completed_tasks")||[],previewSiteBtnTrackData:h(e,n)}}),{updateOptions:k}=Object(s.useDispatch)(D.OPTIONS_STORE_NAME),{currentUserCan:S}=Object(D.useUser)(),x=()=>"wc-admin"===t.page&&!t.path,C=()=>t.task&&!t.path&&(!0===w||!1===j&&!1===O),T=()=>{Object($.f)(window.location.href)?Object(I.getHistory)().push(Object(I.getNewPath)({},"/",{})):window.location.href=Object(F.e)("admin.php?page=wc-admin")},A=()=>{const n={name:"inbox",title:Object(H.__)("Inbox","woocommerce-admin"),icon:Object(i.createElement)(ie.a,{icon:le}),unread:v||g,visible:(e||!x())&&!C()},r={name:"setup",title:Object(H.__)("Finish setup","woocommerce-admin"),icon:Object(i.createElement)(ve,null),onClick:()=>(window.location.href!==Object(F.e)("admin.php?page=wc-admin")&&("no"===j?T():k({woocommerce_task_list_hidden:"no"}).then(T)),null),visible:S("manage_woocommerce")&&!O&&!j&&!C()&&(!x()||e)},o={name:"help",title:Object(H.__)("Help","woocommerce-admin"),icon:Object(i.createElement)(ie.a,{icon:ue}),visible:x()&&!e||C()},a={component:ge.b,visible:!e&&x()&&!C()};return[n,r,{name:"previewSite",title:Object(H.__)("Preview site","woocommerce-admin"),icon:Object(i.createElement)(ie.a,{icon:de.a}),visible:"wc-admin"===t.page&&"appearance"===t.task,onClick:()=>(window.open(window.wcSettings.siteUrl),Object(z.recordEvent)("wcadmin_tasklist_previewsite",E),null)},a,o].filter(e=>e.visible)},P=A(),N=Object(M.uniqueId)("activity-panel-header_"),R=(()=>{const{task:e}=t,r=n&&n.task_list_tracked_started_tasks,o=n&&n.help_panel_highlight_shown;return!(!(e&&"yes"!==o&&(r||{})[e]>1)||_.includes(e))})();return Object(i.createElement)("div",null,Object(i.createElement)(V.H,{id:N,className:"screen-reader-text"},Object(H.__)("Store Activity","woocommerce-admin")),Object(i.createElement)(V.Section,{component:"aside",id:"woocommerce-activity-panel",className:"woocommerce-layout__activity-panel","aria-labelledby":N},Object(i.createElement)(be,{tabs:P,tabOpen:l,selectedTab:r,onTabClick:(e,t)=>{e.onClick?e.onClick():(({name:e},t)=>{const n=e!==r&&""!==r&&t&&l;a||(o(e),u(t),m(n))})(e,t)}}),Object(i.createElement)(ke,{currentTab:!0,isPanelOpen:l,isPanelSwitching:d,tab:Object(M.find)(A(),{name:r}),content:(e=>{const{task:n}=t;switch(e){case"inbox":return Object(i.createElement)(Ae,{hasAbbreviatedNotifications:g,thingsToDoNextCount:y});case"help":return Object(i.createElement)(Te,{taskName:n});default:return null}})(r),closePanel:()=>(c(!0),void u(!1)),clearPanel:()=>{l||(c(!1),m(!1),o(""))}})),R?Object(i.createElement)(Oe,{delay:1e3,useAnchor:!0,title:Object(H.__)("We're here for help","woocommerce-admin"),content:Object(H.__)("If you have any questions, feel free to explore the WooCommerce docs listed here.","woocommerce-admin"),closeButtonText:Object(H.__)("Got it","woocommerce-admin"),id:"activity-panel-tab-help",onClose:()=>(Object(z.recordEvent)("help_tooltip_click"),void(n&&n.updateUserPreferences&&n.updateUserPreferences({help_panel_highlight_shown:"yes"}))),onShow:()=>Object(z.recordEvent)("help_tooltip_view")}):null)};Pe.defaultProps={getHistory:I.getHistory};var Ne=Pe,Re=n(100),Me=n.n(Re);const Le=()=>/iPhone|iPad|iPod/i.test(window.navigator.userAgent)?"ios":/Android/i.test(window.navigator.userAgent)?"android":"unknown",Ve=()=>Object(i.createElement)("svg",{width:"37",height:"37",viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)("rect",{width:"92",height:"92",rx:"21.3953",fill:"#7F54B3"}),Object(i.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",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",fill:"white"}));n(286);const Ie=({onInstall:e,onDismiss:t})=>{Object(i.useEffect)(()=>{const e=document.getElementsByClassName("woocommerce-layout")[0];return"android"===Le()&&e&&e.classList.add("woocommerce-layout__show-app-banner"),()=>{e&&e.classList.remove("woocommerce-layout__show-app-banner")}},[]);const[n,r]=Object(i.useState)(!1);return"android"!==Le()||n?null:Object(i.createElement)("div",{className:"woocommerce-mobile-app-banner"},Object(i.createElement)(ie.a,{icon:Object(i.createElement)(Me.a,{"data-testid":"dismiss-btn"}),onClick:()=>{t(),r(!0),Object(z.recordEvent)("wcadmin_mobile_android_banner_click",{action:"dismiss"})}}),Object(i.createElement)(Ve,null),Object(i.createElement)("div",{className:"woocommerce-mobile-app-banner__description"},Object(i.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(H.__)("Run your store from anywhere","woocommerce-admin")),Object(i.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(H.__)("Download the WooCommerce app","woocommerce-admin"))),Object(i.createElement)(a.Button,{href:"https://play.google.com/store/apps/details?id=com.woocommerce.android",isSecondary:!0,onClick:()=>{e(),r(!0),Object(z.recordEvent)("wcadmin_mobile_android_banner_click",{action:"install"})}},Object(H.__)("Install","woocommerce-admin")))};function Fe(){const[e,t]=Object(i.useState)(!1),n=Object(i.useRef)(null);return Object(i.useEffect)(()=>{const e=()=>{t(window.pageYOffset>20)},r=()=>{n.current=window.requestAnimationFrame(e)};return window.addEventListener("scroll",r),()=>{window.removeEventListener("scroll",r),window.cancelAnimationFrame(n.current)}},[]),e}n(287);const De=(e,t,n=null)=>{if(!t)return 0;const r=0===(o=t).indexOf("http")?o:Object(F.e)(o);var o;const{href:i}=e;if(r===i)return Number.MAX_SAFE_INTEGER;const a=(e=>{const t=e.replace(/[-\/\\^$*+?.()|[\]{}]/gi,"\\$&"),[n,r,o]=t.split(/\\\?|#/),i=o?`(.*#${o}$)`:"";return"^"+n+(r?r.split("&").reduce((e,t)=>`${e}(?=.*[?|&]${t}(&|$|#))`,""):"")+i})(r),c=new RegExp(n||a,"i");return(decodeURIComponent(i).match(c)||[]).length},ze=e=>{let t=null,n=0;return e.forEach(e=>{const r=De(window.location,e.url,e.matchExpression);r>0&&r>=n&&(n=r,t=e)}),t||null},Ue=["primary","favorites","plugins","secondary"],Be={woocommerce:{id:"woocommerce",isCategory:!0,menuId:"primary",migrate:!0,order:10,parent:"",title:"WooCommerce"}};var He=Object(i.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(i.createElement)(se.Path,{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"}));var qe=()=>{const e=Object(F.f)("siteTitle",""),t=Object(F.f)("homeUrl",""),n=Fe(),[r,o]=Object(i.useState)(document.body.classList.contains(!1)),c="is-wc-nav-folded",l="is-wc-nav-expanded",u=()=>{document.body.classList.add(c),document.body.classList.remove(l),o(!0)},d=()=>{document.body.classList.remove(c),document.body.classList.add(l),o(!1)},m=(e=document.body.clientWidth)=>{e<=960?u():d()};Object(i.useEffect)(()=>{m();const e=[{eventName:"orientationchange",handler:e=>m(e.target.screen.availWidth)},{eventName:"resize",handler:Object(M.debounce)(()=>m(),200)}];for(const{eventName:t,handler:n}of e)window.addEventListener(t,n,!1);Object(I.addHistoryListener)(()=>m())},[]);let p=Object(i.createElement)(ie.a,{size:"36px",icon:He});const{isRequestingSiteIcon:f,siteIconUrl:h}=Object(s.useSelect)(e=>{const{isResolving:t}=e("core/data"),{getEntityRecord:n}=e("core"),r=n("root","__unstableBase",void 0)||{};return{isRequestingSiteIcon:t("core","getEntityRecord",["root","__unstableBase",void 0]),siteIconUrl:r.siteIconUrl}});h?p=Object(i.createElement)("img",{alt:Object(H.__)("Site Icon"),src:h}):f&&(p=null);const b=ne()("woocommerce-navigation-header",{"is-scrolled":n});return Object(i.createElement)("div",{className:b},Object(i.createElement)(a.Button,{onClick:()=>{document.body.classList.contains(c)?d():u()},className:"woocommerce-navigation-header__site-icon","aria-label":"Fold navigation",role:"switch","aria-checked":r?"true":"false"},p),Object(i.createElement)(a.Button,{href:t,className:"woocommerce-navigation-header__site-title",as:"span"},Object(re.decodeEntities)(e)))},$e=(n(288),Object(i.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(se.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}))),We=Object(i.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(se.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"}));n(289);const Qe=({id:e})=>{const{favorites:t,isResolving:n}=Object(s.useSelect)(e=>({favorites:e(D.NAVIGATION_STORE_NAME).getFavorites(),isResolving:e(D.NAVIGATION_STORE_NAME).isResolving("getFavorites")})),{addFavorite:r,removeFavorite:o}=Object(s.useDispatch)(D.NAVIGATION_STORE_NAME),c=t.includes(e);return n?null:Object(i.createElement)(a.Button,{id:"woocommerce-navigation-favorite-button",className:"woocommerce-navigation-favorite-button",isTertiary:!0,onClick:()=>{(c?o:r)(e),Object(z.recordEvent)("navigation_favorite",{id:e,action:c?"unfavorite":"favorite"})},"aria-label":c?Object(H.__)("Add this item to your favorites.","woocommerce-admin"):Object(H.__)("Remove this item from your favorites.","woocommerce-admin")},Object(i.createElement)(ie.a,{icon:c?$e:We,className:`star-${c?"filled":"empty"}-icon`}))};const Ge="woocommerce_navigation_favorites_tooltip_hidden",Ye=()=>{const{isFavoritesResolving:e,isOptionResolving:t,isTooltipHidden:n}=Object(s.useSelect)(e=>{const{getOption:t,isResolving:n}=e(D.OPTIONS_STORE_NAME);return{isFavoritesResolving:e(D.NAVIGATION_STORE_NAME).isResolving("getFavorites"),isOptionResolving:n("getOption",[Ge]),isTooltipHidden:"yes"===t(Ge)}}),{updateOptions:r}=Object(s.useDispatch)(D.OPTIONS_STORE_NAME);return e||n||t||document.body.classList.contains("is-wc-nav-folded")?null:Object(i.createElement)(Oe,{delay:1e3,title:Object(H.__)("Introducing favorites","woocommerce-admin"),content:Object(H.__)("You can now favorite your extensions to pin them in the top level of the navigation.","woocommerce-admin"),closeButtonText:Object(H.__)("Got it","woocommerce-admin"),id:"woocommerce-navigation-favorite-button",onClose:()=>r({[Ge]:"yes"}),useAnchor:!0})};var Ze=({category:e})=>{const{id:t,menuId:n,title:r}=e,o="woocommerce-navigation-category-title";return["plugins","favorites"].includes(n)?Object(i.createElement)("span",{className:o},Object(i.createElement)("span",{className:o+"__text"},r),Object(i.createElement)(Qe,{id:t}),Object(i.createElement)(Ye,null)):Object(i.createElement)("span",{className:o},r)};var Ke=({item:e})=>{var t;const n=Object(oe.useSlot)("woocommerce_navigation_"+e.id),r=Boolean(null==n||null===(t=n.fills)||void 0===t?void 0:t.length),o=e=>{Object(z.recordEvent)("navigation_click",{menu_item:e})};return r&&!e.isCategory?Object(i.createElement)(oe.NavigationItem,{key:e.id,item:e.id},Object(i.createElement)("div",{onClick:()=>o(e.id)},Object(i.createElement)(I.WooNavigationItem.Slot,{name:e.id}))):Object(i.createElement)(oe.NavigationItem,{key:e.id,item:e.id,title:e.title,href:e.url,navigateToMenu:!e.url&&e.id,onClick:()=>o(e.id),hideIfTargetMenuEmpty:!0})};const Je=({category:e,onBackClick:t,pluginItems:n,primaryItems:r})=>{if(!r.length&&!n.length)return null;const o=Object(B.applyFilters)("woocommerce_navigation_root_back_label",Object(H.__)("WordPress Dashboard","woocommerce-admin")),a=Object(B.applyFilters)("woocommerce_navigation_root_back_url",window.wcNavigation.rootBackUrl),c="woocommerce"===e.id&&a;return Object(i.createElement)(oe.NavigationMenu,{title:Object(i.createElement)(Ze,{category:e}),menu:e.id,parentMenu:e.parent,backButtonLabel:c?o:e.backButtonLabel||null,onBackButtonClick:c?()=>{t("woocommerce"),window.location=a}:()=>t(e.id)},!!r.length&&Object(i.createElement)(oe.NavigationGroup,null,r.map(e=>Object(i.createElement)(Ke,{key:e.id,item:e}))),!!n.length&&Object(i.createElement)(oe.NavigationGroup,{title:"woocommerce"===e.id?Object(H.__)("Extensions","woocommerce-admin"):null},n.map(e=>Object(i.createElement)(Ke,{key:e.id,item:e}))))},Xe=({category:e,items:t,onBackClick:n})=>{if(!t.length)return null;const r="woocommerce"===e.id;return Object(i.createElement)(oe.NavigationMenu,{className:"components-navigation__menu-secondary",title:!r&&Object(i.createElement)(Ze,{category:e}),menu:e.id,parentMenu:e.parent,backButtonLabel:e.backButtonLabel||null,onBackButtonClick:r?null:()=>n(e.id)},Object(i.createElement)(oe.NavigationGroup,{onBackButtonClick:()=>n(e.id)},t.map(e=>Object(i.createElement)(Ke,{key:e.id,item:e}))))};var et=()=>{const{menuItems:e}=Object(s.useSelect)(e=>({menuItems:e(D.NAVIGATION_STORE_NAME).getMenuItems()}));Object(i.useEffect)(()=>{document.documentElement.classList.remove("wp-toolbar"),document.body.classList.add("has-woocommerce-navigation");const e=document.getElementById("adminmenumain");e&&e.classList.add("folded")},[]);const[t,n]=Object(i.useState)("woocommerce-home"),[r,o]=Object(i.useState)("woocommerce");Object(i.useEffect)(()=>{const r=ze(e);r&&t!==r&&(n(r),o(r.parent));return Object(I.addHistoryListener)(()=>{setTimeout(()=>{const t=ze(e);t&&(n(t),o(t.parent))},0)})},[e]);const{currentUserCan:a}=Object(D.useUser)(),{categories:c,items:l}=Object(i.useMemo)(()=>((e,t)=>{const n={...Be};return{items:(e=>e.sort((e,t)=>e.order===t.order?e.title.localeCompare(t.title):e.order-t.order))(e).reduce((e,r)=>{if(e[r.parent]||(e[r.parent]={},Ue.forEach(t=>{e[r.parent][t]=[]})),!e[r.parent][r.menuId])return e;if(t&&r.capability&&!t(r.capability))return e;r.isCategory&&(n[r.id]=r);const o=e[r.parent][r.menuId];return o&&o.push(r),e},{}),categories:n}})(e,a),[e,a]),u=Object(i.useRef)(null),d=e=>{Object(z.recordEvent)("navigation_back_click",{category:e})},m="woocommerce"===r,p=ne()("woocommerce-navigation",{"is-root":m});return Object(i.createElement)("div",{className:p},Object(i.createElement)(qe,null),Object(i.createElement)("div",{className:"woocommerce-navigation__wrapper",ref:u},Object(i.createElement)(oe.Navigation,{activeItem:t?t.id:null,activeMenu:r,onActivateMenu:(...e)=>{u&&u.current&&(u.current.scrollTop=0),o(...e)}},Object.values(c).map(e=>{const t=l[e.id];return!!t&&[Object(i.createElement)(Je,{key:e.id,category:e,onBackClick:d,primaryItems:[...t.primary,...t.favorites],pluginItems:t.plugins}),Object(i.createElement)(Xe,{key:"secondary/"+e.id,category:e,onBackClick:d,items:t.secondary})]}))))};var tt=Object(D.withNavigationHydration)(window.wcNavigation)(et);const nt=()=>{if(new URL(window.location.href).searchParams.get("task")){const e=Object(H.__)("WooCommerce Home","woocommerce-admin"),t=()=>{Object(z.recordEvent)("topbar_back_button",{page_name:rt(window.title)}),Object(I.updateQueryString)({},Object(I.getHistory)().location.pathname,{})};return Object(i.createElement)(a.Tooltip,{text:e},Object(i.createElement)("div",{tabIndex:"0",role:"button","data-testid":"header-back-button",className:"woocommerce-layout__header-back-button",onKeyDown:({keyCode:e})=>{e!==ce.ENTER&&e!==ce.SPACE||t()}},Object(i.createElement)(ie.a,{icon:ae.a,onClick:t})))}return null},rt=e=>{const t=new URL(window.location.href).searchParams.get("task");return{payments:Object(H.__)("Set up payments","woocommerce-admin"),tax:Object(H.__)("Add tax rates","woocommerce-admin"),appearance:Object(H.__)("Personalize your store","woocommerce-admin"),products:Object(H.__)("Add products","woocommerce-admin"),shipping:Object(H.__)("Set up shipping costs","woocommerce-admin")}[t]||e},ot=({sections:e,isEmbedded:t=!1,query:n})=>{const r=Object(i.useRef)(null),o=Object(F.f)("siteTitle",""),a=e.slice(-1)[0],c=Fe(),{updateUserPreferences:s,...l}=Object(D.useUserPreferences)(),u="yes"===l.android_app_banner_dismissed;let d=null;const m=ne()("woocommerce-layout__header",{"is-scrolled":c});Object(i.useLayoutEffect)(()=>(p(),window.addEventListener("resize",p),()=>{window.removeEventListener("resize",p);const e=document.querySelector("#wpbody");e&&(e.style.marginTop=null)}),[u]);const p=()=>{clearTimeout(d),d=setTimeout((function(){const e=document.querySelector("#wpbody");e&&r.current&&(e.style.marginTop=r.current.offsetHeight+"px")}),200)};Object(i.useEffect)(()=>{if(!t){const t=e.map(e=>Array.isArray(e)?e[1]:e).reverse().join(" ‹ "),n=Object(re.decodeEntities)(Object(H.sprintf)(Object(H.__)("%1$s ‹ %2$s — WooCommerce","woocommerce-admin"),t,o));document.title!==n&&(document.title=n)}},[t,e,o]);const f=()=>{s({android_app_banner_dismissed:"yes"})},h=nt()?"with-back-button":"";return Object(i.createElement)("div",{className:m,ref:r},!u&&Object(i.createElement)(Ie,{onDismiss:f,onInstall:f}),Object(i.createElement)("div",{className:"woocommerce-layout__header-wrapper"},window.wcAdminFeatures.navigation&&Object(i.createElement)(tt,null),nt(),Object(i.createElement)(oe.Text,{className:"woocommerce-layout__header-heading "+h,as:"h1"},rt(Object(re.decodeEntities)(a))),window.wcAdminFeatures["activity-panels"]&&Object(i.createElement)(Ne,{isEmbedded:t,query:n,userPreferencesData:{...l,updateUserPreferences:s}})))};class it extends i.Component{render(){return Object(i.createElement)("div",{id:"woocommerce-layout__notice-list",className:"woocommerce-layout__notice-list"})}}var at=it,ct=n(159),st=n(255);var lt=function({notices:e,className:t,children:n,onRemove:r=M.noop,onRemove2:a=M.noop}){const s=Object(c.useReducedMotion)(),[l]=Object(i.useState)(()=>new WeakMap),u=Object(ct.useTransition)(e,e=>e.id,{from:{opacity:0,height:0},enter:e=>async t=>await t({opacity:1,height:l.get(e).offsetHeight}),leave:()=>async e=>{await e({opacity:0}),await e({height:0})},immediate:s});t=ne()("components-snackbar-list",t);const d=e=>()=>{r(e.id),a(e.id)};return Object(i.createElement)("div",{className:t},n,u.map(({item:e,key:t,props:n})=>Object(i.createElement)(ct.animated.div,{key:t,style:n},Object(i.createElement)("div",{className:"components-snackbar-list__notice-container",ref:t=>t&&l.set(e,t)},Object(i.createElement)(st.a,o()({},Object(M.omit)(e,["content"]),{onRemove:d(e)}),e.content)))))};n(295);const ut="woocommerce_admin_transient_notices_queue";function dt(e){const{removeNotice:t}=Object(s.useDispatch)("core/notices"),{createNotice:n,removeNotice:r}=Object(s.useDispatch)("core/notices2"),{updateOptions:o}=Object(s.useDispatch)(D.OPTIONS_STORE_NAME),{currentUser:a={},notices:c=[],notices2:l=[],noticesQueue:u={}}=Object(s.useSelect)(e=>({currentUser:e(D.USER_STORE_NAME).getCurrentUser(),notices:e("core/notices").getNotices(),notices2:e("core/notices2").getNotices(),noticesQueue:e(D.OPTIONS_STORE_NAME).getOption(ut)}));Object(i.useEffect)(()=>{Object.values(u).filter(e=>e.user_id===a.id||!e.user_id).forEach(e=>{const t=Object(B.applyFilters)("woocommerce_admin_queued_notice_filter",e);n(t.status,t.content,{onDismiss:()=>{(e=>{const t={...u};delete t[e],o({[ut]:t})})(t.id)},...t.options||{}})})},[]);const{className:d}=e,m=ne()("woocommerce-transient-notices","components-notices__snackbar",d),p=c.concat(l);return Object(i.createElement)(lt,{notices:p,className:m,onRemove:t,onRemove2:r})}dt.propTypes={className:p.a.string,notices:p.a.array};var mt=dt;Object(U.registerPlugin)("wc-admin-navigation",{render:()=>{const{persistedQuery:e}=Object(s.useSelect)(e=>({persistedQuery:e(D.NAVIGATION_STORE_NAME).getPersistedQuery()}));if(!Object($.f)(window.location.href))return null;const t=Object(q.a)().filter(e=>e.navArgs),n=X().filter(e=>e.navArgs).map(e=>"/analytics/settings"===e.path?{...e,breadcrumbs:[Object(H.__)("Analytics","woocommerce-admin")]}:e);return Object(i.createElement)(i.Fragment,null,n.map(t=>Object(i.createElement)(I.WooNavigationItem,{item:t.navArgs.id,key:t.navArgs.id},Object(i.createElement)(V.Link,{className:"components-button",href:Object(I.getNewPath)(Object(I.pathIsExcluded)(t.path)?{}:e,t.path,{}),type:"wc-admin"},t.breadcrumbs[t.breadcrumbs.length-1]))),t.map(t=>Object(i.createElement)(I.WooNavigationItem,{item:t.navArgs.id,key:t.navArgs.id},Object(i.createElement)(V.Link,{className:"components-button",href:Object(I.getNewPath)(Object(I.pathIsExcluded)(t.report)?{}:e,"/analytics/"+t.report,{}),type:"wc-admin"},t.title))))}});const pt=Object(i.lazy)(()=>Promise.all([n.e(1),n.e(47)]).then(n.bind(null,609))),ft=Object(i.lazy)(()=>n.e(51).then(n.bind(null,515)));class ht extends i.Component{render(){const{children:e}=this.props;return Object(i.createElement)("div",{className:"woocommerce-layout__primary",id:"woocommerce-layout__primary"},window.wcAdminFeatures["store-alerts"]&&Object(i.createElement)(i.Suspense,{fallback:Object(i.createElement)(V.Spinner,null)},Object(i.createElement)(pt,null)),Object(i.createElement)(at,null),e)}}class bt extends i.Component{componentDidMount(){this.recordPageViewTrack()}componentDidUpdate(e){const t=Object(M.get)(e,"location.pathname"),n=Object(M.get)(this.props,"location.pathname");t&&n&&t!==n&&this.recordPageViewTrack()}recordPageViewTrack(){const{activePlugins:e,installedPlugins:t,isEmbedded:n,isJetpackConnected:r}=this.props,o={has_navigation:!!window.wcNavigation};if(n){const e=document.location.pathname+document.location.search;return void Object(z.recordPageView)(e,{is_embedded:!0,...o})}const i=Object(M.get)(this.props,"location.pathname");if(!i)return;let a=i.substring(1).replace(/\//g,"_");0===a.length&&(a="home_screen"),Object(z.recordPageView)(a,{jetpack_installed:t.includes("jetpack"),jetpack_active:e.includes("jetpack"),jetpack_connected:r,...o})}getQuery(e){if(!e)return{};const t=e.substring(1);return Object(L.parse)(t)}isWCPaySettingsPage(){const{page:e,section:t,tab:n}=Object(I.getQuery)();return"wc-settings"===e&&"checkout"===n&&"woocommerce_payments"===t}render(){const{isEmbedded:e,...t}=this.props,{location:n,page:r}=this.props,{breadcrumbs:c}=r,s=this.getQuery(n&&n.search);return Object(i.createElement)(a.SlotFillProvider,null,Object(i.createElement)("div",{className:"woocommerce-layout"},Object(i.createElement)(ot,{sections:Object(M.isFunction)(c)?c(this.props):c,isEmbedded:e,query:s}),Object(i.createElement)(mt,null),!e&&Object(i.createElement)(ht,null,Object(i.createElement)("div",{className:"woocommerce-layout__main"},Object(i.createElement)(ee,o()({},t,{query:s})))),e&&this.isWCPaySettingsPage()&&Object(i.createElement)(i.Suspense,{fallback:null},Object(i.createElement)(ft,null))),Object(i.createElement)(U.PluginArea,{scope:"woocommerce-admin"}))}}bt.propTypes={isEmbedded:p.a.bool,page:p.a.shape({container:p.a.oneOfType([p.a.func,p.a.object]),path:p.a.string,breadcrumbs:p.a.oneOfType([p.a.func,p.a.arrayOf(p.a.oneOfType([p.a.arrayOf(p.a.string),p.a.string]))]).isRequired,wpOpenMenu:p.a.string}).isRequired};const vt=Object(c.compose)(Object(D.withPluginsHydration)({...window.wcSettings.plugins||{},jetpackStatus:window.wcSettings.dataEndpoints&&window.wcSettings.dataEndpoints.jetpackStatus||!1}),Object(s.withSelect)((e,{isEmbedded:t})=>{if(t)return;const{getActivePlugins:n,getInstalledPlugins:r,isJetpackConnected:o}=e(D.PLUGINS_STORE_NAME);return{activePlugins:n(),isJetpackConnected:o(),installedPlugins:r()}}))(bt),gt=Object(c.compose)(window.wcSettings.preloadOptions?Object(D.withOptionsHydration)({...window.wcSettings.preloadOptions}):M.identity)(()=>{const{currentUserCan:e}=Object(D.useUser)();return Object(i.createElement)(_,{history:Object(I.getHistory)()},Object(i.createElement)(R,null,X().filter(t=>!t.capability||e(t.capability)).map(e=>Object(i.createElement)(x,{key:e.path,path:e.path,exact:!0,render:t=>Object(i.createElement)(vt,o()({page:e},t))}))))}),yt=Object(c.compose)(window.wcSettings.preloadOptions?Object(D.withOptionsHydration)({...window.wcSettings.preloadOptions}):M.identity)(()=>Object(i.createElement)(vt,{page:{breadcrumbs:Object(F.f)("embedBreadcrumbs",[])},isEmbedded:!0}))},12:function(e,t){e.exports=window.wc.navigation},120:function(e,t){e.exports=window.wc.number},122:function(e,t){e.exports=window.wc.explat},127:function(e,t){e.exports=window.wp.notices},128:function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,l=[],u=!1,d=-1;function m(){u&&s&&(u=!1,s.length?l=s.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=c(m);u=!0;for(var t=l.length;t;){for(s=l,l=[];++d<t;)s&&s[d].run();d=-1,t=l.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||u||c(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},129:function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,m=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,O=r?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case m:case a:case s:case c:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case v:case b:case l:return e;default:return t}}case i:return t}}}function _(e){return j(e)===m}t.AsyncMode=d,t.ConcurrentMode=m,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=b,t.Portal=i,t.Profiler=s,t.StrictMode=c,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||j(e)===d},t.isConcurrentMode=_,t.isContextConsumer=function(e){return j(e)===u},t.isContextProvider=function(e){return j(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return j(e)===p},t.isFragment=function(e){return j(e)===a},t.isLazy=function(e){return j(e)===v},t.isMemo=function(e){return j(e)===b},t.isPortal=function(e){return j(e)===i},t.isProfiler=function(e){return j(e)===s},t.isStrictMode=function(e){return j(e)===c},t.isSuspense=function(e){return j(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===m||e===s||e===c||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===b||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===w||e.$$typeof===O||e.$$typeof===g)},t.typeOf=j},13:function(e,t){e.exports=window.wp.compose},14:function(e,t){e.exports=window.wp.url},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return m})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return f}));var r=n(2);const o=["wcAdminSettings","preloadSettings"],i="object"==typeof wcSettings?wcSettings:{},a=Object.keys(i).reduce((e,t)=>(o.includes(t)||(e[t]=i[t]),e),{}),c=a.adminUrl,s=(a.countries,a.currency),l=a.locale,u=a.orderStatuses;a.siteTitle,a.wcAssetUrl;function d(e,t=!1,n=(e=>e)){if(o.includes(e))throw new Error(Object(r.__)("Mutable settings should be accessed via data store."));return n(a.hasOwnProperty(e)?a[e]:t,t)}function m(e,t,n=(e=>e)){if(o.includes(e))throw new Error(Object(r.__)("Mutable settings should be mutated via data store."));a[e]=n(t)}function p(e){return(c||"")+e}function f(e){return new Promise((t,n)=>{document.querySelector(`#${e.handle}-js`)&&t();const r=document.createElement("script");r.src=e.src,r.id=e.handle+"-js",r.async=!0,r.onload=t,r.onerror=n,document.body.appendChild(r)})}},159:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(35)),i=r(n(291)),a=n(5),c=r(a),s=r(n(292)),l=r(n(294)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=a.useState(!1)[1];return a.useCallback((function(){return e((function(e){return!e}))}),[])}function m(e,t){return u.und(e)||u.nul(e)?t:e}function p(e){return u.und(e)?[]:u.arr(e)?e:[e]}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return u.fun(e)?e.apply(void 0,n):e}function h(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,i(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(u.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var i;return u.und(t[r])?o({},n,((i={})[r]=e[r],i)):n}),{});return o({to:t},n)}var b,v,g=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.addChild(l(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.removeChild(l(t))}))},t}return s(t,e),t}(g),w=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.addChild(l(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.removeChild(l(t))}))},t}s(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof g)&&(t[n]=r instanceof g?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(g);function O(e,t){b={fn:e,transform:t}}function j(e){v=e}var _,E=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},k=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function S(e){_=e}var x,C=function(){return Date.now()};function T(e){x=e}var A,P,N=function(e){return e.current};function R(e){A=e}var M=Object.freeze({get applyAnimatedValues(){return b},injectApplyAnimatedValues:O,get colorNames(){return v},injectColorNames:j,get requestFrame(){return E},get cancelFrame(){return k},injectFrame:function(e,t){E=e,k=t},get interpolation(){return _},injectStringInterpolator:S,get now(){return C},injectNow:function(e){C=e},get defaultElement(){return x},injectDefaultElement:T,get animatedApi(){return N},injectAnimatedApi:function(e){N=e},get createAnimatedStyle(){return A},injectCreateAnimatedStyle:R,get manualFrameloop(){return P},injectManualFrameloop:function(e){P=e}}),L=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:A(t.style)}):t,r.update=n,r.attach(),r}return s(t,e),t}(w),V=!1,I=new Set,F=function e(){if(!V)return!1;var t=C(),n=I,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var a=i,c=!1,s=0;s<a.configs.length;s++){for(var l=a.configs[s],u=void 0,d=void 0,m=0;m<l.animatedValues.length;m++){var p=l.animatedValues[m];if(!p.done){var f=l.fromValues[m],h=l.toValues[m],b=p.lastPosition,v=h instanceof g,y=Array.isArray(l.initialVelocity)?l.initialVelocity[m]:l.initialVelocity;if(v&&(h=h.getValue()),l.immediate)p.setValue(h),p.done=!0;else if("string"!=typeof f&&"string"!=typeof h){if(void 0!==l.duration)b=f+l.easing((t-p.startTime)/l.duration)*(h-f),u=t>=p.startTime+l.duration;else if(l.decay)b=f+y/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(u=Math.abs(p.lastPosition-b)<.1)&&(h=b);else{d=void 0!==p.lastTime?p.lastTime:t,y=void 0!==p.lastVelocity?p.lastVelocity:l.initialVelocity,t>d+64&&(d=t);for(var w=Math.floor(t-d),O=0;O<w;++O){b+=1*(y+=1*((-l.tension*(b-h)+-l.friction*y)/l.mass)/1e3)/1e3}var j=!(!l.clamp||0===l.tension)&&(f<h?b>h:b<h),_=Math.abs(y)<=l.precision,k=0===l.tension||Math.abs(h-b)<=l.precision;u=j||_&&k,p.lastVelocity=y,p.lastTime=t}v&&!l.toValues[m].done&&(u=!1),u?(p.value!==h&&(b=h),p.done=!0):c=!0,p.setValue(b),p.lastPosition=b}else p.setValue(h),p.done=!0}}a.props.onFrame&&(a.values[l.name]=l.interpolation.getValue())}a.props.onFrame&&a.props.onFrame(a.values),c||(I.delete(a),a.stop(!0))}return I.size?P?P():E(e):V=!1,V};function D(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return D({range:e,output:t,extrapolate:n});if(_&&"string"==typeof e.output[0])return _(e);var r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,c,s){var l=s?s(e):e;if(l<t){if("identity"===a)return l;"clamp"===a&&(l=t)}if(l>n){if("identity"===c)return l;"clamp"===c&&(l=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=i(l),r===-1/0?l=-l:o===1/0?l+=r:l=l*(o-r)+r;return l}(e,i[t],i[t+1],o[t],o[t+1],s,a,c,r.map)}}var z=function(e){function t(n,r,o,i){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof y&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],a.calc=D(r,o,i),a}s(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=D(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(y);var U=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}s(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new z(this,e,t,n)},t}(g),B=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new U(e)})),n}s(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new z(this,e,t)},t}(y),H=0,q=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=H++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,a=t.to,c=i(t,["delay","to"]);if(u.arr(a)||u.fun(a))this.queue.push(o({},c,{delay:r,to:a}));else if(a){var s={};Object.entries(a).forEach((function(e){var t,n=e[0],i=e[1],a=o({to:(t={},t[n]=i,t),delay:f(r,n)},c),l=s[a.delay]&&s[a.delay].to;s[a.delay]=o({},s[a.delay],a,{to:o({},l,a.to)})})),this.queue=Object.values(s)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(c),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,i=e.to,a=void 0===i?{}:i;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(a)&&(n.merged=o({},n.merged,a))}));var r=this.local=++this.guid,a=this.localQueue=this.queue;this.queue=[],a.forEach((function(t,o){var c=t.delay,s=i(t,["delay"]),l=function(t){o===a.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(s.to)||u.fun(s.to);c?setTimeout((function(){r===n.guid&&(d?n.runAsync(s,l):n.diff(s).start(l))}),c):d?n.runAsync(s,l):n.diff(s).start(l)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,I.has(t)||I.add(t),V||(V=!0,E(P||F));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,I.has(t)&&I.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,i(e,["delay"])),a=this.local,c=Promise.resolve(void 0);if(u.arr(r.to))for(var s=function(e){var t=e,i=o({},r,h(r.to[t]));u.arr(i.config)&&(i.config=i.config[t]),c=c.then((function(){if(a===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},l=0;l<r.to.length;l++)s(l);else if(u.fun(r.to)){var d,m=0;c=c.then((function(){return r.to((function(e){var t=o({},r,h(e));if(u.arr(t.config)&&(t.config=t.config[m]),m++,a===n.guid)return d=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return d}))}))}c.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,i=void 0===r?{}:r,a=n.to,c=void 0===a?{}:a,s=n.config,l=void 0===s?{}:s,d=n.reverse,h=n.attach,b=n.reset,g=n.immediate;if(d){var y=[c,i];i=y[0],c=y[1]}this.merged=o({},i,this.merged,c),this.hasChanged=!1;var w=h&&h(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],a=n[1],c=e[r]||{},s=u.num(a),d=u.str(a)&&!a.startsWith("#")&&!/\d/.test(a)&&!v[a],h=u.arr(a),y=!s&&!h&&!d,O=u.und(i[r])?a:i[r],j=s||h||d?a:1,E=f(l,r);w&&(j=w.animations[r].parent);var k,S=c.parent,x=c.interpolation,T=p(w?j.getPayload():j),A=a;y&&(A=_({range:[0,1],output:[a,a]})(1));var P,N=x&&x.getValue(),R=!u.und(S)&&c.animatedValues.some((function(e){return!e.done})),M=!u.equ(A,N),L=!u.equ(A,c.previous),V=!u.equ(E,c.config);if(b||L&&M||V){var I;if(s||d)S=x=c.parent||new U(O);else if(h)S=x=c.parent||new B(O);else if(y){var F=c.interpolation&&c.interpolation.calc(c.parent.value);F=void 0===F||b?O:F,c.parent?(S=c.parent).setValue(0,!1):S=new U(0);var D={output:[F,a]};c.interpolation?(x=c.interpolation,c.interpolation.updateConfig(D)):x=S.interpolate(D)}return T=p(w?j.getPayload():j),k=p(S.getPayload()),b&&!y&&S.setValue(O,!1),t.hasChanged=!0,k.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=R?e.lastVelocity:void 0,e.lastTime=R?e.lastTime:void 0,e.startTime=C(),e.done=!1,e.animatedStyles.clear()})),f(g,r)&&S.setValue(y?j:a,!1),o({},e,((I={})[r]=o({},c,{name:r,parent:S,interpolation:x,animatedValues:k,toValues:T,previous:A,config:E,fromValues:p(S.getValue()),immediate:f(g,r),initialVelocity:m(E.velocity,0),clamp:m(E.clamp,!1),precision:m(E.precision,.01),tension:m(E.tension,170),friction:m(E.friction,26),mass:m(E.mass,1),duration:E.duration,easing:m(E.easing,(function(e){return e})),decay:E.decay}),I))}return M?e:(y&&(S.setValue(1,!1),x.updateConfig({output:[A,A]})),S.done=!0,t.hasChanged=!0,o({},e,((P={})[r]=o({},e[r],{previous:A}),P)))}),this.animations),this.hasChanged)for(var O in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[O]=this.animations[O].interpolation,this.values[O]=this.animations[O].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),$=function(e,t){var n=a.useRef(!1),r=a.useRef(),o=u.fun(t),i=a.useMemo((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var i=new q,a=o?f(t,r,i):t[r];return 0===r&&(n=a.ref),i.update(a),n||i.start(),i})),n]}),[e]),c=i[0],s=i[1];r.current=c;a.useImperativeHandle(s,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var l=a.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?f(e,n,t):e[n]),s||t.start()}))}}),[e]);a.useEffect((function(){n.current?o||l(t):s||r.current.forEach((function(e){return e.start()}))})),a.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var d=r.current.map((function(e){return e.getValues()}));return o?[d,l,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:d},W=0,Q=function(e,t){return("function"==typeof t?e.map(t):p(t)).map(String)},G=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,a=i(e,["items","keys"]);return t=p(void 0!==t?t:null),o({items:t,keys:Q(t,r)},a)};function Y(e,t){var n=function(){if(o){if(i>=r.length)return"break";a=r[i++]}else{if((i=r.next()).done)return"break";a=i.value}var n=a.key,c=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(c),e.current.deleted=e.current.deleted.filter(c))},r=e.current.deleted,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if("break"===n())break}e.current.forceUpdate()}var Z=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=b.transform(t)),n.payload=t,n}return s(t,e),t}(w),K={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},J="[-+]?\\d*\\.?\\d+";function X(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+X(J,J,J)),te=new RegExp("rgba"+X(J,J,J,J)),ne=new RegExp("hsl"+X(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+X(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",J)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{6})$/,ce=/^#([0-9a-fA-F]{8})$/;function se(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function le(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=se(o,r,e+1/3),a=se(o,r,e),c=se(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*c)<<8}function ue(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function me(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function fe(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:K.hasOwnProperty(t)?K[t]:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=te.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|me(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ce.exec(t))?parseInt(n[1],16)>>>0:(n=ie.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|le(de(n[1]),pe(n[2]),pe(n[3])))>>>0:(n=re.exec(t))?(le(de(n[1]),pe(n[2]),pe(n[3]))|me(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,be=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ve=new RegExp("("+Object.keys(K).join("|")+")","g"),ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ye=["Webkit","Ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return ye.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ge);var Oe={};R((function(e){return new Z(e)})),T("div"),S((function(e){var t=e.output.map((function(e){return e.replace(be,fe)})).map((function(e){return e.replace(ve,fe)})),n=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(he).map((function(t,r){return D(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(he,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),j(K),O((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,a=t.scrollLeft,c=i(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var l in void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(l)){var u=0===l.indexOf("--"),d=we(l,n[l],u);"float"===l&&(l="cssFloat"),u?e.style.setProperty(l,d):e.style[l]=d}for(var m in c){var p=s?m:Oe[m]||(Oe[m]=m.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,c[m])}}),(function(e){return e}));var je,_e,Ee=(je=function(e){return a.forwardRef((function(t,n){var r=d(),s=a.useRef(!0),l=a.useRef(null),m=a.useRef(null),p=a.useCallback((function(e){var t=l.current;l.current=new L(e,(function(){var e=!1;m.current&&(e=b.fn(m.current,l.current.getAnimatedValue())),m.current&&!1!==e||r()})),t&&t.detach()}),[]);a.useEffect((function(){return function(){s.current=!1,l.current&&l.current.detach()}}),[]),a.useImperativeHandle(n,(function(){return N(m,s,r)})),p(t);var f,h=l.current.getValue(),v=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),g=(f=e,!u.fun(f)||f.prototype instanceof c.Component?function(e){return m.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},v,{ref:g}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=je(n),e}),je)}),ke=Ee(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ee,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=F,t.animated=ke,t.a=ke,t.interpolate=function(e,t,n){return e&&new z(e,t,n)},t.Globals=M,t.useSpring=function(e){var t=u.fun(e),n=$(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r},t.useTrail=function(e,t){var n=a.useRef(!1),r=u.fun(t),i=f(t),c=a.useRef(),s=$(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},i,{config:f(i.config,e),attach:e>0&&function(){return c.current[e-1]}})})),l=s[0],d=s[1],m=s[2],p=a.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,a=c.current[r];return o({},e,{config:f(e.config||i.config,t),attach:a&&function(){return a}})}))}}),[e,i.reverse]);return a.useEffect((function(){n.current&&!r&&p(t)})),a.useEffect((function(){n.current=!0}),[]),r?[l,p,m]:l},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=G(r),s=c.lazy,l=void 0!==s&&s,u=(c.unique,c.reset),m=void 0!==u&&u,p=(c.enter,c.leave,c.update,c.onDestroyed),h=(c.keys,c.items,c.onFrame),b=c.onRest,v=c.onStart,g=c.ref,y=i(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),w=d(),O=a.useRef(!1),j=a.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!O.current&&new Map,forceUpdate:w});return a.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(j.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(j.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(j.current.instances).map((function(e){return e[1]}))}}})),j.current=function(e,t){var n=e.first,r=e.prevProps,a=i(e,["first","prevProps"]),c=G(t),s=c.items,l=c.keys,u=c.initial,d=c.from,m=c.enter,p=c.leave,h=c.update,b=c.trail,v=void 0===b?0:b,g=c.unique,y=c.config,w=c.order,O=void 0===w?["enter","leave","update"]:w,j=G(r),_=j.keys,E=j.items,k=o({},a.current),S=[].concat(a.deleted),x=Object.keys(k),C=new Set(x),T=new Set(l),A=l.filter((function(e){return!C.has(e)})),P=a.transitions.filter((function(e){return!e.destroyed&&!T.has(e.originalKey)})).map((function(e){return e.originalKey})),N=l.filter((function(e){return C.has(e)})),R=-v;for(;O.length;){switch(O.shift()){case"enter":A.forEach((function(e,t){g&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var r=l.indexOf(e),o=s[r],i=n&&void 0!==u?"initial":"enter";k[e]={slot:i,originalKey:e,key:g?String(e):W++,item:o,trail:R+=v,config:f(y,o,i),from:f(n&&void 0!==u?u||{}:d,o),to:f(m,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];S.unshift(o({},k[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:R+=v,config:f(y,n,"leave"),to:f(p,n)})),delete k[e]}));break;case"update":N.forEach((function(e){var t=l.indexOf(e),n=s[t];k[e]=o({},k[e],{item:n,slot:"update",trail:R+=v,config:f(y,n,"update"),to:f(h,n)})}))}}var M=l.map((function(e){return k[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=M.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),M=[].concat(M.slice(0,t),[r],M.slice(t))})),o({},a,{changed:A.length||P.length||N.length,first:n&&0===A.length,transitions:M,current:k,deleted:S,prevProps:t})}(j.current,r),j.current.changed&&j.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,a=e.trail,c=e.key,s=e.item;j.current.instances.has(c)||j.current.instances.set(c,new q);var u=j.current.instances.get(c),d=o({},y,{to:r,from:n,config:i,ref:g,onRest:function(n){j.current.mounted&&(e.destroyed&&(g||l||Y(j,c),p&&p(s)),!Array.from(j.current.instances).some((function(e){return!e[1].idle}))&&(g||l)&&j.current.deleted.length>0&&Y(j),b&&b(s,t,n))},onStart:v&&function(){return v(s,t)},onFrame:h&&function(e){return h(s,t,e)},delay:a,reset:m&&"enter"===t});u.update(d),j.current.paused||u.start()})),a.useEffect((function(){return j.current.mounted=O.current=!0,function(){j.current.mounted=O.current=!1,Array.from(j.current.instances).map((function(e){return e[1].destroy()})),j.current.instances.clear()}}),[]),j.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:j.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=a.useRef();a.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var i=e.current;if(i){var a=i.controllers;if(a.length){var c=n*t[r];a.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+c})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=$},16:function(e,t){e.exports=window.wc.tracks},160:function(e,t,n){"use strict";(function(e){var r=n(5),o=n.n(r),i=n(25),a=n(1),c=n.n(a),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var u=o.a.createContext||function(e,t){var n,o,a,u="__create-react-context-"+((s[a="__global_unique_id__"]=(s[a]||0)+1)+"__"),d=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=l(t.props.value),t}Object(i.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[u]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof t?t(r,o):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(r.Component);d.childContextTypes=((n={})[u]=c.a.object.isRequired,n);var m=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(i.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[u]&&this.context[u].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[u]&&this.context[u].off(this.onUpdate)},r.getValue=function(){return this.context[u]?this.context[u].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return m.contextTypes=((o={})[u]=c.a.object,o),{Provider:d,Consumer:m}};t.a=u}).call(this,n(78))},161:function(e,t,n){var r=n(296);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return c(i(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=m;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,c="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],m=n[1],p=n.index;if(c+=e.slice(a,p),a=p+d.length,m)c+=m[1];else{var f=e[a],h=n[2],b=n[3],v=n[4],g=n[5],y=n[6],w=n[7];c&&(r.push(c),c="");var O=null!=h&&null!=f&&f!==h,j="+"===y||"*"===y,_="?"===y||"*"===y,E=n[2]||u,k=v||g;r.push({name:b||i++,prefix:h||"",delimiter:E,optional:_,repeat:j,partial:O,asterisk:!!w,pattern:k?l(k):w?".*":"[^"+s(E)+"]+?"})}}return a<e.length&&(c+=e.substr(a)),c&&r.push(c),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function c(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",d(t)));return function(t,o){for(var i="",c=t||{},s=(o||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!=typeof u){var d,m=c[u.name];if(null==m){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(m)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(m)+"`");if(0===m.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<m.length;p++){if(d=s(m[p]),!n[l].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(m).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):s(m),!n[l].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');i+=u.prefix+d}}else i+=u}return i}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function m(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",c=0;c<e.length;c++){var l=e[c];if("string"==typeof l)a+=s(l);else{var m=s(l.prefix),p="(?:"+l.pattern+")";t.push(l),l.repeat&&(p+="(?:"+m+p+")*"),a+=p=l.optional?l.partial?m+"("+p+")?":"(?:"+m+"("+p+"))?":m+"("+p+")"}}var f=s(n.delimiter||"/"),h=a.slice(-f.length)===f;return o||(a=(h?a.slice(0,-f.length):a)+"(?:"+f+"(?=$))?"),a+=i?"$":o&&h?"":"(?="+f+"|$)",u(new RegExp("^"+a,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return m(i(e,n),t,n)}(e,t,n)}},164:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(3);function o(e,t){return Object(r.filter)(e,e=>{const{is_deleted:n,date_created_gmt:r,status:o}=e;if(!n){return(!t||!r||new Date(r+"Z").getTime()>t)&&"unactioned"===o}}).length}function i(e){return Object(r.filter)(e,e=>{const{is_deleted:t}=e;return!t}).length>0}},17:function(e,t){e.exports=window.wp.apiFetch},18:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=c(n(5)),i=c(n(69)),a=c(n(72));function c(e){return e&&e.__esModule?e:{default:e}}var s=void 0;function l(e,t){var n,a,c,u,d,m,p,f,h=[],b={};for(m=0;m<e.length;m++)if("string"!==(d=e[m]).type){if(!t.hasOwnProperty(d.value)||void 0===t[d.value])throw new Error("Invalid interpolation, missing component node: `"+d.value+"`");if("object"!==r(t[d.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+d.value+"`","\n> "+s);if("componentClose"===d.type)throw new Error("Missing opening component token: `"+d.value+"`");if("componentOpen"===d.type){n=t[d.value],c=m;break}h.push(t[d.value])}else h.push(d.value);return n&&(u=function(e,t){var n,r,o=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===o.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+o.value+"`")}(c,e),p=l(e.slice(c+1,u),t),a=o.default.cloneElement(n,{},p),h.push(a),u<e.length-1&&(f=l(e.slice(u+1),t),h=h.concat(f))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,o=e.throwErrors;if(s=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,a.default)(t);try{return l(i,n)}catch(e){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},19:function(e,t){e.exports=window.wc.date},2:function(e,t){e.exports=window.wp.i18n},20:function(e,t){e.exports=window.wc.experimental},21:function(e,t){e.exports=window.wc.components},22:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},23:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},25:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return o}))},252:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return p}));var r=n(0),o=n(4),i=n(7),a=n(2),c=n(11),s=n(16);const l=()=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"24",height:"24",viewBox:"3 3 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{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",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{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",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{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",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Object(r.createElement)("path",{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",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),Object(a.__)("Display","woocommerce-admin")),{Fill:u,Slot:d}=Object(o.createSlotFill)("DisplayOptions");u.Slot=d;const m=[{value:"single_column",label:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(()=>Object(r.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("rect",{x:"0.5",y:"0.5",width:"11",height:"13",strokeWidth:"1"})),null),Object(a.__)("Single column","woocommerce-admin"))},{value:"two_columns",label:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(()=>Object(r.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("rect",{x:"0.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}),Object(r.createElement)("rect",{x:"9.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"})),null),Object(a.__)("Two columns","woocommerce-admin"))}],p=()=>{const{defaultHomescreenLayout:e,taskListComplete:t,isTaskListHidden:n}=Object(i.useSelect)(e=>{const{getOption:t}=e(c.OPTIONS_STORE_NAME);return{defaultHomescreenLayout:t("woocommerce_default_homepage_layout")||"single_column",taskListComplete:"yes"===t("woocommerce_task_list_complete"),isTaskListHidden:"yes"===t("woocommerce_task_list_hidden")}}),{updateUserPreferences:u,homepage_layout:p}=Object(c.useUserPreferences)(),f=t||n||window.wcAdminFeatures.analytics;return Object(r.createElement)(d,null,t=>0!==t.length||f?Object(r.createElement)(o.DropdownMenu,{icon:Object(r.createElement)(l,null),label:Object(a.__)("Display options","woocommerce-admin"),toggleProps:{className:"woocommerce-layout__activity-panel-tab display-options",onClick:()=>Object(s.recordEvent)("homescreen_display_click")},popoverProps:{className:"woocommerce-layout__activity-panel-popover"}},({onClose:n})=>Object(r.createElement)(r.Fragment,null,t,f?Object(r.createElement)(o.MenuGroup,{className:"woocommerce-layout__homescreen-display-options",label:Object(a.__)("Layout","woocommerce-admin")},Object(r.createElement)(o.MenuItemsChoice,{choices:m,onSelect:e=>{u({homepage_layout:e}),n(),Object(s.recordEvent)("homescreen_display_option",{display_option:e})},value:p||e})):null)):null)}},253:function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return w}));var r=n(0),o=n(2),i=n(20),a=n(16),c=n(21),s=n(7),l=n(11),u=n(494),d=n(8),m=Object(r.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(d.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"})),p=n(495),f=n(4),h=n(65),b=n(102),v=n(59);const g=()=>Object(r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}),Object(r.createElement)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"})),y="AbbreviatedNotification",w=({thingsToDoNextCount:e})=>{const{ordersToProcessCount:t,reviewsToModerateCount:n,stockNoticesCount:d,isSetupTaskListHidden:w,isExtendedTaskListHidden:O}=Object(s.useSelect)(e=>{const{getOption:t}=e(l.OPTIONS_STORE_NAME),n=Object(h.c)(e);return{ordersToProcessCount:Object(h.d)(e,n),reviewsToModerateCount:Object(b.b)(e),stockNoticesCount:Object(h.a)(e),isSetupTaskListHidden:"yes"===t("woocommerce_task_list_hidden"),isExtendedTaskListHidden:"yes"===t("woocommerce_extended_task_list_hidden")}}),j=e=>{Object(a.recordEvent)("activity_panel_click",{task:e})},{Slot:_}=Object(f.createSlotFill)(y),E=Object(v.f)(window.location.href);return Object(r.createElement)("div",{className:"woocommerce-abbreviated-notifications"},e>0&&!O&&Object(r.createElement)(c.AbbreviatedCard,{className:"woocommerce-abbreviated-notification",icon:Object(r.createElement)(g,null),href:"admin.php?page=wc-admin#extended_task_list",onClick:()=>j("thingsToDoNext"),type:E?"wc-admin":"wp-admin"},Object(r.createElement)(i.Text,{as:"h3"},Object(o.__)("Things to do next","woocommerce-admin")),Object(r.createElement)(i.Text,{as:"p"},Object(o.sprintf)(Object(o._n)("You have %d new thing to do","You have %d new things to do",e,"woocommerce-admin"),e))),t>0&&w&&Object(r.createElement)(c.AbbreviatedCard,{className:"woocommerce-abbreviated-notification",icon:u.a,href:"admin.php?page=wc-admin&opened_panel=orders-panel",onClick:()=>j("ordersToProcess"),type:E?"wc-admin":"wp-admin"},Object(r.createElement)(i.Text,{as:"h3"},Object(o.__)("Orders to fulfill","woocommerce-admin")),Object(r.createElement)(i.Text,null,Object(o.sprintf)(Object(o._n)("You have %d order to fulfill","You have %d orders to fulfill",t,"woocommerce-admin"),t))),n>0&&w&&Object(r.createElement)(c.AbbreviatedCard,{className:"woocommerce-abbreviated-notification",icon:m,href:"admin.php?page=wc-admin&opened_panel=reviews-panel",onClick:()=>j("reviewsToModerate"),type:E?"wc-admin":"wp-admin"},Object(r.createElement)(i.Text,{as:"h3"},Object(o.__)("Reviews to moderate","woocommerce-admin")),Object(r.createElement)(i.Text,null,Object(o.sprintf)(Object(o._n)("You have %d review to moderate","You have %d reviews to moderate",n,"woocommerce-admin"),n))),d>0&&w&&Object(r.createElement)(c.AbbreviatedCard,{className:"woocommerce-abbreviated-notification",icon:p.a,href:"admin.php?page=wc-admin&opened_panel=stock-panel",onClick:()=>j("stockNotices"),type:E?"wc-admin":"wp-admin"},Object(r.createElement)(i.Text,{as:"h3"},Object(o.__)("Inventory to review","woocommerce-admin")),Object(r.createElement)(i.Text,null,Object(o.__)("You have inventory to review and update","woocommerce-admin"))),!O&&Object(r.createElement)(_,null))}},254:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return y}));var r=n(0),o=n(2),i=n(30),a=n(18),c=n.n(a),s=n(15),l=n(32),u=n(21),d=n(11),m=n(19);var p=({value:e,onChange:t})=>{const{wcAdminSettings:n}=Object(d.useSettings)("wc_admin",["wcAdminSettings"]),{woocommerce_default_date_range:o}=n,i=Object(l.parse)(e.replace(/&/g,"&")),{period:a,compare:c,before:s,after:p}=Object(m.getDateParamsFromQuery)(i,o),{primary:f,secondary:h}=Object(m.getCurrentDates)(i,o),b={period:a,compare:c,before:s,after:p,primaryDate:f,secondaryDate:h};return Object(r.createElement)(u.DateRangeFilterPicker,{query:i,onRangeSelect:e=>{t({target:{name:"woocommerce_default_date_range",value:Object(l.stringify)(e)}})},dateQuery:b,isoDateFormat:m.isoDateFormat})};const f=["processing","on-hold"],h=["completed","processing","refunded","cancelled","failed","pending","on-hold"],b=Object.keys(s.c).filter(e=>"refunded"!==e).map(e=>({value:e,label:s.c[e],description:Object(o.sprintf)(Object(o.__)("Exclude the %s status from reports","woocommerce-admin"),s.c[e])})),v=Object(s.f)("unregisteredOrderStatuses",{}),g=[{key:"defaultStatuses",options:b.filter(e=>h.includes(e.value))},{key:"customStatuses",label:Object(o.__)("Custom Statuses","woocommerce-admin"),options:b.filter(e=>!h.includes(e.value))},{key:"unregisteredStatuses",label:Object(o.__)("Unregistered Statuses","woocommerce-admin"),options:Object.keys(v).map(e=>({value:e,label:e,description:Object(o.sprintf)(Object(o.__)("Exclude the %s status from reports","woocommerce-admin"),e)}))}],y=Object(i.applyFilters)("woocommerce_admin_analytics_settings",{woocommerce_excluded_report_order_statuses:{label:Object(o.__)("Excluded Statuses:","woocommerce-admin"),inputType:"checkboxGroup",options:g,helpText:c()({mixedString:Object(o.__)("Orders with these statuses are excluded from the totals in your reports. The {{strong}}Refunded{{/strong}} status can not be excluded.","woocommerce-admin"),components:{strong:Object(r.createElement)("strong",null)}}),defaultValue:["pending","cancelled","failed"]},woocommerce_actionable_order_statuses:{label:Object(o.__)("Actionable Statuses:","woocommerce-admin"),inputType:"checkboxGroup",options:g,helpText:Object(o.__)("Orders with these statuses require action on behalf of the store admin. These orders will show up in the Home Screen - Orders task.","woocommerce-admin"),defaultValue:f},woocommerce_default_date_range:{name:"woocommerce_default_date_range",label:Object(o.__)("Default Date Range:","woocommerce-admin"),inputType:"component",component:p,helpText:Object(o.__)("Select a default date range. When no range is selected, reports will be viewed by the default date range.","woocommerce-admin"),defaultValue:"period=month&compare=previous_year"}})},255:function(e,t,n){"use strict";(function(e){var r=n(0),o=n(3),i=n(6),a=n.n(i),c=n(256),s=n(2),l=(n(257),n(4));t.a=Object(r.forwardRef)((function({className:t,children:n,spokenMessage:i=n,politeness:u="polite",actions:d=[],onRemove:m=o.noop,icon:p=null,explicitDismiss:f=!1,onDismiss:h=null},b){function v(e){e&&e.preventDefault&&e.preventDefault(),h(),m()}h=h||o.noop,function(e,t){const n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)(()=>{n&&Object(c.speak)(n,t)},[n,t])}(i,u),Object(r.useEffect)(()=>{const e=setTimeout(()=>{f||(h(),m())},1e4);return()=>clearTimeout(e)},[f,h,m]);const g=a()(t,"components-snackbar",{"components-snackbar-explicit-dismiss":!!f});d&&d.length>1&&(void 0!==e&&e.env,d=[d[0]]);const y=a()("components-snackbar__content",{"components-snackbar__content-with-icon":!!p});return Object(r.createElement)("div",{ref:b,className:g,onClick:f?o.noop:v,tabIndex:"0",role:f?"":"button",onKeyPress:f?o.noop:v,"aria-label":f?"":Object(s.__)("Dismiss this notice")},Object(r.createElement)("div",{className:y},p&&Object(r.createElement)("div",{className:"components-snackbar__icon"},p),n,d.map(({label:e,onClick:t,url:n},o)=>Object(r.createElement)(l.Button,{key:o,href:n,isTertiary:!0,onClick:e=>function(e,t){e.stopPropagation(),m(),t&&t(e)}(e,t),className:"components-snackbar__action"},e)),f&&Object(r.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:"0",className:"components-snackbar__dismiss-button",onClick:v,onKeyPress:v},"✕")))}))}).call(this,n(128))},256:function(e,t){e.exports=window.wp.a11y},257:function(e,t){e.exports=window.wp.warning},258:function(e,t){e.exports=window.wc.customerEffortScore},268:function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r={};n.r(r),n.d(r,"setCesSurveyQueue",(function(){return O})),n.d(r,"addCesSurvey",(function(){return j})),n.d(r,"addCesSurveyForAnalytics",(function(){return _})),n.d(r,"addCesSurveyForCustomerSearch",(function(){return E}));var o={};n.r(o),n.d(o,"getCesSurveyQueue",(function(){return k}));var i={};n.r(i),n.d(i,"getCesSurveyQueue",(function(){return S}));var a=n(0),c=n(1),s=n.n(c),l=n(16),u=n(258),d=n.n(u),m=n(13),p=n(7),f=n(11),h=n(2);function b({action:e,trackProps:t,label:n,onSubmitLabel:r=Object(h.__)("Thank you for your feedback!","woocommerce-admin"),cesShownForActions:o,allowTracking:i,resolving:c,storeAgeInWeeks:s,updateOptions:u,createNotice:m}){const[p,f]=Object(a.useState)(!1);if(c)return null;if(!i)return null;if(-1!==o.indexOf(e)&&!p)return null;const b=()=>{u({woocommerce_ces_shown_for_actions:[e,...o]})};return Object(a.createElement)(d.a,{recordScoreCallback:(n,o)=>{Object(l.recordEvent)("ces_feedback",{action:e,score:n,comments:o||"",store_age:s,...t}),m("success",r)},label:n,onNoticeShownCallback:()=>{Object(l.recordEvent)("ces_snackbar_view",{action:e,store_age:s,...t})},onNoticeDismissedCallback:()=>{Object(l.recordEvent)("ces_snackbar_dismiss",{action:e,store_age:s,...t}),b()},onModalShownCallback:()=>{f(!0),Object(l.recordEvent)("ces_view",{action:e,store_age:s,...t}),b()},icon:Object(a.createElement)("span",{style:{height:21,width:21},role:"img","aria-label":Object(h.__)("Pencil icon","woocommerce-admin")},"✏️")})}b.propTypes={action:s.a.string.isRequired,trackProps:s.a.object,label:s.a.string.isRequired,onSubmitLabel:s.a.string,cesShownForActions:s.a.arrayOf(s.a.string).isRequired,allowTracking:s.a.bool,resolving:s.a.bool.isRequired,storeAgeInWeeks:s.a.number,updateOptions:s.a.func,createNotice:s.a.func};var v=Object(m.compose)(Object(p.withSelect)(e=>{const{getOption:t,isResolving:n}=e(f.OPTIONS_STORE_NAME),r=t("woocommerce_ces_shown_for_actions")||[],o=function(e){if(0===e)return null;const t=Date.now()-1e3*e;return Math.round(t/f.WEEK)}(t("woocommerce_admin_install_timestamp")||0);return{cesShownForActions:r,allowTracking:"yes"===(t("woocommerce_allow_tracking")||"no"),storeAgeInWeeks:o,resolving:n("getOption",["woocommerce_ces_shown_for_actions"])||null===o||n("getOption",["woocommerce_admin_install_timestamp"])||n("getOption",["woocommerce_allow_tracking"])}}),Object(p.withDispatch)(e=>{const{updateOptions:t}=e(f.OPTIONS_STORE_NAME),{createNotice:n}=e("core/notices");return{updateOptions:t,createNotice:n}}))(b),g=n(53),y=n(10);var w={SET_CES_SURVEY_QUEUE:"SET_CES_SURVEY_QUEUE",ADD_CES_SURVEY:"ADD_CES_SURVEY"};function O(e){return{type:w.SET_CES_SURVEY_QUEUE,queue:e}}function j(e,t,n=window.pagenow,r=window.adminpage,o,i={}){return{type:w.ADD_CES_SURVEY,action:e,label:t,pageNow:n,adminPage:r,onsubmit_label:o,props:i}}function _(){return j("analytics_filtered",Object(h.__)("How easy was it to filter your store analytics?","woocommerce-admin"),"woocommerce_page_wc-admin","woocommerce_page_wc-admin")}function E(){return j("ces_search",Object(h.__)("How easy was it to use search?","woocommerce-admin"),"woocommerce_page_wc-admin","woocommerce_page_wc-admin",void 0,{search_area:"customer"})}function*k(){const e=yield Object(y.apiFetch)({path:`${g.a}/options?options=${g.b}`});if(!e)throw new Error;yield O(e[g.b]||[])}function S(e){return e.queue}const x={queue:[]};var C=(e=x,t)=>{switch(t.type){case w.SET_CES_SURVEY_QUEUE:return{...e,queue:t.queue};case w.ADD_CES_SURVEY:if(e.queue.filter(e=>e.action===t.action).length)return e;const n={action:t.action,label:t.label,pagenow:t.pageNow,adminpage:t.adminPage,onSubmitLabel:t.onSubmitLabel,props:t.props};return{...e,queue:[...e.queue,n]};default:return e}};Object(p.registerStore)(g.c,{actions:r,selectors:i,resolvers:o,controls:y.controls,reducer:C});function T({queue:e,resolving:t,clearQueue:n}){if(t)return null;const r=e.filter(e=>e.pagenow===window.pagenow&&e.adminpage===window.adminpage);return r.length&&n(),Object(a.createElement)(a.Fragment,null,r.map((e,t)=>Object(a.createElement)(v,{key:t,action:e.action,label:e.label,onSubmitLabel:e.onsubmit_label,trackProps:e.props||{}})))}T.propTypes={queue:s.a.arrayOf(s.a.object),resolving:s.a.bool,clearQueue:s.a.func};var A=Object(m.compose)(Object(p.withSelect)(e=>{const{getCesSurveyQueue:t,isResolving:n}=e(g.c);return{queue:t(),resolving:n("getOption",[g.b])}}),Object(p.withDispatch)(e=>{const{updateOptions:t}=e(f.OPTIONS_STORE_NAME);return{clearQueue:()=>{t({woocommerce_clear_ces_tracks_queue_for_page:{pagenow:window.pagenow,adminpage:window.adminpage}})}}}))(T)},269:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(35),o=n.n(r),i=n(0),a=n(30),c=n(32),s=n(7),l=n(11);var u=({children:e})=>{const{currentUserCan:t}=Object(l.useUser)(),n=Object(s.useSelect)(e=>{const{getOption:t,hasFinishedResolution:n}=e(l.OPTIONS_STORE_NAME),r=n("getOption",["woocommerce_show_marketplace_suggestions"]),o="yes"===t("woocommerce_show_marketplace_suggestions");return r&&o});return t("install_plugins")&&n?Object(i.createElement)(i.Fragment,null,e):null};const d=Object(i.lazy)(()=>Promise.all([n.e(3),n.e(44)]).then(n.bind(null,601)));n(297);const m=[({page:e,tab:t,section:n})=>"wc-settings"!==e||"checkout"!==t||n?null:Object(i.createElement)(u,null,Object(i.createElement)(i.Suspense,{fallback:null},Object(i.createElement)(d,null)))],p=()=>{const e=Object(c.parse)(location.search.substring(1));let t={page:"",tab:""};void 0!==e.page&&(t=e);const n=Object(a.applyFilters)("woocommerce_admin_embedded_layout_components",m,t);return Object(i.createElement)("div",{className:"woocommerce-embedded-layout__primary",id:"woocommerce-embedded-layout__primary"},n.map((e,n)=>Object(i.createElement)(e,o()({key:n},t))))}},27:function(e,t){e.exports=window.wp.keycodes},278:function(e,t,n){"use strict";n.r(t),function(e){var t=n(0),r=(n(127),n(11)),o=(n(280),n(119)),i=n(268),a=n(269);n.p=e.wcAdminAssets.path;const c=document.getElementById("root"),s=document.getElementById("woocommerce-embedded-root"),l=window.wcSettings.currentUserData;if(c){let e=Object(r.withSettingsHydration)("wc_admin",window.wcSettings)(o.b);window.wcSettings.preloadSettings&&window.wcSettings.preloadSettings.general&&(e=Object(r.withSettingsHydration)("general",{general:window.wcSettings.preloadSettings.general})(e)),l&&(e=Object(r.withCurrentUserHydration)(l)(e)),Object(t.render)(Object(t.createElement)(e,null),c)}else if(s){let e=Object(r.withSettingsHydration)("wc_admin",window.wcSettings)(o.a);l&&(e=Object(r.withCurrentUserHydration)(l)(e)),Object(t.render)(Object(t.createElement)(e,null),s),s.classList.remove("is-embed-loading");const n=document.getElementById("wpbody-content"),i=n.querySelector(".wrap.woocommerce")||n.querySelector(".wrap"),c=document.createElement("div");Object(t.render)(Object(t.createElement)("div",{className:"woocommerce-layout"},Object(t.createElement)(o.c,null)),n.insertBefore(c,i));const u=document.createElement("div");Object(t.render)(Object(t.createElement)(a.a,null),n.insertBefore(u,i.nextSibling))}window.wcAdminFeatures&&!0===window.wcAdminFeatures["customer-effort-score-tracks"]&&function(){const e=c||s;Object(t.render)(Object(t.createElement)(i.a,null),e.insertBefore(document.createElement("div"),null))}()}.call(this,n(78))},28:function(e,t){e.exports=window.wp.htmlEntities},280:function(e,t,n){},281:function(e,t){e.exports=window.wc.notices},282:function(e,t,n){},283:function(e,t,n){},284:function(e,t,n){},285:function(e,t,n){},286:function(e,t,n){},287:function(e,t,n){},288:function(e,t,n){},289:function(e,t,n){},29:function(e,t){e.exports=window.ReactDOM},290:function(e,t,n){"use strict";var r=n(0),o=n(8),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=i},291:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.default=e.exports,e.exports.__esModule=!0},292:function(e,t,n){var r=n(293);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},293:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},294:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},295:function(e,t,n){},296:function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},297:function(e,t,n){},3:function(e,t){e.exports=window.lodash},30:function(e,t){e.exports=window.wp.hooks},32:function(e,t,n){"use strict";var r=n(67),o=n(68),i=n(39);e.exports={formats:i,parse:o,stringify:r}},35:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},39:function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:a}},4:function(e,t){e.exports=window.wp.components},41:function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},46:function(e,t,n){"use strict";var r=n(47);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},47:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},471:function(e,t){e.exports=window.wc.csvExport},48:function(e,t,n){"use strict";var r=n(39),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),c=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:c,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],c=Object.keys(a),s=0;s<c.length;++s){var l=c[s],u=a[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:l}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var c=e;if("symbol"==typeof e?c=Symbol.prototype.toString.call(e):"string"!=typeof e&&(c=String(e)),"iso-8859-1"===n)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var s="",l=0;l<c.length;++l){var u=c.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===r.RFC1738&&(40===u||41===u)?s+=c.charAt(l):u<128?s+=a[u]:u<2048?s+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?s+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&c.charCodeAt(l)),s+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return s},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=c(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},49:function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},493:function(e,t,n){"use strict";var r=n(0),o=n(8),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=i},494:function(e,t,n){"use strict";var r=n(0),o=n(8),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));t.a=i},495:function(e,t,n){"use strict";var r=n(0),o=n(8),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{fillRule:"evenodd",d:"M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z",clipRule:"evenodd"}));t.a=i},496:function(e,t,n){"use strict";var r=n(0),o=n(8),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));t.a=i},5:function(e,t){e.exports=window.React},51:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"c",(function(){return j})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return p}));var r=n(23);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],c=e&&o(e),s=t&&o(t),l=c||s;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,m=a.length;m>=0;m--){var p=a[m];"."===p?i(a,m):".."===p?(i(a,m),d++):d&&(i(a,m),d--)}if(!l)for(;d--;d)a.unshift("..");!l||""===a[0]||a[0]&&o(a[0])||a.unshift("");var f=a.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};function c(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var s=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=c(t),o=c(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},l=n(41);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function m(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function f(e,t,n,o){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(r.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function h(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&s(e.state,t.state)}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var v=!("undefined"==typeof window||!window.document||!window.document.createElement);function g(e,t){t(window.confirm(e))}function y(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),v||Object(l.a)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,c=a.forceRefresh,s=void 0!==c&&c,h=a.getUserConfirmation,w=void 0===h?g:h,O=a.keyLength,j=void 0===O?6:O,_=e.basename?m(u(e.basename)):"";function E(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return _&&(i=d(i,_)),f(i,r,n)}function k(){return Math.random().toString(36).substr(2,j)}var S=b();function x(e){Object(r.a)(D,e),D.length=n.length,S.notifyListeners(D.location,D.action)}function C(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||P(E(e.state))}function T(){P(E(y()))}var A=!1;function P(e){if(A)A=!1,x();else{S.confirmTransitionTo(e,"POP",w,(function(t){t?x({action:"POP",location:e}):function(e){var t=D.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(A=!0,L(o))}(e)}))}}var N=E(y()),R=[N.key];function M(e){return _+p(e)}function L(e){n.go(e)}var V=0;function I(e){1===(V+=e)&&1===e?(window.addEventListener("popstate",C),i&&window.addEventListener("hashchange",T)):0===V&&(window.removeEventListener("popstate",C),i&&window.removeEventListener("hashchange",T))}var F=!1;var D={length:n.length,action:"POP",location:N,createHref:M,push:function(e,t){var r=f(e,t,k(),D.location);S.confirmTransitionTo(r,"PUSH",w,(function(e){if(e){var t=M(r),i=r.key,a=r.state;if(o)if(n.pushState({key:i,state:a},null,t),s)window.location.href=t;else{var c=R.indexOf(D.location.key),l=R.slice(0,c+1);l.push(r.key),R=l,x({action:"PUSH",location:r})}else window.location.href=t}}))},replace:function(e,t){var r=f(e,t,k(),D.location);S.confirmTransitionTo(r,"REPLACE",w,(function(e){if(e){var t=M(r),i=r.key,a=r.state;if(o)if(n.replaceState({key:i,state:a},null,t),s)window.location.replace(t);else{var c=R.indexOf(D.location.key);-1!==c&&(R[c]=r.key),x({action:"REPLACE",location:r})}else window.location.replace(t)}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=S.setPrompt(e);return F||(I(1),F=!0),function(){return F&&(F=!1,I(-1)),t()}},listen:function(e){var t=S.appendListener(e);return I(1),function(){I(-1),t()}}};return D}function O(e,t,n){return Math.min(Math.max(e,t),n)}function j(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,c=void 0===a?0:a,s=t.keyLength,l=void 0===s?6:s,u=b();function d(e){Object(r.a)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function m(){return Math.random().toString(36).substr(2,l)}var h=O(c,0,i.length-1),v=i.map((function(e){return f(e,void 0,"string"==typeof e?m():e.key||m())})),g=p;function y(e){var t=O(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:v.length,action:"POP",location:v[h],index:h,entries:v,createHref:g,push:function(e,t){var r=f(e,t,m(),w.location);u.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),d({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=f(e,t,m(),w.location);u.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(w.entries[w.index]=r,d({action:"REPLACE",location:r}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}},53:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));const r="wc/customer-effort-score",o="/wc-admin",i="woocommerce_ces_tracks_queue"},57:function(e,t){e.exports=window.wp.date},59:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"f",(function(){return m}));var r=n(28),o=n(3),i=n(15);function a(e){return e?e.split(":")[0]:null}function c(e){let t=a(e);return Object(o.without)(Object(i.f)("onboarding",{euCountries:[]}).euCountries,"GB").includes(t)&&(t="EU"),t}function s(e,t=!1,n){return u(e,t,n).map(e=>e.id||e.product)}function l(e,t){const n={};n.products=u(e,!0,t),n.remainingProducts=u(e,!1,t);const r=[...new Set([...n.products,...n.remainingProducts])];return n.uniqueItemsList=r.map(e=>{let t;return t=e.label?{type:"extension",name:e.label}:{type:"theme",name:e.title},t}),n}function u(e,t=!1,n){const r=Object(i.f)("onboarding",{}),o=[];if(!r.productTypes)return o;(e.product_types||[]).forEach(e=>{r.productTypes[e]&&r.productTypes[e].product&&(t||!n.includes(r.productTypes[e].slug))&&o.push(r.productTypes[e])});const a=r.themes.find(t=>t.slug===e.theme);return a&&a.id&&d(a.price)>0&&(t||!a.is_installed)&&o.push(a),o}function d(e){return Number(Object(r.decodeEntities)(e).replace(/[^0-9.-]+/g,""))}function m(e){return/admin.php\?page=wc-admin/.test(e)}},6:function(e,t,n){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var c in o)t.call(o,c)&&o[c]&&e.push(c);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],(function(){return n})):window.classNames=n}()},65:function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s}));var r=n(11),o=n(254);function i(e,t){const{getItemsTotalCount:n,getItemsError:o,isResolving:i}=e(r.ITEMS_STORE_NAME);if(!t.length)return 0;const a={page:1,per_page:1,status:t,_fields:["id"]},c=n("orders",a,null),s=Boolean(o("orders",a)),l=i("getItemsTotalCount",["orders",a,null]);return s||l?null:c}function a(e){const{getSetting:t}=e(r.SETTINGS_STORE_NAME),{woocommerce_actionable_order_statuses:n=o.a}=t("wc_admin","wcAdminSettings",{});return n}const c={page:1,per_page:1,low_in_stock:!0,status:"publish",_fields:["id"]};function s(e){const{getItemsTotalCount:t,getItemsError:n,isResolving:o}=e(r.ITEMS_STORE_NAME),i=t("products/low-in-stock",c,null),a=Boolean(n("products/low-in-stock",c)),s=o("getItemsTotalCount",["products/low-in-stock",c,null]);return a||s&&null===i?null:i}},67:function(e,t,n){"use strict";var r=n(48),o=n(39),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,s=Array.prototype.push,l=function(e,t){s.apply(e,c(t)?t:[t])},u=Date.prototype.toISOString,d=o.default,m={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,o,i,a,s,u,d,p,f,h,b,v,g){var y,w=t;if("function"==typeof u?w=u(n,w):w instanceof Date?w=f(w):"comma"===o&&c(w)&&(w=r.maybeMap(w,(function(e){return e instanceof Date?f(e):e}))),null===w){if(i)return s&&!v?s(n,m.encoder,g,"key",h):n;w=""}if("string"==typeof(y=w)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||r.isBuffer(w))return s?[b(v?n:s(n,m.encoder,g,"key",h))+"="+b(s(w,m.encoder,g,"value",h))]:[b(n)+"="+b(String(w))];var O,j=[];if(void 0===w)return j;if("comma"===o&&c(w))O=[{value:w.length>0?w.join(",")||null:void 0}];else if(c(u))O=u;else{var _=Object.keys(w);O=d?_.sort(d):_}for(var E=0;E<O.length;++E){var k=O[E],S="object"==typeof k&&void 0!==k.value?k.value:w[k];if(!a||null!==S){var x=c(w)?"function"==typeof o?o(n,k):n:n+(p?"."+k:"["+k+"]");l(j,e(S,x,o,i,a,s,u,d,p,f,h,b,v,g))}}return j};e.exports=function(e,t){var n,r=e,s=function(e){if(!e)return m;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||m.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],a=m.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:m.addQueryPrefix,allowDots:void 0===e.allowDots?m.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:m.charsetSentinel,delimiter:void 0===e.delimiter?m.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:m.encode,encoder:"function"==typeof e.encoder?e.encoder:m.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:m.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:m.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:m.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:m.strictNullHandling}}(t);"function"==typeof s.filter?r=(0,s.filter)("",r):c(s.filter)&&(n=s.filter);var u,d=[];if("object"!=typeof r||null===r)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=a[u];n||(n=Object.keys(r)),s.sort&&n.sort(s.sort);for(var h=0;h<n.length;++h){var b=n[h];s.skipNulls&&null===r[b]||l(d,p(r[b],b,f,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset))}var v=d.join(s.delimiter),g=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),v.length>0?g+v:""}},68:function(e,t,n){"use strict";var r=n(48),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(i),l=c?i.slice(0,c.index):i,u=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var d=0;n.depth>0&&null!==(c=a.exec(i))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+i.slice(c.index)+"]"),function(e,t,n,r){for(var o=r?t:s(t,n),i=e.length-1;i>=0;--i){var a,c=e[i];if("[]"===c&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&c!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=o:a[l]=o:a={0:o}}o=a}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,m=u.split(t.delimiter,d),p=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n<m.length;++n)0===m[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===m[n]?f="utf-8":"utf8=%26%2310003%3B"===m[n]&&(f="iso-8859-1"),p=n,n=m.length);for(n=0;n<m.length;++n)if(n!==p){var h,b,v=m[n],g=v.indexOf("]="),y=-1===g?v.indexOf("="):g+1;-1===y?(h=t.decoder(v,a.decoder,f,"key"),b=t.strictNullHandling?null:""):(h=t.decoder(v.slice(0,y),a.decoder,f,"key"),b=r.maybeMap(s(v.slice(y+1),t),(function(e){return t.decoder(e,a.decoder,f,"value")}))),b&&t.interpretNumericEntities&&"iso-8859-1"===f&&(b=c(b)),v.indexOf("[]=")>-1&&(b=i(b)?[b]:b),o.call(l,h)?l[h]=r.combine(l[h],b):l[h]=b}return l}(e,n):e,d=n.plainObjects?Object.create(null):{},m=Object.keys(u),p=0;p<m.length;++p){var f=m[p],h=l(f,u[f],n,"string"==typeof e);d=r.merge(d,h,n)}return r.compact(d)}},69:function(e,t,n){"use strict";var r=n(5),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(49),a=n(70),c=n(71),s="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||"object"===c&&e.$$typeof===o)return n(r,e,""===t?"."+l(e,0):t),1;var d=0,m=""===t?".":t+":";if(Array.isArray(e))for(var p=0;p<e.length;p++)d+=u(i=e[p],m+l(i,p),n,r);else{var f=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(f){0;for(var h,b=f.call(e),v=0;!(h=b.next()).done;)d+=u(i=h.value,m+l(i,v++),n,r)}else if("object"===c){0;var g=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===g?"object with keys {"+Object.keys(e).join(", ")+"}":g,"")}}return d}var d=/\/+/g;function m(e){return(""+e).replace(d,"$&/")}var p,f,h=b,b=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},v=function(e){a(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function g(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var o,a,c=e.result,s=e.keyPrefix,l=e.func,u=e.context,d=l.call(u,t,e.count++);Array.isArray(d)?w(d,c,n,i.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(o=d,a=s+(!d.key||t&&t.key===d.key?"":m(d.key)+"/")+n,d=r.cloneElement(o,{key:a},void 0!==o.props?o.props.children:void 0)),c.push(d))}function w(e,t,n,r,o){var i="";null!=n&&(i=m(n)+"/");var a=g.getPooled(t,i,r,o);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,a),g.release(a)}g.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,n,r){if(this.instancePool.length){var o=this.instancePool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)},(f=g).instancePool=[],f.getPooled=p||h,f.poolSize||(f.poolSize=10),f.release=v;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return c(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return c(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)w(e[n],t,n,i.thatReturnsArgument);return t}},7:function(e,t){e.exports=window.wp.data},70:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,c){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,c],u=0;(s=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},71:function(e,t,n){"use strict";var r=n(49);e.exports=r},72:function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},78:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},8:function(e,t){e.exports=window.wp.primitives},88:function(e,t){e.exports=window.wc.currency},9:function(e,t){e.exports=window.moment},90:function(e,t){e.exports=window.wp.dom}});
|
1 |
/*! For license information please see index.min.js.LICENSE.txt */
|
2 |
+
this.wc=this.wc||{},this.wc.app=function(e){function t(t){for(var n,r,i=t[0],a=t[1],c=0,u=[];c<i.length;c++)r=i[c],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&u.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(l&&l(t);u.length;)u.shift()()}var n={},r={21:0},o={21:0};function i(e){var t=function(e){return a.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"}[e]||e)+".min.js"}(e);return window.wcAdminAssets&&window.wcAdminAssets.version&&(t+="?ver="+window.wcAdminAssets.version),t}function a(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{0:1,3:1,4:1,7:1,9:1,14:1,20:1,28:1,29:1,32:1,34:1,36:1,46:1,47:1,48:1,49:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var o="rtl"===document.dir?"./chunks/"+e+".style.rtl.css":"./chunks/"+e+".style.css",i=a.p+o,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var s=(f=c[u]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(s===o||s===i))return t()}var l=document.getElementsByTagName("style");for(u=0;u<l.length;u++){var f;if((s=(f=l[u]).getAttribute("data-href"))===o||s===i)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.setAttribute("data-webpack",!0),d.onload=t,d.onerror=function(t){var o=t&&t.target&&t.target.src||i,a=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=o,delete r[e],d.parentNode.removeChild(d),n(a)},d.href=i,window.wcAdminAssets&&window.wcAdminAssets.version&&(d.href+="?ver="+window.wcAdminAssets.version),document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){r[e]=0})));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var c=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=c);var u,s=document.createElement("script");s.charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.src=i(e);var l=new Error;u=function(t){s.onerror=s.onload=null,clearTimeout(f);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",l.name="ChunkLoadError",l.type=r,l.request=i,n[1](l)}o[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:s})}),12e4);s.onerror=s.onload=u,document.head.appendChild(s)}return Promise.all(t)},a.m=e,a.c=n,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var c=window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[],u=c.push.bind(c);c.push=t,c=c.slice();for(var s=0;s<c.length;s++)t(c[s]);var l=u;return a(a.s=295)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t,n){e.exports=n(77)()},10:function(e,t){!function(){e.exports=this.React}()},11:function(e,t){!function(){e.exports=this.wp.data}()},111:function(e,t){!function(){e.exports=this.wc.currency}()},12:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},121:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r={};n.r(r),n.d(r,"find",(function(){return c}));var o={};n.r(o),n.d(o,"isTabbableIndex",(function(){return l})),n.d(o,"find",(function(){return h})),n.d(o,"findPrevious",(function(){return v})),n.d(o,"findNext",(function(){return b}));var i=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function a(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function c(e){var t=e.querySelectorAll(i);return Array.from(t).filter((function(e){return!(!a(e)||function(e){return"iframe"===e.nodeName.toLowerCase()&&"-1"===e.getAttribute("tabindex")}(e))&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var n=e.ownerDocument.querySelector('img[usemap="#'+t.name+'"]');return!!n&&a(n)}(e))}))}var u=n(3);function s(e){var t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function l(e){return-1!==s(e)}function f(e,t){return{element:e,index:t}}function d(e){return e.element}function p(e,t){var n=s(e.element),r=s(t.element);return n===r?e.index-t.index:n-r}function m(e){return e.filter(l).map(f).sort(p).map(d).reduce((t={},function(e,n){var r=n.nodeName,o=n.type,i=n.checked,a=n.name;if("INPUT"!==r||"radio"!==o||!a)return e.concat(n);var c=t.hasOwnProperty(a);if(!i&&c)return e;if(c){var s=t[a];e=Object(u.without)(e,s)}return t[a]=n,e.concat(n)}),[]);var t}function h(e){return m(c(e))}function v(e){var t=c(e.ownerDocument.body),n=t.indexOf(e);return t.length=n,Object(u.last)(m(t))}function b(e){var t=c(e.ownerDocument.body),n=t.indexOf(e),r=t.slice(n+1).filter((function(t){return!e.contains(t)}));return Object(u.first)(m(r))}var y={focusable:r,tabbable:o}},122:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,i=(e.icon,e.className),c=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),u=["gridicon","gridicons-cross-small",i,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:u,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})))};var o,i=n(10),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},125:function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?s=u.concat(s):f=-1,s.length&&p())}function p(){if(!l){var e=c(d);l=!0;for(var t=s.length;t;){for(u=s,s=[];++f<t;)u&&u[f].run();f=-1,t=s.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new m(e,t)),1!==s.length||l||c(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},126:function(e,t,n){"use strict";e.exports=n(152)},13:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},137:function(e,t,n){"use strict";var r=n(2),o=n(43),i=n(25),a=n(0),c=Object(i.g)("manageStock","no"),u=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(16)]).then(n.bind(null,487))})),s=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(3),n.e(15)]).then(n.bind(null,483))})),l=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(19)]).then(n.bind(null,488))})),f=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(6),n.e(14)]).then(n.bind(null,489))})),d=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(3),n.e(10)]).then(n.bind(null,485))})),p=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(11)]).then(n.bind(null,490))})),m=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(18)]).then(n.bind(null,491))})),h=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(13)]).then(n.bind(null,492))})),v=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(17)]).then(n.bind(null,484))})),b=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(12)]).then(n.bind(null,486))}));t.a=function(){var e=[{report:"revenue",title:Object(r.__)("Revenue","woocommerce-admin"),component:u,navArgs:{id:"woocommerce-analytics-revenue"}},{report:"products",title:Object(r.__)("Products","woocommerce-admin"),component:s,navArgs:{id:"woocommerce-analytics-products"}},{report:"variations",title:Object(r.__)("Variations","woocommerce-admin"),component:l,navArgs:{id:"woocommerce-analytics-variations"}},{report:"orders",title:Object(r.__)("Orders","woocommerce-admin"),component:f,navArgs:{id:"woocommerce-analytics-orders"}},{report:"categories",title:Object(r.__)("Categories","woocommerce-admin"),component:d,navArgs:{id:"woocommerce-analytics-categories"}},{report:"coupons",title:Object(r.__)("Coupons","woocommerce-admin"),component:p,navArgs:{id:"woocommerce-analytics-coupons"}},{report:"taxes",title:Object(r.__)("Taxes","woocommerce-admin"),component:m,navArgs:{id:"woocommerce-analytics-taxes"}},"yes"===c?{report:"stock",title:Object(r.__)("Stock","woocommerce-admin"),component:v,navArgs:{id:"woocommerce-analytics-stock"}}:null,{report:"customers",title:Object(r.__)("Customers","woocommerce-admin"),component:b},{report:"downloads",title:Object(r.__)("Downloads","woocommerce-admin"),component:h,navArgs:{id:"woocommerce-analytics-downloads"}}].filter(Boolean);return Object(o.applyFilters)("woocommerce_admin_reports_list",e)}},138:function(e,t,n){"use strict";var r=n(126),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var c=u(t),h=u(n),v=0;v<a.length;++v){var b=a[v];if(!(i[b]||r&&r[b]||h&&h[b]||c&&c[b])){var y=d(n,b);try{s(t,b,y)}catch(e){}}}}return t}},139:function(e,t){!function(){e.exports=this.wp.plugins}()},14:function(e,t,n){var r=n(72);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},140:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(54),o=n(2);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",t=document.createElement("div");t.id="a11y-speak-".concat(e),t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");var n=document,r=n.body;return r&&r.appendChild(t),t}var a="";function c(e,t){!function(){for(var e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text"),n=0;n<e.length;n++)e[n].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),a===e&&(e+=" "),a=e,e}(e);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),o=document.getElementById("a11y-speak-polite");r&&"assertive"===t?r.textContent=e:o&&(o.textContent=e),n&&n.removeAttribute("hidden")}Object(r.a)((function(){var e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){var e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=Object(o.__)("Notifications"),e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("hidden","hidden");var t=document.body;t&&t.appendChild(e)}(),null===t&&i("assertive"),null===n&&i("polite")}))},141:function(e,t,n){"use strict";n.d(t,"c",(function(){return zt})),n.d(t,"b",(function(){return Wt})),n.d(t,"a",(function(){return Qt}));var r=n(24),o=n.n(r),i=n(34),a=n.n(i),c=n(5),u=n.n(c),s=n(12),l=n.n(s),f=n(13),d=n.n(f),p=n(14),m=n.n(p),h=n(15),v=n.n(h),b=n(7),y=n.n(b),g=n(0),w=n(20),O=n(11),j=n(38),E=n(10),_=n.n(E),k=n(1),x=n.n(k),S=n(71),C=n(183),P=n(56),A=n(32),T=n(184),N=n.n(T),R=(n(126),n(42)),L=(n(138),function(e){var t=Object(C.a)();return t.displayName=e,t}("Router-History")),M=function(e){var t=Object(C.a)();return t.displayName=e,t}("Router"),I=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(j.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return _.a.createElement(M.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},_.a.createElement(L.Provider,{children:this.props.children||null,value:this.props.history}))},t}(_.a.Component);_.a.Component;_.a.Component;var D={},V=0;function F(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,c=void 0!==a&&a,u=n.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=D[n]||(D[n]={});if(r[e])return r[e];var o=[],i={regexp:N()(e,o,t),keys:o};return V<1e4&&(r[e]=i,V++),i}(n,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(e);if(!u)return null;var l=u[0],f=u.slice(1),d=e===l;return i&&!d?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var B=function(e){function t(){return e.apply(this,arguments)||this}return Object(j.a)(t,e),t.prototype.render=function(){var e=this;return _.a.createElement(M.Consumer,null,(function(t){t||Object(P.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?F(n.pathname,e.props):t.match,o=Object(A.a)({},t,{location:n,match:r}),i=e.props,a=i.children,c=i.component,u=i.render;return Array.isArray(a)&&0===a.length&&(a=null),_.a.createElement(M.Provider,{value:o},o.match?a?"function"==typeof a?a(o):a:c?_.a.createElement(c,o):u?u(o):null:"function"==typeof a?a(o):null)}))},t}(_.a.Component);function U(e){return"/"===e.charAt(0)?e:"/"+e}function q(e,t){if(!e)return t;var n=U(e);return 0!==t.pathname.indexOf(n)?t:Object(A.a)({},t,{pathname:t.pathname.substr(n.length)})}function z(e){return"string"==typeof e?e:Object(S.d)(e)}function H(e){return function(){Object(P.a)(!1)}}function $(){}_.a.Component;var W=function(e){function t(){return e.apply(this,arguments)||this}return Object(j.a)(t,e),t.prototype.render=function(){var e=this;return _.a.createElement(M.Consumer,null,(function(t){t||Object(P.a)(!1);var n,r,o=e.props.location||t.location;return _.a.Children.forEach(e.props.children,(function(e){if(null==r&&_.a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?F(o.pathname,Object(A.a)({},e.props,{path:i})):t.match}})),r?_.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(_.a.Component);_.a.useContext;var Q=n(3),G=n(49),Y=n(47),Z=n(21),K=n(25),J=n(22),X=n(27),ee=(n(298),n(43)),te=n(2),ne=n(137),re=n(95);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var ie=Object(g.lazy)((function(){return n.e(9).then(n.bind(null,589))})),ae=Object(g.lazy)((function(){return n.e(20).then(n.bind(null,608))})),ce=Object(g.lazy)((function(){return n.e(28).then(n.bind(null,590))})),ue=Object(g.lazy)((function(){return Promise.all([n.e(1),n.e(2),n.e(52),n.e(4),n.e(32)]).then(n.bind(null,605))})),se=Object(g.lazy)((function(){return Promise.all([n.e(2),n.e(36)]).then(n.bind(null,609))})),le=Object(g.lazy)((function(){return Promise.all([n.e(53),n.e(46)]).then(n.bind(null,606))})),fe=Object(g.lazy)((function(){return Promise.all([n.e(53),n.e(46)]).then(n.bind(null,601))})),de=function(){var e=[],t=[["",wcSettings.woocommerceTranslation]];return e.push({container:ue,path:"/",breadcrumbs:[].concat(t,[Object(te.__)("Home","woocommerce-admin")]),wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-home"},capability:"manage_woocommerce"}),window.wcAdminFeatures.analytics&&(e.push({container:ce,path:"/analytics/overview",breadcrumbs:[].concat(t,[["/analytics/overview",Object(te.__)("Analytics","woocommerce-admin")],Object(te.__)("Overview","woocommerce-admin")]),wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-overview"},capability:"view_woocommerce_reports"}),e.push({container:ae,path:"/analytics/settings",breadcrumbs:[].concat(t,[["/analytics/revenue",Object(te.__)("Analytics","woocommerce-admin")],Object(te.__)("Settings","woocommerce-admin")]),wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-settings"},capability:"view_woocommerce_reports"}),e.push({container:ie,path:"/customers",breadcrumbs:[].concat(t,[Object(te.__)("Customers","woocommerce-admin")]),wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-analytics-customers"},capability:"view_woocommerce_reports"}),e.push({container:ie,path:"/analytics/:report",breadcrumbs:function(e){var n=e.match,r=Object(Q.find)(Object(ne.a)(),{report:n.params.report});return r?[].concat(t,[["/analytics/revenue",Object(te.__)("Analytics","woocommerce-admin")],r.title]):[]},wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",capability:"view_woocommerce_reports"})),window.wcAdminFeatures.marketing&&e.push({container:se,path:"/marketing",breadcrumbs:[].concat(t,[["/marketing",Object(te.__)("Marketing","woocommerce-admin")],Object(te.__)("Overview","woocommerce-admin")]),wpOpenMenu:"toplevel_page_woocommerce-marketing",navArgs:{id:"woocommerce-marketing-overview"},capability:"view_woocommerce_reports"}),window.wcAdminFeatures.onboarding&&e.push({container:le,path:"/setup-wizard",breadcrumbs:[].concat(t,[["/setup-wizard",Object(te.__)("Setup Wizard","woocommerce-admin")]]),capability:"manage_woocommerce"}),window.wcAdminFeatures.settings&&e.push({container:fe,path:"/settings/:page",breadcrumbs:function(e){var n=e.match,r=Object(K.g)("settingsPages"),o=r[n.params.page];return o?[].concat(t,[[r.general?"/settings/general":"/settings/".concat(Object.keys(r)[0]),Object(te.__)("Settings","woocommerce-admin")],o]):[]},wpOpenMenu:"toplevel_page_woocommerce",capability:"manage_woocommerce"}),Object(ee.applyFilters)("woocommerce_admin_pages_list",e)},pe=function(e){m()(n,e);var t=oe(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"componentDidMount",value:function(){window.document.documentElement.scrollTop=0,window.document.body.classList.remove("woocommerce-admin-is-loading")}},{key:"componentDidUpdate",value:function(e){var t=Object(Q.omit)(e.query,"chartType","filter","paged"),n=Object(Q.omit)(this.props.query,"chartType","filter","paged");e.query.paged>1&&!Object(Q.isEqual)(t,n)&&Object(Z.getHistory)().replace(Object(Z.getNewPath)({paged:1})),e.match.url!==this.props.match.url&&(window.document.documentElement.scrollTop=0)}},{key:"render",value:function(){var e=this.props,t=e.page,n=e.match,r=e.query,o=n.url,i=n.params;return window.wpNavMenuUrlUpdate(r),window.wpNavMenuClassChange(t,o),Object(g.createElement)(g.Suspense,{fallback:Object(g.createElement)(Y.Spinner,null)},Object(g.createElement)(t.container,{params:i,path:o,pathMatch:t.path,query:r}))}}]),n}(g.Component);window.wpNavMenuUrlUpdate=function(e){var t=Object(Z.getPersistedQuery)(e),n=Object(Z.getQueryExcludedScreens)();Array.from(document.querySelectorAll("#adminmenu a")).forEach((function(e){return function(e,t,n){if(Object(re.f)(e.href)){var r=Object(Q.last)(e.href.split("?")),o=Object(G.parse)(r),i=o.path||"homescreen",a=Object(Z.getScreenFromPath)(i),c=n.includes(a),u="admin.php?"+Object(G.stringify)(Object.assign(o,c?{}:t));e.href=u,e.onclick=function(e){e.preventDefault(),Object(Z.getHistory)().push(u)}}}(e,t,n)}))},window.wpNavMenuClassChange=function(e,t){Array.from(document.getElementsByClassName("current")).forEach((function(e){e.classList.remove("current")})),Array.from(document.querySelectorAll(".wp-has-current-submenu")).forEach((function(e){e.classList.remove("wp-has-current-submenu"),e.classList.remove("wp-menu-open"),e.classList.remove("selected"),e.classList.add("wp-not-current-submenu"),e.classList.add("menu-top")}));var n="/"===t?"admin.php?page=wc-admin":"admin.php?page=wc-admin&path="+encodeURIComponent(t),r="/"===t?'li > a[href$="'.concat(n,'"], li > a[href*="').concat(n,'?"]'):'li > a[href*="'.concat(n,'"]'),o=document.querySelectorAll(r);if(Array.from(o).forEach((function(e){e.parentElement.classList.add("current")})),e.wpOpenMenu){var i=document.querySelector("#"+e.wpOpenMenu);i&&(i.classList.remove("wp-not-current-submenu"),i.classList.add("wp-has-current-submenu"),i.classList.add("wp-menu-open"),i.classList.add("current"))}document.querySelector("#wpwrap").classList.remove("wp-responsive-open")};var me=n(6),he=n.n(me),ve=n(41),be=n(30),ye=(n(299),n(18)),ge=n.n(ye),we=n(4),Oe=n(122),je=n.n(Oe),Ee=n(198),_e=n(67),ke=Object(g.createElement)(_e.b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(g.createElement)(_e.a,{fillRule:"evenodd",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",clipRule:"evenodd"})),xe=Object(g.createElement)(_e.b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(g.createElement)(_e.a,{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"})),Se=(n(300),function(e){var t=e.height,n=void 0===t?24:t,r=e.width,o=void 0===r?24:r,i=e.hasUnread,a=void 0!==i&&i,c=he()("woocommerce-layout__activity-panel-toggle-bubble",{"has-unread":a});return Object(g.createElement)("div",{className:c},Object(g.createElement)("svg",{height:n,width:o,viewBox:"0 0 24 24"},Object(g.createElement)("path",{d:"M18.9 2H5.1C3.4 2 2 3.4 2 5.1v10.7C2 17.6 3.4 19 5.1 19H9l6 3-1-3h4.9c1.7 0 3.1-1.4 3.1-3.1V5.1C22 3.4 20.6 2 18.9 2zm-1.5 4.5c-.4.8-.8 2.1-1 3.9-.3 1.8-.4 3.1-.3 4.1 0 .3 0 .5-.1.7-.1.2-.3.4-.6.4s-.6-.1-.9-.4c-1-1-1.8-2.6-2.4-4.6-.7 1.4-1.2 2.4-1.6 3.1-.6 1.2-1.2 1.8-1.6 1.9-.3 0-.5-.2-.8-.7-.5-1.4-1.1-4.2-1.7-8.2 0-.3 0-.5.2-.7.1-.2.4-.3.7-.4.5 0 .9.2.9.8.3 2.3.7 4.2 1.1 5.7l2.4-4.5c.2-.4.4-.6.8-.6.5 0 .8.3.9.9.3 1.4.6 2.6 1 3.7.3-2.7.8-4.7 1.4-5.9.2-.3.4-.5.7-.5.2 0 .5.1.7.2.2.2.3.4.3.6 0 .2 0 .4-.1.5z"})))});Se.propTypes={height:x.a.number,width:x.a.number,hasUnread:x.a.bool};var Ce=Se,Pe=n(197),Ae={page:1,per_page:J.QUERY_DEFAULTS.pageSize,status:"unactioned",type:J.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc"};function Te(e){var t=e(J.NOTES_STORE_NAME),n=t.getNotes,r=t.getNotesError,o=t.isResolving,i=(0,e(J.USER_STORE_NAME).getCurrentUser)(),a=parseInt(i&&i.woocommerce_meta&&i.woocommerce_meta.activity_panel_inbox_last_read,10);if(!a)return null;n(Ae);var c=Boolean(r("getNotes",[Ae])),u=o("getNotes",[Ae]);if(c||u)return null;var s=n(Ae);return Object(Pe.a)(s,a)>0}var Ne=function(e){var t=e.icon,n=e.title,r=e.name,o=e.unread,i=e.selected,a=e.isPanelOpen,c=e.onTabClick,u=he()("woocommerce-layout__activity-panel-tab",{"is-active":a&&i,"has-unread":o}),s="activity-panel-tab-".concat(r);return Object(g.createElement)(we.Button,{role:"tab",className:u,"aria-selected":i,"aria-controls":"activity-panel-".concat(r),key:s,id:s,onClick:function(){c(r)}},t,n," ",o&&Object(g.createElement)("span",{className:"screen-reader-text"},Object(te.__)("unread activity","woocommerce-admin")))},Re=function(e){var t=e.tabs,n=e.onTabClick,r=e.selectedTab,i=e.tabOpen,a=void 0!==i&&i,c=Object(g.useState)({tabOpen:a,currentTab:r}),u=ge()(c,2),s=u[0],l=s.tabOpen,f=s.currentTab,d=u[1];return Object(g.useEffect)((function(){d({tabOpen:a,currentTab:r})}),[a,r]),Object(g.createElement)(we.NavigableMenu,{role:"tablist",orientation:"horizontal",className:"woocommerce-layout__activity-panel-tabs"},t&&t.map((function(e,t){if(e.component){var r=e.component,i=e.options;return Object(g.createElement)(r,o()({key:t},i))}return Object(g.createElement)(Ne,o()({key:t,index:t,isPanelOpen:l,selected:f===e.name},e,{onTabClick:function(){var t=f!==e.name&&""!==f||!l;t&&f===e.name||Object(X.recordEvent)("activity_panel_open",{tab:e.name}),d({tabOpen:t,currentTab:e.name}),n(e,t)}}))})))},Le=function(){return Object(g.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon setup-progress",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("path",{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",stroke:"#DCDCDE",strokeWidth:"2"}),Object(g.createElement)("path",{d:"M4 12V12C4 16.4183 7.58172 20 12 20V20C16.4183 20 20 16.4183 20 12V12C20 7.58172 16.4183 4 12 4V4",strokeWidth:"2",strokeLinecap:"round"}))},Me=function(){return Object(g.createElement)(g.Fragment,null,Object(g.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"24",height:"24",viewBox:"3 3 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("path",{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",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Object(g.createElement)("path",{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",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Object(g.createElement)("path",{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",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Object(g.createElement)("path",{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",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),Object(te.__)("Display","woocommerce-admin"))},Ie=[{value:"single_column",label:Object(g.createElement)(g.Fragment,null,Object(g.createElement)((function(){return Object(g.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("rect",{x:"0.5",y:"0.5",width:"11",height:"13",strokeWidth:"1"}))}),null),Object(te.__)("Single column","woocommerce-admin"))},{value:"two_columns",label:Object(g.createElement)(g.Fragment,null,Object(g.createElement)((function(){return Object(g.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("rect",{x:"0.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}),Object(g.createElement)("rect",{x:"9.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}))}),null),Object(te.__)("Two columns","woocommerce-admin"))}],De=function(){var e=Object(O.useSelect)((function(e){return(0,e(J.OPTIONS_STORE_NAME).getOption)("woocommerce_default_homepage_layout")||"single_column"})),t=Object(J.useUserPreferences)(),n=t.updateUserPreferences,r=t.homepage_layout;return Object(g.createElement)(we.DropdownMenu,{icon:Object(g.createElement)(Me,null),label:Object(te.__)("Display options","woocommerce-admin"),toggleProps:{className:"woocommerce-layout__activity-panel-tab display-options",onClick:function(){return Object(X.recordEvent)("homescreen_display_click")}},popoverProps:{className:"woocommerce-layout__activity-panel-popover"}},(function(t){var o=t.onClose;return Object(g.createElement)(we.MenuGroup,{className:"woocommerce-layout__homescreen-display-options",label:Object(te.__)("Layout","woocommerce-admin")},Object(g.createElement)(we.MenuItemsChoice,{choices:Ie,onSelect:function(e){n({homepage_layout:e}),o(),Object(X.recordEvent)("homescreen_display_option",{display_option:e})},value:r||e}))}))},Ve=n(498),Fe=(n(301),"highlight-tooltip__show");function Be(e){var t=e.title,n=e.closeButtonText,r=e.content,o=e.show,i=void 0===o||o,a=e.id,c=e.onClose,u=e.delay,s=e.onShow,l=void 0===s?Q.noop:s,f=e.useAnchor,d=void 0!==f&&f,p=Object(g.useState)(u>0?null:i),m=ge()(p,2),h=m[0],v=m[1],b=Object(g.useState)(null),y=ge()(b,2),w=y[0],O=y[1],j=Object(g.useState)(null),E=ge()(j,2),_=E[0],k=E[1];function x(){if(d){var e=document.getElementById(a);k(e.getBoundingClientRect())}}Object(g.useEffect)((function(){var e,t,n=document.getElementById(a);n&&!w&&(d?(t=document.createElement("div"),document.body.appendChild(t)):t=n.parentElement,(e=document.createElement("div")).classList.add("highlight-tooltip__container"),t.appendChild(e),O(e));var r=S(e);return function(){if(e){var t=e.parentElement;t.removeChild(e),d&&t.remove()}r&&clearTimeout(r)}}),[]),Object(g.useEffect)((function(){!h&&w&&w.classList.remove(Fe)}),[h]),Object(g.useEffect)((function(){i!==h&&null!==h&&w&&(v(i),i?w&&S(w):w.classList.remove(Fe))}),[i]),Object(g.useLayoutEffect)((function(){return window.addEventListener("resize",x),function(){return window.removeEventListener("resize",x)}}),[]);var S=function(e){var t=null;return u>0?t=setTimeout((function(){t=null,C(e)}),u):h||C(e),t},C=function(e){var t=document.getElementById(a);t&&d&&k(t.getBoundingClientRect()),e&&e.classList.add(Fe),v(!0),l()},P=function(){v(!1),c&&c()};return w?Object(g.createPortal)(Object(g.createElement)("div",{className:"highlight-tooltip__portal"},h?Object(g.createElement)(g.Fragment,null,Object(g.createElement)(we.IsolatedEventContainer,{className:"highlight-tooltip__overlay"}),Object(g.createElement)(we.Popover,{className:"highlight-tooltip__popover",noArrow:!1,anchorRect:_,focusOnMount:"container"},Object(g.createElement)(we.Card,{size:"medium"},Object(g.createElement)(we.CardHeader,null,t,Object(g.createElement)(we.Button,{isSmall:!0,onClick:P,icon:Ve.a})),Object(g.createElement)(we.CardBody,null,r||null),Object(g.createElement)(we.CardFooter,{isBorderless:!0},Object(g.createElement)(we.Button,{size:"small",isPrimary:!0,onClick:P},n||Object(te.__)("Close","woocommerce-admin")))))):null),w):null}Be.propTypes={id:x.a.string.isRequired,title:x.a.string.isRequired,closeButtonText:x.a.string.isRequired,content:x.a.oneOfType([x.a.string,x.a.node]),show:x.a.bool,onClose:x.a.func,delay:x.a.number,onShow:x.a.func,useAnchor:x.a.bool};var Ue=n(121);var qe=["button","submit"];function ze(e){var t=Object(g.useRef)(e);Object(g.useEffect)((function(){t.current=e}),[e]);var n=Object(g.useRef)(!1),r=Object(g.useRef)(),o=Object(g.useCallback)((function(){clearTimeout(r.current)}),[]);Object(g.useEffect)((function(){return function(){return o()}}),[]),Object(g.useEffect)((function(){e||o()}),[e,o]);var i=Object(g.useCallback)((function(e){var t=e.type,r=e.target;Object(Q.includes)(["mouseup","touchend"],t)?n.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(Q.includes)(qe,e.type)}return!1}(r)&&(n.current=!0)}),[]),a=Object(g.useCallback)((function(e){e.persist(),n.current||(r.current=setTimeout((function(){document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()}),0))}),[]);return{onFocus:o,onMouseDown:i,onMouseUp:i,onTouchStart:i,onTouchEnd:i,onBlur:a}}var He=function(e){var t=e.content,n=e.isPanelOpen,r=e.isPanelSwitching,i=e.currentTab,a=e.tab,c=e.closePanel,u=e.clearPanel,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"firstElement",t=Object(g.useRef)(e);return Object(g.useEffect)((function(){t.current=e}),[e]),Object(g.useCallback)((function(e){if(e&&!1!==t.current&&!e.contains(e.ownerDocument.activeElement)){var n=e;if("firstElement"===t.current){var r=Ue.a.tabbable.find(e)[0];r&&(n=r)}n.focus()}}),[])}(),l=ze((function(e){var t=e.target.closest(".woocommerce-inbox-dismiss-confirmation_modal")||e.target.closest(".components-snackbar__action");n&&!t&&c()})),f=Object(g.useRef)(null),d=Object(g.useCallback)((function(e){f.current=e,s(e)}),[]);if(!a)return Object(g.createElement)("div",{className:"woocommerce-layout__activity-panel-wrapper"});if(!t)return null;var p=he()("woocommerce-layout__activity-panel-wrapper",{"is-open":n,"is-switching":r});return Object(g.createElement)("div",o()({className:p,tabIndex:0,role:"tabpanel","aria-label":a.title,onTransitionEnd:function(e){e&&"transform"===e.propertyName&&(u(),f.current&&n&&a&&s(f.current))}},l,{ref:d}),Object(g.createElement)("div",{className:"woocommerce-layout__activity-panel-content",key:"activity-panel-"+i,id:"activity-panel-"+i},Object(g.createElement)(g.Suspense,{fallback:Object(g.createElement)(Y.Spinner,null)},t)))},$e=Object(g.lazy)((function(){return Promise.all([n.e(54),n.e(5),n.e(7)]).then(n.bind(null,602))})),We=Object(g.lazy)((function(){return Promise.all([n.e(1),n.e(2),n.e(4),n.e(8)]).then(n.bind(null,587))})),Qe=function(e){var t,n,r,o=e.isEmbedded,i=e.query,a=e.userPreferencesData,c=Object(g.useState)(""),u=ge()(c,2),s=u[0],l=u[1],f=Object(g.useState)(!1),d=ge()(f,2),p=d[0],m=d[1],h=Object(g.useState)(!1),v=ge()(h,2),b=v[0],y=v[1],w=Object(g.useState)(!1),j=ge()(w,2),E=j[0],_=j[1],k=Object(O.useSelect)((function(e){var t=e(J.OPTIONS_STORE_NAME),n=t.getOption,r=t.isResolving;return{hasUnreadNotes:Te(e),requestingTaskListOptions:r("getOption",["woocommerce_task_list_complete"])||r("getOption",["woocommerce_task_list_hidden"]),setupTaskListComplete:"yes"===n("woocommerce_task_list_complete"),setupTaskListHidden:"yes"===n("woocommerce_task_list_hidden"),trackedCompletedTasks:n("woocommerce_task_list_tracked_completed_tasks")||[]}})),x=k.hasUnreadNotes,S=k.requestingTaskListOptions,C=k.setupTaskListComplete,P=k.setupTaskListHidden,A=k.trackedCompletedTasks,T=Object(O.useDispatch)(J.OPTIONS_STORE_NAME).updateOptions,N=Object(J.useUser)().currentUserCan,R=function(){return"wc-admin"===i.page&&!i.path},L=function(){return i.task&&!i.path&&(!0===S||!1===P&&!1===C)},M=function(){var e={name:"inbox",title:Object(te.__)("Inbox","woocommerce-admin"),icon:Object(g.createElement)(Ee.a,{icon:ke}),unread:x,visible:(o||!R())&&!L()},t={name:"setup",title:Object(te.__)("Store Setup","woocommerce-admin"),icon:Object(g.createElement)(Le,null),onClick:function(){return window.location.href!==Object(K.f)("admin.php?page=wc-admin")&&("no"===P?I():T({woocommerce_task_list_hidden:"no"}).then(I)),null},visible:N("manage_woocommerce")&&!C&&!P&&!L()&&(!R()||o)},n={name:"help",title:Object(te.__)("Help","woocommerce-admin"),icon:Object(g.createElement)(Ee.a,{icon:xe}),visible:R()&&!o||L()};return[e,t,{component:De,visible:!o&&R()&&!L()},n].filter((function(e){return e.visible}))},I=function(){Object(re.f)(window.location.href)?Object(Z.getHistory)().push(Object(Z.getNewPath)({},"/",{})):window.location.href=Object(K.f)("admin.php?page=wc-admin")},D=M(),V=Object(Q.uniqueId)("activity-panel-header_"),F=he()("woocommerce-layout__activity-panel",{"is-mobile-open":E}),B=(t=i.task,n=a&&a.task_list_tracked_started_tasks,r=a&&a.help_panel_highlight_shown,!(!(t&&"yes"!==r&&(n||{})[t]>1)||A.includes(t))),U=D.some((function(e){return e.unread})),q=U?Object(te.__)("View Activity Panel, you have unread activity","woocommerce-admin"):Object(te.__)("View Activity Panel","woocommerce-admin");return Object(g.createElement)("div",null,Object(g.createElement)(Y.H,{id:V,className:"screen-reader-text"},Object(te.__)("Store Activity","woocommerce-admin")),Object(g.createElement)(Y.Section,{component:"aside",id:"woocommerce-activity-panel","aria-labelledby":V},Object(g.createElement)(we.Button,{onClick:function(){!function(){var e=M();l(E?"":e[0].name),_(!E),m(!E)}()},label:E?Object(te.__)("Close Activity Panel","woocommerce-admin"):q,"aria-expanded":E,className:"woocommerce-layout__activity-panel-mobile-toggle"},E?Object(g.createElement)(je.a,null):Object(g.createElement)(Ce,{hasUnread:U})),Object(g.createElement)("div",{className:F},Object(g.createElement)(Re,{tabs:D,tabOpen:p,selectedTab:s,onTabClick:function(e,t){var n,r,o;e.onClick?e.onClick():(n=t,r=e.name,o=r!==s&&""!==s&&n&&p,l(r),_(n),m(n),y(o))}}),Object(g.createElement)(He,{currentTab:!0,isPanelOpen:p,isPanelSwitching:b,tab:Object(Q.find)(M(),{name:s}),content:function(e){var t=i.task;switch(e){case"inbox":return Object(g.createElement)(We,null);case"help":return Object(g.createElement)($e,{taskName:t});default:return null}}(s),closePanel:function(){m(!1)},clearPanel:function(){p||(y(!1),l(""))}}))),B?Object(g.createElement)(Be,{delay:1e3,useAnchor:!0,title:Object(te.__)("We're here for help","woocommerce-admin"),content:Object(te.__)("If you have any questions, feel free to explore the WooCommerce docs listed here.","woocommerce-admin"),closeButtonText:Object(te.__)("Got it","woocommerce-admin"),id:"activity-panel-tab-help",onClose:function(){return Object(X.recordEvent)("help_tooltip_click"),void(a&&a.updateUserPreferences&&a.updateUserPreferences({help_panel_highlight_shown:"yes"}))},onShow:function(){return Object(X.recordEvent)("help_tooltip_view")}}):null)};Qe.defaultProps={getHistory:Z.getHistory};var Ge=Qe,Ye=function(){return/iPhone|iPad|iPod/i.test(window.navigator.userAgent)?"ios":/Android/i.test(window.navigator.userAgent)?"android":"unknown"},Ze=function(){return Object(g.createElement)("svg",{width:"37",height:"37",viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("rect",{width:"92",height:"92",rx:"21.3953",fill:"#7F54B3"}),Object(g.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",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",fill:"white"}))},Ke=(n(302),function(e){var t=e.onInstall,n=e.onDismiss;Object(g.useEffect)((function(){var e=document.getElementsByClassName("woocommerce-layout")[0];return"android"===Ye()&&e&&e.classList.add("woocommerce-layout__show-app-banner"),function(){e&&e.classList.remove("woocommerce-layout__show-app-banner")}}),[]);var r=Object(g.useState)(!1),o=ge()(r,2),i=o[0],a=o[1];return"android"!==Ye()||i?null:Object(g.createElement)("div",{className:"woocommerce-mobile-app-banner"},Object(g.createElement)(we.Icon,{icon:"no-alt","data-testid":"dismiss-btn",onClick:function(){n(),a(!0),Object(X.recordEvent)("wcadmin_mobile_android_banner_click",{action:"dismiss"})}}),Object(g.createElement)(Ze,null),Object(g.createElement)("div",{className:"woocommerce-mobile-app-banner__description"},Object(g.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(te.__)("Run your store from anywhere","woocommerce-admin")),Object(g.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(te.__)("Download the WooCommerce app","woocommerce-admin"))),Object(g.createElement)(we.Button,{href:"https://play.google.com/store/apps/details?id=com.woocommerce.android",isSecondary:!0,onClick:function(){t(),a(!0),Object(X.recordEvent)("wcadmin_mobile_android_banner_click",{action:"install"})}},Object(te.__)("Install","woocommerce-admin")))});function Je(){var e=Object(g.useState)(!1),t=ge()(e,2),n=t[0],r=t[1],o=Object(g.useRef)(null);return Object(g.useEffect)((function(){var e=function(){r(window.pageYOffset>20)},t=function(){o.current=window.requestAnimationFrame(e)};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t),window.cancelAnimationFrame(o.current)}}),[]),n}var Xe=n(139),et=(n(303),n(19)),tt=n.n(et);function nt(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 rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ot=function(e){var t=window.location,n=t.origin,r=t.pathname,o=t.search;return 0===e.indexOf("#")?n+r+o+e:0===e.indexOf("http")?e:n+e},it=function(e){var t=e.replace(/[-\/\\^$*+?.()|[\]{}]/gi,"\\$&").split(/\\\?|#/),n=ge()(t,3),r=n[0],o=n[1],i=n[2],a=i?"(.*#".concat(i,"$)"):"";return"^"+r+(o?o.split("&").reduce((function(e,t){return"".concat(e,"(?=.*[?|&]").concat(t,"(&|$|#))")}),""):"")+a},at=function(e){var t,n,r;return window.wcNavigation.historyPatched||(t=window.history,n=t.pushState,r=t.replaceState,t.pushState=function(e){var r=new CustomEvent("pushstate",{state:e});return window.dispatchEvent(r),n.apply(t,arguments)},t.replaceState=function(e){var n=new CustomEvent("replacestate",{state:e});return window.dispatchEvent(n),r.apply(t,arguments)},window.wcNavigation.historyPatched=!0),window.addEventListener("popstate",e),window.addEventListener("pushstate",e),window.addEventListener("replacestate",e),function(){window.removeEventListener("popstate",e),window.removeEventListener("pushstate",e),window.removeEventListener("replacestate",e)}},ct=function(e){var t=null,n=0;return e.forEach((function(e){var r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t){var r=ot(t),o=e.href;if(r===o)return Number.MAX_SAFE_INTEGER;var i=it(r),a=new RegExp(n||i,"i");return(decodeURIComponent(o).match(a)||[]).length}}(window.location,Object(K.f)(e.url),e.matchExpression);r>0&&r>=n&&(n=r,t=e)})),t||null},ut=["primary","favorites","plugins","secondary"],st={woocommerce:{id:"woocommerce",isCategory:!0,menuId:"primary",migrate:!0,order:10,parent:"",title:"WooCommerce"}},lt=function(e){return e.sort((function(e,t){return e.order===t.order?e.title.localeCompare(t.title):e.order-t.order}))},ft=Object(g.createElement)(_e.b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(g.createElement)(_e.a,{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"})),dt=function(){var e=Object(K.g)("siteTitle",""),t=Object(K.g)("homeUrl",""),n=Je(),r=Object(g.useState)(document.body.classList.contains(!1)),o=ge()(r,2),i=o[0],a=o[1],c="is-wc-nav-folded",u="is-wc-nav-expanded",s=function(){document.body.classList.add(c),document.body.classList.remove(u),a(!0)},l=function(){document.body.classList.remove(c),document.body.classList.add(u),a(!1)},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body.clientWidth;e<=960?s():l()};Object(g.useEffect)((function(){f();for(var e=0,t=[{eventName:"orientationchange",handler:function(e){return f(e.target.screen.availWidth)}},{eventName:"resize",handler:Object(Q.debounce)((function(){return f()}),200)}];e<t.length;e++){var n=t[e],r=n.eventName,o=n.handler;window.addEventListener(r,o,!1)}at((function(){return f()}))}),[]);var d=Object(g.createElement)(Ee.a,{size:"36px",icon:ft}),p=Object(O.useSelect)((function(e){var t=e("core/data").isResolving,n=(0,e("core").getEntityRecord)("root","__unstableBase",void 0)||{};return{isRequestingSiteIcon:t("core","getEntityRecord",["root","__unstableBase",void 0]),siteIconUrl:n.siteIconUrl}})),m=p.isRequestingSiteIcon,h=p.siteIconUrl;h?d=Object(g.createElement)("img",{alt:Object(te.__)("Site Icon"),src:h}):m&&(d=null);var v=he()("woocommerce-navigation-header",{"is-scrolled":n});return Object(g.createElement)("div",{className:v},Object(g.createElement)(we.Button,{onClick:function(){document.body.classList.contains(c)?l():s()},className:"woocommerce-navigation-header__site-icon","aria-label":"Fold navigation",role:"switch","aria-checked":i?"true":"false"},d),Object(g.createElement)(we.Button,{href:t,className:"woocommerce-navigation-header__site-title",as:"span"},Object(ve.decodeEntities)(e)))},pt=(n(304),n(305),function(e){var t=e.id,n=Object(O.useSelect)((function(e){return{favorites:e(J.NAVIGATION_STORE_NAME).getFavorites(),isResolving:e(J.NAVIGATION_STORE_NAME).isResolving("getFavorites")}})),r=n.favorites,o=n.isResolving,i=Object(O.useDispatch)(J.NAVIGATION_STORE_NAME),a=i.addFavorite,c=i.removeFavorite,u=r.includes(t);return o?null:Object(g.createElement)(we.Button,{id:"woocommerce-navigation-favorite-button",className:"woocommerce-navigation-favorite-button",isTertiary:!0,onClick:function(){(u?c:a)(t),Object(X.recordEvent)("navigation_favorite",{id:t,action:u?"unfavorite":"favorite"})},icon:u?"star-filled":"star-empty","aria-label":u?Object(te.__)("Add this item to your favorites.","woocommerce-admin"):Object(te.__)("Remove this item from your favorites.","woocommerce-admin")})}),mt="woocommerce_navigation_favorites_tooltip_hidden",ht=function(){var e=Object(O.useSelect)((function(e){var t=e(J.OPTIONS_STORE_NAME),n=t.getOption,r=t.isResolving;return{isFavoritesResolving:e(J.NAVIGATION_STORE_NAME).isResolving("getFavorites"),isOptionResolving:r("getOption",[mt]),isTooltipHidden:"yes"===n(mt)}})),t=e.isFavoritesResolving,n=e.isOptionResolving,r=e.isTooltipHidden,o=Object(O.useDispatch)(J.OPTIONS_STORE_NAME).updateOptions;return t||r||n||document.body.classList.contains("is-wc-nav-folded")?null:Object(g.createElement)(Be,{delay:1e3,title:Object(te.__)("Introducing favorites","woocommerce-admin"),content:Object(te.__)("You can now favorite your extensions to pin them in the top level of the navigation.","woocommerce-admin"),closeButtonText:Object(te.__)("Got it","woocommerce-admin"),id:"woocommerce-navigation-favorite-button",onClose:function(){return o(u()({},mt,"yes"))},useAnchor:!0})},vt=function(e){var t=e.category,n=t.id,r=t.title,o="woocommerce-navigation-category-title";return["plugins","favorites"].includes(t.menuId)?Object(g.createElement)("span",{className:o},Object(g.createElement)("span",{className:"".concat(o,"__text")},r),Object(g.createElement)(pt,{id:n}),Object(g.createElement)(ht,null)):Object(g.createElement)("span",{className:o},r)},bt=function(e){var t=e.item,n=Object(Z.useNavSlot)("woocommerce_navigation_"+t.id),r=Boolean(n.fills&&n.fills.length),o=function(e){Object(X.recordEvent)("navigation_click",{menu_item:e})};return r&&!t.isCategory?Object(g.createElement)(be.c,{key:t.id,item:t.id},Object(g.createElement)("div",{onClick:function(){return o(t.id)}},Object(g.createElement)(Z.WooNavigationItem.Slot,{name:t.id}))):Object(g.createElement)(be.c,{key:t.id,item:t.id,title:t.title,href:t.url,navigateToMenu:!t.url&&t.id,onClick:function(){return o(t.id)},hideIfTargetMenuEmpty:!0})},yt=function(e){var t=e.category,n=e.onBackClick,r=e.pluginItems,o=e.primaryItems;if(!o.length&&!r.length)return null;var i=window.wcNavigation,a=i.rootBackLabel,c=i.rootBackUrl,u="woocommerce"===t.id&&c;return Object(g.createElement)(be.d,{title:Object(g.createElement)(vt,{category:t}),menu:t.id,parentMenu:t.parent,backButtonLabel:u?a:t.backButtonLabel||null,onBackButtonClick:u?function(){n("woocommerce"),window.location=c}:function(){return n(t.id)}},!!o.length&&Object(g.createElement)(be.b,null,o.map((function(e){return Object(g.createElement)(bt,{key:e.id,item:e})}))),!!r.length&&Object(g.createElement)(be.b,{title:"woocommerce"===t.id?Object(te.__)("Extensions","woocommerce-admin"):null},r.map((function(e){return Object(g.createElement)(bt,{key:e.id,item:e})}))))},gt=function(e){var t=e.category,n=e.items,r=e.onBackClick;if(!n.length)return null;var o="woocommerce"===t.id;return Object(g.createElement)(be.d,{className:"components-navigation__menu-secondary",title:!o&&Object(g.createElement)(vt,{category:t}),menu:t.id,parentMenu:t.parent,backButtonLabel:t.backButtonLabel||null,onBackButtonClick:o?null:function(){return r(t.id)}},Object(g.createElement)(be.b,{onBackButtonClick:function(){return r(t.id)}},n.map((function(e){return Object(g.createElement)(bt,{key:e.id,item:e})}))))},wt=Object(w.compose)(Object(O.withSelect)((function(e){var t=e(J.NAVIGATION_STORE_NAME),n=t.getActiveItem,r=t.getMenuItems;return{activeItem:n(),menuItems:r()}})))((function(e){var t=e.menuItems;Object(g.useEffect)((function(){document.documentElement.classList.remove("wp-toolbar"),document.body.classList.add("has-woocommerce-navigation");var e=document.getElementById("adminmenumain");e&&e.classList.add("folded")}),[]);var n=Object(g.useState)("woocommerce-home"),r=ge()(n,2),o=r[0],i=r[1],a=Object(g.useState)("woocommerce"),c=ge()(a,2),u=c[0],s=c[1];Object(g.useEffect)((function(){var e=ct(t);return e&&o!==e&&(i(e),s(e.parent)),at((function(){setTimeout((function(){var e=ct(t);e&&i(e)}),0)}))}),[t]);var l=Object(J.useUser)().currentUserCan,f=Object(g.useMemo)((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=rt({},st),r=lt(e).reduce((function(e,r){return e[r.parent]||(e[r.parent]={},ut.forEach((function(t){e[r.parent][t]=[]}))),e[r.parent][r.menuId]?(t&&r.capability&&!t(r.capability)||(r.isCategory&&(n[r.id]=r),e[r.parent][r.menuId].push(r)),e):e}),{});return{items:r,categories:n}}(t,l)}),[t,l]),d=f.categories,p=f.items,m=Object(g.useRef)(null),h=function(e){Object(X.recordEvent)("navigation_back_click",{category:e})},v="woocommerce"===u,b=he()("woocommerce-navigation",{"is-root":v});return Object(g.createElement)("div",{className:b},Object(g.createElement)(dt,null),Object(g.createElement)("div",{className:"woocommerce-navigation__wrapper",ref:m},Object(g.createElement)(be.a,{activeItem:o?o.id:null,activeMenu:u,onActivateMenu:function(){m&&m.current&&(m.current.scrollTop=0),s.apply(void 0,arguments)}},Object.values(d).map((function(e){var t=p[e.id];return!!t&&[Object(g.createElement)(yt,{key:e.id,category:e,onBackClick:h,primaryItems:[].concat(tt()(t.primary),tt()(t.favorites)),pluginItems:t.plugins}),Object(g.createElement)(gt,{key:"secondary/".concat(e.id),category:e,onBackClick:h,items:t.secondary})]})))))})),Ot=Object(J.withNavigationHydration)(window.wcNavigation)((function(){return Object(g.createElement)(Z.NavSlotFillProvider,null,Object(g.createElement)(wt,null),Object(g.createElement)(Xe.PluginArea,null))}));function jt(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 Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _t=function(e){var t=e.sections,n=e.isEmbedded,r=void 0!==n&&n,o=e.query,i=Object(g.useRef)(null),c=Object(K.g)("siteTitle",""),u=t.slice(-1)[0],s=Je(),l=Object(J.useUserPreferences)(),f=l.updateUserPreferences,d=a()(l,["updateUserPreferences"]),p="yes"===d.android_app_banner_dismissed,m=null,h=he()("woocommerce-layout__header",{"is-scrolled":s});Object(g.useLayoutEffect)((function(){return v(),window.addEventListener("resize",v),function(){window.removeEventListener("resize",v);var e=document.querySelector("#wpbody");e&&(e.style.marginTop=null)}}),[p]);var v=function(){clearTimeout(m),m=setTimeout((function(){var e=document.querySelector("#wpbody");e&&i.current&&(e.style.marginTop="".concat(i.current.offsetHeight,"px"))}),200)};Object(g.useEffect)((function(){if(!r){var e=t.map((function(e){return Array.isArray(e)?e[1]:e})).reverse().join(" ‹ "),n=Object(ve.decodeEntities)(Object(te.sprintf)(Object(te.__)("%1$s ‹ %2$s — WooCommerce","woocommerce-admin"),e,c));document.title!==n&&(document.title=n)}}),[r,t,c]);var b=function(){f({android_app_banner_dismissed:"yes"})};return Object(g.createElement)("div",{className:h,ref:i},!p&&Object(g.createElement)(Ke,{onDismiss:b,onInstall:b}),Object(g.createElement)("div",{className:"woocommerce-layout__header-wrapper"},window.wcAdminFeatures.navigation&&Object(g.createElement)(Ot,null),Object(g.createElement)(be.e,{className:"woocommerce-layout__header-heading",as:"h1",variant:"subtitle.small"},Object(ve.decodeEntities)(u)),window.wcAdminFeatures["activity-panels"]&&Object(g.createElement)(Ge,{isEmbedded:r,query:o,userPreferencesData:Et(Et({},d),{},{updateUserPreferences:f})})))};function kt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var xt=function(e){m()(n,e);var t=kt(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"render",value:function(){return Object(g.createElement)("div",{id:"woocommerce-layout__notice-list",className:"woocommerce-layout__notice-list"})}}]),n}(g.Component),St=n(8),Ct=n.n(St),Pt=n(44),At=n.n(Pt),Tt=n(182),Nt=n(278);var Rt=function(e){var t=e.notices,n=e.className,r=e.children,i=e.onRemove,a=void 0===i?Q.noop:i,c=e.onRemove2,u=void 0===c?Q.noop:c,s=Object(w.useReducedMotion)(),l=Object(g.useState)((function(){return new WeakMap})),f=ge()(l,1)[0],d=Object(Tt.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=At()(Ct.a.mark((function t(n){return Ct.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:f.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=At()(Ct.a.mark((function e(t){return Ct.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:s});n=he()("components-snackbar-list",n);var p=function(e){return function(){a(e.id),u(e.id)}};return Object(g.createElement)("div",{className:n},r,d.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(g.createElement)(Tt.animated.div,{key:n,style:r},Object(g.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&f.set(t,e)}},Object(g.createElement)(Nt.a,o()({},Object(Q.omit)(t,["content"]),{onRemove:p(t)}),t.content)))})))};n(307);function Lt(e){var t=Object(O.useDispatch)("core/notices").removeNotice,n=Object(O.useDispatch)("core/notices2").removeNotice,r=Object(O.useSelect)((function(e){return{notices:e("core/notices").getNotices(),notices2:e("core/notices2").getNotices()}})),o=e.className,i=he()("woocommerce-transient-notices","components-notices__snackbar",o),a=function(){var e=r.notices,t=r.notices2,n=void 0===t?[]:t;return e.concat(n)}();return Object(g.createElement)(Rt,{notices:a,className:i,onRemove:t,onRemove2:n})}Lt.propTypes={className:x.a.string,notices:x.a.array};var Mt=Lt;function It(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 Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vt(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 Ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}Object(Xe.registerPlugin)("wc-admin-navigation",{render:function(){var e=Object(g.useState)(Object(Z.getPersistedQuery)()),t=ge()(e,2),n=t[0],r=t[1],o=function(e){return Object(Z.getQueryExcludedScreens)().includes(Object(Z.getScreenFromPath)(e))};if(Object(g.useEffect)((function(){return at((function(){setTimeout((function(){o()||r(Object(Z.getPersistedQuery)())}),0)}))}),[]),!Object(re.f)(window.location.href))return null;var i=Object(ne.a)().filter((function(e){return e.navArgs})),a=de().filter((function(e){return e.navArgs})).map((function(e){return"/analytics/settings"===e.path?Dt(Dt({},e),{},{breadcrumbs:[Object(te.__)("Analytics","woocommerce-admin")]}):e}));return Object(g.createElement)(g.Fragment,null,a.map((function(e){return Object(g.createElement)(Z.WooNavigationItem,{item:e.navArgs.id,key:e.navArgs.id},Object(g.createElement)(Y.Link,{className:"components-button",href:Object(Z.getNewPath)(o(e.path)?{}:n,e.path,{}),type:"wc-admin"},e.breadcrumbs[e.breadcrumbs.length-1]))})),i.map((function(e){return Object(g.createElement)(Z.WooNavigationItem,{item:e.navArgs.id,key:e.navArgs.id},Object(g.createElement)(Y.Link,{className:"components-button",href:Object(Z.getNewPath)(o(e.report)?{}:n,"/analytics/".concat(e.report),{}),type:"wc-admin"},e.title))})))}});var Ut=Object(g.lazy)((function(){return Promise.all([n.e(1),n.e(47)]).then(n.bind(null,611))})),qt=Object(g.lazy)((function(){return n.e(51).then(n.bind(null,510))})),zt=function(e){m()(n,e);var t=Bt(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"render",value:function(){var e=this.props.children;return Object(g.createElement)("div",{className:"woocommerce-layout__primary",id:"woocommerce-layout__primary"},window.wcAdminFeatures["store-alerts"]&&Object(g.createElement)(g.Suspense,{fallback:Object(g.createElement)(Y.Spinner,null)},Object(g.createElement)(Ut,null)),Object(g.createElement)(xt,null),e)}}]),n}(g.Component),Ht=function(e){m()(n,e);var t=Bt(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"componentDidMount",value:function(){this.recordPageViewTrack()}},{key:"componentDidUpdate",value:function(e){var t=Object(Q.get)(e,"location.pathname"),n=Object(Q.get)(this.props,"location.pathname");t&&n&&t!==n&&this.recordPageViewTrack()}},{key:"recordPageViewTrack",value:function(){var e=this.props,t=e.activePlugins,n=e.installedPlugins,r=e.isEmbedded,o=e.isJetpackConnected,i={has_navigation:!!window.wcNavigation};if(r){var a=document.location.pathname+document.location.search;Object(X.recordPageView)(a,Ft({is_embedded:!0},i))}else{var c=Object(Q.get)(this.props,"location.pathname");if(c){var u=c.substring(1).replace(/\//g,"_");0===u.length&&(u="home_screen"),Object(X.recordPageView)(u,Ft({jetpack_installed:n.includes("jetpack"),jetpack_active:t.includes("jetpack"),jetpack_connected:o},i))}}}},{key:"getQuery",value:function(e){if(!e)return{};var t=e.substring(1);return Object(G.parse)(t)}},{key:"isWCPaySettingsPage",value:function(){var e=Object(Z.getQuery)(),t=e.page,n=e.section,r=e.tab;return"wc-settings"===t&&"checkout"===r&&"woocommerce_payments"===n}},{key:"render",value:function(){var e=this.props,t=e.isEmbedded,n=a()(e,["isEmbedded"]),r=this.props,i=r.location,c=r.page.breadcrumbs,u=this.getQuery(i&&i.search);return Object(g.createElement)("div",{className:"woocommerce-layout"},Object(g.createElement)(_t,{sections:Object(Q.isFunction)(c)?c(this.props):c,isEmbedded:t,query:u}),Object(g.createElement)(Mt,null),!t&&Object(g.createElement)(zt,null,Object(g.createElement)("div",{className:"woocommerce-layout__main"},Object(g.createElement)(pe,o()({},n,{query:u})))),t&&this.isWCPaySettingsPage()&&Object(g.createElement)(g.Suspense,{fallback:null},Object(g.createElement)(qt,null)))}}]),n}(g.Component);Ht.propTypes={isEmbedded:x.a.bool,page:x.a.shape({container:x.a.oneOfType([x.a.func,x.a.object]),path:x.a.string,breadcrumbs:x.a.oneOfType([x.a.func,x.a.arrayOf(x.a.oneOfType([x.a.arrayOf(x.a.string),x.a.string]))]).isRequired,wpOpenMenu:x.a.string}).isRequired};var $t=Object(w.compose)(Object(J.withPluginsHydration)(Ft(Ft({},window.wcSettings.plugins||{}),{},{jetpackStatus:window.wcSettings.dataEndpoints&&window.wcSettings.dataEndpoints.jetpackStatus||!1})),Object(O.withSelect)((function(e,t){if(!t.isEmbedded){var n=e(J.PLUGINS_STORE_NAME),r=n.getActivePlugins,o=n.getInstalledPlugins,i=n.isJetpackConnected;return{activePlugins:r(),isJetpackConnected:i(),installedPlugins:o()}}})))(Ht),Wt=Object(w.compose)(window.wcSettings.preloadOptions?Object(J.withOptionsHydration)(Ft({},window.wcSettings.preloadOptions)):Q.identity)((function(){var e=Object(J.useUser)().currentUserCan;return Object(g.createElement)(I,{history:Object(Z.getHistory)()},Object(g.createElement)(W,null,de().filter((function(t){return!t.capability||e(t.capability)})).map((function(e){return Object(g.createElement)(B,{key:e.path,path:e.path,exact:!0,render:function(t){return Object(g.createElement)($t,o()({page:e},t))}})}))))})),Qt=Object(w.compose)(window.wcSettings.preloadOptions?Object(J.withOptionsHydration)(Ft({},window.wcSettings.preloadOptions)):Q.identity)((function(){return Object(g.createElement)($t,{page:{breadcrumbs:Object(K.g)("embedBreadcrumbs",[])},isEmbedded:!0})}))},142:function(e,t){!function(){e.exports=this.wc.number}()},15:function(e,t,n){var r=n(31),o=n(9);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},152:function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,O=r?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case a:case u:case c:case m:return e;default:switch(e=e&&e.$$typeof){case l:case p:case b:case v:case s:return e;default:return t}}case i:return t}}}function E(e){return j(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=b,t.Memo=v,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=m,t.isAsyncMode=function(e){return E(e)||j(e)===f},t.isConcurrentMode=E,t.isContextConsumer=function(e){return j(e)===l},t.isContextProvider=function(e){return j(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return j(e)===p},t.isFragment=function(e){return j(e)===a},t.isLazy=function(e){return j(e)===b},t.isMemo=function(e){return j(e)===v},t.isPortal=function(e){return j(e)===i},t.isProfiler=function(e){return j(e)===u},t.isStrictMode=function(e){return j(e)===c},t.isSuspense=function(e){return j(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===u||e===c||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===v||e.$$typeof===s||e.$$typeof===l||e.$$typeof===p||e.$$typeof===g||e.$$typeof===w||e.$$typeof===O||e.$$typeof===y)},t.typeOf=j},16:function(e,t){!function(){e.exports=this.moment}()},17:function(e,t){!function(){e.exports=this.wp.dataControls}()},18:function(e,t,n){var r=n(60),o=n(61),i=n(40),a=n(62);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},182:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(24)),i=r(n(97)),a=n(10),c=r(a),u=r(n(306)),s=r(n(9)),l={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!l.und(n)||e===t}};function f(){var e=a.useState(!1)[1];return a.useCallback((function(){return e((function(e){return!e}))}),[])}function d(e,t){return l.und(e)||l.nul(e)?t:e}function p(e){return l.und(e)?[]:l.arr(e)?e:[e]}function m(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return l.fun(e)?e.apply(void 0,n):e}function h(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,i(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(l.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var i;return l.und(t[r])?o({},n,((i={})[r]=e[r],i)):n}),{});return o({to:t},n)}var v,b,y=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),g=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.removeChild(s(t))}))},t}return u(t,e),t}(y),w=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof y&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof y&&e.removeChild(s(t))}))},t}u(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof y)&&(t[n]=r instanceof y?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(y);function O(e,t){v={fn:e,transform:t}}function j(e){b=e}var E,_=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},k=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function x(e){E=e}var S,C=function(){return Date.now()};function P(e){S=e}var A,T,N=function(e){return e.current};function R(e){A=e}var L=Object.freeze({get applyAnimatedValues(){return v},injectApplyAnimatedValues:O,get colorNames(){return b},injectColorNames:j,get requestFrame(){return _},get cancelFrame(){return k},injectFrame:function(e,t){_=e,k=t},get interpolation(){return E},injectStringInterpolator:x,get now(){return C},injectNow:function(e){C=e},get defaultElement(){return S},injectDefaultElement:P,get animatedApi(){return N},injectAnimatedApi:function(e){N=e},get createAnimatedStyle(){return A},injectCreateAnimatedStyle:R,get manualFrameloop(){return T},injectManualFrameloop:function(e){T=e}}),M=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:A(t.style)}):t,r.update=n,r.attach(),r}return u(t,e),t}(w),I=!1,D=new Set,V=function e(){if(!I)return!1;var t=C(),n=D,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var a=i,c=!1,u=0;u<a.configs.length;u++){for(var s=a.configs[u],l=void 0,f=void 0,d=0;d<s.animatedValues.length;d++){var p=s.animatedValues[d];if(!p.done){var m=s.fromValues[d],h=s.toValues[d],v=p.lastPosition,b=h instanceof y,g=Array.isArray(s.initialVelocity)?s.initialVelocity[d]:s.initialVelocity;if(b&&(h=h.getValue()),s.immediate)p.setValue(h),p.done=!0;else if("string"!=typeof m&&"string"!=typeof h){if(void 0!==s.duration)v=m+s.easing((t-p.startTime)/s.duration)*(h-m),l=t>=p.startTime+s.duration;else if(s.decay)v=m+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(l=Math.abs(p.lastPosition-v)<.1)&&(h=v);else{f=void 0!==p.lastTime?p.lastTime:t,g=void 0!==p.lastVelocity?p.lastVelocity:s.initialVelocity,t>f+64&&(f=t);for(var w=Math.floor(t-f),O=0;O<w;++O){v+=1*(g+=1*((-s.tension*(v-h)+-s.friction*g)/s.mass)/1e3)/1e3}var j=!(!s.clamp||0===s.tension)&&(m<h?v>h:v<h),E=Math.abs(g)<=s.precision,k=0===s.tension||Math.abs(h-v)<=s.precision;l=j||E&&k,p.lastVelocity=g,p.lastTime=t}b&&!s.toValues[d].done&&(l=!1),l?(p.value!==h&&(v=h),p.done=!0):c=!0,p.setValue(v),p.lastPosition=v}else p.setValue(h),p.done=!0}}a.props.onFrame&&(a.values[s.name]=s.interpolation.getValue())}a.props.onFrame&&a.props.onFrame(a.values),c||(D.delete(a),a.stop(!0))}return D.size?T?T():_(e):I=!1,I};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(E&&"string"==typeof e.output[0])return E(e);var r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,c,u){var s=u?u(e):e;if(s<t){if("identity"===a)return s;"clamp"===a&&(s=t)}if(s>n){if("identity"===c)return s;"clamp"===c&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,i[t],i[t+1],o[t],o[t+1],u,a,c,r.map)}}var B=function(e){function t(n,r,o,i){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],a.calc=F(r,o,i),a}u(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var U=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}u(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new B(this,e,t,n)},t}(y),q=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new U(e)})),n}u(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new B(this,e,t)},t}(g),z=0,H=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=z++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,a=t.to,c=i(t,["delay","to"]);if(l.arr(a)||l.fun(a))this.queue.push(o({},c,{delay:r,to:a}));else if(a){var u={};Object.entries(a).forEach((function(e){var t,n=e[0],i=e[1],a=o({to:(t={},t[n]=i,t),delay:m(r,n)},c),s=u[a.delay]&&u[a.delay].to;u[a.delay]=o({},u[a.delay],a,{to:o({},s,a.to)})})),this.queue=Object.values(u)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(c),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,i=e.to,a=void 0===i?{}:i;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(a)&&(n.merged=o({},n.merged,a))}));var r=this.local=++this.guid,a=this.localQueue=this.queue;this.queue=[],a.forEach((function(t,o){var c=t.delay,u=i(t,["delay"]),s=function(t){o===a.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},f=l.arr(u.to)||l.fun(u.to);c?setTimeout((function(){r===n.guid&&(f?n.runAsync(u,s):n.diff(u).start(s))}),c):f?n.runAsync(u,s):n.diff(u).start(s)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,D.has(t)||D.add(t),I||(I=!0,_(T||V));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,D.has(t)&&D.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,i(e,["delay"])),a=this.local,c=Promise.resolve(void 0);if(l.arr(r.to))for(var u=function(e){var t=e,i=o({},r,h(r.to[t]));l.arr(i.config)&&(i.config=i.config[t]),c=c.then((function(){if(a===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},s=0;s<r.to.length;s++)u(s);else if(l.fun(r.to)){var f,d=0;c=c.then((function(){return r.to((function(e){var t=o({},r,h(e));if(l.arr(t.config)&&(t.config=t.config[d]),d++,a===n.guid)return f=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return f}))}))}c.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,i=void 0===r?{}:r,a=n.to,c=void 0===a?{}:a,u=n.config,s=void 0===u?{}:u,f=n.reverse,h=n.attach,v=n.reset,y=n.immediate;if(f){var g=[c,i];i=g[0],c=g[1]}this.merged=o({},i,this.merged,c),this.hasChanged=!1;var w=h&&h(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],a=n[1],c=e[r]||{},u=l.num(a),f=l.str(a)&&!a.startsWith("#")&&!/\d/.test(a)&&!b[a],h=l.arr(a),g=!u&&!h&&!f,O=l.und(i[r])?a:i[r],j=u||h||f?a:1,_=m(s,r);w&&(j=w.animations[r].parent);var k,x=c.parent,S=c.interpolation,P=p(w?j.getPayload():j),A=a;g&&(A=E({range:[0,1],output:[a,a]})(1));var T,N=S&&S.getValue(),R=!l.und(x)&&c.animatedValues.some((function(e){return!e.done})),L=!l.equ(A,N),M=!l.equ(A,c.previous),I=!l.equ(_,c.config);if(v||M&&L||I){var D;if(u||f)x=S=c.parent||new U(O);else if(h)x=S=c.parent||new q(O);else if(g){var V=c.interpolation&&c.interpolation.calc(c.parent.value);V=void 0===V||v?O:V,c.parent?(x=c.parent).setValue(0,!1):x=new U(0);var F={output:[V,a]};c.interpolation?(S=c.interpolation,c.interpolation.updateConfig(F)):S=x.interpolate(F)}return P=p(w?j.getPayload():j),k=p(x.getPayload()),v&&!g&&x.setValue(O,!1),t.hasChanged=!0,k.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=R?e.lastVelocity:void 0,e.lastTime=R?e.lastTime:void 0,e.startTime=C(),e.done=!1,e.animatedStyles.clear()})),m(y,r)&&x.setValue(g?j:a,!1),o({},e,((D={})[r]=o({},c,{name:r,parent:x,interpolation:S,animatedValues:k,toValues:P,previous:A,config:_,fromValues:p(x.getValue()),immediate:m(y,r),initialVelocity:d(_.velocity,0),clamp:d(_.clamp,!1),precision:d(_.precision,.01),tension:d(_.tension,170),friction:d(_.friction,26),mass:d(_.mass,1),duration:_.duration,easing:d(_.easing,(function(e){return e})),decay:_.decay}),D))}return L?e:(g&&(x.setValue(1,!1),S.updateConfig({output:[A,A]})),x.done=!0,t.hasChanged=!0,o({},e,((T={})[r]=o({},e[r],{previous:A}),T)))}),this.animations),this.hasChanged)for(var O in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[O]=this.animations[O].interpolation,this.values[O]=this.animations[O].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),$=function(e,t){var n=a.useRef(!1),r=a.useRef(),o=l.fun(t),i=a.useMemo((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var i=new H,a=o?m(t,r,i):t[r];return 0===r&&(n=a.ref),i.update(a),n||i.start(),i})),n]}),[e]),c=i[0],u=i[1];r.current=c;a.useImperativeHandle(u,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var s=a.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?m(e,n,t):e[n]),u||t.start()}))}}),[e]);a.useEffect((function(){n.current?o||s(t):u||r.current.forEach((function(e){return e.start()}))})),a.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var f=r.current.map((function(e){return e.getValues()}));return o?[f,s,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:f},W=0,Q=function(e,t){return("function"==typeof t?e.map(t):p(t)).map(String)},G=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,a=i(e,["items","keys"]);return t=p(void 0!==t?t:null),o({items:t,keys:Q(t,r)},a)};function Y(e,t){var n=function(){if(o){if(i>=r.length)return"break";a=r[i++]}else{if((i=r.next()).done)return"break";a=i.value}var n=a.key,c=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(c),e.current.deleted=e.current.deleted.filter(c))},r=e.current.deleted,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if("break"===n())break}e.current.forceUpdate()}var Z=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof y||(t=v.transform(t)),n.payload=t,n}return u(t,e),t}(w),K={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},J="[-+]?\\d*\\.?\\d+";function X(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+X(J,J,J)),te=new RegExp("rgba"+X(J,J,J,J)),ne=new RegExp("hsl"+X(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+X(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",J)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{6})$/,ce=/^#([0-9a-fA-F]{8})$/;function ue(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ue(o,r,e+1/3),a=ue(o,r,e),c=ue(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*c)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function fe(e){return(parseFloat(e)%360+360)%360/360}function de(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:K.hasOwnProperty(t)?K[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|de(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ce.exec(t))?parseInt(n[1],16)>>>0:(n=ie.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(fe(n[1]),pe(n[2]),pe(n[3])))>>>0:(n=re.exec(t))?(se(fe(n[1]),pe(n[2]),pe(n[3]))|de(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,be=new RegExp("("+Object.keys(K).join("|")+")","g"),ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ge=["Webkit","Ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}ye=Object.keys(ye).reduce((function(e,t){return ge.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ye);var Oe={};R((function(e){return new Z(e)})),P("div"),x((function(e){var t=e.output.map((function(e){return e.replace(ve,me)})).map((function(e){return e.replace(be,me)})),n=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(he).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(he,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),j(K),O((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,a=t.scrollLeft,c=i(t,["style","children","scrollTop","scrollLeft"]),u="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var l=0===s.indexOf("--"),f=we(s,n[s],l);"float"===s&&(s="cssFloat"),l?e.style.setProperty(s,f):e.style[s]=f}for(var d in c){var p=u?d:Oe[d]||(Oe[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,c[d])}}),(function(e){return e}));var je,Ee,_e=(je=function(e){return a.forwardRef((function(t,n){var r=f(),u=a.useRef(!0),s=a.useRef(null),d=a.useRef(null),p=a.useCallback((function(e){var t=s.current;s.current=new M(e,(function(){var e=!1;d.current&&(e=v.fn(d.current,s.current.getAnimatedValue())),d.current&&!1!==e||r()})),t&&t.detach()}),[]);a.useEffect((function(){return function(){u.current=!1,s.current&&s.current.detach()}}),[]),a.useImperativeHandle(n,(function(){return N(d,u,r)})),p(t);var m,h=s.current.getValue(),b=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),y=(m=e,!l.fun(m)||m.prototype instanceof c.Component?function(e){return d.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},b,{ref:y}))}))},void 0===(Ee=!1)&&(Ee=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Ee?t[0].toLowerCase()+t.substring(1):t;return e[n]=je(n),e}),je)}),ke=_e(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=_e,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=V,t.animated=ke,t.a=ke,t.interpolate=function(e,t,n){return e&&new B(e,t,n)},t.Globals=L,t.useSpring=function(e){var t=l.fun(e),n=$(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r},t.useTrail=function(e,t){var n=a.useRef(!1),r=l.fun(t),i=m(t),c=a.useRef(),u=$(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},i,{config:m(i.config,e),attach:e>0&&function(){return c.current[e-1]}})})),s=u[0],f=u[1],d=u[2],p=a.useMemo((function(){return function(e){return f((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,a=c.current[r];return o({},e,{config:m(e.config||i.config,t),attach:a&&function(){return a}})}))}}),[e,i.reverse]);return a.useEffect((function(){n.current&&!r&&p(t)})),a.useEffect((function(){n.current=!0}),[]),r?[s,p,d]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=G(r),u=c.lazy,s=void 0!==u&&u,l=(c.unique,c.reset),d=void 0!==l&&l,p=(c.enter,c.leave,c.update,c.onDestroyed),h=(c.keys,c.items,c.onFrame),v=c.onRest,b=c.onStart,y=c.ref,g=i(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),w=f(),O=a.useRef(!1),j=a.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!O.current&&new Map,forceUpdate:w});return a.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(j.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(j.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(j.current.instances).map((function(e){return e[1]}))}}})),j.current=function(e,t){var n=e.first,r=e.prevProps,a=i(e,["first","prevProps"]),c=G(t),u=c.items,s=c.keys,l=c.initial,f=c.from,d=c.enter,p=c.leave,h=c.update,v=c.trail,b=void 0===v?0:v,y=c.unique,g=c.config,w=c.order,O=void 0===w?["enter","leave","update"]:w,j=G(r),E=j.keys,_=j.items,k=o({},a.current),x=[].concat(a.deleted),S=Object.keys(k),C=new Set(S),P=new Set(s),A=s.filter((function(e){return!C.has(e)})),T=a.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),N=s.filter((function(e){return C.has(e)})),R=-b;for(;O.length;){switch(O.shift()){case"enter":A.forEach((function(e,t){y&&x.find((function(t){return t.originalKey===e}))&&(x=x.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=u[r],i=n&&void 0!==l?"initial":"enter";k[e]={slot:i,originalKey:e,key:y?String(e):W++,item:o,trail:R+=b,config:m(g,o,i),from:m(n&&void 0!==l?l||{}:f,o),to:m(d,o)}}));break;case"leave":T.forEach((function(e){var t=E.indexOf(e),n=_[t];x.unshift(o({},k[e],{slot:"leave",destroyed:!0,left:E[Math.max(0,t-1)],right:E[Math.min(E.length,t+1)],trail:R+=b,config:m(g,n,"leave"),to:m(p,n)})),delete k[e]}));break;case"update":N.forEach((function(e){var t=s.indexOf(e),n=u[t];k[e]=o({},k[e],{item:n,slot:"update",trail:R+=b,config:m(g,n,"update"),to:m(h,n)})}))}}var L=s.map((function(e){return k[e]}));return x.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=L.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),L=[].concat(L.slice(0,t),[r],L.slice(t))})),o({},a,{changed:A.length||T.length||N.length,first:n&&0===A.length,transitions:L,current:k,deleted:x,prevProps:t})}(j.current,r),j.current.changed&&j.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,a=e.trail,c=e.key,u=e.item;j.current.instances.has(c)||j.current.instances.set(c,new H);var l=j.current.instances.get(c),f=o({},g,{to:r,from:n,config:i,ref:y,onRest:function(n){j.current.mounted&&(e.destroyed&&(y||s||Y(j,c),p&&p(u)),!Array.from(j.current.instances).some((function(e){return!e[1].idle}))&&(y||s)&&j.current.deleted.length>0&&Y(j),v&&v(u,t,n))},onStart:b&&function(){return b(u,t)},onFrame:h&&function(e){return h(u,t,e)},delay:a,reset:d&&"enter"===t});l.update(f),j.current.paused||l.start()})),a.useEffect((function(){return j.current.mounted=O.current=!0,function(){j.current.mounted=O.current=!1,Array.from(j.current.instances).map((function(e){return e[1].destroy()})),j.current.instances.clear()}}),[]),j.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:j.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=a.useRef();a.useEffect((function(){l.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var i=e.current;if(i){var a=i.controllers;if(a.length){var c=n*t[r];a.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+c})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=$},183:function(e,t,n){"use strict";(function(e){var r=n(10),o=n.n(r),i=n(38),a=n(1),c=n.n(a),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function s(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var l=o.a.createContext||function(e,t){var n,o,a,l="__create-react-context-"+((u[a="__global_unique_id__"]=(u[a]||0)+1)+"__"),f=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=s(t.props.value),t}Object(i.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[l]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof t?t(r,o):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[l]=c.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(i.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[l]&&this.context[l].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[l]&&this.context[l].off(this.onUpdate)},r.getValue=function(){return this.context[l]?this.context[l].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((o={})[l]=c.a.object,o),{Provider:f,Consumer:d}};t.a=l}).call(this,n(84))},184:function(e,t,n){var r=n(308);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return c(i(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=d;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,c="",l=t&&t.delimiter||"/";null!=(n=o.exec(e));){var f=n[0],d=n[1],p=n.index;if(c+=e.slice(a,p),a=p+f.length,d)c+=d[1];else{var m=e[a],h=n[2],v=n[3],b=n[4],y=n[5],g=n[6],w=n[7];c&&(r.push(c),c="");var O=null!=h&&null!=m&&m!==h,j="+"===g||"*"===g,E="?"===g||"*"===g,_=n[2]||l,k=b||y;r.push({name:v||i++,prefix:h||"",delimiter:_,optional:E,repeat:j,partial:O,asterisk:!!w,pattern:k?s(k):w?".*":"[^"+u(_)+"]+?"})}}return a<e.length&&(c+=e.substr(a)),c&&r.push(c),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function c(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",f(t)));return function(t,o){for(var i="",c=t||{},u=(o||{}).pretty?a:encodeURIComponent,s=0;s<e.length;s++){var l=e[s];if("string"!=typeof l){var f,d=c[l.name];if(null==d){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(d)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var p=0;p<d.length;p++){if(f=u(d[p]),!n[s].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");i+=(0===p?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[s].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');i+=l.prefix+f}}else i+=l}return i}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",c=0;c<e.length;c++){var s=e[c];if("string"==typeof s)a+=u(s);else{var d=u(s.prefix),p="(?:"+s.pattern+")";t.push(s),s.repeat&&(p+="(?:"+d+p+")*"),a+=p=s.optional?s.partial?d+"("+p+")?":"(?:"+d+"("+p+"))?":d+"("+p+")"}}var m=u(n.delimiter||"/"),h=a.slice(-m.length)===m;return o||(a=(h?a.slice(0,-m.length):a)+"(?:"+m+"(?=$))?"),a+=i?"$":o&&h?"":"(?="+m+"|$)",l(new RegExp("^"+a,f(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(i(e,n),t,n)}(e,t,n)}},19:function(e,t,n){var r=n(57),o=n(58),i=n(40),a=n(59);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},197:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(3);function o(e,t){return Object(r.filter)(e,(function(e){var n=e.is_deleted,r=e.date_created_gmt,o=e.status;if(!n)return(!t||!r||new Date(r+"Z").getTime()>t)&&"unactioned"===o})).length}function i(e){return Object(r.filter)(e,(function(e){return!e.is_deleted})).length>0}},198:function(e,t,n){"use strict";var r=n(36),o=n(55),i=n(0);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}t.a=function(e){var t=e.icon,n=e.size,c=void 0===n?24:n,u=Object(o.a)(e,["icon","size"]);return Object(i.cloneElement)(t,function(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){Object(r.a)(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}({width:c,height:c},u))}},2:function(e,t){!function(){e.exports=this.wp.i18n}()},20:function(e,t){!function(){e.exports=this.wp.compose}()},21:function(e,t){!function(){e.exports=this.wc.navigation}()},22:function(e,t){!function(){e.exports=this.wc.data}()},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},25:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return h})),n.d(t,"f",(function(){return v}));var r=n(31),o=n.n(r),i=n(2),a=["wcAdminSettings","preloadSettings"],c="object"===("undefined"==typeof wcSettings?"undefined":o()(wcSettings))?wcSettings:{},u=Object.keys(c).reduce((function(e,t){return a.includes(t)||(e[t]=c[t]),e}),{}),s=u.adminUrl,l=(u.countries,u.currency),f=u.locale,d=u.orderStatuses,p=(u.siteTitle,u.wcAssetUrl);function m(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e};if(a.includes(e))throw new Error(Object(i.__)("Mutable settings should be accessed via data store."));var r=u.hasOwnProperty(e)?u[e]:t;return n(r,t)}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e};if(a.includes(e))throw new Error(Object(i.__)("Mutable settings should be mutated via data store."));u[e]=n(t)}function v(e){return(s||"")+e}},26:function(e,t){!function(){e.exports=this.wp.apiFetch}()},27:function(e,t){!function(){e.exports=this.wc.tracks}()},278:function(e,t,n){"use strict";(function(e){var r=n(0),o=n(3),i=n(6),a=n.n(i),c=n(140),u=n(2),s=(n(279),n(4));t.a=Object(r.forwardRef)((function(t,n){var i=t.className,l=t.children,f=t.spokenMessage,d=void 0===f?l:f,p=t.politeness,m=void 0===p?"polite":p,h=t.actions,v=void 0===h?[]:h,b=t.onRemove,y=void 0===b?o.noop:b,g=t.icon,w=void 0===g?null:g,O=t.explicitDismiss,j=void 0!==O&&O,E=t.onDismiss,_=void 0===E?null:E;function k(e){e&&e.preventDefault&&e.preventDefault(),_(),y()}_=_||o.noop,function(e,t){var n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)((function(){n&&Object(c.a)(n,t)}),[n,t])}(d,m),Object(r.useEffect)((function(){var e=setTimeout((function(){j||(_(),y())}),1e4);return function(){return clearTimeout(e)}}),[j,_,y]);var x=a()(i,"components-snackbar",{"components-snackbar-explicit-dismiss":!!j});v&&v.length>1&&(void 0!==e&&e.env,v=[v[0]]);var S=a()("components-snackbar__content",{"components-snackbar__content-with-icon":!!w});return Object(r.createElement)("div",{ref:n,className:x,onClick:j?o.noop:k,tabIndex:"0",role:j?"":"button",onKeyPress:j?o.noop:k,"aria-label":j?"":Object(u.__)("Dismiss this notice")},Object(r.createElement)("div",{className:S},w&&Object(r.createElement)("div",{className:"components-snackbar__icon"},w),l,v.map((function(e,t){var n=e.label,o=e.onClick,i=e.url;return Object(r.createElement)(s.Button,{key:t,href:i,isTertiary:!0,onClick:function(e){return function(e,t){e.stopPropagation(),y(),t&&t(e)}(e,o)},className:"components-snackbar__action"},n)})),j&&Object(r.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:"0",className:"components-snackbar__dismiss-button",onClick:k,onKeyPress:k},"✕")))}))}).call(this,n(125))},279:function(e,t,n){"use strict";(function(e){function r(t){void 0!==e&&e.env}n.d(t,"a",(function(){return r}))}).call(this,n(125))},280:function(e,t){!function(){e.exports=this.wc.customerEffortScore}()},287:function(e,t,n){"use strict";n.d(t,"a",(function(){return q}));var r={};n.r(r),n.d(r,"setCesSurveyQueue",(function(){return P})),n.d(r,"addCesSurvey",(function(){return A})),n.d(r,"addCesSurveyForAnalytics",(function(){return T}));var o={};n.r(o),n.d(o,"getCesSurveyQueue",(function(){return M}));var i={};n.r(i),n.d(i,"getCesSurveyQueue",(function(){return I}));var a=n(19),c=n.n(a),u=n(5),s=n.n(u),l=n(18),f=n.n(l),d=n(0),p=n(1),m=n.n(p),h=n(27),v=n(280),b=n.n(v),y=n(20),g=n(11),w=n(22),O=n(2);function j(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?j(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e){var t=e.action,n=e.trackProps,r=e.label,o=e.onSubmitLabel,i=void 0===o?Object(O.__)("Thank you for your feedback!","woocommerce-admin"):o,a=e.cesShownForActions,u=e.allowTracking,l=e.resolving,p=e.storeAgeInWeeks,m=e.updateOptions,v=e.createNotice,y=Object(d.useState)(!1),g=f()(y,2),w=g[0],j=g[1];if(l)return null;if(!u)return null;if(-1!==a.indexOf(t)&&!w)return null;var _=function(){m(s()({},"woocommerce_ces_shown_for_actions",[t].concat(c()(a))))};return Object(d.createElement)(b.a,{recordScoreCallback:function(e,r){Object(h.recordEvent)("ces_feedback",E({action:t,score:e,comments:r||"",store_age:p},n)),v("success",i)},label:r,onNoticeShownCallback:function(){Object(h.recordEvent)("ces_snackbar_view",E({action:t,store_age:p},n))},onNoticeDismissedCallback:function(){Object(h.recordEvent)("ces_snackbar_dismiss",E({action:t,store_age:p},n)),_()},onModalShownCallback:function(){j(!0),Object(h.recordEvent)("ces_view",E({action:t,store_age:p},n)),_()},icon:Object(d.createElement)("span",{style:{height:21,width:21},role:"img","aria-label":Object(O.__)("Pencil icon","woocommerce-admin")},"✏️")})}_.propTypes={action:m.a.string.isRequired,trackProps:m.a.object,label:m.a.string.isRequired,onSubmitLabel:m.a.string,cesShownForActions:m.a.arrayOf(m.a.string).isRequired,allowTracking:m.a.bool,resolving:m.a.bool.isRequired,storeAgeInWeeks:m.a.number,updateOptions:m.a.func,createNotice:m.a.func};var k=Object(y.compose)(Object(g.withSelect)((function(e){var t=e(w.OPTIONS_STORE_NAME),n=t.getOption,r=t.isResolving,o=n("woocommerce_ces_shown_for_actions")||[],i=function(e){if(0===e)return null;var t=Date.now()-1e3*e;return Math.round(t/w.WEEK)}(n("woocommerce_admin_install_timestamp")||0);return{cesShownForActions:o,allowTracking:"yes"===(n("woocommerce_allow_tracking")||"no"),storeAgeInWeeks:i,resolving:r("getOption",["woocommerce_ces_shown_for_actions"])||null===i||r("getOption",["woocommerce_admin_install_timestamp"])||r("getOption",["woocommerce_allow_tracking"])}})),Object(g.withDispatch)((function(e){return{updateOptions:e(w.OPTIONS_STORE_NAME).updateOptions,createNotice:e("core/notices").createNotice}})))(_),x=n(76),S=n(17),C={SET_CES_SURVEY_QUEUE:"SET_CES_SURVEY_QUEUE",ADD_CES_SURVEY:"ADD_CES_SURVEY"};function P(e){return{type:C.SET_CES_SURVEY_QUEUE,queue:e}}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.pagenow,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.adminpage,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return{type:C.ADD_CES_SURVEY,action:e,label:t,pageNow:n,adminPage:r,onsubmit_label:o}}function T(){return A("analytics_filtered",Object(O.__)("How easy was it to filter your store analytics?","woocommerce-admin"),"woocommerce_page_wc-admin","woocommerce_page_wc-admin")}var N=n(8),R=n.n(N),L=R.a.mark(M);function M(){var e;return R.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(S.apiFetch)({path:"".concat(x.a,"/options?options=").concat(x.b)});case 2:if(!(e=t.sent)){t.next=8;break}return t.next=6,P(e[x.b]||[]);case 6:t.next=9;break;case 8:throw new Error;case 9:case"end":return t.stop()}}),L)}function I(e){return e.queue}function D(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 V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F={queue:[]},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case C.SET_CES_SURVEY_QUEUE:return V(V({},e),{},{queue:t.queue});case C.ADD_CES_SURVEY:var n=e.queue.filter((function(e){return e.action===t.action}));if(n.length)return e;var r={action:t.action,label:t.label,pagenow:t.pageNow,adminpage:t.adminPage,onSubmitLabel:t.onSubmitLabel};return V(V({},e),{},{queue:[].concat(c()(e.queue),[r])});default:return e}};Object(g.registerStore)(x.c,{actions:r,selectors:i,resolvers:o,controls:S.controls,reducer:B});function U(e){var t=e.queue,n=e.resolving,r=e.clearQueue;if(n)return null;var o=t.filter((function(e){return e.pagenow===window.pagenow&&e.adminpage===window.adminpage}));return o.length&&r(),Object(d.createElement)(d.Fragment,null,o.map((function(e,t){return Object(d.createElement)(k,{key:t,action:e.action,label:e.label,onSubmitLabel:e.onsubmit_label,trackProps:e.props||{}})})))}U.propTypes={queue:m.a.arrayOf(m.a.object),resolving:m.a.bool,clearQueue:m.a.func};var q=Object(y.compose)(Object(g.withSelect)((function(e){var t=e(x.c),n=t.getCesSurveyQueue,r=t.isResolving;return{queue:n(),resolving:r("getOption",[x.b])}})),Object(g.withDispatch)((function(e){var t=e(w.OPTIONS_STORE_NAME).updateOptions;return{clearQueue:function(){t({woocommerce_clear_ces_tracks_queue_for_page:{pagenow:window.pagenow,adminpage:window.adminpage}})}}})))(U)},29:function(e,t){!function(){e.exports=this.wc.date}()},295:function(e,t,n){"use strict";n.r(t),function(e){var t=n(0),r=(n(470),n(22)),o=(n(297),n(141)),i=n(287);n.p=e.wcAdminAssets.path;var a,c=document.getElementById("root"),u=document.getElementById("woocommerce-embedded-root"),s=window.wcSettings.currentUserData;if(c){var l=Object(r.withSettingsHydration)("wc_admin",window.wcSettings)(o.b);window.wcSettings.preloadSettings&&window.wcSettings.preloadSettings.general&&(l=Object(r.withSettingsHydration)("general",{general:window.wcSettings.preloadSettings.general})(l)),s&&(l=Object(r.withCurrentUserHydration)(s)(l)),Object(t.render)(Object(t.createElement)(l,null),c)}else if(u){var f=Object(r.withSettingsHydration)("wc_admin",window.wcSettings)(o.a);s&&(f=Object(r.withCurrentUserHydration)(s)(f)),Object(t.render)(Object(t.createElement)(f,null),u),u.classList.remove("is-embed-loading");var d=document.getElementById("wpbody-content"),p=d.querySelector(".wrap.woocommerce")||d.querySelector('[class="wrap"]'),m=document.createElement("div");Object(t.render)(Object(t.createElement)("div",{className:"woocommerce-layout"},Object(t.createElement)(o.c,null)),d.insertBefore(m,p))}window.wcAdminFeatures&&!0===window.wcAdminFeatures["customer-effort-score-tracks"]&&(a=c||u,Object(t.render)(Object(t.createElement)(i.a,null),a.insertBefore(document.createElement("div"),null)))}.call(this,n(84))},297:function(e,t,n){},298:function(e,t,n){},299:function(e,t,n){},3:function(e,t){!function(){e.exports=this.lodash}()},30:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return s}));var r=n(4),o=r.Navigation||r.__experimentalNavigation,i=(r.NavigationBackButton||r.__experimentalNavigationBackButton,r.NavigationGroup||r.__experimentalNavigationGroup),a=r.NavigationMenu||r.__experimentalNavigationMenu,c=r.NavigationItem||r.__experimentalNavigationItem,u=r.Text||r.__experimentalText,s=r.useSlot||r.__experimentalUseSlot},300:function(e,t,n){},301:function(e,t,n){},302:function(e,t,n){},303:function(e,t,n){},304:function(e,t,n){},305:function(e,t,n){},306:function(e,t,n){var r=n(72);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}},307:function(e,t,n){},308:function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},31:function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},32:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},34:function(e,t,n){var r=n(97);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},36:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},37:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},38:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return o}))},4:function(e,t){!function(){e.exports=this.wp.components}()},40:function(e,t,n){var r=n(37);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},41:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},42:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},43:function(e,t){!function(){e.exports=this.wp.hooks}()},44:function(e,t){function n(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,u,"next",e)}function u(e){n(a,o,i,c,u,"throw",e)}c(void 0)}))}}},47:function(e,t){!function(){e.exports=this.wc.components}()},470:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"createNotice",(function(){return h})),n.d(r,"createSuccessNotice",(function(){return v})),n.d(r,"createInfoNotice",(function(){return b})),n.d(r,"createErrorNotice",(function(){return y})),n.d(r,"createWarningNotice",(function(){return g})),n.d(r,"removeNotice",(function(){return w}));var o={};n.r(o),n.d(o,"getNotices",(function(){return j}));var i=n(11),a=n(82),c=n(3),u=n(36);function s(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?s(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){return function(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,o=r[e];if(void 0===o)return n;var i=t(n[o],r);return i===n[o]?n:l({},n,Object(u.a)({},o,i))}}}("context")((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CREATE_NOTICE":return[].concat(Object(a.a)(Object(c.reject)(e,{id:t.notice.id})),[t.notice]);case"REMOVE_NOTICE":return Object(c.reject)(e,{id:t.id})}return e})),d=n(8),p=n.n(d),m=p.a.mark(h);function h(){var e,t,n,r,o,i,a,u,s,l,f,d,h,v,b,y,g=arguments;return p.a.wrap((function(p){for(;;)switch(p.prev=p.next){case 0:if(e=g.length>0&&void 0!==g[0]?g[0]:"info",t=g.length>1?g[1]:void 0,n=g.length>2&&void 0!==g[2]?g[2]:{},r=n.speak,o=void 0===r||r,i=n.isDismissible,a=void 0===i||i,u=n.context,s=void 0===u?"global":u,l=n.id,f=void 0===l?Object(c.uniqueId)(s):l,d=n.actions,h=void 0===d?[]:d,v=n.type,b=void 0===v?"default":v,y=n.__unstableHTML,t=String(t),!o){p.next=8;break}return p.next=8,{type:"SPEAK",message:t,ariaLive:"snackbar"===b?"polite":"assertive"};case 8:return p.next=10,{type:"CREATE_NOTICE",context:s,notice:{id:f,status:e,content:t,__unstableHTML:y,isDismissible:a,actions:h,type:b}};case 10:case"end":return p.stop()}}),m)}function v(e,t){return h("success",e,t)}function b(e,t){return h("info",e,t)}function y(e,t){return h("error",e,t)}function g(e,t){return h("warning",e,t)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return{type:"REMOVE_NOTICE",id:e,context:t}}var O=[];function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return e[t]||O}var E=n(140),_={SPEAK:function(e){Object(E.a)(e.message,e.ariaLive||"assertive")}};Object(i.registerStore)("core/notices",{reducer:f,actions:r,selectors:o,controls:_})},482:function(e,t){!function(){e.exports=this.wc.csvExport}()},49:function(e,t,n){"use strict";var r=n(90),o=n(91),i=n(52);e.exports={formats:i,parse:o,stringify:r}},498:function(e,t,n){"use strict";var r=n(0),o=n(67),i=Object(r.createElement)(o.b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.a,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=i},5:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},50:function(e,t){!function(){e.exports=this.ReactDOM}()},52:function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:a}},54:function(e,t,n){"use strict";function r(e){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e()}n.d(t,"a",(function(){return r}))},55:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(42);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},56:function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},57:function(e,t,n){var r=n(37);e.exports=function(e){if(Array.isArray(e))return r(e)}},58:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},59:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},6:function(e,t,n){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var a=n.apply(null,o);a&&e.push(a)}else if("object"===i)for(var c in o)t.call(o,c)&&o[c]&&e.push(c)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],(function(){return n})):window.classNames=n}()},60:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},61:function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}},62:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},67:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f}));var r=n(36),o=n(55),i=n(6),a=n.n(i),c=n(0);function u(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(e){return Object(c.createElement)("path",e)},f=function(e){var t=e.className,n=e.isPressed,r=s(s({},Object(o.a)(e,["className","isPressed"])),{},{className:a()(t,{"is-pressed":n})||void 0,role:"img","aria-hidden":!0,focusable:!1});return Object(c.createElement)("svg",r)}},68:function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=w(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l={};function f(){}function d(){}function p(){}var m={};m[o]=function(){return this};var h=Object.getPrototypeOf,v=h&&h(h(_([])));v&&v!==t&&n.call(v,o)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function _(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return d.prototype=b.constructor=p,p.constructor=d,d.displayName=c(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,c(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(g.prototype),g.prototype[i]=function(){return this},e.AsyncIterator=g,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new g(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),c(b,a,"Generator"),b[o]=function(){return this},b.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=_,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},69:function(e,t,n){"use strict";var r=n(52),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),c=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:c,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],c=Object.keys(a),u=0;u<c.length;++u){var s=c[u],l=a[s];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:s}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var c=e;if("symbol"==typeof e?c=Symbol.prototype.toString.call(e):"string"!=typeof e&&(c=String(e)),"iso-8859-1"===n)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",s=0;s<c.length;++s){var l=c.charCodeAt(s);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===r.RFC1738&&(40===l||41===l)?u+=c.charAt(s):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&c.charCodeAt(s)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=c(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},7:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},70:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},71:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"c",(function(){return j})),n.d(t,"b",(function(){return m})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return p}));var r=n(32);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],c=e&&o(e),u=t&&o(t),s=c||u;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var l=a[a.length-1];n="."===l||".."===l||""===l}else n=!1;for(var f=0,d=a.length;d>=0;d--){var p=a[d];"."===p?i(a,d):".."===p?(i(a,d),f++):f&&(i(a,d),f--)}if(!s)for(;f--;f)a.unshift("..");!s||""===a[0]||a[0]&&o(a[0])||a.unshift("");var m=a.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};function c(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=c(t),o=c(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},s=n(56);function l(e){return"/"===e.charAt(0)?e:"/"+e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(r.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function h(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var b=!("undefined"==typeof window||!window.document||!window.document.createElement);function y(e,t){t(window.confirm(e))}function g(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),b||Object(s.a)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,c=a.forceRefresh,u=void 0!==c&&c,h=a.getUserConfirmation,w=void 0===h?y:h,O=a.keyLength,j=void 0===O?6:O,E=e.basename?d(l(e.basename)):"";function _(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return E&&(i=f(i,E)),m(i,r,n)}function k(){return Math.random().toString(36).substr(2,j)}var x=v();function S(e){Object(r.a)(F,e),F.length=n.length,x.notifyListeners(F.location,F.action)}function C(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||T(_(e.state))}function P(){T(_(g()))}var A=!1;function T(e){if(A)A=!1,S();else{x.confirmTransitionTo(e,"POP",w,(function(t){t?S({action:"POP",location:e}):function(e){var t=F.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(A=!0,M(o))}(e)}))}}var N=_(g()),R=[N.key];function L(e){return E+p(e)}function M(e){n.go(e)}var I=0;function D(e){1===(I+=e)&&1===e?(window.addEventListener("popstate",C),i&&window.addEventListener("hashchange",P)):0===I&&(window.removeEventListener("popstate",C),i&&window.removeEventListener("hashchange",P))}var V=!1;var F={length:n.length,action:"POP",location:N,createHref:L,push:function(e,t){var r=m(e,t,k(),F.location);x.confirmTransitionTo(r,"PUSH",w,(function(e){if(e){var t=L(r),i=r.key,a=r.state;if(o)if(n.pushState({key:i,state:a},null,t),u)window.location.href=t;else{var c=R.indexOf(F.location.key),s=R.slice(0,c+1);s.push(r.key),R=s,S({action:"PUSH",location:r})}else window.location.href=t}}))},replace:function(e,t){var r=m(e,t,k(),F.location);x.confirmTransitionTo(r,"REPLACE",w,(function(e){if(e){var t=L(r),i=r.key,a=r.state;if(o)if(n.replaceState({key:i,state:a},null,t),u)window.location.replace(t);else{var c=R.indexOf(F.location.key);-1!==c&&(R[c]=r.key),S({action:"REPLACE",location:r})}else window.location.replace(t)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return V||(D(1),V=!0),function(){return V&&(V=!1,D(-1)),t()}},listen:function(e){var t=x.appendListener(e);return D(1),function(){D(-1),t()}}};return F}function O(e,t,n){return Math.min(Math.max(e,t),n)}function j(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,c=void 0===a?0:a,u=t.keyLength,s=void 0===u?6:u,l=v();function f(e){Object(r.a)(w,e),w.length=w.entries.length,l.notifyListeners(w.location,w.action)}function d(){return Math.random().toString(36).substr(2,s)}var h=O(c,0,i.length-1),b=i.map((function(e){return m(e,void 0,"string"==typeof e?d():e.key||d())})),y=p;function g(e){var t=O(w.index+e,0,w.entries.length-1),r=w.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var w={length:b.length,action:"POP",location:b[h],index:h,entries:b,createHref:y,push:function(e,t){var r=m(e,t,d(),w.location);l.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=m(e,t,d(),w.location);l.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))}))},go:g,goBack:function(){g(-1)},goForward:function(){g(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return w}},72:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},75:function(e,t){!function(){e.exports=this.wp.date}()},76:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r="wc/customer-effort-score",o="/wc-admin",i="woocommerce_ces_tracks_queue"},77:function(e,t,n){"use strict";var r=n(78);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},78:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8:function(e,t,n){e.exports=n(68)},82:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(70);var o=n(94);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},84:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},9:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},90:function(e,t,n){"use strict";var r=n(69),o=n(52),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,s=function(e,t){u.apply(e,c(t)?t:[t])},l=Date.prototype.toISOString,f=o.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,o,i,a,u,l,f,p,m,h,v,b,y){var g,w=t;if("function"==typeof l?w=l(n,w):w instanceof Date?w=m(w):"comma"===o&&c(w)&&(w=r.maybeMap(w,(function(e){return e instanceof Date?m(e):e}))),null===w){if(i)return u&&!b?u(n,d.encoder,y,"key",h):n;w=""}if("string"==typeof(g=w)||"number"==typeof g||"boolean"==typeof g||"symbol"==typeof g||"bigint"==typeof g||r.isBuffer(w))return u?[v(b?n:u(n,d.encoder,y,"key",h))+"="+v(u(w,d.encoder,y,"value",h))]:[v(n)+"="+v(String(w))];var O,j=[];if(void 0===w)return j;if("comma"===o&&c(w))O=[{value:w.length>0?w.join(",")||null:void 0}];else if(c(l))O=l;else{var E=Object.keys(w);O=f?E.sort(f):E}for(var _=0;_<O.length;++_){var k=O[_],x="object"==typeof k&&void 0!==k.value?k.value:w[k];if(!a||null!==x){var S=c(w)?"function"==typeof o?o(n,k):n:n+(p?"."+k:"["+k+"]");s(j,e(x,S,o,i,a,u,l,f,p,m,h,v,b,y))}}return j};e.exports=function(e,t){var n,r=e,u=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],a=d.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof u.filter?r=(0,u.filter)("",r):c(u.filter)&&(n=u.filter);var l,f=[];if("object"!=typeof r||null===r)return"";l=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[l];n||(n=Object.keys(r)),u.sort&&n.sort(u.sort);for(var h=0;h<n.length;++h){var v=n[h];u.skipNulls&&null===r[v]||s(f,p(r[v],v,m,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset))}var b=f.join(u.delimiter),y=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),b.length>0?y+b:""}},91:function(e,t,n){"use strict";var r=n(69),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(i),s=c?i.slice(0,c.index):i,l=[];if(s){if(!n.plainObjects&&o.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var f=0;n.depth>0&&null!==(c=a.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(c[1])}return c&&l.push("["+i.slice(c.index)+"]"),function(e,t,n,r){for(var o=r?t:u(t,n),i=e.length-1;i>=0;--i){var a,c=e[i];if("[]"===c&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=parseInt(s,10);n.parseArrays||""!==s?!isNaN(l)&&c!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=o:a[s]=o:a={0:o}}o=a}return o}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,s={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,f),p=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?m="utf-8":"utf8=%26%2310003%3B"===d[n]&&(m="iso-8859-1"),p=n,n=d.length);for(n=0;n<d.length;++n)if(n!==p){var h,v,b=d[n],y=b.indexOf("]="),g=-1===y?b.indexOf("="):y+1;-1===g?(h=t.decoder(b,a.decoder,m,"key"),v=t.strictNullHandling?null:""):(h=t.decoder(b.slice(0,g),a.decoder,m,"key"),v=r.maybeMap(u(b.slice(g+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===m&&(v=c(v)),b.indexOf("[]=")>-1&&(v=i(v)?[v]:v),o.call(s,h)?s[h]=r.combine(s[h],v):s[h]=v}return s}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(l),p=0;p<d.length;++p){var m=d[p],h=s(m,l[m],n,"string"==typeof e);f=r.merge(f,h,n)}return r.compact(f)}},94:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(70);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},95:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"f",(function(){return m}));var r=n(19),o=n.n(r),i=n(41),a=n(3),c=n(25);function u(e){return e?e.split(":")[0]:null}function s(e){var t=u(e);return Object(a.without)(Object(c.g)("onboarding",{euCountries:[]}).euCountries,"GB").includes(t)&&(t="EU"),t}function l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=d(e,t,n),o=r.map((function(e){return e.id||e.product}));return o}function f(e,t){var n={};n.products=d(e,!0,t),n.remainingProducts=d(e,!1,t);var r=o()(new Set([].concat(o()(n.products),o()(n.remainingProducts))));return n.uniqueItemsList=r.map((function(e){return e.label?{type:"extension",name:e.label}:{type:"theme",name:e.title}})),n}function d(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=Object(c.g)("onboarding",{}),o=[];if(!r.productTypes)return o;var i=e.product_types||[];i.forEach((function(e){r.productTypes[e]&&r.productTypes[e].product&&(t||!n.includes(r.productTypes[e].slug))&&o.push(r.productTypes[e])}));var a=r.themes.find((function(t){return t.slug===e.theme}));return a&&a.id&&p(a.price)>0&&(t||!a.is_installed)&&o.push(a),o}function p(e){return Number(Object(i.decodeEntities)(e).replace(/[^0-9.-]+/g,""))}function m(e){return/admin.php\?page=wc-admin/.test(e)}},97:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}}});
|
dist/app/style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.woocommerce-page .wrap{margin:0}.woocommerce-page #wpcontent,.woocommerce-page.woocommerce_page_wc-admin #wpbody-content{padding:0;overflow-x:hidden!important;min-height:calc(100vh - 32px)}@media(min-width:783px){.woocommerce-page #wpbody-content{padding-left:0}}@media(max-width:782px){.woocommerce-page .wp-responsive-open #woocommerce-embedded-root,.woocommerce-page .wp-responsive-open #wpbody{position:relative;right:-14.5em}.woocommerce-page #wpbody-content,.woocommerce-page #wpcontent{min-height:calc(100vh - 46px)}}@media(min-width:961px){.woocommerce-page #toplevel_page_wcadmin--analytics.menu-top>a:focus,.woocommerce-page #toplevel_page_woocommerce.menu-top>a:focus{padding-bottom:1px}}#wpbody,.woocommerce-layout *{box-sizing:border-box}#wpbody{display:inline-block;width:100%;padding-top:0;margin-top:60px}#wpfooter{display:none}.woocommerce_page_wc-admin .woocommerce-filters-date__content:not(.is-mobile){z-index:2}@media(max-width:600px){#wpadminbar{position:fixed}html.wp-toolbar{padding-top:46px}}@media(max-width:782px){.jetpack-masterbar #wpadminbar #wp-admin-bar-menu-toggle{margin-top:-10px}.jetpack-masterbar #wpwrap .woocommerce-layout__header-heading{padding-left:60px}.jetpack-masterbar.wp-admin .wrap h1,.jetpack-masterbar.wp-admin .wrap h2{padding-left:0}}.woocommerce-page .wp-has-current-submenu:after{right:0;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:8px solid transparent;border-right-color:#f1f1f1;top:0;margin-top:10px}@media(max-width:960px){.woocommerce-page .wp-has-current-submenu:after{border-width:4px;margin-top:14px}}:root{--large-gap:40px;--main-gap:24px}@media(max-width:960px){:root{--large-gap:24px}}@media(max-width:782px){:root{--large-gap:16px;--main-gap:16px}}@keyframes loading-fade{0%{opacity:.7}50%{opacity:1}to{opacity:.7}}.woocommerce-layout select:hover{color:#1e1e1e}.woocommerce-layout select.components-select-control__input{max-width:100%;line-height:1}body.woocommerce-page .components-button.is-primary:not(:disabled),body.woocommerce-page .components-snackbar .components-button.is-tertiary,body.woocommerce-page .components-snackbar .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#fff}.woocommerce-embed-page #wpbody .woocommerce-layout,.woocommerce-embed-page .woocommerce-layout__notice-list-hide+.wrap{padding-top:10px}.woocommerce-embed-page #wpbody-content,.woocommerce-embed-page #wpcontent{overflow-x:initial!important}.woocommerce-embed-page #wpbody-content{padding-top:0}.woocommerce-embed-page #wpbody-content .notice{margin-top:15px}.woocommerce-embed-page .wrap{padding:0 20px}@media(max-width:782px){.woocommerce-embed-page .wrap p.search-box{width:calc(100% - 40px)}}.woocommerce-embed-page .wrap .wrap{padding:0}.woocommerce-embed-page #screen-meta{border-right:0;margin:0}.woocommerce-embed-page #screen-meta-links{position:relative}.woocommerce-embed-page .notice{padding:1px 12px}.woocommerce-embed-page .woocommerce-layout__header.is-scrolled{box-shadow:0 8px 16px 0 rgba(85,93,102,.3)}.woocommerce-embed-page .woocommerce-layout__header .woocommerce-layout__header-heading{margin-top:0;margin-bottom:0}.woocommerce-embed-page #screen-meta-links.is-hidden-by-notices,.woocommerce-embed-page #screen-meta.is-hidden-by-notices{display:none!important}.woocommerce-embed-page .woocommerce-layout__primary{margin:0}@media(max-width:782px){.woocommerce-embed-page .woocommerce-layout__primary{padding-top:10px}}@keyframes isLoaded{0%{opacity:0}to{opacity:1}}.woocommerce-embed-page .woocommerce-layout__activity-panel-tabs{animation:isLoaded;animation-duration:2s}.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:10px;margin-bottom:16px}@media(max-width:600px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:80px;margin-bottom:-16px}}@media(min-width:601px)and (max-width:782px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:32px}}.woocommerce-embed-page .woocommerce-activity-card__actions a.components-button:not(.is-primary){color:#757575}.woocommerce-layout{margin:0;padding:0}.woocommerce-layout__primary{margin:var(--large-gap) 0 0 var(--large-gap)}@media(max-width:782px){.woocommerce-layout__primary{margin-top:20px}}.woocommerce-layout .woocommerce-layout__main{padding-right:40px;padding-right:var(--large-gap);max-width:100%}.woocommerce-admin-is-loading #adminmenumain,.woocommerce-admin-is-loading #wpadminbar,.woocommerce-admin-is-loading #wpbody-content,.woocommerce-admin-is-loading #wpcontent,.woocommerce-admin-is-loading #wpfooter,.woocommerce-admin-is-loading .components-modal__screen-overlay,.woocommerce-admin-is-loading .error,.woocommerce-admin-is-loading .notice,.woocommerce-admin-is-loading .update-nag,.woocommerce-admin-is-loading .updated,.woocommerce-admin-is-loading .woocommerce-layout__header,.woocommerce-admin-is-loading .woocommerce-message,.woocommerce-admin-is-loading .woocommerce-store-alerts,.woocommerce-page .update-nag{display:none}.woocommerce-admin-full-screen{background:#f6f7f7;color:#50575e;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.woocommerce-admin-full-screen #wpwrap{top:0}.woocommerce-admin-full-screen #wpbody-content{min-height:100vh!important}.woocommerce-admin-full-screen #adminmenumain,.woocommerce-admin-full-screen #wpcontent>*,.woocommerce-admin-full-screen .error,.woocommerce-admin-full-screen .notice,.woocommerce-admin-full-screen .update-nag,.woocommerce-admin-full-screen .updated,.woocommerce-admin-full-screen .woocommerce-layout__header,.woocommerce-admin-full-screen .woocommerce-message,.woocommerce-admin-full-screen .woocommerce-store-alerts{display:none}.woocommerce-admin-full-screen #wpcontent{margin-left:0!important}.woocommerce-admin-full-screen #wpcontent>#wpbody{display:block;margin-top:0!important}.woocommerce-admin-full-screen.has-woocommerce-navigation #wpbody{padding-left:0}.is-wp-toolbar-disabled #wpadminbar{display:none!important}.wp-toolbar .is-wp-toolbar-disabled{margin-top:-32px}@media(max-width:600px){.wp-toolbar .is-wp-toolbar-disabled{margin-top:-46px}}.woocommerce-onboarding .muriel-component{margin-top:16px;margin-bottom:16px}.woocommerce-onboarding .components-base-control.has-error{margin-bottom:32px!important;border-color:#d63638}@media(max-width:782px){.woocommerce-onboarding .components-base-control.has-error{margin-bottom:44px!important}}.woocommerce-onboarding .components-base-control.has-error .components-base-control__help{top:100%;left:12px;position:absolute;margin-top:4px;font-size:12px;font-style:normal;color:#d63638}.woocommerce-onboarding .components-form-toggle{display:inline-block}.woocommerce-onboarding .components-form-toggle label{font-size:14px}.woocommerce-onboarding .components-form-toggle .components-base-control{display:inline-block}.woocommerce-onboarding .components-form-toggle .components-base-control__field{margin-bottom:0}.woocommerce-page .components-modal__frame .components-button.is-button,.woocommerce-profile-wizard__body .components-button.is-button,.woocommerce-task-dashboard__container .components-button.is-button{height:48px;padding-left:25px;padding-right:25px;text-align:center;font-size:14px;line-height:36px;font-weight:500;align-items:center}.woocommerce-page .components-modal__frame .components-button.is-button:disabled,.woocommerce-profile-wizard__body .components-button.is-button:disabled,.woocommerce-task-dashboard__container .components-button.is-button:disabled{cursor:not-allowed}.components-modal__header .components-button svg+span{display:none}.components-modal__frame.woocommerce-usage-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-usage-modal .components-modal__header{border-bottom:0;margin-bottom:0}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper{flex-grow:1;display:flex;flex-direction:column}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper a{color:#50575e}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper button.is-primary{align-self:flex-end}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions{display:flex;justify-content:flex-end;margin-top:16px}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions button{margin-left:16px}.woocommerce-payments__usage-modal .components-modal__header{height:auto;padding:24px 24px 0}.woocommerce-payments__usage-modal .components-modal__header .components-modal__header-heading{font-size:24px;line-height:32px;margin:0 0 24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-modal-message{padding:16px 0;font-size:16px;line-height:24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer{display:flex;justify-content:flex-end;padding:16px 0}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer button{margin-left:16px}.components-modal__frame.woocommerce-cart-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-cart-modal .components-modal__header{border-bottom:0;margin-bottom:16px;margin-top:16px}.components-modal__frame.woocommerce-cart-modal .components-modal__header button{display:none}.components-modal__frame.woocommerce-cart-modal .components-modal__header-heading{font-style:normal;font-weight:400;font-size:24px;line-height:32px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list{margin-top:4px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list .woocommerce-list__item:first-child{border-top:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-list__item{border-bottom:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__help-text{font-size:16px;line-height:24px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions{text-align:right}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-link{margin-right:16px;text-decoration:none;font-weight:600;font-size:14px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-primary{align-self:flex-end}.woocommerce-layout__header{background:#fff;box-sizing:border-box;padding:0;position:fixed;width:calc(100% - 160px);top:32px;z-index:1001}.woocommerce-layout__header.is-scrolled{box-shadow:0 8px 8px 0 rgba(85,93,102,.3)}.woocommerce-layout__header .woocommerce-layout__header-wrapper{display:flex;align-items:center;min-height:60px}.woocommerce-layout__header .woocommerce-layout__header-back-button{cursor:pointer;margin-left:var(--large-gap);display:flex}.woocommerce-layout__header .woocommerce-layout__header-back-button:focus{box-shadow:inset -1px -1px 0 #757575,inset 1px 1px 0 #757575}@media(max-width:782px){.woocommerce-layout__header{flex-flow:row wrap;top:46px;width:100%}}@media(min-width:783px)and (max-width:960px){.woocommerce-layout__header{width:calc(100% - 36px)}}.woocommerce-layout__header .woocommerce-layout__header-breadcrumbs-wrapper{display:flex;justify-content:space-between;flex-direction:row}.woocommerce-layout__header .woocommerce-layout__header-heading{display:flex;align-items:center;padding:0 0 0 40px;padding:0 0 0 var(--large-gap);flex:1 auto;height:60px;background:#fff;font-weight:600;font-size:14px}.woocommerce-layout__header .woocommerce-layout__header-heading.with-back-button{padding-left:24px}.folded .woocommerce-layout__header{width:calc(100% - 36px)}@media(max-width:782px){.folded .woocommerce-layout__header{width:100%}}.is-wp-toolbar-disabled .woocommerce-layout__header{top:0}.has-woocommerce-navigation .woocommerce-layout__header{left:0;width:100%}.woocommerce-page #contextual-help-link-wrap,.woocommerce-page #screen-options-link-wrap{margin-top:-1px}.wp-responsive-open .woocommerce-layout__header{margin-left:2px}.woocommerce-layout__activity-panel{display:flex;flex-direction:row;align-items:center;height:60px}.woocommerce-layout__activity-panel-tabs{width:100%;display:flex;height:60px;justify-content:flex-end}.woocommerce-layout__activity-panel-tabs .dashicon,.woocommerce-layout__activity-panel-tabs .gridicon{width:100%}.woocommerce-layout__activity-panel-tabs svg{width:24px;height:24px}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon{fill:none}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon path,.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon rect{stroke:currentColor}.woocommerce-layout__activity-panel-tabs svg.setup-progress path:first-child{stroke:"#DCDCDE"}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__homescreen-display-options svg.woocommerce-layout__activity-panel-tab-icon{height:14px}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__homescreen-extension-tasklist-toggle{min-width:205px}.woocommerce-layout__activity-panel-tabs .components-icon-button{display:initial;text-indent:0;border-radius:0}.woocommerce-layout__activity-panel-tabs .components-icon-button.has-text svg{margin:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;border:none;outline:none;cursor:pointer;background-color:#fff;max-width:min-content;min-width:80px;width:100%;height:60px;color:#757575;white-space:nowrap}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:before{background-color:#007cba;background-color:var(--wp-admin-theme-color);bottom:0;content:"";height:0;opacity:0;transition-property:height,opacity;transition-duration:.3s;transition-timing-function:ease-in-out;left:0;position:absolute;right:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened{color:#1e1e1e;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active:before,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened:before{height:3px;opacity:1}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{content:" ";position:absolute;padding:1px;background:#d94f4f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:8px;left:50%}@media(min-width:783px)and (max-width:960px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{right:18px;left:auto;margin-left:0}}@media(min-width:961px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{right:28px;left:auto;margin-left:0}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover{background-color:#f0f0f0;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after{border-color:#e0e0e0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):focus,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:focus{box-shadow:inset -1px -1px 0 #757575,inset 1px 1px 0 #757575}@media(max-width:782px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.display-options{display:none}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover{margin-top:0;z-index:1001}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover .components-menu-group{padding:12px}.woocommerce-layout__activity-panel-toggle-bubble.has-unread:after{content:" ";position:absolute;padding:1px;background:#ca4a1f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:6px;right:4px}@keyframes tabSwitch{0%,to{transform:translateX(0)}50%{transform:translateX(100px)}}.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 106px);background:#f0f0f0;width:430px;transform:translateX(100%);transition-property:transform box-shadow;transition-duration:.3s;transition-timing-function:ease-in-out;position:fixed;right:0;top:106px;z-index:1000;overflow-x:hidden;overflow-y:auto}@media(max-width:782px){.woocommerce-layout__activity-panel-wrapper{width:100%}}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper{transition-duration:1ms}}@media(min-width:783px){.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 92px);top:92px}}.has-woocommerce-navigation .woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 60px);top:60px}.woocommerce-layout__activity-panel-wrapper.is-open{transform:none;box-shadow:0 12px 12px 0 rgba(85,93,102,.3)}.woocommerce-layout__activity-panel-wrapper.is-switching{animation:tabSwitch;animation-duration:.3s}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper.is-switching{animation:none}}.woocommerce-layout__activity-panel-wrapper .woocommerce-empty-content{padding-left:24px;padding-right:24px}.woocommerce-layout__activity-panel-avatar-flag-overlay{position:relative;top:-12px}.woocommerce-layout__activity-panel-avatar-flag-overlay .woocommerce-flag{position:relative;top:16px;border:2px solid #fff}.woocommerce-layout__notice-list-hide{display:none}.highlight-tooltip__container{position:absolute;width:0;height:0}.highlight-tooltip__container.highlight-tooltip__show{top:0;left:0;width:100%;height:100%}.highlight-tooltip__portal{width:100%;height:100%;position:relative}.highlight-tooltip__portal .highlight-tooltip__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.35);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media(prefers-reduced-motion:reduce){.highlight-tooltip__portal .highlight-tooltip__overlay{animation-duration:1ms}}.highlight-tooltip__popover .components-card{min-width:360px}.highlight-tooltip__popover .components-card__header{font-size:16px;font-size:1rem;font-weight:600;box-sizing:border-box}.highlight-tooltip__popover .components-card__footer{justify-content:flex-end;box-sizing:border-box}.woocommerce-layout__show-app-banner{padding-top:56px}@media(min-width:783px){.woocommerce-layout__show-app-banner{padding-top:0}}.woocommerce-mobile-app-banner{background-color:#3c2861;width:100%;display:flex;height:56px;align-items:center;padding:0 6px 0 4px}@media(min-width:401px){.woocommerce-mobile-app-banner{padding:0 13px 0 10px}}@media(min-width:783px){.woocommerce-mobile-app-banner{display:none}}.woocommerce-mobile-app-banner .gridicon{fill:#fff;margin-right:10px}.woocommerce-mobile-app-banner .components-button.is-secondary{margin-left:auto;color:#fff;box-shadow:inset 0 0 0 1px #fff}.woocommerce-mobile-app-banner .components-button.is-secondary:active,.woocommerce-mobile-app-banner .components-button.is-secondary:hover{color:#fff;box-shadow:inset 0 0 0 1px #fff;background:none}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{color:#fff;margin-left:8px}@media(min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{margin-left:13px}}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin:0;font-size:10px}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text:first-child{font-weight:700}@media(min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin-left:13px;font-size:13px}}.woocommerce-navigation{display:grid;grid-template-rows:min-content 1fr;height:100%}.woocommerce-navigation h2>span{width:100%}.woocommerce-navigation .components-navigation__menu{overflow-y:auto;margin-bottom:0;padding-bottom:24px}.woocommerce-navigation .components-navigation__group+.components-navigation__group{margin-top:24px}.woocommerce-navigation .components-navigation__item{margin-bottom:0}.woocommerce-navigation .components-navigation__item a.components-button{padding:6px 16px}.woocommerce-navigation .components-navigation__item:not(:hover) a.components-button{color:#949494}.woocommerce-navigation .components-navigation__item.is-active a.components-button{color:#fff}.woocommerce-navigation .components-navigation{height:100%}.woocommerce-navigation .components-navigation>div{height:100%;display:grid;grid-template-rows:1fr min-content}.woocommerce-navigation.is-root .components-navigation__menu-secondary{border-top:1px solid #2c3338;margin:0 -8px;padding:16px 8px 12px}.woocommerce-navigation-header{display:flex;align-items:center;border:none;border-radius:0;height:auto}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button{padding:12px;height:60px;color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:hover,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:not([aria-disabled=true]):active{color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button{padding-left:0;color:#ccc;font-weight:600}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:active,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:hover{color:#e0e0e0}.woocommerce-navigation{position:relative;width:240px;box-sizing:border-box;background-color:#1e1e1e;z-index:1100}@media(max-width:960px){.woocommerce-navigation{width:60px;height:60px}}.woocommerce-navigation .components-navigation{box-sizing:border-box}.woocommerce-navigation .components-navigation__menu-title{overflow:visible}.woocommerce-navigation__wrapper{background-color:#1e1e1e;position:absolute;top:60px;width:100%;height:calc(100vh - 92px);overflow-y:auto}.is-wp-toolbar-disabled .woocommerce-navigation__wrapper{height:calc(100vh - 60px)}body.is-wc-nav-expanded .woocommerce-navigation{width:240px;height:100%}body.is-wc-nav-expanded font>.xdebug-error{margin-left:256px}body.is-wc-nav-folded .woocommerce-navigation{width:60px;height:60px;overflow:hidden}body.is-wc-nav-folded .woocommerce-navigation .woocommerce-navigation-header>*{display:none}body.is-wc-nav-folded .woocommerce-navigation .woocommerce-navigation-header__site-icon{display:block}body.is-wc-nav-folded .woocommerce-navigation .components-navigation{display:none}body.is-wc-nav-folded .woocommerce-transient-notices{left:16px}body.is-wc-nav-folded #wpbody{padding-left:0}.has-woocommerce-navigation #adminmenuback,.has-woocommerce-navigation #adminmenuwrap{display:none!important}.has-woocommerce-navigation.woocommerce_page_wc-reports .woo-nav-tab-wrapper,.has-woocommerce-navigation.woocommerce_page_wc-settings .woo-nav-tab-wrapper,.has-woocommerce-navigation.woocommerce_page_wc-status .woo-nav-tab-wrapper{display:none}.has-woocommerce-navigation.woocommerce_page_wc-reports .woocommerce .subsubsub,.has-woocommerce-navigation.woocommerce_page_wc-settings .woocommerce .subsubsub,.has-woocommerce-navigation.woocommerce_page_wc-status .woocommerce .subsubsub{font-size:14px;margin:5px 0}.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-left:0}@media(max-width:960px){.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-left:0}}.has-woocommerce-navigation #wpbody{padding-left:240px}@media(max-width:960px){.has-woocommerce-navigation #wpbody{padding-left:0}}.has-woocommerce-navigation .woocommerce-layout__header.is-embed-loading:before{content:"";position:fixed;width:240px;height:100%;background:#1e1e1e}@media(max-width:960px){.has-woocommerce-navigation .woocommerce-layout__header.is-embed-loading:before{width:60px;height:60px}}.has-woocommerce-navigation #woocommerce-embedded-root.is-embed-loading{margin-bottom:-32px}.has-woocommerce-navigation:not(.is-wp-toolbar-disabled) #wpbody-content{margin-top:32px}.has-woocommerce-navigation font>.xdebug-error{margin-top:60px}.woocommerce-navigation-category-title{display:flex;align-items:center;font-size:20px;line-height:28px}.woocommerce-navigation-category-title .woocommerce-navigation-favorite-button{margin-left:auto}.woocommerce-navigation-favorite-button.components-button .star-empty-icon{color:#949494}.woocommerce-navigation-favorite-button.components-button .star-filled-icon{color:#ffb900}.woocommerce-transient-notices{position:fixed;bottom:12px;left:176px;z-index:99999;width:auto}@media(max-width:960px){.woocommerce-transient-notices{left:50px}}@media(max-width:782px){.woocommerce-transient-notices{left:16px}}.woocommerce-profile-wizard__body .woocommerce-transient-notices{left:unset}.woocommerce-profile-wizard__body .woocommerce-transient-notices .components-snackbar{margin-left:auto;margin-right:auto}.has-woocommerce-navigation .woocommerce-transient-notices{left:256px}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{margin-left:32px}.components-snackbar .components-snackbar__icon{position:absolute;top:24px;left:26px}.components-snackbar .components-snackbar__dismiss-button{margin-left:32px;cursor:pointer}:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922}.woocommerce-embedded-layout__primary{padding:0 20px}.woocommerce-embedded-layout__primary .components-card__footer,.woocommerce-embedded-layout__primary .components-card__header{box-sizing:border-box}@media(max-width:782px){.woocommerce-embedded-layout__primary{padding:0}}
|
1 |
+
.woocommerce-page .wrap{margin:0}.woocommerce-page #wpcontent,.woocommerce-page.woocommerce_page_wc-admin #wpbody-content{padding:0;overflow-x:hidden!important;min-height:calc(100vh - 32px)}@media (min-width:783px){.woocommerce-page #wpbody-content{padding-left:0}}@media (max-width:782px){.woocommerce-page .wp-responsive-open #woocommerce-embedded-root,.woocommerce-page .wp-responsive-open #wpbody{position:relative;right:-14.5em}.woocommerce-page #wpbody-content,.woocommerce-page #wpcontent{min-height:calc(100vh - 46px)}}@media (min-width:961px){.woocommerce-page #toplevel_page_wcadmin--analytics.menu-top>a:focus,.woocommerce-page #toplevel_page_woocommerce.menu-top>a:focus{padding-bottom:1px}}#wpbody,.woocommerce-layout *{box-sizing:border-box}#wpbody{display:inline-block;width:100%;padding-top:0;margin-top:60px}#wpfooter{display:none}.woocommerce_page_wc-admin .woocommerce-filters-date__content:not(.is-mobile){z-index:2}@media (max-width:600px){#wpadminbar{position:fixed}html.wp-toolbar{padding-top:46px}}@media (max-width:782px){.jetpack-masterbar #wpadminbar #wp-admin-bar-menu-toggle{margin-top:-10px}.jetpack-masterbar #wpwrap .woocommerce-layout__header-heading{padding-left:60px}.jetpack-masterbar.wp-admin .wrap h1,.jetpack-masterbar.wp-admin .wrap h2{padding-left:0}}.woocommerce-page .wp-has-current-submenu:after{right:0;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:8px solid transparent;border-right-color:#f1f1f1;top:0;margin-top:10px}@media (max-width:960px){.woocommerce-page .wp-has-current-submenu:after{border-width:4px;margin-top:14px}}:root{--large-gap:40px;--main-gap:24px}@media (max-width:960px){:root{--large-gap:24px}}@media (max-width:782px){:root{--large-gap:16px;--main-gap:16px}}@keyframes loading-fade{0%{opacity:.7}50%{opacity:1}to{opacity:.7}}.woocommerce-layout select:hover{color:#1e1e1e}.woocommerce-layout select.components-select-control__input{max-width:100%;line-height:1}body.woocommerce-page .components-button.is-primary:not(:disabled),body.woocommerce-page .components-snackbar .components-button.is-tertiary,body.woocommerce-page .components-snackbar .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#fff}.woocommerce-embed-page #wpbody .woocommerce-layout,.woocommerce-embed-page .woocommerce-layout__notice-list-hide+.wrap{padding-top:10px}.woocommerce-embed-page #wpbody-content,.woocommerce-embed-page #wpcontent{overflow-x:initial!important}.woocommerce-embed-page #wpbody-content{padding-top:0}.woocommerce-embed-page #wpbody-content .notice{margin-top:15px}.woocommerce-embed-page .wrap{padding:0 20px}@media (max-width:782px){.woocommerce-embed-page .wrap p.search-box{width:calc(100% - 40px)}}.woocommerce-embed-page .wrap .wrap{padding:0}.woocommerce-embed-page #screen-meta{border-right:0;margin:0}.woocommerce-embed-page #screen-meta-links{position:relative}.woocommerce-embed-page .notice{padding:1px 12px}.woocommerce-embed-page .woocommerce-layout__header.is-scrolled{box-shadow:0 8px 16px 0 rgba(85,93,102,.3)}.woocommerce-embed-page .woocommerce-layout__header .woocommerce-layout__header-heading{margin-top:0;margin-bottom:0}.woocommerce-embed-page #screen-meta-links.is-hidden-by-notices,.woocommerce-embed-page #screen-meta.is-hidden-by-notices{display:none!important}.woocommerce-embed-page .woocommerce-layout__primary{margin:0}@media (max-width:782px){.woocommerce-embed-page .woocommerce-layout__primary{padding-top:10px}}@keyframes isLoaded{0%{opacity:0}to{opacity:1}}.woocommerce-embed-page .woocommerce-layout__activity-panel-tabs{animation:isLoaded;animation-duration:2s}.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:10px;margin-bottom:16px}@media (max-width:600px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:80px;margin-bottom:-16px}}@media (min-width:601px) and (max-width:782px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:32px}}.woocommerce-embed-page .woocommerce-activity-card__actions a.components-button:not(.is-primary){color:#757575}.woocommerce-layout{margin:0;padding:0}.woocommerce-layout__primary{margin:var(--large-gap) 0 0 var(--large-gap)}@media (max-width:782px){.woocommerce-layout__primary{margin-top:20px}}.woocommerce-layout .woocommerce-layout__main{padding-right:40px;padding-right:var(--large-gap);max-width:100%}.woocommerce-admin-is-loading #adminmenumain,.woocommerce-admin-is-loading #wpadminbar,.woocommerce-admin-is-loading #wpbody-content,.woocommerce-admin-is-loading #wpcontent,.woocommerce-admin-is-loading #wpfooter,.woocommerce-admin-is-loading .components-modal__screen-overlay,.woocommerce-admin-is-loading .error,.woocommerce-admin-is-loading .notice,.woocommerce-admin-is-loading .update-nag,.woocommerce-admin-is-loading .updated,.woocommerce-admin-is-loading .woocommerce-layout__header,.woocommerce-admin-is-loading .woocommerce-message,.woocommerce-admin-is-loading .woocommerce-store-alerts,.woocommerce-page .update-nag{display:none}.woocommerce-admin-full-screen{background:#f6f7f7;color:#50575e;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.woocommerce-admin-full-screen #wpwrap{top:0}.woocommerce-admin-full-screen #wpbody-content{min-height:100vh}.woocommerce-admin-full-screen #adminmenumain,.woocommerce-admin-full-screen #wpcontent>*,.woocommerce-admin-full-screen .error,.woocommerce-admin-full-screen .notice,.woocommerce-admin-full-screen .update-nag,.woocommerce-admin-full-screen .updated,.woocommerce-admin-full-screen .woocommerce-layout__header,.woocommerce-admin-full-screen .woocommerce-message,.woocommerce-admin-full-screen .woocommerce-store-alerts{display:none}.woocommerce-admin-full-screen #wpcontent{margin-left:0!important}.woocommerce-admin-full-screen #wpcontent>#wpbody{display:block;margin-top:0!important}.woocommerce-admin-full-screen.has-woocommerce-navigation #wpbody{padding-left:0}.is-wp-toolbar-disabled #wpadminbar{display:none!important}.wp-toolbar .is-wp-toolbar-disabled{margin-top:-32px}@media (max-width:600px){.wp-toolbar .is-wp-toolbar-disabled{margin-top:-46px}}.woocommerce-onboarding .muriel-component{margin-top:16px;margin-bottom:16px}.woocommerce-onboarding .components-base-control.has-error{margin-bottom:32px!important;border-color:#d63638}@media (max-width:782px){.woocommerce-onboarding .components-base-control.has-error{margin-bottom:44px!important}}.woocommerce-onboarding .components-base-control.has-error .components-base-control__help{top:100%;left:12px;position:absolute;margin-top:4px;font-size:12px;font-style:normal;color:#d63638}.woocommerce-onboarding .components-form-toggle{display:inline-block}.woocommerce-onboarding .components-form-toggle label{font-size:14px}.woocommerce-onboarding .components-form-toggle .components-base-control{display:inline-block}.woocommerce-onboarding .components-form-toggle .components-base-control__field{margin-bottom:0}.woocommerce-page .components-modal__frame .components-button.is-button,.woocommerce-profile-wizard__body .components-button.is-button,.woocommerce-task-dashboard__container .components-button.is-button{height:48px;padding-left:25px;padding-right:25px;text-align:center;font-size:14px;line-height:36px;font-weight:500;align-items:center}.woocommerce-page .components-modal__frame .components-button.is-button:disabled,.woocommerce-profile-wizard__body .components-button.is-button:disabled,.woocommerce-task-dashboard__container .components-button.is-button:disabled{cursor:not-allowed}.components-modal__header .components-button svg+span{display:none}.components-modal__frame.woocommerce-usage-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-usage-modal .components-modal__header{border-bottom:0;margin-bottom:0}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper{flex-grow:1;display:flex;flex-direction:column}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper a{color:#50575e}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper button.is-primary{align-self:flex-end}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions{display:flex;justify-content:flex-end;margin-top:16px}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions button{margin-left:16px}.woocommerce-payments__usage-modal .components-modal__header{height:auto;padding:24px 24px 0}.woocommerce-payments__usage-modal .components-modal__header .components-modal__header-heading{font-size:24px;line-height:32px;margin:0 0 24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-modal-message{padding:16px 0;font-size:16px;line-height:24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer{display:flex;justify-content:flex-end;padding:16px 0}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer button{margin-left:16px}.components-modal__frame.woocommerce-cart-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-cart-modal .components-modal__header{border-bottom:0;margin-bottom:16px;margin-top:16px}.components-modal__frame.woocommerce-cart-modal .components-modal__header button{display:none}.components-modal__frame.woocommerce-cart-modal .components-modal__header-heading{font-style:normal;font-weight:400;font-size:24px;line-height:32px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list{margin-top:4px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list .woocommerce-list__item:first-child{border-top:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-list__item{border-bottom:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__help-text{font-size:16px;line-height:24px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions{text-align:right}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-link{margin-right:16px;text-decoration:none;font-weight:600;font-size:14px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-primary{align-self:flex-end}.woocommerce-layout__header{background:#fff;box-sizing:border-box;padding:0;position:fixed;width:calc(100% - 160px);top:32px;z-index:1001}.woocommerce-layout__header.is-scrolled{box-shadow:0 8px 8px 0 rgba(85,93,102,.3)}.woocommerce-layout__header .woocommerce-layout__header-wrapper{display:flex;align-items:center;min-height:60px}@media (max-width:782px){.woocommerce-layout__header{flex-flow:row wrap;top:46px;width:100%}}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__header{width:calc(100% - 36px)}}.woocommerce-layout__header .woocommerce-layout__header-breadcrumbs-wrapper{display:flex;justify-content:space-between;flex-direction:row}.woocommerce-layout__header .woocommerce-layout__header-heading{display:flex;align-items:center;padding:0 0 0 40px;padding:0 0 0 var(--large-gap);flex:1 auto;height:60px;background:#fff;font-weight:600;font-size:14px;text-transform:capitalize}.is-wp-toolbar-disabled .woocommerce-layout__header{top:0}.has-woocommerce-navigation .woocommerce-layout__header{left:0;width:100%}.woocommerce-page #contextual-help-link-wrap,.woocommerce-page #screen-options-link-wrap{margin-top:-1px}.wp-responsive-open .woocommerce-layout__header{margin-left:2px}.woocommerce-layout__activity-panel{display:flex;flex-direction:row;align-items:center;height:60px}@media (max-width:782px){.woocommerce-layout__activity-panel{position:absolute;top:100%;background:#fff;margin:0;padding:0;width:100vw;display:none;flex:1 100%;right:0}}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__activity-panel{max-width:280px}}@media (min-width:1281px){.woocommerce-layout__activity-panel{max-width:400px}}.woocommerce-layout__activity-panel.is-mobile-open{display:flex}.woocommerce-layout__activity-panel-tabs{width:100%;display:flex;height:60px;justify-content:flex-end}.woocommerce-layout__activity-panel-tabs .dashicon,.woocommerce-layout__activity-panel-tabs .gridicon{width:100%}.woocommerce-layout__activity-panel-tabs svg{width:24px;height:24px}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon{fill:none}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon path,.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon rect{stroke:currentColor}.woocommerce-layout__activity-panel-tabs svg.setup-progress path:first-child{stroke:"#DCDCDE"}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__homescreen-display-options svg.woocommerce-layout__activity-panel-tab-icon{height:14px}.woocommerce-layout__activity-panel-tabs .components-icon-button{display:initial;text-indent:0;border-radius:0}.woocommerce-layout__activity-panel-tabs .components-icon-button.has-text svg{margin:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;border:none;outline:none;cursor:pointer;background-color:#fff;max-width:-webkit-min-content;max-width:min-content;min-width:80px;width:100%;height:60px;color:#757575;white-space:nowrap}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:before{background-color:#007cba;background-color:var(--wp-admin-theme-color);bottom:0;content:"";height:0;opacity:0;transition-property:height,opacity;transition-duration:.3s;transition-timing-function:ease-in-out;left:0;position:absolute;right:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened{color:#1e1e1e;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active:before,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened:before{height:3px;opacity:1}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{content:" ";position:absolute;padding:1px;background:#d94f4f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:8px;left:50%}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{right:18px;left:auto;margin-left:0}}@media (min-width:961px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{right:28px;left:auto;margin-left:0}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover{background-color:#f0f0f0;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after{border-color:#e0e0e0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):focus,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:focus{box-shadow:inset -1px -1px 0 #757575,inset 1px 1px 0 #757575}@media (max-width:782px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.display-options{display:none}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover{margin-top:0;z-index:1001}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover .components-menu-group{padding:12px}.woocommerce-layout__activity-panel-mobile-toggle.components-button{margin-right:10px;max-width:48px}@media (min-width:783px){.woocommerce-layout__activity-panel-mobile-toggle.components-button{display:none;height:100%}}.wp-responsive-open .woocommerce-layout__activity-panel-mobile-toggle{display:none}.woocommerce-layout__activity-panel-toggle-bubble.has-unread:after{content:" ";position:absolute;padding:1px;background:#ca4a1f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:6px;right:4px}@keyframes tabSwitch{0%,to{transform:translateX(0)}50%{transform:translateX(100px)}}.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 166px);background:#f0f0f0;width:510px;transform:translateX(100%);transition-property:transform box-shadow;transition-duration:.3s;transition-timing-function:ease-in-out;position:fixed;right:0;top:166px;z-index:1000;overflow-x:hidden;overflow-y:auto}@media (max-width:782px){.woocommerce-layout__activity-panel-wrapper{width:100%}}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper{transition-duration:1ms}}@media (min-width:783px){.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 92px);top:92px}}.has-woocommerce-navigation .woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 120px);top:120px}@media (min-width:783px){.has-woocommerce-navigation .woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 60px);top:60px}}.woocommerce-layout__activity-panel-wrapper.is-open{transform:none;box-shadow:0 12px 12px 0 rgba(85,93,102,.3)}.woocommerce-layout__activity-panel-wrapper.is-switching{animation:tabSwitch;animation-duration:.3s}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper.is-switching{animation:none}}.woocommerce-layout__activity-panel-wrapper .woocommerce-empty-content{padding-left:24px;padding-right:24px}.woocommerce-layout__activity-panel-avatar-flag-overlay{position:relative;top:-12px}.woocommerce-layout__activity-panel-avatar-flag-overlay .woocommerce-flag{position:relative;top:16px;border:2px solid #fff}.woocommerce-layout__notice-list-hide{display:none}.highlight-tooltip__container{position:absolute;width:0;height:0}.highlight-tooltip__container.highlight-tooltip__show{top:0;left:0;width:100%;height:100%}.highlight-tooltip__portal{width:100%;height:100%;position:relative}.highlight-tooltip__portal .highlight-tooltip__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.35);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.highlight-tooltip__portal .highlight-tooltip__overlay{animation-duration:1ms}}.highlight-tooltip__popover .components-card{min-width:360px}.highlight-tooltip__popover .components-card__header{font-size:16px;font-size:1rem;font-weight:600;height:60px}.highlight-tooltip__popover .components-card__footer{justify-content:flex-end}.woocommerce-layout__show-app-banner{padding-top:56px}@media (min-width:783px){.woocommerce-layout__show-app-banner{padding-top:0}}.woocommerce-mobile-app-banner{background-color:#3c2861;width:100%;display:flex;height:56px;align-items:center;padding:0 6px 0 4px}@media (min-width:401px){.woocommerce-mobile-app-banner{padding:0 13px 0 10px}}@media (min-width:783px){.woocommerce-mobile-app-banner{display:none}}.woocommerce-mobile-app-banner .dashicon{fill:#fff;margin-right:10px}.woocommerce-mobile-app-banner .components-button.is-secondary{margin-left:auto;color:#fff;box-shadow:inset 0 0 0 1px #fff}.woocommerce-mobile-app-banner .components-button.is-secondary:active,.woocommerce-mobile-app-banner .components-button.is-secondary:hover{color:#fff;box-shadow:inset 0 0 0 1px #fff;background:none}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{color:#fff;margin-left:8px}@media (min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{margin-left:13px}}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin:0;font-size:10px}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text:first-child{font-weight:700}@media (min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin-left:13px;font-size:13px}}.woocommerce-navigation{display:-ms-grid;display:grid;-ms-grid-rows:-webkit-min-content 1fr;-ms-grid-rows:min-content 1fr;grid-template-rows:-webkit-min-content 1fr;grid-template-rows:min-content 1fr;height:100%}.woocommerce-navigation h2>span{width:100%}.woocommerce-navigation .components-navigation__menu{overflow-y:auto;margin-bottom:0;padding-bottom:24px}.woocommerce-navigation .components-navigation__group+.components-navigation__group{margin-top:24px}.woocommerce-navigation .components-navigation__item{margin-bottom:0}.woocommerce-navigation .components-navigation__item a.components-button{padding:6px 16px}.woocommerce-navigation .components-navigation__item:not(:hover) a.components-button{color:#949494}.woocommerce-navigation .components-navigation__item.is-active a.components-button{color:#fff}.woocommerce-navigation .components-navigation{height:100%}.woocommerce-navigation .components-navigation>div{height:100%;display:-ms-grid;display:grid;-ms-grid-rows:1fr -webkit-min-content;-ms-grid-rows:1fr min-content;grid-template-rows:1fr -webkit-min-content;grid-template-rows:1fr min-content}.woocommerce-navigation.is-root .components-navigation__menu-secondary{border-top:1px solid #2c3338;margin:0 -8px;padding:16px 8px 12px}.woocommerce-navigation-header{display:flex;align-items:center;border:none;border-radius:0;height:auto}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button{padding:12px;height:60px;color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:hover,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:not([aria-disabled=true]):active{color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button{padding-left:0;color:#ccc;font-weight:600}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:active,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:hover{color:#e0e0e0}.woocommerce-navigation{position:relative;width:240px;box-sizing:border-box;background-color:#1e1e1e;z-index:1100}@media (max-width:960px){.woocommerce-navigation{width:60px;height:60px}}.woocommerce-navigation .components-navigation{box-sizing:border-box}.woocommerce-navigation__wrapper{background-color:#1e1e1e;position:absolute;top:60px;width:100%;height:calc(100vh - 92px);overflow-y:auto}.is-wp-toolbar-disabled .woocommerce-navigation__wrapper{height:calc(100vh - 60px)}body.is-wc-nav-expanded .woocommerce-navigation{width:240px;height:100%}body.is-wc-nav-folded .woocommerce-navigation{width:60px;height:60px;overflow:hidden}body.is-wc-nav-folded .woocommerce-navigation .woocommerce-navigation-header>*{display:none}body.is-wc-nav-folded .woocommerce-navigation .woocommerce-navigation-header__site-icon{display:block}body.is-wc-nav-folded .woocommerce-navigation .components-navigation{display:none}body.is-wc-nav-folded .woocommerce-transient-notices{left:16px}body.is-wc-nav-folded #wpbody{padding-left:0}.has-woocommerce-navigation #adminmenuback,.has-woocommerce-navigation #adminmenuwrap{display:none!important}.has-woocommerce-navigation.woocommerce_page_wc-settings .woo-nav-tab-wrapper,.has-woocommerce-navigation.woocommerce_page_wc-status .woo-nav-tab-wrapper{display:none}.has-woocommerce-navigation.woocommerce_page_wc-settings .woocommerce .subsubsub,.has-woocommerce-navigation.woocommerce_page_wc-status .woocommerce .subsubsub{font-size:14px;margin:5px 0}.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-left:0}@media (max-width:960px){.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-left:0}}.has-woocommerce-navigation #wpbody{padding-left:240px}@media (max-width:960px){.has-woocommerce-navigation #wpbody{padding-left:0}}.has-woocommerce-navigation .woocommerce-layout__header.is-embed-loading:before{content:"";position:fixed;width:240px;height:100%;background:#1e1e1e}@media (max-width:960px){.has-woocommerce-navigation .woocommerce-layout__header.is-embed-loading:before{width:60px;height:60px}}.has-woocommerce-navigation #woocommerce-embedded-root.is-embed-loading{margin-bottom:-32px}.has-woocommerce-navigation:not(.is-wp-toolbar-disabled) #wpbody-content{margin-top:32px}.woocommerce-navigation-category-title{display:flex;align-items:center}.woocommerce-navigation-category-title .woocommerce-navigation-favorite-button{margin-left:auto}.woocommerce-navigation-favorite-button.components-button .dashicon{margin:0}.woocommerce-navigation-favorite-button.components-button .dashicons-star-empty{color:#949494}.woocommerce-navigation-favorite-button.components-button .dashicons-star-filled{color:#ffb900}:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922}.woocommerce-transient-notices{position:fixed;bottom:12px;left:176px;z-index:99999}@media (max-width:960px){.woocommerce-transient-notices{left:50px}}@media (max-width:782px){.woocommerce-transient-notices{left:16px}}.woocommerce-profile-wizard__body .woocommerce-transient-notices{left:unset}.woocommerce-profile-wizard__body .woocommerce-transient-notices .components-snackbar{margin-left:auto;margin-right:auto}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{margin-left:32px}.components-snackbar .components-snackbar__icon{position:absolute;top:24px;left:26px}.components-snackbar .components-snackbar__dismiss-button{margin-left:32px;cursor:pointer}
|
dist/app/style.rtl.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.woocommerce-page .wrap{margin:0}.woocommerce-page #wpcontent,.woocommerce-page.woocommerce_page_wc-admin #wpbody-content{padding:0;overflow-x:hidden!important;min-height:calc(100vh - 32px)}@media(min-width:783px){.woocommerce-page #wpbody-content{padding-right:0}}@media(max-width:782px){.woocommerce-page .wp-responsive-open #woocommerce-embedded-root,.woocommerce-page .wp-responsive-open #wpbody{position:relative;left:-14.5em}.woocommerce-page #wpbody-content,.woocommerce-page #wpcontent{min-height:calc(100vh - 46px)}}@media(min-width:961px){.woocommerce-page #toplevel_page_wcadmin--analytics.menu-top>a:focus,.woocommerce-page #toplevel_page_woocommerce.menu-top>a:focus{padding-bottom:1px}}#wpbody,.woocommerce-layout *{box-sizing:border-box}#wpbody{display:inline-block;width:100%;padding-top:0;margin-top:60px}#wpfooter{display:none}.woocommerce_page_wc-admin .woocommerce-filters-date__content:not(.is-mobile){z-index:2}@media(max-width:600px){#wpadminbar{position:fixed}html.wp-toolbar{padding-top:46px}}@media(max-width:782px){.jetpack-masterbar #wpadminbar #wp-admin-bar-menu-toggle{margin-top:-10px}.jetpack-masterbar #wpwrap .woocommerce-layout__header-heading{padding-right:60px}.jetpack-masterbar.wp-admin .wrap h1,.jetpack-masterbar.wp-admin .wrap h2{padding-right:0}}.woocommerce-page .wp-has-current-submenu:after{left:0;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:8px solid transparent;border-left-color:#f1f1f1;top:0;margin-top:10px}@media(max-width:960px){.woocommerce-page .wp-has-current-submenu:after{border-width:4px;margin-top:14px}}:root{--large-gap:40px;--main-gap:24px}@media(max-width:960px){:root{--large-gap:24px}}@media(max-width:782px){:root{--large-gap:16px;--main-gap:16px}}@keyframes loading-fade{0%{opacity:.7}50%{opacity:1}to{opacity:.7}}.woocommerce-layout select:hover{color:#1e1e1e}.woocommerce-layout select.components-select-control__input{max-width:100%;line-height:1}body.woocommerce-page .components-button.is-primary:not(:disabled),body.woocommerce-page .components-snackbar .components-button.is-tertiary,body.woocommerce-page .components-snackbar .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#fff}.woocommerce-embed-page #wpbody .woocommerce-layout,.woocommerce-embed-page .woocommerce-layout__notice-list-hide+.wrap{padding-top:10px}.woocommerce-embed-page #wpbody-content,.woocommerce-embed-page #wpcontent{overflow-x:initial!important}.woocommerce-embed-page #wpbody-content{padding-top:0}.woocommerce-embed-page #wpbody-content .notice{margin-top:15px}.woocommerce-embed-page .wrap{padding:0 20px}@media(max-width:782px){.woocommerce-embed-page .wrap p.search-box{width:calc(100% - 40px)}}.woocommerce-embed-page .wrap .wrap{padding:0}.woocommerce-embed-page #screen-meta{border-left:0;margin:0}.woocommerce-embed-page #screen-meta-links{position:relative}.woocommerce-embed-page .notice{padding:1px 12px}.woocommerce-embed-page .woocommerce-layout__header.is-scrolled{box-shadow:0 8px 16px 0 rgba(85,93,102,.3)}.woocommerce-embed-page .woocommerce-layout__header .woocommerce-layout__header-heading{margin-top:0;margin-bottom:0}.woocommerce-embed-page #screen-meta-links.is-hidden-by-notices,.woocommerce-embed-page #screen-meta.is-hidden-by-notices{display:none!important}.woocommerce-embed-page .woocommerce-layout__primary{margin:0}@media(max-width:782px){.woocommerce-embed-page .woocommerce-layout__primary{padding-top:10px}}@keyframes isLoaded{0%{opacity:0}to{opacity:1}}.woocommerce-embed-page .woocommerce-layout__activity-panel-tabs{animation:isLoaded;animation-duration:2s}.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:10px;margin-bottom:16px}@media(max-width:600px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:80px;margin-bottom:-16px}}@media(min-width:601px)and (max-width:782px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:32px}}.woocommerce-embed-page .woocommerce-activity-card__actions a.components-button:not(.is-primary){color:#757575}.woocommerce-layout{margin:0;padding:0}.woocommerce-layout__primary{margin:var(--large-gap) var(--large-gap) 0 0}@media(max-width:782px){.woocommerce-layout__primary{margin-top:20px}}.woocommerce-layout .woocommerce-layout__main{padding-left:40px;padding-left:var(--large-gap);max-width:100%}.woocommerce-admin-is-loading #adminmenumain,.woocommerce-admin-is-loading #wpadminbar,.woocommerce-admin-is-loading #wpbody-content,.woocommerce-admin-is-loading #wpcontent,.woocommerce-admin-is-loading #wpfooter,.woocommerce-admin-is-loading .components-modal__screen-overlay,.woocommerce-admin-is-loading .error,.woocommerce-admin-is-loading .notice,.woocommerce-admin-is-loading .update-nag,.woocommerce-admin-is-loading .updated,.woocommerce-admin-is-loading .woocommerce-layout__header,.woocommerce-admin-is-loading .woocommerce-message,.woocommerce-admin-is-loading .woocommerce-store-alerts,.woocommerce-page .update-nag{display:none}.woocommerce-admin-full-screen{background:#f6f7f7;color:#50575e;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.woocommerce-admin-full-screen #wpwrap{top:0}.woocommerce-admin-full-screen #wpbody-content{min-height:100vh!important}.woocommerce-admin-full-screen #adminmenumain,.woocommerce-admin-full-screen #wpcontent>*,.woocommerce-admin-full-screen .error,.woocommerce-admin-full-screen .notice,.woocommerce-admin-full-screen .update-nag,.woocommerce-admin-full-screen .updated,.woocommerce-admin-full-screen .woocommerce-layout__header,.woocommerce-admin-full-screen .woocommerce-message,.woocommerce-admin-full-screen .woocommerce-store-alerts{display:none}.woocommerce-admin-full-screen #wpcontent{margin-right:0!important}.woocommerce-admin-full-screen #wpcontent>#wpbody{display:block;margin-top:0!important}.woocommerce-admin-full-screen.has-woocommerce-navigation #wpbody{padding-right:0}.is-wp-toolbar-disabled #wpadminbar{display:none!important}.wp-toolbar .is-wp-toolbar-disabled{margin-top:-32px}@media(max-width:600px){.wp-toolbar .is-wp-toolbar-disabled{margin-top:-46px}}.woocommerce-onboarding .muriel-component{margin-top:16px;margin-bottom:16px}.woocommerce-onboarding .components-base-control.has-error{margin-bottom:32px!important;border-color:#d63638}@media(max-width:782px){.woocommerce-onboarding .components-base-control.has-error{margin-bottom:44px!important}}.woocommerce-onboarding .components-base-control.has-error .components-base-control__help{top:100%;right:12px;position:absolute;margin-top:4px;font-size:12px;font-style:normal;color:#d63638}.woocommerce-onboarding .components-form-toggle{display:inline-block}.woocommerce-onboarding .components-form-toggle label{font-size:14px}.woocommerce-onboarding .components-form-toggle .components-base-control{display:inline-block}.woocommerce-onboarding .components-form-toggle .components-base-control__field{margin-bottom:0}.woocommerce-page .components-modal__frame .components-button.is-button,.woocommerce-profile-wizard__body .components-button.is-button,.woocommerce-task-dashboard__container .components-button.is-button{height:48px;padding-right:25px;padding-left:25px;text-align:center;font-size:14px;line-height:36px;font-weight:500;align-items:center}.woocommerce-page .components-modal__frame .components-button.is-button:disabled,.woocommerce-profile-wizard__body .components-button.is-button:disabled,.woocommerce-task-dashboard__container .components-button.is-button:disabled{cursor:not-allowed}.components-modal__header .components-button svg+span{display:none}.components-modal__frame.woocommerce-usage-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-usage-modal .components-modal__header{border-bottom:0;margin-bottom:0}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper{flex-grow:1;display:flex;flex-direction:column}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper a{color:#50575e}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper button.is-primary{align-self:flex-end}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions{display:flex;justify-content:flex-end;margin-top:16px}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions button{margin-right:16px}.woocommerce-payments__usage-modal .components-modal__header{height:auto;padding:24px 24px 0}.woocommerce-payments__usage-modal .components-modal__header .components-modal__header-heading{font-size:24px;line-height:32px;margin:0 0 24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-modal-message{padding:16px 0;font-size:16px;line-height:24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer{display:flex;justify-content:flex-end;padding:16px 0}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer button{margin-right:16px}.components-modal__frame.woocommerce-cart-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-cart-modal .components-modal__header{border-bottom:0;margin-bottom:16px;margin-top:16px}.components-modal__frame.woocommerce-cart-modal .components-modal__header button{display:none}.components-modal__frame.woocommerce-cart-modal .components-modal__header-heading{font-style:normal;font-weight:400;font-size:24px;line-height:32px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list{margin-top:4px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list .woocommerce-list__item:first-child{border-top:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-list__item{border-bottom:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__help-text{font-size:16px;line-height:24px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions{text-align:left}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-link{margin-left:16px;text-decoration:none;font-weight:600;font-size:14px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-primary{align-self:flex-end}.woocommerce-layout__header{background:#fff;box-sizing:border-box;padding:0;position:fixed;width:calc(100% - 160px);top:32px;z-index:1001}.woocommerce-layout__header.is-scrolled{box-shadow:0 8px 8px 0 rgba(85,93,102,.3)}.woocommerce-layout__header .woocommerce-layout__header-wrapper{display:flex;align-items:center;min-height:60px}.woocommerce-layout__header .woocommerce-layout__header-back-button{cursor:pointer;margin-right:var(--large-gap);display:flex}.woocommerce-layout__header .woocommerce-layout__header-back-button:focus{box-shadow:inset 1px -1px 0 #757575,inset -1px 1px 0 #757575}@media(max-width:782px){.woocommerce-layout__header{flex-flow:row wrap;top:46px;width:100%}}@media(min-width:783px)and (max-width:960px){.woocommerce-layout__header{width:calc(100% - 36px)}}.woocommerce-layout__header .woocommerce-layout__header-breadcrumbs-wrapper{display:flex;justify-content:space-between;flex-direction:row}.woocommerce-layout__header .woocommerce-layout__header-heading{display:flex;align-items:center;padding:0 40px 0 0;padding:0 var(--large-gap) 0 0;flex:1 auto;height:60px;background:#fff;font-weight:600;font-size:14px}.woocommerce-layout__header .woocommerce-layout__header-heading.with-back-button{padding-right:24px}.folded .woocommerce-layout__header{width:calc(100% - 36px)}@media(max-width:782px){.folded .woocommerce-layout__header{width:100%}}.is-wp-toolbar-disabled .woocommerce-layout__header{top:0}.has-woocommerce-navigation .woocommerce-layout__header{right:0;width:100%}.woocommerce-page #contextual-help-link-wrap,.woocommerce-page #screen-options-link-wrap{margin-top:-1px}.wp-responsive-open .woocommerce-layout__header{margin-right:2px}.woocommerce-layout__activity-panel{display:flex;flex-direction:row;align-items:center;height:60px}.woocommerce-layout__activity-panel-tabs{width:100%;display:flex;height:60px;justify-content:flex-end}.woocommerce-layout__activity-panel-tabs .dashicon,.woocommerce-layout__activity-panel-tabs .gridicon{width:100%}.woocommerce-layout__activity-panel-tabs svg{width:24px;height:24px}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon{fill:none}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon path,.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon rect{stroke:currentColor}.woocommerce-layout__activity-panel-tabs svg.setup-progress path:first-child{stroke:"#DCDCDE"}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__homescreen-display-options svg.woocommerce-layout__activity-panel-tab-icon{height:14px}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__homescreen-extension-tasklist-toggle{min-width:205px}.woocommerce-layout__activity-panel-tabs .components-icon-button{display:initial;text-indent:0;border-radius:0}.woocommerce-layout__activity-panel-tabs .components-icon-button.has-text svg{margin:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;border:none;outline:none;cursor:pointer;background-color:#fff;max-width:min-content;min-width:80px;width:100%;height:60px;color:#757575;white-space:nowrap}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:before{background-color:#007cba;background-color:var(--wp-admin-theme-color);bottom:0;content:"";height:0;opacity:0;transition-property:height,opacity;transition-duration:.3s;transition-timing-function:ease-in-out;right:0;position:absolute;left:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened{color:#1e1e1e;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active:before,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened:before{height:3px;opacity:1}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{content:" ";position:absolute;padding:1px;background:#d94f4f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:8px;right:50%}@media(min-width:783px)and (max-width:960px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{left:18px;right:auto;margin-right:0}}@media(min-width:961px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{left:28px;right:auto;margin-right:0}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover{background-color:#f0f0f0;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after{border-color:#e0e0e0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):focus,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:focus{box-shadow:inset 1px -1px 0 #757575,inset -1px 1px 0 #757575}@media(max-width:782px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.display-options{display:none}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover{margin-top:0;z-index:1001}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover .components-menu-group{padding:12px}.woocommerce-layout__activity-panel-toggle-bubble.has-unread:after{content:" ";position:absolute;padding:1px;background:#ca4a1f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:6px;left:4px}@keyframes tabSwitch{0%,to{transform:translateX(0)}50%{transform:translateX(-100px)}}.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 106px);background:#f0f0f0;width:430px;transform:translateX(-100%);transition-property:transform box-shadow;transition-duration:.3s;transition-timing-function:ease-in-out;position:fixed;left:0;top:106px;z-index:1000;overflow-x:hidden;overflow-y:auto}@media(max-width:782px){.woocommerce-layout__activity-panel-wrapper{width:100%}}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper{transition-duration:1ms}}@media(min-width:783px){.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 92px);top:92px}}.has-woocommerce-navigation .woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 60px);top:60px}.woocommerce-layout__activity-panel-wrapper.is-open{transform:none;box-shadow:0 12px 12px 0 rgba(85,93,102,.3)}.woocommerce-layout__activity-panel-wrapper.is-switching{animation:tabSwitch;animation-duration:.3s}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper.is-switching{animation:none}}.woocommerce-layout__activity-panel-wrapper .woocommerce-empty-content{padding-right:24px;padding-left:24px}.woocommerce-layout__activity-panel-avatar-flag-overlay{position:relative;top:-12px}.woocommerce-layout__activity-panel-avatar-flag-overlay .woocommerce-flag{position:relative;top:16px;border:2px solid #fff}.woocommerce-layout__notice-list-hide{display:none}.highlight-tooltip__container{position:absolute;width:0;height:0}.highlight-tooltip__container.highlight-tooltip__show{top:0;right:0;width:100%;height:100%}.highlight-tooltip__portal{width:100%;height:100%;position:relative}.highlight-tooltip__portal .highlight-tooltip__overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.35);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media(prefers-reduced-motion:reduce){.highlight-tooltip__portal .highlight-tooltip__overlay{animation-duration:1ms}}.highlight-tooltip__popover .components-card{min-width:360px}.highlight-tooltip__popover .components-card__header{font-size:16px;font-size:1rem;font-weight:600;box-sizing:border-box}.highlight-tooltip__popover .components-card__footer{justify-content:flex-end;box-sizing:border-box}.woocommerce-layout__show-app-banner{padding-top:56px}@media(min-width:783px){.woocommerce-layout__show-app-banner{padding-top:0}}.woocommerce-mobile-app-banner{background-color:#3c2861;width:100%;display:flex;height:56px;align-items:center;padding:0 4px 0 6px}@media(min-width:401px){.woocommerce-mobile-app-banner{padding:0 10px 0 13px}}@media(min-width:783px){.woocommerce-mobile-app-banner{display:none}}.woocommerce-mobile-app-banner .gridicon{fill:#fff;margin-left:10px}.woocommerce-mobile-app-banner .components-button.is-secondary{margin-right:auto;color:#fff;box-shadow:inset 0 0 0 1px #fff}.woocommerce-mobile-app-banner .components-button.is-secondary:active,.woocommerce-mobile-app-banner .components-button.is-secondary:hover{color:#fff;box-shadow:inset 0 0 0 1px #fff;background:none}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{color:#fff;margin-right:8px}@media(min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{margin-right:13px}}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin:0;font-size:10px}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text:first-child{font-weight:700}@media(min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin-right:13px;font-size:13px}}.woocommerce-navigation{display:grid;grid-template-rows:min-content 1fr;height:100%}.woocommerce-navigation h2>span{width:100%}.woocommerce-navigation .components-navigation__menu{overflow-y:auto;margin-bottom:0;padding-bottom:24px}.woocommerce-navigation .components-navigation__group+.components-navigation__group{margin-top:24px}.woocommerce-navigation .components-navigation__item{margin-bottom:0}.woocommerce-navigation .components-navigation__item a.components-button{padding:6px 16px}.woocommerce-navigation .components-navigation__item:not(:hover) a.components-button{color:#949494}.woocommerce-navigation .components-navigation__item.is-active a.components-button{color:#fff}.woocommerce-navigation .components-navigation{height:100%}.woocommerce-navigation .components-navigation>div{height:100%;display:grid;grid-template-rows:1fr min-content}.woocommerce-navigation.is-root .components-navigation__menu-secondary{border-top:1px solid #2c3338;margin:0 -8px;padding:16px 8px 12px}.woocommerce-navigation-header{display:flex;align-items:center;border:none;border-radius:0;height:auto}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button{padding:12px;height:60px;color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:hover,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:not([aria-disabled=true]):active{color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button{padding-right:0;color:#ccc;font-weight:600}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:active,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:hover{color:#e0e0e0}.woocommerce-navigation{position:relative;width:240px;box-sizing:border-box;background-color:#1e1e1e;z-index:1100}@media(max-width:960px){.woocommerce-navigation{width:60px;height:60px}}.woocommerce-navigation .components-navigation{box-sizing:border-box}.woocommerce-navigation .components-navigation__menu-title{overflow:visible}.woocommerce-navigation__wrapper{background-color:#1e1e1e;position:absolute;top:60px;width:100%;height:calc(100vh - 92px);overflow-y:auto}.is-wp-toolbar-disabled .woocommerce-navigation__wrapper{height:calc(100vh - 60px)}body.is-wc-nav-expanded .woocommerce-navigation{width:240px;height:100%}body.is-wc-nav-expanded font>.xdebug-error{margin-right:256px}body.is-wc-nav-folded .woocommerce-navigation{width:60px;height:60px;overflow:hidden}body.is-wc-nav-folded .woocommerce-navigation .woocommerce-navigation-header>*{display:none}body.is-wc-nav-folded .woocommerce-navigation .woocommerce-navigation-header__site-icon{display:block}body.is-wc-nav-folded .woocommerce-navigation .components-navigation{display:none}body.is-wc-nav-folded .woocommerce-transient-notices{right:16px}body.is-wc-nav-folded #wpbody{padding-right:0}.has-woocommerce-navigation #adminmenuback,.has-woocommerce-navigation #adminmenuwrap{display:none!important}.has-woocommerce-navigation.woocommerce_page_wc-reports .woo-nav-tab-wrapper,.has-woocommerce-navigation.woocommerce_page_wc-settings .woo-nav-tab-wrapper,.has-woocommerce-navigation.woocommerce_page_wc-status .woo-nav-tab-wrapper{display:none}.has-woocommerce-navigation.woocommerce_page_wc-reports .woocommerce .subsubsub,.has-woocommerce-navigation.woocommerce_page_wc-settings .woocommerce .subsubsub,.has-woocommerce-navigation.woocommerce_page_wc-status .woocommerce .subsubsub{font-size:14px;margin:5px 0}.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-right:0}@media(max-width:960px){.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-right:0}}.has-woocommerce-navigation #wpbody{padding-right:240px}@media(max-width:960px){.has-woocommerce-navigation #wpbody{padding-right:0}}.has-woocommerce-navigation .woocommerce-layout__header.is-embed-loading:before{content:"";position:fixed;width:240px;height:100%;background:#1e1e1e}@media(max-width:960px){.has-woocommerce-navigation .woocommerce-layout__header.is-embed-loading:before{width:60px;height:60px}}.has-woocommerce-navigation #woocommerce-embedded-root.is-embed-loading{margin-bottom:-32px}.has-woocommerce-navigation:not(.is-wp-toolbar-disabled) #wpbody-content{margin-top:32px}.has-woocommerce-navigation font>.xdebug-error{margin-top:60px}.woocommerce-navigation-category-title{display:flex;align-items:center;font-size:20px;line-height:28px}.woocommerce-navigation-category-title .woocommerce-navigation-favorite-button{margin-right:auto}.woocommerce-navigation-favorite-button.components-button .star-empty-icon{color:#949494}.woocommerce-navigation-favorite-button.components-button .star-filled-icon{color:#ffb900}.woocommerce-transient-notices{position:fixed;bottom:12px;right:176px;z-index:99999;width:auto}@media(max-width:960px){.woocommerce-transient-notices{right:50px}}@media(max-width:782px){.woocommerce-transient-notices{right:16px}}.woocommerce-profile-wizard__body .woocommerce-transient-notices{right:unset}.woocommerce-profile-wizard__body .woocommerce-transient-notices .components-snackbar{margin-right:auto;margin-left:auto}.has-woocommerce-navigation .woocommerce-transient-notices{right:256px}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{margin-right:32px}.components-snackbar .components-snackbar__icon{position:absolute;top:24px;right:26px}.components-snackbar .components-snackbar__dismiss-button{margin-right:32px;cursor:pointer}:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922}.woocommerce-embedded-layout__primary{padding:0 20px}.woocommerce-embedded-layout__primary .components-card__footer,.woocommerce-embedded-layout__primary .components-card__header{box-sizing:border-box}@media(max-width:782px){.woocommerce-embedded-layout__primary{padding:0}}
|
1 |
+
.woocommerce-page .wrap{margin:0}.woocommerce-page #wpcontent,.woocommerce-page.woocommerce_page_wc-admin #wpbody-content{padding:0;overflow-x:hidden!important;min-height:calc(100vh - 32px)}@media (min-width:783px){.woocommerce-page #wpbody-content{padding-right:0}}@media (max-width:782px){.woocommerce-page .wp-responsive-open #woocommerce-embedded-root,.woocommerce-page .wp-responsive-open #wpbody{position:relative;left:-14.5em}.woocommerce-page #wpbody-content,.woocommerce-page #wpcontent{min-height:calc(100vh - 46px)}}@media (min-width:961px){.woocommerce-page #toplevel_page_wcadmin--analytics.menu-top>a:focus,.woocommerce-page #toplevel_page_woocommerce.menu-top>a:focus{padding-bottom:1px}}#wpbody,.woocommerce-layout *{box-sizing:border-box}#wpbody{display:inline-block;width:100%;padding-top:0;margin-top:60px}#wpfooter{display:none}.woocommerce_page_wc-admin .woocommerce-filters-date__content:not(.is-mobile){z-index:2}@media (max-width:600px){#wpadminbar{position:fixed}html.wp-toolbar{padding-top:46px}}@media (max-width:782px){.jetpack-masterbar #wpadminbar #wp-admin-bar-menu-toggle{margin-top:-10px}.jetpack-masterbar #wpwrap .woocommerce-layout__header-heading{padding-right:60px}.jetpack-masterbar.wp-admin .wrap h1,.jetpack-masterbar.wp-admin .wrap h2{padding-right:0}}.woocommerce-page .wp-has-current-submenu:after{left:0;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:8px solid transparent;border-left-color:#f1f1f1;top:0;margin-top:10px}@media (max-width:960px){.woocommerce-page .wp-has-current-submenu:after{border-width:4px;margin-top:14px}}:root{--large-gap:40px;--main-gap:24px}@media (max-width:960px){:root{--large-gap:24px}}@media (max-width:782px){:root{--large-gap:16px;--main-gap:16px}}@keyframes loading-fade{0%{opacity:.7}50%{opacity:1}to{opacity:.7}}.woocommerce-layout select:hover{color:#1e1e1e}.woocommerce-layout select.components-select-control__input{max-width:100%;line-height:1}body.woocommerce-page .components-button.is-primary:not(:disabled),body.woocommerce-page .components-snackbar .components-button.is-tertiary,body.woocommerce-page .components-snackbar .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#fff}.woocommerce-embed-page #wpbody .woocommerce-layout,.woocommerce-embed-page .woocommerce-layout__notice-list-hide+.wrap{padding-top:10px}.woocommerce-embed-page #wpbody-content,.woocommerce-embed-page #wpcontent{overflow-x:initial!important}.woocommerce-embed-page #wpbody-content{padding-top:0}.woocommerce-embed-page #wpbody-content .notice{margin-top:15px}.woocommerce-embed-page .wrap{padding:0 20px}@media (max-width:782px){.woocommerce-embed-page .wrap p.search-box{width:calc(100% - 40px)}}.woocommerce-embed-page .wrap .wrap{padding:0}.woocommerce-embed-page #screen-meta{border-left:0;margin:0}.woocommerce-embed-page #screen-meta-links{position:relative}.woocommerce-embed-page .notice{padding:1px 12px}.woocommerce-embed-page .woocommerce-layout__header.is-scrolled{box-shadow:0 8px 16px 0 rgba(85,93,102,.3)}.woocommerce-embed-page .woocommerce-layout__header .woocommerce-layout__header-heading{margin-top:0;margin-bottom:0}.woocommerce-embed-page #screen-meta-links.is-hidden-by-notices,.woocommerce-embed-page #screen-meta.is-hidden-by-notices{display:none!important}.woocommerce-embed-page .woocommerce-layout__primary{margin:0}@media (max-width:782px){.woocommerce-embed-page .woocommerce-layout__primary{padding-top:10px}}@keyframes isLoaded{0%{opacity:0}to{opacity:1}}.woocommerce-embed-page .woocommerce-layout__activity-panel-tabs{animation:isLoaded;animation-duration:2s}.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:10px;margin-bottom:16px}@media (max-width:600px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:80px;margin-bottom:-16px}}@media (min-width:601px) and (max-width:782px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:32px}}.woocommerce-embed-page .woocommerce-activity-card__actions a.components-button:not(.is-primary){color:#757575}.woocommerce-layout{margin:0;padding:0}.woocommerce-layout__primary{margin:var(--large-gap) var(--large-gap) 0 0}@media (max-width:782px){.woocommerce-layout__primary{margin-top:20px}}.woocommerce-layout .woocommerce-layout__main{padding-left:40px;padding-left:var(--large-gap);max-width:100%}.woocommerce-admin-is-loading #adminmenumain,.woocommerce-admin-is-loading #wpadminbar,.woocommerce-admin-is-loading #wpbody-content,.woocommerce-admin-is-loading #wpcontent,.woocommerce-admin-is-loading #wpfooter,.woocommerce-admin-is-loading .components-modal__screen-overlay,.woocommerce-admin-is-loading .error,.woocommerce-admin-is-loading .notice,.woocommerce-admin-is-loading .update-nag,.woocommerce-admin-is-loading .updated,.woocommerce-admin-is-loading .woocommerce-layout__header,.woocommerce-admin-is-loading .woocommerce-message,.woocommerce-admin-is-loading .woocommerce-store-alerts,.woocommerce-page .update-nag{display:none}.woocommerce-admin-full-screen{background:#f6f7f7;color:#50575e;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.woocommerce-admin-full-screen #wpwrap{top:0}.woocommerce-admin-full-screen #wpbody-content{min-height:100vh}.woocommerce-admin-full-screen #adminmenumain,.woocommerce-admin-full-screen #wpcontent>*,.woocommerce-admin-full-screen .error,.woocommerce-admin-full-screen .notice,.woocommerce-admin-full-screen .update-nag,.woocommerce-admin-full-screen .updated,.woocommerce-admin-full-screen .woocommerce-layout__header,.woocommerce-admin-full-screen .woocommerce-message,.woocommerce-admin-full-screen .woocommerce-store-alerts{display:none}.woocommerce-admin-full-screen #wpcontent{margin-right:0!important}.woocommerce-admin-full-screen #wpcontent>#wpbody{display:block;margin-top:0!important}.woocommerce-admin-full-screen.has-woocommerce-navigation #wpbody{padding-right:0}.is-wp-toolbar-disabled #wpadminbar{display:none!important}.wp-toolbar .is-wp-toolbar-disabled{margin-top:-32px}@media (max-width:600px){.wp-toolbar .is-wp-toolbar-disabled{margin-top:-46px}}.woocommerce-onboarding .muriel-component{margin-top:16px;margin-bottom:16px}.woocommerce-onboarding .components-base-control.has-error{margin-bottom:32px!important;border-color:#d63638}@media (max-width:782px){.woocommerce-onboarding .components-base-control.has-error{margin-bottom:44px!important}}.woocommerce-onboarding .components-base-control.has-error .components-base-control__help{top:100%;right:12px;position:absolute;margin-top:4px;font-size:12px;font-style:normal;color:#d63638}.woocommerce-onboarding .components-form-toggle{display:inline-block}.woocommerce-onboarding .components-form-toggle label{font-size:14px}.woocommerce-onboarding .components-form-toggle .components-base-control{display:inline-block}.woocommerce-onboarding .components-form-toggle .components-base-control__field{margin-bottom:0}.woocommerce-page .components-modal__frame .components-button.is-button,.woocommerce-profile-wizard__body .components-button.is-button,.woocommerce-task-dashboard__container .components-button.is-button{height:48px;padding-right:25px;padding-left:25px;text-align:center;font-size:14px;line-height:36px;font-weight:500;align-items:center}.woocommerce-page .components-modal__frame .components-button.is-button:disabled,.woocommerce-profile-wizard__body .components-button.is-button:disabled,.woocommerce-task-dashboard__container .components-button.is-button:disabled{cursor:not-allowed}.components-modal__header .components-button svg+span{display:none}.components-modal__frame.woocommerce-usage-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-usage-modal .components-modal__header{border-bottom:0;margin-bottom:0}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper{flex-grow:1;display:flex;flex-direction:column}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper a{color:#50575e}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper button.is-primary{align-self:flex-end}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions{display:flex;justify-content:flex-end;margin-top:16px}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions button{margin-right:16px}.woocommerce-payments__usage-modal .components-modal__header{height:auto;padding:24px 24px 0}.woocommerce-payments__usage-modal .components-modal__header .components-modal__header-heading{font-size:24px;line-height:32px;margin:0 0 24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-modal-message{padding:16px 0;font-size:16px;line-height:24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer{display:flex;justify-content:flex-end;padding:16px 0}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer button{margin-right:16px}.components-modal__frame.woocommerce-cart-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-cart-modal .components-modal__header{border-bottom:0;margin-bottom:16px;margin-top:16px}.components-modal__frame.woocommerce-cart-modal .components-modal__header button{display:none}.components-modal__frame.woocommerce-cart-modal .components-modal__header-heading{font-style:normal;font-weight:400;font-size:24px;line-height:32px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list{margin-top:4px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list .woocommerce-list__item:first-child{border-top:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-list__item{border-bottom:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__help-text{font-size:16px;line-height:24px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions{text-align:left}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-link{margin-left:16px;text-decoration:none;font-weight:600;font-size:14px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-primary{align-self:flex-end}.woocommerce-layout__header{background:#fff;box-sizing:border-box;padding:0;position:fixed;width:calc(100% - 160px);top:32px;z-index:1001}.woocommerce-layout__header.is-scrolled{box-shadow:0 8px 8px 0 rgba(85,93,102,.3)}.woocommerce-layout__header .woocommerce-layout__header-wrapper{display:flex;align-items:center;min-height:60px}@media (max-width:782px){.woocommerce-layout__header{flex-flow:row wrap;top:46px;width:100%}}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__header{width:calc(100% - 36px)}}.woocommerce-layout__header .woocommerce-layout__header-breadcrumbs-wrapper{display:flex;justify-content:space-between;flex-direction:row}.woocommerce-layout__header .woocommerce-layout__header-heading{display:flex;align-items:center;padding:0 40px 0 0;padding:0 var(--large-gap) 0 0;flex:1 auto;height:60px;background:#fff;font-weight:600;font-size:14px;text-transform:capitalize}.is-wp-toolbar-disabled .woocommerce-layout__header{top:0}.has-woocommerce-navigation .woocommerce-layout__header{right:0;width:100%}.woocommerce-page #contextual-help-link-wrap,.woocommerce-page #screen-options-link-wrap{margin-top:-1px}.wp-responsive-open .woocommerce-layout__header{margin-right:2px}.woocommerce-layout__activity-panel{display:flex;flex-direction:row;align-items:center;height:60px}@media (max-width:782px){.woocommerce-layout__activity-panel{position:absolute;top:100%;background:#fff;margin:0;padding:0;width:100vw;display:none;flex:1 100%;left:0}}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__activity-panel{max-width:280px}}@media (min-width:1281px){.woocommerce-layout__activity-panel{max-width:400px}}.woocommerce-layout__activity-panel.is-mobile-open{display:flex}.woocommerce-layout__activity-panel-tabs{width:100%;display:flex;height:60px;justify-content:flex-end}.woocommerce-layout__activity-panel-tabs .dashicon,.woocommerce-layout__activity-panel-tabs .gridicon{width:100%}.woocommerce-layout__activity-panel-tabs svg{width:24px;height:24px}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon{fill:none}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon path,.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon rect{stroke:currentColor}.woocommerce-layout__activity-panel-tabs svg.setup-progress path:first-child{stroke:"#DCDCDE"}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__homescreen-display-options svg.woocommerce-layout__activity-panel-tab-icon{height:14px}.woocommerce-layout__activity-panel-tabs .components-icon-button{display:initial;text-indent:0;border-radius:0}.woocommerce-layout__activity-panel-tabs .components-icon-button.has-text svg{margin:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;border:none;outline:none;cursor:pointer;background-color:#fff;max-width:-webkit-min-content;max-width:min-content;min-width:80px;width:100%;height:60px;color:#757575;white-space:nowrap}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:before{background-color:#007cba;background-color:var(--wp-admin-theme-color);bottom:0;content:"";height:0;opacity:0;transition-property:height,opacity;transition-duration:.3s;transition-timing-function:ease-in-out;right:0;position:absolute;left:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened{color:#1e1e1e;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active:before,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened:before{height:3px;opacity:1}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{content:" ";position:absolute;padding:1px;background:#d94f4f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:8px;right:50%}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{left:18px;right:auto;margin-right:0}}@media (min-width:961px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{left:28px;right:auto;margin-right:0}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover{background-color:#f0f0f0;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after{border-color:#e0e0e0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):focus,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:focus{box-shadow:inset 1px -1px 0 #757575,inset -1px 1px 0 #757575}@media (max-width:782px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.display-options{display:none}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover{margin-top:0;z-index:1001}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover .components-menu-group{padding:12px}.woocommerce-layout__activity-panel-mobile-toggle.components-button{margin-left:10px;max-width:48px}@media (min-width:783px){.woocommerce-layout__activity-panel-mobile-toggle.components-button{display:none;height:100%}}.wp-responsive-open .woocommerce-layout__activity-panel-mobile-toggle{display:none}.woocommerce-layout__activity-panel-toggle-bubble.has-unread:after{content:" ";position:absolute;padding:1px;background:#ca4a1f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:6px;left:4px}@keyframes tabSwitch{0%,to{transform:translateX(0)}50%{transform:translateX(-100px)}}.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 166px);background:#f0f0f0;width:510px;transform:translateX(-100%);transition-property:transform box-shadow;transition-duration:.3s;transition-timing-function:ease-in-out;position:fixed;left:0;top:166px;z-index:1000;overflow-x:hidden;overflow-y:auto}@media (max-width:782px){.woocommerce-layout__activity-panel-wrapper{width:100%}}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper{transition-duration:1ms}}@media (min-width:783px){.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 92px);top:92px}}.has-woocommerce-navigation .woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 120px);top:120px}@media (min-width:783px){.has-woocommerce-navigation .woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 60px);top:60px}}.woocommerce-layout__activity-panel-wrapper.is-open{transform:none;box-shadow:0 12px 12px 0 rgba(85,93,102,.3)}.woocommerce-layout__activity-panel-wrapper.is-switching{animation:tabSwitch;animation-duration:.3s}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper.is-switching{animation:none}}.woocommerce-layout__activity-panel-wrapper .woocommerce-empty-content{padding-right:24px;padding-left:24px}.woocommerce-layout__activity-panel-avatar-flag-overlay{position:relative;top:-12px}.woocommerce-layout__activity-panel-avatar-flag-overlay .woocommerce-flag{position:relative;top:16px;border:2px solid #fff}.woocommerce-layout__notice-list-hide{display:none}.highlight-tooltip__container{position:absolute;width:0;height:0}.highlight-tooltip__container.highlight-tooltip__show{top:0;right:0;width:100%;height:100%}.highlight-tooltip__portal{width:100%;height:100%;position:relative}.highlight-tooltip__portal .highlight-tooltip__overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.35);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.highlight-tooltip__portal .highlight-tooltip__overlay{animation-duration:1ms}}.highlight-tooltip__popover .components-card{min-width:360px}.highlight-tooltip__popover .components-card__header{font-size:16px;font-size:1rem;font-weight:600;height:60px}.highlight-tooltip__popover .components-card__footer{justify-content:flex-end}.woocommerce-layout__show-app-banner{padding-top:56px}@media (min-width:783px){.woocommerce-layout__show-app-banner{padding-top:0}}.woocommerce-mobile-app-banner{background-color:#3c2861;width:100%;display:flex;height:56px;align-items:center;padding:0 4px 0 6px}@media (min-width:401px){.woocommerce-mobile-app-banner{padding:0 10px 0 13px}}@media (min-width:783px){.woocommerce-mobile-app-banner{display:none}}.woocommerce-mobile-app-banner .dashicon{fill:#fff;margin-left:10px}.woocommerce-mobile-app-banner .components-button.is-secondary{margin-right:auto;color:#fff;box-shadow:inset 0 0 0 1px #fff}.woocommerce-mobile-app-banner .components-button.is-secondary:active,.woocommerce-mobile-app-banner .components-button.is-secondary:hover{color:#fff;box-shadow:inset 0 0 0 1px #fff;background:none}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{color:#fff;margin-right:8px}@media (min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{margin-right:13px}}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin:0;font-size:10px}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text:first-child{font-weight:700}@media (min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin-right:13px;font-size:13px}}.woocommerce-navigation{display:-ms-grid;display:grid;-ms-grid-rows:-webkit-min-content 1fr;-ms-grid-rows:min-content 1fr;grid-template-rows:-webkit-min-content 1fr;grid-template-rows:min-content 1fr;height:100%}.woocommerce-navigation h2>span{width:100%}.woocommerce-navigation .components-navigation__menu{overflow-y:auto;margin-bottom:0;padding-bottom:24px}.woocommerce-navigation .components-navigation__group+.components-navigation__group{margin-top:24px}.woocommerce-navigation .components-navigation__item{margin-bottom:0}.woocommerce-navigation .components-navigation__item a.components-button{padding:6px 16px}.woocommerce-navigation .components-navigation__item:not(:hover) a.components-button{color:#949494}.woocommerce-navigation .components-navigation__item.is-active a.components-button{color:#fff}.woocommerce-navigation .components-navigation{height:100%}.woocommerce-navigation .components-navigation>div{height:100%;display:-ms-grid;display:grid;-ms-grid-rows:1fr -webkit-min-content;-ms-grid-rows:1fr min-content;grid-template-rows:1fr -webkit-min-content;grid-template-rows:1fr min-content}.woocommerce-navigation.is-root .components-navigation__menu-secondary{border-top:1px solid #2c3338;margin:0 -8px;padding:16px 8px 12px}.woocommerce-navigation-header{display:flex;align-items:center;border:none;border-radius:0;height:auto}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button{padding:12px;height:60px;color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:hover,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:not([aria-disabled=true]):active{color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button{padding-right:0;color:#ccc;font-weight:600}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:active,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:hover{color:#e0e0e0}.woocommerce-navigation{position:relative;width:240px;box-sizing:border-box;background-color:#1e1e1e;z-index:1100}@media (max-width:960px){.woocommerce-navigation{width:60px;height:60px}}.woocommerce-navigation .components-navigation{box-sizing:border-box}.woocommerce-navigation__wrapper{background-color:#1e1e1e;position:absolute;top:60px;width:100%;height:calc(100vh - 92px);overflow-y:auto}.is-wp-toolbar-disabled .woocommerce-navigation__wrapper{height:calc(100vh - 60px)}body.is-wc-nav-expanded .woocommerce-navigation{width:240px;height:100%}body.is-wc-nav-folded .woocommerce-navigation{width:60px;height:60px;overflow:hidden}body.is-wc-nav-folded .woocommerce-navigation .woocommerce-navigation-header>*{display:none}body.is-wc-nav-folded .woocommerce-navigation .woocommerce-navigation-header__site-icon{display:block}body.is-wc-nav-folded .woocommerce-navigation .components-navigation{display:none}body.is-wc-nav-folded .woocommerce-transient-notices{right:16px}body.is-wc-nav-folded #wpbody{padding-right:0}.has-woocommerce-navigation #adminmenuback,.has-woocommerce-navigation #adminmenuwrap{display:none!important}.has-woocommerce-navigation.woocommerce_page_wc-settings .woo-nav-tab-wrapper,.has-woocommerce-navigation.woocommerce_page_wc-status .woo-nav-tab-wrapper{display:none}.has-woocommerce-navigation.woocommerce_page_wc-settings .woocommerce .subsubsub,.has-woocommerce-navigation.woocommerce_page_wc-status .woocommerce .subsubsub{font-size:14px;margin:5px 0}.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-right:0}@media (max-width:960px){.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-right:0}}.has-woocommerce-navigation #wpbody{padding-right:240px}@media (max-width:960px){.has-woocommerce-navigation #wpbody{padding-right:0}}.has-woocommerce-navigation .woocommerce-layout__header.is-embed-loading:before{content:"";position:fixed;width:240px;height:100%;background:#1e1e1e}@media (max-width:960px){.has-woocommerce-navigation .woocommerce-layout__header.is-embed-loading:before{width:60px;height:60px}}.has-woocommerce-navigation #woocommerce-embedded-root.is-embed-loading{margin-bottom:-32px}.has-woocommerce-navigation:not(.is-wp-toolbar-disabled) #wpbody-content{margin-top:32px}.woocommerce-navigation-category-title{display:flex;align-items:center}.woocommerce-navigation-category-title .woocommerce-navigation-favorite-button{margin-right:auto}.woocommerce-navigation-favorite-button.components-button .dashicon{margin:0}.woocommerce-navigation-favorite-button.components-button .dashicons-star-empty{color:#949494}.woocommerce-navigation-favorite-button.components-button .dashicons-star-filled{color:#ffb900}:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922}.woocommerce-transient-notices{position:fixed;bottom:12px;right:176px;z-index:99999}@media (max-width:960px){.woocommerce-transient-notices{right:50px}}@media (max-width:782px){.woocommerce-transient-notices{right:16px}}.woocommerce-profile-wizard__body .woocommerce-transient-notices{right:unset}.woocommerce-profile-wizard__body .woocommerce-transient-notices .components-snackbar{margin-right:auto;margin-left:auto}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{margin-right:32px}.components-snackbar .components-snackbar__icon{position:absolute;top:24px;right:26px}.components-snackbar .components-snackbar__dismiss-button{margin-right:32px;cursor:pointer}
|
dist/chunks/0.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
(window["__wcAdmin_webpackJsonp"] = window["__wcAdmin_webpackJsonp"] || []).push([[0],{
|
2 |
|
3 |
-
/***/
|
4 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5 |
|
6 |
"use strict";
|
@@ -8,11 +8,11 @@
|
|
8 |
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CurrencyContext; });
|
9 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
10 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
11 |
-
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
12 |
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__);
|
13 |
-
/* harmony import */ var _woocommerce_currency__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
14 |
/* harmony import */ var _woocommerce_currency__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_currency__WEBPACK_IMPORTED_MODULE_2__);
|
15 |
-
/* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
16 |
/**
|
17 |
* External dependencies
|
18 |
*/
|
@@ -20,13 +20,13 @@
|
|
20 |
|
21 |
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
return _woocommerce_currency__WEBPACK_IMPORTED_MODULE_2___default()(filteredConfig);
|
28 |
};
|
29 |
-
|
30 |
);
|
31 |
|
32 |
/***/ }),
|
@@ -35,86 +35,174 @@ const CurrencyContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["
|
|
35 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
36 |
|
37 |
"use strict";
|
38 |
-
/* harmony import */ var
|
39 |
-
/* harmony import */ var
|
40 |
-
/* harmony import */ var
|
41 |
-
/* harmony import */ var
|
42 |
-
/* harmony import */ var
|
43 |
-
/* harmony import */ var
|
44 |
-
/* harmony import */ var
|
45 |
-
/* harmony import */ var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
|
|
|
|
|
|
|
|
|
48 |
/**
|
49 |
* External dependencies
|
50 |
*/
|
51 |
|
52 |
|
53 |
|
|
|
|
|
54 |
/**
|
55 |
* Component to render when there is an error in a report component due to data
|
56 |
* not being loaded or being invalid.
|
57 |
-
*
|
58 |
-
* @param {Object} props React props.
|
59 |
-
* @param {string} [props.className] Additional class name to style the component.
|
60 |
*/
|
61 |
|
62 |
-
function
|
63 |
-
|
64 |
-
}) {
|
65 |
-
const title = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('There was an error getting your stats. Please try again.', 'woocommerce-admin');
|
66 |
|
67 |
-
|
68 |
|
69 |
-
|
70 |
-
|
71 |
-
window.location.reload();
|
72 |
-
};
|
73 |
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
ReportError.propTypes = {
|
83 |
/**
|
84 |
* Additional class name to style the component.
|
85 |
*/
|
86 |
-
className:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
};
|
88 |
/* harmony default export */ __webpack_exports__["a"] = (ReportError);
|
89 |
|
90 |
/***/ }),
|
91 |
|
92 |
-
/***/
|
93 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
94 |
|
95 |
"use strict";
|
96 |
-
/* harmony import */ var
|
97 |
-
/* harmony import */ var
|
98 |
-
/* harmony import */ var
|
99 |
-
/* harmony import */ var
|
100 |
-
/* harmony import */ var
|
101 |
-
/* harmony import */ var
|
102 |
-
/* harmony import */ var
|
103 |
-
/* harmony import */ var
|
104 |
-
/* harmony import */ var
|
105 |
-
/* harmony import */ var
|
106 |
-
/* harmony import */ var
|
107 |
-
/* harmony import */ var
|
108 |
-
/* harmony import */ var
|
109 |
-
/* harmony import */ var
|
110 |
-
/* harmony import */ var
|
111 |
-
/* harmony import */ var
|
112 |
-
/* harmony import */ var
|
113 |
-
/* harmony import */ var
|
114 |
-
/* harmony import */ var
|
115 |
-
/* harmony import */ var
|
116 |
-
/* harmony import */ var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
(window["__wcAdmin_webpackJsonp"] = window["__wcAdmin_webpackJsonp"] || []).push([[0],{
|
2 |
|
3 |
+
/***/ 499:
|
4 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5 |
|
6 |
"use strict";
|
8 |
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CurrencyContext; });
|
9 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
10 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
11 |
+
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(43);
|
12 |
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__);
|
13 |
+
/* harmony import */ var _woocommerce_currency__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(111);
|
14 |
/* harmony import */ var _woocommerce_currency__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_currency__WEBPACK_IMPORTED_MODULE_2__);
|
15 |
+
/* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
|
16 |
/**
|
17 |
* External dependencies
|
18 |
*/
|
20 |
|
21 |
|
22 |
|
23 |
+
var appCurrency = _woocommerce_currency__WEBPACK_IMPORTED_MODULE_2___default()(_woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_3__[/* CURRENCY */ "b"]);
|
24 |
+
var getFilteredCurrencyInstance = function getFilteredCurrencyInstance(query) {
|
25 |
+
var config = appCurrency.getCurrencyConfig();
|
26 |
+
var filteredConfig = Object(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__["applyFilters"])('woocommerce_admin_report_currency', config, query);
|
27 |
return _woocommerce_currency__WEBPACK_IMPORTED_MODULE_2___default()(filteredConfig);
|
28 |
};
|
29 |
+
var CurrencyContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createContext"])(appCurrency // default value
|
30 |
);
|
31 |
|
32 |
/***/ }),
|
35 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
36 |
|
37 |
"use strict";
|
38 |
+
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12);
|
39 |
+
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);
|
40 |
+
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13);
|
41 |
+
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);
|
42 |
+
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14);
|
43 |
+
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);
|
44 |
+
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15);
|
45 |
+
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
|
46 |
+
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
|
47 |
+
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
|
48 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0);
|
49 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__);
|
50 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2);
|
51 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__);
|
52 |
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1);
|
53 |
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
|
54 |
+
/* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(47);
|
55 |
+
/* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_components__WEBPACK_IMPORTED_MODULE_8__);
|
56 |
+
/* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(25);
|
57 |
+
|
58 |
+
|
59 |
+
|
60 |
+
|
61 |
+
|
62 |
|
63 |
|
64 |
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }
|
65 |
+
|
66 |
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
67 |
+
|
68 |
/**
|
69 |
* External dependencies
|
70 |
*/
|
71 |
|
72 |
|
73 |
|
74 |
+
|
75 |
+
|
76 |
/**
|
77 |
* Component to render when there is an error in a report component due to data
|
78 |
* not being loaded or being invalid.
|
|
|
|
|
|
|
79 |
*/
|
80 |
|
81 |
+
var ReportError = /*#__PURE__*/function (_Component) {
|
82 |
+
_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ReportError, _Component);
|
|
|
|
|
83 |
|
84 |
+
var _super = _createSuper(ReportError);
|
85 |
|
86 |
+
function ReportError() {
|
87 |
+
_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ReportError);
|
|
|
|
|
88 |
|
89 |
+
return _super.apply(this, arguments);
|
90 |
+
}
|
91 |
+
|
92 |
+
_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ReportError, [{
|
93 |
+
key: "render",
|
94 |
+
value: function render() {
|
95 |
+
var _this$props = this.props,
|
96 |
+
className = _this$props.className,
|
97 |
+
isError = _this$props.isError,
|
98 |
+
isEmpty = _this$props.isEmpty;
|
99 |
+
var title, actionLabel, actionURL, actionCallback;
|
100 |
+
|
101 |
+
if (isError) {
|
102 |
+
title = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('There was an error getting your stats. Please try again.', 'woocommerce-admin');
|
103 |
+
actionLabel = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Reload', 'woocommerce-admin');
|
104 |
+
|
105 |
+
actionCallback = function actionCallback() {
|
106 |
+
// @todo Add tracking for how often an error is displayed, and the reload action is clicked.
|
107 |
+
window.location.reload();
|
108 |
+
};
|
109 |
+
} else if (isEmpty) {
|
110 |
+
title = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('No results could be found for this date range.', 'woocommerce-admin');
|
111 |
+
actionLabel = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('View Orders', 'woocommerce-admin');
|
112 |
+
actionURL = Object(_woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_9__[/* getAdminLink */ "f"])('edit.php?post_type=shop_order');
|
113 |
+
}
|
114 |
+
|
115 |
+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(_woocommerce_components__WEBPACK_IMPORTED_MODULE_8__["EmptyContent"], {
|
116 |
+
className: className,
|
117 |
+
title: title,
|
118 |
+
actionLabel: actionLabel,
|
119 |
+
actionURL: actionURL,
|
120 |
+
actionCallback: actionCallback
|
121 |
+
});
|
122 |
+
}
|
123 |
+
}]);
|
124 |
+
|
125 |
+
return ReportError;
|
126 |
+
}(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["Component"]);
|
127 |
|
128 |
ReportError.propTypes = {
|
129 |
/**
|
130 |
* Additional class name to style the component.
|
131 |
*/
|
132 |
+
className: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.string,
|
133 |
+
|
134 |
+
/**
|
135 |
+
* Boolean representing whether there was an error.
|
136 |
+
*/
|
137 |
+
isError: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool,
|
138 |
+
|
139 |
+
/**
|
140 |
+
* Boolean representing whether the issue is that there is no data.
|
141 |
+
*/
|
142 |
+
isEmpty: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool
|
143 |
+
};
|
144 |
+
ReportError.defaultProps = {
|
145 |
+
className: ''
|
146 |
};
|
147 |
/* harmony default export */ __webpack_exports__["a"] = (ReportError);
|
148 |
|
149 |
/***/ }),
|
150 |
|
151 |
+
/***/ 506:
|
152 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
153 |
|
154 |
"use strict";
|
155 |
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
156 |
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
157 |
+
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
|
158 |
+
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
|
159 |
+
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
|
160 |
+
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
|
161 |
+
/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
|
162 |
+
/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);
|
163 |
+
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(14);
|
164 |
+
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);
|
165 |
+
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15);
|
166 |
+
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);
|
167 |
+
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7);
|
168 |
+
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);
|
169 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0);
|
170 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__);
|
171 |
+
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(20);
|
172 |
+
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__);
|
173 |
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1);
|
174 |
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
175 |
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(3);
|
176 |
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_10__);
|
177 |
+
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(11);
|
178 |
+
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_11__);
|
179 |
+
/* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(47);
|
180 |
+
/* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_components__WEBPACK_IMPORTED_MODULE_12__);
|
181 |
+
/* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(25);
|
182 |
+
/* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(22);
|
183 |
+
/* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_data__WEBPACK_IMPORTED_MODULE_14__);
|
184 |
+
/* harmony import */ var _woocommerce_date__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(29);
|
185 |
+
/* harmony import */ var _woocommerce_date__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_date__WEBPACK_IMPORTED_MODULE_15__);
|
186 |
+
/* harmony import */ var _woocommerce_tracks__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(27);
|
187 |
+
/* harmony import */ var _woocommerce_tracks__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_tracks__WEBPACK_IMPORTED_MODULE_16__);
|
188 |
+
/* harmony import */ var _lib_currency_context__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(499);
|
189 |
+
/* harmony import */ var _customer_effort_score_tracks_data_constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(76);
|
190 |
+
|
191 |
+
|
192 |
+
|
193 |
+
|
194 |
+
|
195 |
+
|
196 |
+
|
197 |
+
|
198 |
+
|
199 |
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertyS
|