@wix/himalaya-cli 0.2049.0 → 0.2051.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/icon-catalog.generated.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +73 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +7 -1
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{78e9187a8551e2a63e7bc9f5cda8449c6a39ba3d9bcfa40947713322e68a3e3b.bin → cc7bcf8fdff413c24057510cbaf7ec5412b22de421a69e873d0a07b4d0e86cfa.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +446 -260
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/headless-loop.md +1 -1
- package/guides/one-app-section-mappings.md +1 -1
- package/guides/one-app-to-himi-app.md +15 -6
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -3970,7 +3970,6 @@ var init_himi_package = __esm({
|
|
|
3970
3970
|
var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
|
|
3971
3971
|
var init_icon_catalog_generated = __esm({
|
|
3972
3972
|
"../../core/ts/src/icon-catalog.generated.ts"() {
|
|
3973
|
-
"use strict";
|
|
3974
3973
|
init_define_HHP_CATALOG();
|
|
3975
3974
|
ICON_VIEW_BOX = 24;
|
|
3976
3975
|
ICON_STROKE_WIDTH = 2;
|
|
@@ -4906,6 +4905,16 @@ var init_icon_catalog_generated = __esm({
|
|
|
4906
4905
|
"license": "Apache-2.0",
|
|
4907
4906
|
"libVersion": "0.45.9"
|
|
4908
4907
|
},
|
|
4908
|
+
"facebook": {
|
|
4909
|
+
"category": "brand",
|
|
4910
|
+
"path": [
|
|
4911
|
+
"M9.101 23.691L9.101 15.711L6.627 15.711L6.627 12.044L9.101 12.044L9.101 10.464C9.101 6.379 10.949 4.486 14.959 4.486C15.36 4.486 15.914 4.528 16.427 4.589C16.811 4.629 17.192 4.694 17.568 4.784L17.568 8.109C17.351 8.089 17.133 8.077 16.915 8.073C16.671 8.067 16.426 8.064 16.182 8.064C15.475 8.064 14.923 8.16 14.507 8.373C14.227 8.513 13.992 8.729 13.828 8.995C13.57 9.415 13.454 9.99 13.454 10.747L13.454 12.044L17.373 12.044L16.987 14.147L16.7 15.711L13.454 15.711L13.454 23.956C19.396 23.238 24 18.179 24 12.044C24 5.417 18.627 0.044 12 0.044C5.373 0.044 0 5.417 0 12.044C0 17.672 3.874 22.394 9.101 23.691Z"
|
|
4912
|
+
],
|
|
4913
|
+
"style": "filled",
|
|
4914
|
+
"source": "simple-icons/facebook",
|
|
4915
|
+
"license": "CC0-1.0",
|
|
4916
|
+
"libVersion": "16.36.0"
|
|
4917
|
+
},
|
|
4909
4918
|
"filter": {
|
|
4910
4919
|
"category": "navigation",
|
|
4911
4920
|
"path": [
|
|
@@ -5206,6 +5215,16 @@ var init_icon_catalog_generated = __esm({
|
|
|
5206
5215
|
"license": "Apache-2.0",
|
|
5207
5216
|
"libVersion": "0.45.9"
|
|
5208
5217
|
},
|
|
5218
|
+
"instagram": {
|
|
5219
|
+
"category": "brand",
|
|
5220
|
+
"path": [
|
|
5221
|
+
"M7.03 0.084C5.753 0.144 4.881 0.348 4.119 0.647C3.33 0.955 2.662 1.367 1.996 2.035C1.331 2.703 0.921 3.372 0.616 4.162C0.321 4.926 0.12 5.799 0.064 7.076C0.008 8.354 -0.005 8.764 0.001 12.023C0.008 15.282 0.022 15.69 0.084 16.97C0.145 18.247 0.348 19.119 0.647 19.881C0.955 20.67 1.367 21.338 2.035 22.004C2.703 22.669 3.372 23.078 4.164 23.384C4.927 23.679 5.8 23.88 7.077 23.936C8.355 23.992 8.766 24.005 12.024 23.999C15.281 23.992 15.692 23.978 16.971 23.917C18.251 23.856 19.118 23.652 19.881 23.354C20.67 23.045 21.339 22.634 22.004 21.966C22.669 21.298 23.078 20.628 23.383 19.837C23.679 19.074 23.88 18.201 23.935 16.925C23.991 15.644 24.005 15.235 23.998 11.977C23.992 8.719 23.977 8.31 23.917 7.03C23.856 5.751 23.653 4.882 23.353 4.119C23.045 3.33 22.633 2.662 21.966 1.996C21.298 1.33 20.628 0.921 19.838 0.617C19.074 0.321 18.202 0.12 16.924 0.065C15.647 0.009 15.236 -0.005 11.977 0.001C8.718 0.008 8.31 0.021 7.03 0.084M7.17 21.777C6 21.726 5.365 21.532 4.942 21.369C4.381 21.153 3.982 20.892 3.56 20.474C3.138 20.056 2.879 19.655 2.66 19.096C2.495 18.673 2.297 18.038 2.243 16.868C2.183 15.604 2.171 15.224 2.164 12.02C2.157 8.816 2.169 8.437 2.224 7.172C2.274 6.003 2.47 5.367 2.632 4.944C2.848 4.383 3.109 3.984 3.527 3.562C3.946 3.141 4.346 2.881 4.906 2.662C5.329 2.497 5.963 2.301 7.133 2.245C8.398 2.185 8.777 2.173 11.981 2.166C15.184 2.159 15.564 2.171 16.83 2.227C17.999 2.277 18.635 2.471 19.058 2.635C19.619 2.851 20.018 3.11 20.44 3.53C20.861 3.949 21.121 4.347 21.34 4.908C21.505 5.33 21.702 5.964 21.757 7.135C21.817 8.4 21.831 8.78 21.837 11.983C21.842 15.186 21.831 15.566 21.776 16.831C21.725 18.001 21.531 18.636 21.368 19.06C21.152 19.62 20.891 20.02 20.472 20.441C20.053 20.863 19.654 21.123 19.094 21.341C18.672 21.506 18.036 21.703 16.868 21.759C15.602 21.818 15.223 21.831 12.018 21.838C8.814 21.845 8.436 21.832 7.17 21.777M16.953 5.586C16.954 6.169 17.306 6.693 17.844 6.915C18.383 7.137 19.002 7.013 19.413 6.6C19.824 6.188 19.946 5.568 19.722 5.03C19.498 4.493 18.972 4.143 18.39 4.144C17.595 4.146 16.952 4.791 16.953 5.586M5.838 12.012C5.845 15.415 8.609 18.168 12.011 18.161C15.414 18.155 18.169 15.391 18.162 11.988C18.156 8.585 15.391 5.831 11.988 5.838C8.585 5.845 5.832 8.609 5.838 12.012M8 12.008C7.996 9.799 9.783 8.004 11.992 8C14.201 7.995 15.996 9.783 16 11.992C16.004 14.201 14.217 15.995 12.008 16C10.947 16.002 9.929 15.583 9.177 14.834C8.425 14.085 8.002 13.069 8 12.008"
|
|
5222
|
+
],
|
|
5223
|
+
"style": "filled",
|
|
5224
|
+
"source": "simple-icons/instagram",
|
|
5225
|
+
"license": "CC0-1.0",
|
|
5226
|
+
"libVersion": "16.36.0"
|
|
5227
|
+
},
|
|
5209
5228
|
"layers": {
|
|
5210
5229
|
"category": "navigation",
|
|
5211
5230
|
"path": [
|
|
@@ -5693,6 +5712,16 @@ var init_icon_catalog_generated = __esm({
|
|
|
5693
5712
|
"license": "Apache-2.0",
|
|
5694
5713
|
"libVersion": "0.45.9"
|
|
5695
5714
|
},
|
|
5715
|
+
"pinterest": {
|
|
5716
|
+
"category": "brand",
|
|
5717
|
+
"path": [
|
|
5718
|
+
"M12.017 0C5.396 0 0.029 5.367 0.029 11.987C0.029 17.066 3.187 21.404 7.647 23.149C7.542 22.2 7.448 20.746 7.688 19.71C7.907 18.773 9.094 13.753 9.094 13.753C9.094 13.753 8.735 13.033 8.735 11.972C8.735 10.309 9.702 9.061 10.903 9.061C11.927 9.061 12.421 9.83 12.421 10.749C12.421 11.778 11.768 13.316 11.429 14.741C11.144 15.934 12.029 16.906 13.204 16.906C15.332 16.906 16.972 14.661 16.972 11.419C16.972 8.558 14.909 6.55 11.964 6.55C8.554 6.55 6.555 9.112 6.555 11.749C6.555 12.782 6.949 13.892 7.444 14.49C7.543 14.61 7.556 14.715 7.529 14.835C7.439 15.21 7.236 16.034 7.195 16.198C7.142 16.423 7.023 16.469 6.794 16.363C5.299 15.673 4.361 13.485 4.361 11.717C4.361 7.941 7.109 4.465 12.281 4.465C16.439 4.465 19.673 7.432 19.673 11.388C19.673 15.523 17.066 18.85 13.44 18.85C12.226 18.85 11.086 18.221 10.682 17.471L9.933 20.319C9.664 21.364 8.929 22.671 8.435 23.465C9.558 23.81 10.741 24 11.985 24C18.592 24 23.97 18.635 23.97 12.013C23.97 5.39 18.592 0.026 11.985 0.026L12.017 0Z"
|
|
5719
|
+
],
|
|
5720
|
+
"style": "filled",
|
|
5721
|
+
"source": "simple-icons/pinterest",
|
|
5722
|
+
"license": "CC0-1.0",
|
|
5723
|
+
"libVersion": "16.36.0"
|
|
5724
|
+
},
|
|
5696
5725
|
"play": {
|
|
5697
5726
|
"category": "media",
|
|
5698
5727
|
"path": [
|
|
@@ -6248,6 +6277,16 @@ var init_icon_catalog_generated = __esm({
|
|
|
6248
6277
|
"license": "Apache-2.0",
|
|
6249
6278
|
"libVersion": "0.45.9"
|
|
6250
6279
|
},
|
|
6280
|
+
"tiktok": {
|
|
6281
|
+
"category": "brand",
|
|
6282
|
+
"path": [
|
|
6283
|
+
"M12.525 0.02C13.835 0 15.135 0.01 16.435 0C16.515 1.53 17.065 3.09 18.185 4.17C19.305 5.28 20.885 5.79 22.425 5.96L22.425 9.99C20.985 9.94 19.535 9.64 18.225 9.02C17.655 8.76 17.125 8.43 16.605 8.09C16.595 11.01 16.615 13.93 16.585 16.84C16.505 18.24 16.045 19.63 15.235 20.78C13.925 22.7 11.655 23.95 9.325 23.99C7.895 24.07 6.465 23.68 5.245 22.96C3.225 21.77 1.805 19.59 1.595 17.25C1.575 16.75 1.565 16.25 1.585 15.76C1.765 13.86 2.705 12.04 4.165 10.8C5.825 9.36 8.145 8.67 10.315 9.08C10.335 10.56 10.275 12.04 10.275 13.52C9.285 13.2 8.125 13.29 7.255 13.89C6.625 14.3 6.145 14.93 5.895 15.64C5.685 16.15 5.745 16.71 5.755 17.25C5.995 18.89 7.575 20.27 9.255 20.12C10.375 20.11 11.445 19.46 12.025 18.51C12.215 18.18 12.425 17.84 12.435 17.45C12.535 15.66 12.495 13.88 12.505 12.09C12.515 8.06 12.495 4.04 12.525 0.02Z"
|
|
6284
|
+
],
|
|
6285
|
+
"style": "filled",
|
|
6286
|
+
"source": "simple-icons/tiktok",
|
|
6287
|
+
"license": "CC0-1.0",
|
|
6288
|
+
"libVersion": "16.36.0"
|
|
6289
|
+
},
|
|
6251
6290
|
"trash": {
|
|
6252
6291
|
"category": "editing",
|
|
6253
6292
|
"path": [
|
|
@@ -6408,6 +6447,26 @@ var init_icon_catalog_generated = __esm({
|
|
|
6408
6447
|
"license": "Apache-2.0",
|
|
6409
6448
|
"libVersion": "0.45.9"
|
|
6410
6449
|
},
|
|
6450
|
+
"x_twitter": {
|
|
6451
|
+
"category": "brand",
|
|
6452
|
+
"path": [
|
|
6453
|
+
"M14.234 10.162L22.977 0L20.905 0L13.314 8.824L7.251 0L0.258 0L9.426 13.343L0.258 24L2.33 24L10.346 14.682L16.749 24L23.742 24ZM11.397 13.461L10.468 12.132L3.076 1.56L6.258 1.56L12.223 10.092L13.152 11.421L20.906 22.511L17.724 22.511Z"
|
|
6454
|
+
],
|
|
6455
|
+
"style": "filled",
|
|
6456
|
+
"source": "simple-icons/x",
|
|
6457
|
+
"license": "CC0-1.0",
|
|
6458
|
+
"libVersion": "16.36.0"
|
|
6459
|
+
},
|
|
6460
|
+
"youtube": {
|
|
6461
|
+
"category": "brand",
|
|
6462
|
+
"path": [
|
|
6463
|
+
"M23.498 6.186C23.222 5.147 22.414 4.333 21.376 4.05C19.505 3.545 12 3.545 12 3.545C12 3.545 4.495 3.545 2.623 4.05C1.586 4.333 0.778 5.147 0.502 6.186C0 8.07 0 12 0 12C0 12 0 15.93 0.502 17.814C0.778 18.853 1.586 19.667 2.624 19.95C4.495 20.455 12 20.455 12 20.455C12 20.455 19.505 20.455 21.377 19.95C22.415 19.667 23.223 18.854 23.499 17.814C24 15.93 24 12 24 12C24 12 24 8.07 23.498 6.186ZM9.545 15.568L9.545 8.432L15.818 12L9.545 15.568Z"
|
|
6464
|
+
],
|
|
6465
|
+
"style": "filled",
|
|
6466
|
+
"source": "simple-icons/youtube",
|
|
6467
|
+
"license": "CC0-1.0",
|
|
6468
|
+
"libVersion": "16.36.0"
|
|
6469
|
+
},
|
|
6411
6470
|
"_unknown": {
|
|
6412
6471
|
"category": "system",
|
|
6413
6472
|
"path": [
|
|
@@ -6483,6 +6542,7 @@ var init_icon_catalog_generated = __esm({
|
|
|
6483
6542
|
"error": "error",
|
|
6484
6543
|
"expand": "expand",
|
|
6485
6544
|
"externallink": "external_link",
|
|
6545
|
+
"facebook": "facebook",
|
|
6486
6546
|
"filter": "filter",
|
|
6487
6547
|
"folder": "folder",
|
|
6488
6548
|
"fullscreen": "fullscreen",
|
|
@@ -6502,6 +6562,7 @@ var init_icon_catalog_generated = __esm({
|
|
|
6502
6562
|
"inbox": "inbox",
|
|
6503
6563
|
"tray": "inbox",
|
|
6504
6564
|
"info": "info",
|
|
6565
|
+
"instagram": "instagram",
|
|
6505
6566
|
"layers": "layers",
|
|
6506
6567
|
"link": "link",
|
|
6507
6568
|
"list": "list",
|
|
@@ -6533,6 +6594,7 @@ var init_icon_catalog_generated = __esm({
|
|
|
6533
6594
|
"personfill": "person_fill",
|
|
6534
6595
|
"phone": "phone",
|
|
6535
6596
|
"pin": "pin",
|
|
6597
|
+
"pinterest": "pinterest",
|
|
6536
6598
|
"play": "play",
|
|
6537
6599
|
"playcircle": "play_circle",
|
|
6538
6600
|
"playcirclefill": "play_circle_fill",
|
|
@@ -6565,6 +6627,7 @@ var init_icon_catalog_generated = __esm({
|
|
|
6565
6627
|
"tag": "tag",
|
|
6566
6628
|
"ticket": "ticket",
|
|
6567
6629
|
"ticketfill": "ticket_fill",
|
|
6630
|
+
"tiktok": "tiktok",
|
|
6568
6631
|
"trash": "trash",
|
|
6569
6632
|
"trendingdown": "trending_down",
|
|
6570
6633
|
"trendingup": "trending_up",
|
|
@@ -6575,6 +6638,8 @@ var init_icon_catalog_generated = __esm({
|
|
|
6575
6638
|
"warning": "warning",
|
|
6576
6639
|
"whatsapp": "whatsapp",
|
|
6577
6640
|
"wifi": "wifi",
|
|
6641
|
+
"xtwitter": "x_twitter",
|
|
6642
|
+
"youtube": "youtube",
|
|
6578
6643
|
"unknown": "_unknown"
|
|
6579
6644
|
};
|
|
6580
6645
|
ICON_NAMES = [
|
|
@@ -6633,6 +6698,7 @@ var init_icon_catalog_generated = __esm({
|
|
|
6633
6698
|
"external_link",
|
|
6634
6699
|
"eye",
|
|
6635
6700
|
"eye_slash",
|
|
6701
|
+
"facebook",
|
|
6636
6702
|
"filter",
|
|
6637
6703
|
"folder",
|
|
6638
6704
|
"forward",
|
|
@@ -6654,6 +6720,7 @@ var init_icon_catalog_generated = __esm({
|
|
|
6654
6720
|
"image",
|
|
6655
6721
|
"inbox",
|
|
6656
6722
|
"info",
|
|
6723
|
+
"instagram",
|
|
6657
6724
|
"layers",
|
|
6658
6725
|
"link",
|
|
6659
6726
|
"list",
|
|
@@ -6686,6 +6753,7 @@ var init_icon_catalog_generated = __esm({
|
|
|
6686
6753
|
"phone",
|
|
6687
6754
|
"photo",
|
|
6688
6755
|
"pin",
|
|
6756
|
+
"pinterest",
|
|
6689
6757
|
"play",
|
|
6690
6758
|
"play_circle",
|
|
6691
6759
|
"play_circle_fill",
|
|
@@ -6719,6 +6787,7 @@ var init_icon_catalog_generated = __esm({
|
|
|
6719
6787
|
"tag",
|
|
6720
6788
|
"ticket",
|
|
6721
6789
|
"ticket_fill",
|
|
6790
|
+
"tiktok",
|
|
6722
6791
|
"trash",
|
|
6723
6792
|
"tray",
|
|
6724
6793
|
"trending_down",
|
|
@@ -6730,7 +6799,9 @@ var init_icon_catalog_generated = __esm({
|
|
|
6730
6799
|
"warning",
|
|
6731
6800
|
"whatsapp",
|
|
6732
6801
|
"wifi",
|
|
6733
|
-
"
|
|
6802
|
+
"x_twitter",
|
|
6803
|
+
"xmark",
|
|
6804
|
+
"youtube"
|
|
6734
6805
|
];
|
|
6735
6806
|
}
|
|
6736
6807
|
});
|
|
@@ -216037,7 +216108,7 @@ function addNavigation(out2, plan, taken2, pageIconOf) {
|
|
|
216037
216108
|
out2.routes.push({ layoutItemId: "(more)", label: "More", screenId, kind: "generated" });
|
|
216038
216109
|
out2.tabs.push({ layoutItemId: "(more)", label: "More", screenId });
|
|
216039
216110
|
}
|
|
216040
|
-
var TEMPLATE_HOME_SCREEN, TEMPLATE_SCREEN_PARAM_KEYS, SYSTEM_ALL_PRODUCTS_ID, collectionParams, faqHiddenCategories, TEMPLATE_PARAMS, countOf2, SCREEN_ADAPTATIONS, FALLBACK_TARGETS, BOTTOM_TABS_BEFORE_MORE, TEMPLATE_VERTICALS, PAGE_TYPE_ICONS, HOME_TAB_ICON, TEMPLATE_FALLBACKS, MODULES, obj20, arr4, str16, node3, text10, vstack, hstack, inset, youtubeIdOf, DIRECT_VIDEO_FILE, UNREAD_IMAGE_RATIO, REPEATER_COLUMNS_MAX, REPEATER_ON_IMAGE_INSET, REPEATER_ON_SHADE_THEME, REPEATER_ON_BARE_IMAGE_THEME, REPEATER_IMAGE_SHADE, BUSINESS_CHAT_SCREEN, SUBSCRIPTIONS_MAX, selectedPlanIds, PLAN_SELECT_LABEL, PLAN_DETAILS_LABEL, PLAN_BENEFITS_LABEL, BANNER_HEX, BANNER_TEXT_DEFAULT, MEMBERS_RAIL, PROGRAMS_DEFAULT_LIMIT, PROGRAMS_INLINE_MAX, PODCAST_INLINE, GALLERIES_INLINE_MAX, GALLERIES_LIST_INLINE, BLOG_HERO_MAX, BLOG_SEARCH_POSTS, EVENT_SCHEDULE_INLINE, SHOP_ALL, SERVICES_INLINE, UPCOMING_INLINE, CALENDAR_INLINE, UPCOMING_SESSIONS_INLINE, UPCOMING_INTERVALS, HISTORY_INLINE, PRODUCTS_INLINE, GROUP_FEED_POSTS_MAX, POST_ACTION_LABELS, postActionsGap, NEWSFEED_GROUPS_MAX, LOYALTY_TIERS_INLINE, VIDEOS_INLINE_DEFAULT, VIDEOS_INLINE_MAX, WISHLIST_INLINE, EVENTS_RAIL_INLINE, SOCIAL_NETWORKS, HANDLERS, memberActionService, MERGED_PAGES_BUNDLE, hasCtaButton, chevron;
|
|
216111
|
+
var TEMPLATE_HOME_SCREEN, TEMPLATE_SCREEN_PARAM_KEYS, SYSTEM_ALL_PRODUCTS_ID, collectionParams, faqHiddenCategories, TEMPLATE_PARAMS, countOf2, SCREEN_ADAPTATIONS, FALLBACK_TARGETS, BOTTOM_TABS_BEFORE_MORE, TEMPLATE_VERTICALS, PAGE_TYPE_ICONS, HOME_TAB_ICON, TEMPLATE_FALLBACKS, MODULES, obj20, arr4, str16, node3, text10, vstack, hstack, inset, youtubeIdOf, DIRECT_VIDEO_FILE, UNREAD_IMAGE_RATIO, REPEATER_COLUMNS_MAX, REPEATER_ON_IMAGE_INSET, REPEATER_ON_SHADE_THEME, REPEATER_ON_BARE_IMAGE_THEME, REPEATER_IMAGE_SHADE, BUSINESS_CHAT_SCREEN, SUBSCRIPTIONS_MAX, selectedPlanIds, PLAN_SELECT_LABEL, PLAN_DETAILS_LABEL, PLAN_BENEFITS_LABEL, BANNER_HEX, BANNER_TEXT_DEFAULT, MEMBERS_RAIL, PROGRAMS_DEFAULT_LIMIT, PROGRAMS_INLINE_MAX, PODCAST_INLINE, GALLERIES_INLINE_MAX, GALLERIES_LIST_INLINE, BLOG_HERO_MAX, BLOG_SEARCH_POSTS, EVENT_SCHEDULE_INLINE, SHOP_ALL, SERVICES_INLINE, UPCOMING_INLINE, CALENDAR_INLINE, UPCOMING_SESSIONS_INLINE, UPCOMING_INTERVALS, HISTORY_INLINE, PRODUCTS_INLINE, GROUP_FEED_POSTS_MAX, POST_ACTION_LABELS, postActionsGap, NEWSFEED_GROUPS_MAX, LOYALTY_TIERS_INLINE, VIDEOS_INLINE_DEFAULT, VIDEOS_INLINE_MAX, WISHLIST_INLINE, EVENTS_RAIL_INLINE, SOCIAL_NETWORKS, SOCIAL_BUTTON, HANDLERS, memberActionService, MERGED_PAGES_BUNDLE, hasCtaButton, chevron;
|
|
216041
216112
|
var init_generate = __esm({
|
|
216042
216113
|
"src/one-app/generate.ts"() {
|
|
216043
216114
|
init_define_HHP_CATALOG();
|
|
@@ -216364,16 +216435,18 @@ var init_generate = __esm({
|
|
|
216364
216435
|
WISHLIST_INLINE = 6;
|
|
216365
216436
|
EVENTS_RAIL_INLINE = 10;
|
|
216366
216437
|
SOCIAL_NETWORKS = {
|
|
216367
|
-
instagram: "Instagram",
|
|
216368
|
-
facebook: "Facebook",
|
|
216369
|
-
youtube: "YouTube",
|
|
216370
|
-
tiktok: "TikTok",
|
|
216371
|
-
twitter: "X (Twitter)",
|
|
216372
|
-
|
|
216373
|
-
|
|
216374
|
-
|
|
216375
|
-
|
|
216376
|
-
|
|
216438
|
+
instagram: { label: "Instagram", glyph: "instagram" },
|
|
216439
|
+
facebook: { label: "Facebook", glyph: "facebook" },
|
|
216440
|
+
youtube: { label: "YouTube", glyph: "youtube" },
|
|
216441
|
+
tiktok: { label: "TikTok", glyph: "tiktok" },
|
|
216442
|
+
twitter: { label: "X (Twitter)", glyph: "x_twitter" },
|
|
216443
|
+
x: { label: "X (Twitter)", glyph: "x_twitter" },
|
|
216444
|
+
pinterest: { label: "Pinterest", glyph: "pinterest" },
|
|
216445
|
+
linkedin: { label: "LinkedIn" },
|
|
216446
|
+
whatsapp: { label: "WhatsApp", glyph: "whatsapp" },
|
|
216447
|
+
globe: { label: "Website", glyph: "globe" }
|
|
216448
|
+
};
|
|
216449
|
+
SOCIAL_BUTTON = 48;
|
|
216377
216450
|
HANDLERS = {
|
|
216378
216451
|
platform_elements_title_section: (id, _s2, st2) => {
|
|
216379
216452
|
const style = st2.textStyle === "heading" ? "title2" : "title3";
|
|
@@ -217238,28 +217311,43 @@ var init_generate = __esm({
|
|
|
217238
217311
|
if (missing4.length) ctx.gap(sectionId, type2, `the source card shows ${missing4.join(" and ")}; the card has ${missing4.length > 1 ? "neither" : "none"}`);
|
|
217239
217312
|
return eventsInline(id, s5, st2, index, ctx, true);
|
|
217240
217313
|
},
|
|
217241
|
-
// Links to the business's networks
|
|
217242
|
-
//
|
|
217314
|
+
// Links to the business's networks, as the source draws them: one round button per link holding the network's mark, in source order,
|
|
217315
|
+
// in a row that wraps on a narrow screen. Each is a button named for its network. A network Himi has no mark for (LinkedIn, an unknown
|
|
217316
|
+
// host) is a pill in the same row that shows its name, so no two links look alike. A link that is not an http(s) URL is left out and
|
|
217317
|
+
// reported, never opened as something else.
|
|
217243
217318
|
platform_general_social_links_section: (id, s5, st2, _i2, ctx, sectionId) => {
|
|
217244
217319
|
const type2 = "platform_general_social_links_section";
|
|
217320
|
+
const unmarked = [];
|
|
217245
217321
|
const buttons = arr4(st2.links).map(obj20).flatMap((link4, i2) => {
|
|
217246
217322
|
const url = webUrl(str16(link4.url));
|
|
217247
217323
|
if (!url) {
|
|
217248
217324
|
ctx.gap(sectionId, type2, `the link "${str16(link4.url).trim() || "(empty)"}" is not an http(s) URL, so it is left out`);
|
|
217249
217325
|
return [];
|
|
217250
217326
|
}
|
|
217251
|
-
const
|
|
217252
|
-
|
|
217327
|
+
const network = SOCIAL_NETWORKS[str16(link4.icon).trim().toLowerCase()];
|
|
217328
|
+
const label4 = network?.label ?? new URL(url).hostname.replace(/^www\./, "");
|
|
217329
|
+
const face = { background: { token: "accentSurface" }, onTap: openUrl(url), accessibilityLabel: label4, accessibilityRole: "link" };
|
|
217330
|
+
if (!network?.glyph) {
|
|
217331
|
+
unmarked.push(label4);
|
|
217332
|
+
return [text10(`${id}.l${i2}`, label4, "bodyEmphasis", { maxLines: 1 }, { ...face, cornerRadius: 999, maxWidth: 240, padding: { leading: 18, trailing: 18, top: 13, bottom: 13 } })];
|
|
217333
|
+
}
|
|
217334
|
+
return [node3(
|
|
217335
|
+
`${id}.l${i2}`,
|
|
217336
|
+
"ZStack",
|
|
217337
|
+
{ alignment: "center", children: [node3(`${id}.l${i2}.icon`, "Icon", { name: network.glyph, size: 24, tint: "textPrimary" })] },
|
|
217338
|
+
{ ...face, cornerRadius: SOCIAL_BUTTON / 2, width: SOCIAL_BUTTON, height: SOCIAL_BUTTON }
|
|
217339
|
+
)];
|
|
217253
217340
|
});
|
|
217254
217341
|
if (!buttons.length) {
|
|
217255
217342
|
ctx.gap(sectionId, type2, "the section has no link to show, so it is left out");
|
|
217256
217343
|
return null;
|
|
217257
217344
|
}
|
|
217258
|
-
ctx.gap(sectionId, type2, "
|
|
217345
|
+
if (unmarked.length) ctx.gap(sectionId, type2, `Himi has no mark for ${[...new Set(unmarked)].join(", ")}, so ${unmarked.length > 1 ? "those links show their names" : "its link shows its name"} instead of an icon`);
|
|
217259
217346
|
const children2 = [];
|
|
217260
217347
|
const title = str16(s5.title).trim();
|
|
217261
217348
|
if (s5.showTitle === true && title) children2.push(text10(`${id}.title`, title, "title3", {}, inset(0, 0, 0)));
|
|
217262
|
-
|
|
217349
|
+
children2.push(node3(`${id}.links`, "HStack", { spacing: 8, alignment: "center", wrap: true, children: buttons }));
|
|
217350
|
+
return vstack(`${id}.box`, children2, 12, inset(16, 16));
|
|
217263
217351
|
},
|
|
217264
217352
|
// A form (a v4 form id or a legacy short id), laid out inline as the source does: the section's own heading, then the form's fields,
|
|
217265
217353
|
// validation, draft and submit from the himi_form screen's own service (form-section). A form with a field the app cannot fill
|
|
@@ -217497,6 +217585,58 @@ function provisionAppName(dir, displayName3, dryRun = false) {
|
|
|
217497
217585
|
if (!dryRun) writeFileSync48(configPath, correction.fixed, "utf8");
|
|
217498
217586
|
return { status: "set", from: correction.current, to: displayName3.trim() };
|
|
217499
217587
|
}
|
|
217588
|
+
function aboutBlock(paragraphs) {
|
|
217589
|
+
return {
|
|
217590
|
+
id: ABOUT_ID,
|
|
217591
|
+
body: { package: "himalaya", type: "VStack", props: { spacing: 16, alignment: "leading", children: paragraphs.map((text32) => ({ id: "", body: { package: "himalaya", type: "Text", props: { text: text32, style: "body", color: "textSecondary" } } })) } },
|
|
217592
|
+
modifiers: { fillMaxWidth: true, padding: { top: 20 } }
|
|
217593
|
+
};
|
|
217594
|
+
}
|
|
217595
|
+
function appInfoChildren(descriptor) {
|
|
217596
|
+
const children2 = obj21(obj21(obj21(descriptor?.payload).body).props).children;
|
|
217597
|
+
return Array.isArray(children2) && children2.some((c2) => obj21(c2).id === LINKS_ID) ? children2 : void 0;
|
|
217598
|
+
}
|
|
217599
|
+
function aboutTexts(children2) {
|
|
217600
|
+
const block = children2.find((c2) => obj21(c2).id === ABOUT_ID);
|
|
217601
|
+
if (!block) return void 0;
|
|
217602
|
+
const texts = obj21(obj21(obj21(block).body).props).children;
|
|
217603
|
+
return Array.isArray(texts) ? texts.map((t2) => String(obj21(obj21(obj21(t2).body).props).text ?? "")) : [];
|
|
217604
|
+
}
|
|
217605
|
+
function templateAboutTexts() {
|
|
217606
|
+
try {
|
|
217607
|
+
const children2 = appInfoChildren(readEntry(templateSourceDir("branded-lite"), APP_INFO_SCREEN));
|
|
217608
|
+
return children2 ? aboutTexts(children2) : void 0;
|
|
217609
|
+
} catch {
|
|
217610
|
+
return void 0;
|
|
217611
|
+
}
|
|
217612
|
+
}
|
|
217613
|
+
function provisionAppInfoAbout(dir, about, dryRun = false) {
|
|
217614
|
+
if (about === void 0) return { status: "unverified", reason: "the collection did not read the site description; the About screen is left as it is" };
|
|
217615
|
+
const descriptor = readEntry(dir, APP_INFO_SCREEN);
|
|
217616
|
+
const children2 = appInfoChildren(descriptor);
|
|
217617
|
+
if (!descriptor || !children2) {
|
|
217618
|
+
return { status: "absent", reason: `the scaffold has no ${APP_INFO_SCREEN} in the template's shape; its About text is left as it is` };
|
|
217619
|
+
}
|
|
217620
|
+
const props2 = obj21(obj21(obj21(descriptor.payload).body).props);
|
|
217621
|
+
const paragraphs = about.split(/\n\s*\n/).map((p2) => p2.trim()).filter(Boolean);
|
|
217622
|
+
const current = aboutTexts(children2);
|
|
217623
|
+
const same7 = (a3, b3) => JSON.stringify(a3) === JSON.stringify(b3);
|
|
217624
|
+
if (current && !same7(current, paragraphs) && !same7(current, templateAboutTexts() ?? [])) {
|
|
217625
|
+
return { status: "kept", reason: "the About text is not the template's demo text, so it is someone's own copy and is left as written" };
|
|
217626
|
+
}
|
|
217627
|
+
const next = children2.filter((c2) => obj21(c2).id !== ABOUT_ID);
|
|
217628
|
+
const at2 = next.findIndex((c2) => obj21(c2).id === LINKS_ID);
|
|
217629
|
+
const links = obj21(next[at2]);
|
|
217630
|
+
const modifiers = obj21(links.modifiers);
|
|
217631
|
+
next[at2] = { ...links, modifiers: { ...modifiers, padding: { ...obj21(modifiers.padding), top: paragraphs.length ? 24 : 20 } } };
|
|
217632
|
+
if (paragraphs.length) next.splice(at2, 0, aboutBlock(paragraphs));
|
|
217633
|
+
if (JSON.stringify(next) === JSON.stringify(children2)) return { status: "unchanged" };
|
|
217634
|
+
if (!dryRun) {
|
|
217635
|
+
props2.children = next;
|
|
217636
|
+
replaceScreen(dir, APP_INFO_SCREEN, screenEntry(APP_INFO_SCREEN, descriptor));
|
|
217637
|
+
}
|
|
217638
|
+
return paragraphs.length ? { status: "set" } : { status: "removed", reason: "the site has no description; the template's demo text is taken out, and no text is invented" };
|
|
217639
|
+
}
|
|
217500
217640
|
function readEntry(dir, screenId) {
|
|
217501
217641
|
const { dev, config } = readAppEntrySources(dir);
|
|
217502
217642
|
const span = screenSpans(dev, config).get(screenId);
|
|
@@ -217593,6 +217733,7 @@ function provisionScreens(dir, facts, dryRun = false) {
|
|
|
217593
217733
|
}
|
|
217594
217734
|
out2.appName = provisionAppName(dir, facts.displayName, dryRun);
|
|
217595
217735
|
out2.renamed = provisionScreenNames(dir, facts.displayName, dryRun);
|
|
217736
|
+
out2.about = provisionAppInfoAbout(dir, facts.about, dryRun);
|
|
217596
217737
|
out2.tabBar = provisionTabBar(dir, dryRun);
|
|
217597
217738
|
out2.chat = provisionChatTarget(dir, facts.memberChat, dryRun);
|
|
217598
217739
|
const home2 = readEntry(dir, TEMPLATE_HOME_SCREEN);
|
|
@@ -217652,6 +217793,8 @@ async function runOneAppProvision(args, io2) {
|
|
|
217652
217793
|
...typeof context.paymentCurrency === "string" && /^[A-Z]{3}$/.test(context.paymentCurrency) ? { paymentCurrency: context.paymentCurrency } : {},
|
|
217653
217794
|
...typeof context.timeZone === "string" && context.timeZone ? { timeZone: context.timeZone } : {},
|
|
217654
217795
|
...typeof context.displayName === "string" && context.displayName.trim() ? { displayName: context.displayName } : {},
|
|
217796
|
+
// "" is the collection's "the site has none"; an absent field is "not read".
|
|
217797
|
+
...typeof context.about === "string" ? { about: context.about } : {},
|
|
217655
217798
|
// Recorded by the collection from the source's own Inbox setting: only an explicit true counts.
|
|
217656
217799
|
...manifest2.memberChat === true ? { memberChat: true } : {},
|
|
217657
217800
|
// The source site the migration collected from: what the same-site binding is written from.
|
|
@@ -217669,12 +217812,13 @@ async function runOneAppProvision(args, io2) {
|
|
|
217669
217812
|
return report3(io2, false, { code: "content_invalid", error: error instanceof Error ? error.message : String(error) });
|
|
217670
217813
|
}
|
|
217671
217814
|
}
|
|
217672
|
-
var obj21, PROVISION_USAGE, PROVISIONED_PARAMS, propName9, propOf, GUID2, BUSINESS_CHAT_SCREEN2, INBOX_DOOR_SCREENS, NAME_SLOTS, spansByText, spanParses;
|
|
217815
|
+
var obj21, PROVISION_USAGE, PROVISIONED_PARAMS, propName9, propOf, GUID2, BUSINESS_CHAT_SCREEN2, INBOX_DOOR_SCREENS, NAME_SLOTS, APP_INFO_SCREEN, ABOUT_ID, LINKS_ID, spansByText, spanParses;
|
|
217673
217816
|
var init_provision = __esm({
|
|
217674
217817
|
"src/one-app/provision.ts"() {
|
|
217675
217818
|
init_define_HHP_CATALOG();
|
|
217676
217819
|
init_template_adopt();
|
|
217677
217820
|
init_content_manifest();
|
|
217821
|
+
init_scaffold();
|
|
217678
217822
|
init_template_trim();
|
|
217679
217823
|
init_coverage();
|
|
217680
217824
|
init_validate_topbar();
|
|
@@ -217704,6 +217848,9 @@ var init_provision = __esm({
|
|
|
217704
217848
|
BUSINESS_CHAT_SCREEN2 = "himi_business_chat";
|
|
217705
217849
|
INBOX_DOOR_SCREENS = ["himi_account", "himi_chat_thread"];
|
|
217706
217850
|
NAME_SLOTS = /* @__PURE__ */ new Set([...DISPLAY_KEYS, "title", "text", "displayName"]);
|
|
217851
|
+
APP_INFO_SCREEN = "himi_app_info";
|
|
217852
|
+
ABOUT_ID = "himi_app_info.about";
|
|
217853
|
+
LINKS_ID = "himi_app_info.links";
|
|
217707
217854
|
spansByText = /* @__PURE__ */ new Map();
|
|
217708
217855
|
spanParses = 0;
|
|
217709
217856
|
}
|
|
@@ -284029,58 +284176,58 @@ var init_preview_assets_generated = __esm({
|
|
|
284029
284176
|
init_define_HHP_CATALOG();
|
|
284030
284177
|
init_preview_assets_format();
|
|
284031
284178
|
PREVIEW_ASSET_MANIFEST = [
|
|
284032
|
-
{ key: "assets/DashboardHost-
|
|
284033
|
-
{ key: "assets/DevDrawer-
|
|
284034
|
-
{ key: "assets/IdiomCompare-
|
|
284035
|
-
{ key: "assets/LightboxViewer-
|
|
284036
|
-
{ key: "assets/OfflineReadingBar-
|
|
284037
|
-
{ key: "assets/PhonePreviewControl-
|
|
284038
|
-
{ key: "assets/SchemeCompare-
|
|
284039
|
-
{ key: "assets/TopBandLayer-
|
|
284040
|
-
{ key: "assets/TopBarSearchStates-
|
|
284041
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
284179
|
+
{ key: "assets/DashboardHost-BXW3zlFR.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "af557acde4cda3077309bba221b41653a0cf34bddbb6a7fe6a8b550f57c48d24" },
|
|
284180
|
+
{ key: "assets/DevDrawer-CundDFS0.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "15b7003a94532091d40ec3c2080e25e688def8c13056e3beb4db7dde27eb8230" },
|
|
284181
|
+
{ key: "assets/IdiomCompare-CJOAKzJF.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "365ce0044d6b23fce0282b9304f1f2a1df35991c325f9ddd0b87a3dd2b67bcb9" },
|
|
284182
|
+
{ key: "assets/LightboxViewer-C6OCn8dG.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15970, sha256: "a4ca72b6fd9463a3bfe70a7b6df4a81b0b004ecd2a559f4f8232fc50d31e9dbf" },
|
|
284183
|
+
{ key: "assets/OfflineReadingBar-Bg8Cogmx.js", contentType: "application/javascript; charset=utf-8", offset: 37672, length: 1761, sha256: "2d4ba28aec5e2e4c46d7d4d024344d630b19d96c12f2f350652583af08ad5038" },
|
|
284184
|
+
{ key: "assets/PhonePreviewControl-B5B99aNt.js", contentType: "application/javascript; charset=utf-8", offset: 39433, length: 37851, sha256: "1cca7e1a71ff8d48d3f6f0afd9a7af3b1b0e62932013600bc9d99153f7fe46b5" },
|
|
284185
|
+
{ key: "assets/SchemeCompare-2oIUMA1F.js", contentType: "application/javascript; charset=utf-8", offset: 77284, length: 1858, sha256: "d89275ccc463484cd84099d3951a321da9c0fa3ccbff999c69665c2b22032493" },
|
|
284186
|
+
{ key: "assets/TopBandLayer-BrJyZT6N.js", contentType: "application/javascript; charset=utf-8", offset: 79142, length: 1275, sha256: "0b08c110bfcb3051ce1d09057688ec2e1d340a9ae81d8de3f7d5d01aa53d157d" },
|
|
284187
|
+
{ key: "assets/TopBarSearchStates-Btfgegq7.js", contentType: "application/javascript; charset=utf-8", offset: 80417, length: 4069, sha256: "3882b3581841a0a2a3bf4269fff7748e059c0729e05c277dd246d29ceb876b47" },
|
|
284188
|
+
{ key: "assets/WixFrogTelemetrySink-wa1zZaPO.js", contentType: "application/javascript; charset=utf-8", offset: 84486, length: 3586, sha256: "6da7499cf456cdef7b0882cc4751ad334738ace06066d3c4c6794bc9d22cb949" },
|
|
284042
284189
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 88072, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
284043
284190
|
{ key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 90264, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
|
|
284044
|
-
{ key: "assets/catalogFontFaces-
|
|
284191
|
+
{ key: "assets/catalogFontFaces-DEGBoUqh.js", contentType: "application/javascript; charset=utf-8", offset: 125890, length: 1111, sha256: "9e1b16404e559055a1a85b7cd351b0ca41c7922c89776add846a877602072821" },
|
|
284045
284192
|
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 127001, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
284046
|
-
{ key: "assets/files-transfer-
|
|
284193
|
+
{ key: "assets/files-transfer-B18DKtnE.js", contentType: "application/javascript; charset=utf-8", offset: 129568, length: 9311, sha256: "e19f05d93d1f397691e4cd5f002f3c393068cbf86f3a1fe0be1bcea0d380c046" },
|
|
284047
284194
|
{ key: "assets/frogActionMap-tm2NQk9s.js", contentType: "application/javascript; charset=utf-8", offset: 138879, length: 1336, sha256: "72bb60d400d913ff4865c17604fef897e270e094c52bceca76c22cd9f88847df" },
|
|
284048
|
-
{ key: "assets/frogApiRules-
|
|
284195
|
+
{ key: "assets/frogApiRules-DTmwiS1l.js", contentType: "application/javascript; charset=utf-8", offset: 140215, length: 2803, sha256: "16fae2847c38b5b6b84bc80dd9204c52aa4e320d92a27a02ff1e44f29ee32e7b" },
|
|
284049
284196
|
{ key: "assets/frogScreenMap-LM0nfzDQ.js", contentType: "application/javascript; charset=utf-8", offset: 143018, length: 1096, sha256: "991b931a02a029c9c4514f0ccbdc8a07f4cf2168ea3e23ffe5e244327fa05141" },
|
|
284050
284197
|
{ key: "assets/frogScreenNavArgs-mIYDwUYX.js", contentType: "application/javascript; charset=utf-8", offset: 144114, length: 780, sha256: "6c9e52135322e0a752b57ef6f360d71400cb77414b4f29d480230ae174201230" },
|
|
284051
284198
|
{ key: "assets/glassPreviewBrowser-OVmIRgHt.js", contentType: "application/javascript; charset=utf-8", offset: 144894, length: 6800, sha256: "3671697a4f66a1f5f68610fab57d590630be70be934f59675ef1bda9a96e6fe3" },
|
|
284052
284199
|
{ key: "assets/godot-pack-cache-Cuhrw41M.js", contentType: "application/javascript; charset=utf-8", offset: 151694, length: 1626, sha256: "70b16367b8938ebd6eb8494a2b472171dd2acdcb452c52f35f140eb8ede9c0b7" },
|
|
284053
284200
|
{ key: "assets/iap-monitoring-pnsucaMg.js", contentType: "application/javascript; charset=utf-8", offset: 153320, length: 1721, sha256: "b554f39332dd0f39010aeb1eec33dd39132c7f86e61f2738ba7a62162fbf7633" },
|
|
284054
284201
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 155041, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
284055
|
-
{ key: "assets/index-
|
|
284056
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
284057
|
-
{ key: "assets/network-watches-
|
|
284058
|
-
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
284059
|
-
{ key: "assets/pdf-
|
|
284060
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
284061
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
284062
|
-
{ key: "assets/pdfDocument-
|
|
284063
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
284064
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
284065
|
-
{ key: "assets/webviewBridgeHost-
|
|
284066
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
284067
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
284068
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
284069
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
284070
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
284071
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
284072
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
284073
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
284074
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
284075
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
284076
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
284077
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
284078
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
284079
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
284080
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
284081
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
284082
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
284083
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
284202
|
+
{ key: "assets/index-DSGumcv4.js", contentType: "application/javascript; charset=utf-8", offset: 157745, length: 1763457, sha256: "e3ab4add963f901e62875cb7c9f62a1bc40153a1b2335e06d944376fff07b570" },
|
|
284203
|
+
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1921202, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
|
|
284204
|
+
{ key: "assets/network-watches-LfVGK0Hp.js", contentType: "application/javascript; charset=utf-8", offset: 1928953, length: 1299, sha256: "c7cc57154664a8b3e212c89299230b5cf568365ffd0c4d5c11b58b25a792a5ab" },
|
|
284205
|
+
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1930252, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
|
|
284206
|
+
{ key: "assets/pdf-BlBXOV15.js", contentType: "application/javascript; charset=utf-8", offset: 1940783, length: 488215, sha256: "cc7bcf8fdff413c24057510cbaf7ec5412b22de421a69e873d0a07b4d0e86cfa" },
|
|
284207
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2428998, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
284208
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2429088, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
284209
|
+
{ key: "assets/pdfDocument-BXayW24N.js", contentType: "application/javascript; charset=utf-8", offset: 3746122, length: 3836, sha256: "c4790ba8e40f523eb1e05bfb84987b35a55586c937a7142dcca1f85722e2b7d3" },
|
|
284210
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3749958, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
284211
|
+
{ key: "assets/scrollLinkedRuntime-yPsV5YnM.js", contentType: "application/javascript; charset=utf-8", offset: 3752224, length: 2278, sha256: "9327bac3bb1d3b773db16bc8b63143d49795a39fc787ed2b275ae1b07c22d8af" },
|
|
284212
|
+
{ key: "assets/webviewBridgeHost-BOsqGnNS.js", contentType: "application/javascript; charset=utf-8", offset: 3754502, length: 9946, sha256: "4d0d078ee8dabb772b46fd8ba927b5305f675ded53d2bcf3cbd79e325c0edab1" },
|
|
284213
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3764448, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
284214
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3769058, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
284215
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4257642, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
284216
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4348566, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
284217
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4439550, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
284218
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4530530, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
284219
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4621402, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
284220
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4712382, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
284221
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4821018, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
284222
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4930102, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
284223
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 5039150, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
284224
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5146850, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
284225
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5234958, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
284226
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 5241776, length: 4924, sha256: "221c7f0e6f53d4f9bdfb69bd7fd2214190f89be3a5e119ac37fd227e6760e9e7" },
|
|
284227
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5246700, length: 15585, sha256: "98ec60ef8f9568532f0746d1092b5c76f1c52d718365c586c8bade8f62c7c5eb" },
|
|
284228
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5262285, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
284229
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5263456, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
|
|
284230
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5287759, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
|
|
284084
284231
|
];
|
|
284085
284232
|
}
|
|
284086
284233
|
});
|
|
@@ -308916,6 +309063,202 @@ var init_business_address = __esm({
|
|
|
308916
309063
|
}
|
|
308917
309064
|
});
|
|
308918
309065
|
|
|
309066
|
+
// src/site-analyze/derive.ts
|
|
309067
|
+
function aboutFromCrawl(about, crawlComplete) {
|
|
309068
|
+
const text32 = bounded(oneLine2(about), ABOUT_MAX_LENGTH);
|
|
309069
|
+
if (!text32 && !crawlComplete) return void 0;
|
|
309070
|
+
return text32;
|
|
309071
|
+
}
|
|
309072
|
+
function deriveAppName(ctx, override) {
|
|
309073
|
+
return clean3(override) || clean3(ctx.identity.businessName) || clean3(ctx.identity.siteDisplayName) || "My Business";
|
|
309074
|
+
}
|
|
309075
|
+
function deriveIconSource(ctx) {
|
|
309076
|
+
return clean3(ctx.brand.logo) || null;
|
|
309077
|
+
}
|
|
309078
|
+
function deriveVerticals(ctx) {
|
|
309079
|
+
const requested = new Set(ctx.content.installedVerticals);
|
|
309080
|
+
return KNOWN_VERTICALS.filter((v2) => requested.has(v2));
|
|
309081
|
+
}
|
|
309082
|
+
function unusableIdentifier(value2, max) {
|
|
309083
|
+
if (typeof value2 !== "string" || value2 === "") return "missing";
|
|
309084
|
+
if (value2 !== value2.trim()) {
|
|
309085
|
+
return "is surrounded by whitespace, which the manifest parser strips \u2014 the app would query a different id";
|
|
309086
|
+
}
|
|
309087
|
+
if (HAS_CONTROL_CHAR.test(value2)) {
|
|
309088
|
+
return "contains control characters, and removing them would name a different collection";
|
|
309089
|
+
}
|
|
309090
|
+
if (value2.length > max) return `is longer than ${max} characters`;
|
|
309091
|
+
return null;
|
|
309092
|
+
}
|
|
309093
|
+
function deriveAdoptedCmsCollections(cms) {
|
|
309094
|
+
const collections2 = [];
|
|
309095
|
+
const dropped = [];
|
|
309096
|
+
const seen = /* @__PURE__ */ new Set();
|
|
309097
|
+
for (const collection of cms) {
|
|
309098
|
+
const label4 = typeof collection.id === "string" ? collection.id.trim().slice(0, 60) : "";
|
|
309099
|
+
if (!label4) continue;
|
|
309100
|
+
if (collection.ownerAppId) {
|
|
309101
|
+
dropped.push({ id: label4, reason: "owned by a Wix app \u2014 its own vertical covers it" });
|
|
309102
|
+
continue;
|
|
309103
|
+
}
|
|
309104
|
+
const readRole = collection.readRole;
|
|
309105
|
+
if (readRole !== "ANYONE") {
|
|
309106
|
+
dropped.push({
|
|
309107
|
+
id: label4,
|
|
309108
|
+
reason: readRole === "SITE_MEMBER" || readRole === "SITE_MEMBER_AUTHOR" ? `read permission "${readRole}" \u2014 member-only rows would be cached unencrypted on the device and served to a later visitor` : `read permission ${readRole ? `"${readRole}"` : "unknown"} \u2014 a shipped app can only read ANYONE`
|
|
309109
|
+
});
|
|
309110
|
+
continue;
|
|
309111
|
+
}
|
|
309112
|
+
const idProblem = unusableIdentifier(collection.id, ID_MAX);
|
|
309113
|
+
if (idProblem) {
|
|
309114
|
+
dropped.push({ id: shown2(collection.id), reason: `id ${idProblem}` });
|
|
309115
|
+
continue;
|
|
309116
|
+
}
|
|
309117
|
+
const id = collection.id;
|
|
309118
|
+
if (seen.has(id)) {
|
|
309119
|
+
dropped.push({ id: label4, reason: "duplicate id" });
|
|
309120
|
+
continue;
|
|
309121
|
+
}
|
|
309122
|
+
const fields2 = collection.fields.flatMap((field) => {
|
|
309123
|
+
if (field.systemField || field.encrypted) return [];
|
|
309124
|
+
if (unusableIdentifier(field.key, ID_MAX)) return [];
|
|
309125
|
+
const key4 = field.key;
|
|
309126
|
+
return [{
|
|
309127
|
+
key: key4,
|
|
309128
|
+
// `key.slice(NAME_MAX)`, not bare `key`: a field key may be up to `ID_MAX`, and the
|
|
309129
|
+
// manifest caps a display NAME at `NAME_MAX`. Falling back to the whole key would
|
|
309130
|
+
// emit a name the shell's parser refuses, which fails open to the shell's own
|
|
309131
|
+
// collections — the silent restoration this whole function exists to prevent.
|
|
309132
|
+
displayName: plain4(field.displayName, NAME_MAX) || key4.slice(0, NAME_MAX),
|
|
309133
|
+
type: (plain4(field.type, TYPE_MAX) || "TEXT").toUpperCase()
|
|
309134
|
+
}];
|
|
309135
|
+
});
|
|
309136
|
+
const requested = collection.displayField;
|
|
309137
|
+
const displayField = fields2.some((field) => field.key === requested) ? requested : fields2[0]?.key;
|
|
309138
|
+
if (!displayField) {
|
|
309139
|
+
dropped.push({ id: label4, reason: "no readable field to show as a row title" });
|
|
309140
|
+
continue;
|
|
309141
|
+
}
|
|
309142
|
+
seen.add(id);
|
|
309143
|
+
collections2.push({
|
|
309144
|
+
id,
|
|
309145
|
+
displayName: plain4(collection.displayName, NAME_MAX) || id.slice(0, NAME_MAX),
|
|
309146
|
+
displayField,
|
|
309147
|
+
readRole,
|
|
309148
|
+
fields: fields2
|
|
309149
|
+
});
|
|
309150
|
+
}
|
|
309151
|
+
return { collections: collections2, dropped };
|
|
309152
|
+
}
|
|
309153
|
+
function deriveTailoring(ctx, overrides = {}, revision = "site-derived") {
|
|
309154
|
+
const appName2 = deriveAppName(ctx, overrides.appName);
|
|
309155
|
+
const supportUrl = clean3(overrides.supportUrl) || clean3(ctx.url.primary);
|
|
309156
|
+
const privacyUrl = clean3(overrides.privacyUrl);
|
|
309157
|
+
const termsUrl = clean3(overrides.termsUrl);
|
|
309158
|
+
const missing4 = [];
|
|
309159
|
+
if (!supportUrl) missing4.push("supportUrl");
|
|
309160
|
+
if (!privacyUrl) missing4.push("privacyUrl");
|
|
309161
|
+
if (!termsUrl) missing4.push("termsUrl");
|
|
309162
|
+
const provisioning = {
|
|
309163
|
+
version: 1,
|
|
309164
|
+
siteId: ctx.siteId,
|
|
309165
|
+
revision,
|
|
309166
|
+
installedVerticals: deriveVerticals(ctx),
|
|
309167
|
+
// PRESENT AND EMPTY, never absent. `WixSiteContext` carries no CMS chapter, so this base
|
|
309168
|
+
// overlay knows of no readable collection — and an ABSENT key is not that statement, it
|
|
309169
|
+
// is "inherit whatever the shell has", which pointed a customer's app at the shell's demo
|
|
309170
|
+
// collection (#2341). `runSiteAnalyze` replaces this with the site's own, also possibly
|
|
309171
|
+
// empty; either way the key exists and the shell's list never survives the merge.
|
|
309172
|
+
cmsCollections: [],
|
|
309173
|
+
identity: {
|
|
309174
|
+
appName: appName2,
|
|
309175
|
+
businessName: clean3(ctx.identity.businessName) || appName2,
|
|
309176
|
+
tagline: clean3(overrides.tagline) || clean3(ctx.identity.description),
|
|
309177
|
+
// Present even when empty: an absent key would inherit the shell's About text. `analyzeSite`
|
|
309178
|
+
// fills it from the crawl's About section (`aboutFromCrawl`), or drops the key when the crawl
|
|
309179
|
+
// could not tell. The description already shows as the tagline.
|
|
309180
|
+
about: "",
|
|
309181
|
+
// "" means UNKNOWN here, with `missing` above as the signal — the published overlay's
|
|
309182
|
+
// documented shape. Keeping an unknown url out of a MERGE is `apply.ts`'s job, at the
|
|
309183
|
+
// seam where an empty string would otherwise beat the shell's committed value.
|
|
309184
|
+
supportUrl,
|
|
309185
|
+
privacyUrl,
|
|
309186
|
+
termsUrl
|
|
309187
|
+
}
|
|
309188
|
+
};
|
|
309189
|
+
return { appName: appName2, iconSource: deriveIconSource(ctx), provisioning, missing: missing4 };
|
|
309190
|
+
}
|
|
309191
|
+
function bounded(s5, max) {
|
|
309192
|
+
if (s5.length <= max) return s5;
|
|
309193
|
+
const cut2 = s5.slice(0, max - 1).replace(/[\uD800-\uDBFF]$/, "");
|
|
309194
|
+
const space = cut2.lastIndexOf(" ");
|
|
309195
|
+
return `${(space > max * 0.6 ? cut2.slice(0, space) : cut2).trimEnd()}\u2026`;
|
|
309196
|
+
}
|
|
309197
|
+
function deriveStaticFaq(faq) {
|
|
309198
|
+
if (!Array.isArray(faq)) return [];
|
|
309199
|
+
const out2 = [];
|
|
309200
|
+
const seen = /* @__PURE__ */ new Set();
|
|
309201
|
+
for (const raw of faq) {
|
|
309202
|
+
if (out2.length >= STATIC_FAQ_LIMITS.pairs) break;
|
|
309203
|
+
const pair = raw && typeof raw === "object" ? raw : {};
|
|
309204
|
+
const q4 = bounded(oneLine2(pair.q), STATIC_FAQ_LIMITS.question);
|
|
309205
|
+
const a3 = bounded(oneLine2(pair.a), STATIC_FAQ_LIMITS.answer);
|
|
309206
|
+
if (!q4 || !a3 || seen.has(q4.toLowerCase())) continue;
|
|
309207
|
+
seen.add(q4.toLowerCase());
|
|
309208
|
+
out2.push({ q: q4, a: a3 });
|
|
309209
|
+
}
|
|
309210
|
+
return out2;
|
|
309211
|
+
}
|
|
309212
|
+
function deriveStaticGalleries(pages2) {
|
|
309213
|
+
if (!Array.isArray(pages2)) return [];
|
|
309214
|
+
const galleries = [];
|
|
309215
|
+
const seenPhotoSets = /* @__PURE__ */ new Set();
|
|
309216
|
+
let totalPhotos = 0;
|
|
309217
|
+
for (const raw of pages2) {
|
|
309218
|
+
if (galleries.length >= STATIC_GALLERY_LIMITS.galleries || totalPhotos >= STATIC_GALLERY_LIMITS.totalPhotos) break;
|
|
309219
|
+
const page = raw && typeof raw === "object" ? raw : {};
|
|
309220
|
+
if (!Array.isArray(page.galleryImageUrls)) continue;
|
|
309221
|
+
const photos = [];
|
|
309222
|
+
for (const image of page.galleryImageUrls) {
|
|
309223
|
+
if (photos.length >= STATIC_GALLERY_LIMITS.photos || totalPhotos + photos.length >= STATIC_GALLERY_LIMITS.totalPhotos) break;
|
|
309224
|
+
if (typeof image !== "string") continue;
|
|
309225
|
+
const match = /^https:\/\/static\.wixstatic\.com\/media\/([A-Za-z0-9_~.-]+)(?:\/.*)?$/.exec(image);
|
|
309226
|
+
if (!match) continue;
|
|
309227
|
+
const url = `https://static.wixstatic.com/media/${match[1]}`;
|
|
309228
|
+
if (!photos.includes(url)) photos.push(url);
|
|
309229
|
+
}
|
|
309230
|
+
if (!photos.length) continue;
|
|
309231
|
+
const photoSet = photos.join("\n");
|
|
309232
|
+
if (seenPhotoSets.has(photoSet)) continue;
|
|
309233
|
+
seenPhotoSets.add(photoSet);
|
|
309234
|
+
totalPhotos += photos.length;
|
|
309235
|
+
const heading = Array.isArray(page.headings) ? page.headings.find((h2) => typeof h2 === "string" && !!h2.trim()) : void 0;
|
|
309236
|
+
const pageTitle = typeof page.title === "string" ? page.title.split(/\s+[|–—]\s+/)[0] : "";
|
|
309237
|
+
const title = bounded(oneLine2(page.role === "gallery" ? pageTitle || heading || "Gallery" : "Gallery"), STATIC_GALLERY_LIMITS.title);
|
|
309238
|
+
galleries.push({ id: `site-gallery-${galleries.length + 1}`, title, photos });
|
|
309239
|
+
}
|
|
309240
|
+
return galleries;
|
|
309241
|
+
}
|
|
309242
|
+
var clean3, ABOUT_MAX_LENGTH, ID_MAX, NAME_MAX, TYPE_MAX, CONTROL_CHARS2, HAS_CONTROL_CHAR, plain4, shown2, STATIC_FAQ_LIMITS, oneLine2, STATIC_GALLERY_LIMITS;
|
|
309243
|
+
var init_derive = __esm({
|
|
309244
|
+
"src/site-analyze/derive.ts"() {
|
|
309245
|
+
init_define_HHP_CATALOG();
|
|
309246
|
+
init_types2();
|
|
309247
|
+
clean3 = (s5) => (s5 ?? "").trim();
|
|
309248
|
+
ABOUT_MAX_LENGTH = 1e3;
|
|
309249
|
+
ID_MAX = 256;
|
|
309250
|
+
NAME_MAX = 120;
|
|
309251
|
+
TYPE_MAX = 80;
|
|
309252
|
+
CONTROL_CHARS2 = /[\u0000-\u001F\u007F]/g;
|
|
309253
|
+
HAS_CONTROL_CHAR = /[\u0000-\u001F\u007F]/;
|
|
309254
|
+
plain4 = (value2, max) => (value2 ?? "").replace(CONTROL_CHARS2, "").trim().slice(0, max);
|
|
309255
|
+
shown2 = (value2) => (typeof value2 === "string" ? JSON.stringify(value2) : String(value2)).slice(0, 64);
|
|
309256
|
+
STATIC_FAQ_LIMITS = { pairs: 20, question: 200, answer: 1500 };
|
|
309257
|
+
oneLine2 = (s5) => typeof s5 === "string" ? s5.replace(/[\u0000-\u001F\u007F\s]+/g, " ").trim() : "";
|
|
309258
|
+
STATIC_GALLERY_LIMITS = { galleries: 10, photos: 50, totalPhotos: 50, title: 120 };
|
|
309259
|
+
}
|
|
309260
|
+
});
|
|
309261
|
+
|
|
308919
309262
|
// ../../stdlib/wix-sdk/rich-content/src/display.ts
|
|
308920
309263
|
function trimAscii(s5) {
|
|
308921
309264
|
return s5.replace(/^[\t\n\v\f\r ]+|[\t\n\v\f\r ]+$/g, "");
|
|
@@ -309443,9 +309786,15 @@ __export(collect_exports, {
|
|
|
309443
309786
|
collectOneApp: () => collectOneApp,
|
|
309444
309787
|
inboxFromMobileConfig: () => inboxFromMobileConfig,
|
|
309445
309788
|
resolveSourceLocale: () => resolveSourceLocale,
|
|
309789
|
+
siteAbout: () => siteAbout,
|
|
309446
309790
|
sourceMemberChat: () => sourceMemberChat
|
|
309447
309791
|
});
|
|
309448
309792
|
import { createHash as createHash104 } from "node:crypto";
|
|
309793
|
+
function siteAbout(value2) {
|
|
309794
|
+
if (typeof value2 !== "string") return "";
|
|
309795
|
+
const text32 = value2.replace(/\r\n?/g, "\n").replace(/[\u0000-\u0009\u000B-\u001F\u007F]/g, " ").split("\n").map((line) => line.replace(/ {2,}/g, " ").trim()).join("\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
309796
|
+
return bounded(text32, ABOUT_MAX_LENGTH);
|
|
309797
|
+
}
|
|
309449
309798
|
function isObject3(value2) {
|
|
309450
309799
|
return value2 !== null && typeof value2 === "object" && !Array.isArray(value2);
|
|
309451
309800
|
}
|
|
@@ -309770,6 +310119,8 @@ async function collectOneApp(input, deps = {}) {
|
|
|
309770
310119
|
const wantsContact = definitions2.some((id) => CONTACT_SECTIONS.has(id));
|
|
309771
310120
|
const wantsLoyalty = definitions2.some((id) => LOYALTY_SECTIONS.has(id));
|
|
309772
310121
|
const wantsTimeZone = definitions2.some((id) => SERVICES_SECTIONS.has(id));
|
|
310122
|
+
const wantsAbout = deps.about !== false;
|
|
310123
|
+
let aboutSettled = !wantsAbout;
|
|
309773
310124
|
if (wantsContact || wantsLoyalty || wantsTimeZone) {
|
|
309774
310125
|
const optionalOnly = !wantsContact && !wantsLoyalty;
|
|
309775
310126
|
const requiredVisitor = internalBusinessRead && !optionalOnly ? await visitorAuthorization("enrichment_session") : void 0;
|
|
@@ -309780,6 +310131,10 @@ async function collectOneApp(input, deps = {}) {
|
|
|
309780
310131
|
if (properties.metaSiteId.toLowerCase() !== input.metaSiteId.toLowerCase()) {
|
|
309781
310132
|
throw new OneAppError("source_site_mismatch", "The returned properties do not match the requested site.", { stage: "business_contact" });
|
|
309782
310133
|
}
|
|
310134
|
+
if (wantsAbout) {
|
|
310135
|
+
aboutSettled = true;
|
|
310136
|
+
businessContext.about = redact(siteAbout(properties.properties.description));
|
|
310137
|
+
}
|
|
309783
310138
|
if (wantsContact) businessContext.contact = redact(contactProjection(properties, input.metaSiteId));
|
|
309784
310139
|
if (wantsLoyalty) {
|
|
309785
310140
|
const currency = properties.properties.paymentCurrency;
|
|
@@ -309810,6 +310165,8 @@ async function collectOneApp(input, deps = {}) {
|
|
|
309810
310165
|
message: "Payment currency is unavailable. Keep currency-based Loyalty earning details unresolved."
|
|
309811
310166
|
});
|
|
309812
310167
|
if (wantsTimeZone) contextWarnings.push({ code: "business_time_zone_unavailable", failureCode: error.code, message: TIME_ZONE_UNAVAILABLE });
|
|
310168
|
+
if (!aboutSettled) contextWarnings.push({ code: "business_about_unavailable", failureCode: error.code, message: ABOUT_UNAVAILABLE });
|
|
310169
|
+
aboutSettled = true;
|
|
309813
310170
|
}
|
|
309814
310171
|
}
|
|
309815
310172
|
if (Object.values(buildSourceGraph(rawStructure).sections).some((section3) => {
|
|
@@ -309948,6 +310305,29 @@ async function collectOneApp(input, deps = {}) {
|
|
|
309948
310305
|
message: "A free One App has no branded mobile config, so its Inbox setting (inbox.chatType) is not collected. Keep the app business-only (no member chat) unless the owner confirms otherwise."
|
|
309949
310306
|
});
|
|
309950
310307
|
}
|
|
310308
|
+
if (!aboutSettled) {
|
|
310309
|
+
let about;
|
|
310310
|
+
try {
|
|
310311
|
+
const properties = await request2(
|
|
310312
|
+
PUBLIC_CONTACT,
|
|
310313
|
+
"business_about",
|
|
310314
|
+
void 0,
|
|
310315
|
+
{ authorization: await visitorAuthorization("business_about_session"), siteScoped: false }
|
|
310316
|
+
);
|
|
310317
|
+
if (!isObject3(properties) || typeof properties.metaSiteId !== "string" || !isObject3(properties.properties)) throw invalidResponse("business_about");
|
|
310318
|
+
if (properties.metaSiteId.toLowerCase() !== input.metaSiteId.toLowerCase()) {
|
|
310319
|
+
throw new OneAppError("source_site_mismatch", "The returned properties do not match the requested site.", { stage: "business_about" });
|
|
310320
|
+
}
|
|
310321
|
+
about = siteAbout(properties.properties.description);
|
|
310322
|
+
} catch (error) {
|
|
310323
|
+
if (!(error instanceof OneAppError)) throw error;
|
|
310324
|
+
contextWarnings.push({ code: "business_about_unavailable", failureCode: error.code, message: ABOUT_UNAVAILABLE });
|
|
310325
|
+
}
|
|
310326
|
+
if (about !== void 0) {
|
|
310327
|
+
businessContext.about = redact(about);
|
|
310328
|
+
await progress("business-context", businessContext);
|
|
310329
|
+
}
|
|
310330
|
+
}
|
|
309951
310331
|
return {
|
|
309952
310332
|
schemaVersion: 1,
|
|
309953
310333
|
source: {
|
|
@@ -309976,7 +310356,7 @@ async function collectOneApp(input, deps = {}) {
|
|
|
309976
310356
|
]
|
|
309977
310357
|
};
|
|
309978
310358
|
}
|
|
309979
|
-
var MIDDLEWARE, BUSINESS, TOKEN_INFO, IS_PERMITTED, INTERNAL_PERMISSION, VISITOR_SESSION, PUBLIC_CONTACT, MOBILE_CONFIG, PUBLIC_MEMBERS, MEMBER_WIDGETS, LOYALTY_SECTIONS, CONTACT_SECTIONS, SERVICES_SECTIONS, TIME_ZONE_UNAVAILABLE, MAX_RESPONSE_BYTES, TIMEOUT_MS5, UUID, LIFECYCLE_FIELDS, MEMBER_TO_BUSINESS, DEFAULT_CHAT_TYPE, CHAT_TYPE;
|
|
310359
|
+
var MIDDLEWARE, BUSINESS, TOKEN_INFO, IS_PERMITTED, INTERNAL_PERMISSION, VISITOR_SESSION, PUBLIC_CONTACT, MOBILE_CONFIG, PUBLIC_MEMBERS, MEMBER_WIDGETS, LOYALTY_SECTIONS, CONTACT_SECTIONS, SERVICES_SECTIONS, TIME_ZONE_UNAVAILABLE, ABOUT_UNAVAILABLE, MAX_RESPONSE_BYTES, TIMEOUT_MS5, UUID, LIFECYCLE_FIELDS, MEMBER_TO_BUSINESS, DEFAULT_CHAT_TYPE, CHAT_TYPE;
|
|
309980
310360
|
var init_collect = __esm({
|
|
309981
310361
|
"src/one-app/collect.ts"() {
|
|
309982
310362
|
init_define_HHP_CATALOG();
|
|
@@ -309984,6 +310364,7 @@ var init_collect = __esm({
|
|
|
309984
310364
|
init_business_address();
|
|
309985
310365
|
init_app_locale();
|
|
309986
310366
|
init_errors4();
|
|
310367
|
+
init_derive();
|
|
309987
310368
|
init_graph();
|
|
309988
310369
|
init_pages();
|
|
309989
310370
|
MIDDLEWARE = "https://manage.wix.com/_serverless/mobile-apps-editor-middleware";
|
|
@@ -310000,6 +310381,7 @@ var init_collect = __esm({
|
|
|
310000
310381
|
CONTACT_SECTIONS = /* @__PURE__ */ new Set(["platform_general_contact_section", "platform_general_contact_section_bp"]);
|
|
310001
310382
|
SERVICES_SECTIONS = /* @__PURE__ */ new Set(["bookings_services_list_section"]);
|
|
310002
310383
|
TIME_ZONE_UNAVAILABLE = "Business time zone is unverified. Leave `businessTimeZone` out of provisioning: a course whose session times carry no offset then shows no Ended label, and no zone is guessed.";
|
|
310384
|
+
ABOUT_UNAVAILABLE = "The site description is unavailable. `himi one-app provision` leaves the About screen as the template ships it; never fill it with invented copy.";
|
|
310003
310385
|
MAX_RESPONSE_BYTES = 8e6;
|
|
310004
310386
|
TIMEOUT_MS5 = 3e4;
|
|
310005
310387
|
UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -313278,202 +313660,6 @@ var init_site_properties = __esm({
|
|
|
313278
313660
|
}
|
|
313279
313661
|
});
|
|
313280
313662
|
|
|
313281
|
-
// src/site-analyze/derive.ts
|
|
313282
|
-
function aboutFromCrawl(about, crawlComplete) {
|
|
313283
|
-
const text32 = bounded(oneLine2(about), ABOUT_MAX_LENGTH);
|
|
313284
|
-
if (!text32 && !crawlComplete) return void 0;
|
|
313285
|
-
return text32;
|
|
313286
|
-
}
|
|
313287
|
-
function deriveAppName(ctx, override) {
|
|
313288
|
-
return clean3(override) || clean3(ctx.identity.businessName) || clean3(ctx.identity.siteDisplayName) || "My Business";
|
|
313289
|
-
}
|
|
313290
|
-
function deriveIconSource(ctx) {
|
|
313291
|
-
return clean3(ctx.brand.logo) || null;
|
|
313292
|
-
}
|
|
313293
|
-
function deriveVerticals(ctx) {
|
|
313294
|
-
const requested = new Set(ctx.content.installedVerticals);
|
|
313295
|
-
return KNOWN_VERTICALS.filter((v2) => requested.has(v2));
|
|
313296
|
-
}
|
|
313297
|
-
function unusableIdentifier(value2, max) {
|
|
313298
|
-
if (typeof value2 !== "string" || value2 === "") return "missing";
|
|
313299
|
-
if (value2 !== value2.trim()) {
|
|
313300
|
-
return "is surrounded by whitespace, which the manifest parser strips \u2014 the app would query a different id";
|
|
313301
|
-
}
|
|
313302
|
-
if (HAS_CONTROL_CHAR.test(value2)) {
|
|
313303
|
-
return "contains control characters, and removing them would name a different collection";
|
|
313304
|
-
}
|
|
313305
|
-
if (value2.length > max) return `is longer than ${max} characters`;
|
|
313306
|
-
return null;
|
|
313307
|
-
}
|
|
313308
|
-
function deriveAdoptedCmsCollections(cms) {
|
|
313309
|
-
const collections2 = [];
|
|
313310
|
-
const dropped = [];
|
|
313311
|
-
const seen = /* @__PURE__ */ new Set();
|
|
313312
|
-
for (const collection of cms) {
|
|
313313
|
-
const label4 = typeof collection.id === "string" ? collection.id.trim().slice(0, 60) : "";
|
|
313314
|
-
if (!label4) continue;
|
|
313315
|
-
if (collection.ownerAppId) {
|
|
313316
|
-
dropped.push({ id: label4, reason: "owned by a Wix app \u2014 its own vertical covers it" });
|
|
313317
|
-
continue;
|
|
313318
|
-
}
|
|
313319
|
-
const readRole = collection.readRole;
|
|
313320
|
-
if (readRole !== "ANYONE") {
|
|
313321
|
-
dropped.push({
|
|
313322
|
-
id: label4,
|
|
313323
|
-
reason: readRole === "SITE_MEMBER" || readRole === "SITE_MEMBER_AUTHOR" ? `read permission "${readRole}" \u2014 member-only rows would be cached unencrypted on the device and served to a later visitor` : `read permission ${readRole ? `"${readRole}"` : "unknown"} \u2014 a shipped app can only read ANYONE`
|
|
313324
|
-
});
|
|
313325
|
-
continue;
|
|
313326
|
-
}
|
|
313327
|
-
const idProblem = unusableIdentifier(collection.id, ID_MAX);
|
|
313328
|
-
if (idProblem) {
|
|
313329
|
-
dropped.push({ id: shown2(collection.id), reason: `id ${idProblem}` });
|
|
313330
|
-
continue;
|
|
313331
|
-
}
|
|
313332
|
-
const id = collection.id;
|
|
313333
|
-
if (seen.has(id)) {
|
|
313334
|
-
dropped.push({ id: label4, reason: "duplicate id" });
|
|
313335
|
-
continue;
|
|
313336
|
-
}
|
|
313337
|
-
const fields2 = collection.fields.flatMap((field) => {
|
|
313338
|
-
if (field.systemField || field.encrypted) return [];
|
|
313339
|
-
if (unusableIdentifier(field.key, ID_MAX)) return [];
|
|
313340
|
-
const key4 = field.key;
|
|
313341
|
-
return [{
|
|
313342
|
-
key: key4,
|
|
313343
|
-
// `key.slice(NAME_MAX)`, not bare `key`: a field key may be up to `ID_MAX`, and the
|
|
313344
|
-
// manifest caps a display NAME at `NAME_MAX`. Falling back to the whole key would
|
|
313345
|
-
// emit a name the shell's parser refuses, which fails open to the shell's own
|
|
313346
|
-
// collections — the silent restoration this whole function exists to prevent.
|
|
313347
|
-
displayName: plain4(field.displayName, NAME_MAX) || key4.slice(0, NAME_MAX),
|
|
313348
|
-
type: (plain4(field.type, TYPE_MAX) || "TEXT").toUpperCase()
|
|
313349
|
-
}];
|
|
313350
|
-
});
|
|
313351
|
-
const requested = collection.displayField;
|
|
313352
|
-
const displayField = fields2.some((field) => field.key === requested) ? requested : fields2[0]?.key;
|
|
313353
|
-
if (!displayField) {
|
|
313354
|
-
dropped.push({ id: label4, reason: "no readable field to show as a row title" });
|
|
313355
|
-
continue;
|
|
313356
|
-
}
|
|
313357
|
-
seen.add(id);
|
|
313358
|
-
collections2.push({
|
|
313359
|
-
id,
|
|
313360
|
-
displayName: plain4(collection.displayName, NAME_MAX) || id.slice(0, NAME_MAX),
|
|
313361
|
-
displayField,
|
|
313362
|
-
readRole,
|
|
313363
|
-
fields: fields2
|
|
313364
|
-
});
|
|
313365
|
-
}
|
|
313366
|
-
return { collections: collections2, dropped };
|
|
313367
|
-
}
|
|
313368
|
-
function deriveTailoring(ctx, overrides = {}, revision = "site-derived") {
|
|
313369
|
-
const appName2 = deriveAppName(ctx, overrides.appName);
|
|
313370
|
-
const supportUrl = clean3(overrides.supportUrl) || clean3(ctx.url.primary);
|
|
313371
|
-
const privacyUrl = clean3(overrides.privacyUrl);
|
|
313372
|
-
const termsUrl = clean3(overrides.termsUrl);
|
|
313373
|
-
const missing4 = [];
|
|
313374
|
-
if (!supportUrl) missing4.push("supportUrl");
|
|
313375
|
-
if (!privacyUrl) missing4.push("privacyUrl");
|
|
313376
|
-
if (!termsUrl) missing4.push("termsUrl");
|
|
313377
|
-
const provisioning = {
|
|
313378
|
-
version: 1,
|
|
313379
|
-
siteId: ctx.siteId,
|
|
313380
|
-
revision,
|
|
313381
|
-
installedVerticals: deriveVerticals(ctx),
|
|
313382
|
-
// PRESENT AND EMPTY, never absent. `WixSiteContext` carries no CMS chapter, so this base
|
|
313383
|
-
// overlay knows of no readable collection — and an ABSENT key is not that statement, it
|
|
313384
|
-
// is "inherit whatever the shell has", which pointed a customer's app at the shell's demo
|
|
313385
|
-
// collection (#2341). `runSiteAnalyze` replaces this with the site's own, also possibly
|
|
313386
|
-
// empty; either way the key exists and the shell's list never survives the merge.
|
|
313387
|
-
cmsCollections: [],
|
|
313388
|
-
identity: {
|
|
313389
|
-
appName: appName2,
|
|
313390
|
-
businessName: clean3(ctx.identity.businessName) || appName2,
|
|
313391
|
-
tagline: clean3(overrides.tagline) || clean3(ctx.identity.description),
|
|
313392
|
-
// Present even when empty: an absent key would inherit the shell's About text. `analyzeSite`
|
|
313393
|
-
// fills it from the crawl's About section (`aboutFromCrawl`), or drops the key when the crawl
|
|
313394
|
-
// could not tell. The description already shows as the tagline.
|
|
313395
|
-
about: "",
|
|
313396
|
-
// "" means UNKNOWN here, with `missing` above as the signal — the published overlay's
|
|
313397
|
-
// documented shape. Keeping an unknown url out of a MERGE is `apply.ts`'s job, at the
|
|
313398
|
-
// seam where an empty string would otherwise beat the shell's committed value.
|
|
313399
|
-
supportUrl,
|
|
313400
|
-
privacyUrl,
|
|
313401
|
-
termsUrl
|
|
313402
|
-
}
|
|
313403
|
-
};
|
|
313404
|
-
return { appName: appName2, iconSource: deriveIconSource(ctx), provisioning, missing: missing4 };
|
|
313405
|
-
}
|
|
313406
|
-
function bounded(s5, max) {
|
|
313407
|
-
if (s5.length <= max) return s5;
|
|
313408
|
-
const cut2 = s5.slice(0, max - 1).replace(/[\uD800-\uDBFF]$/, "");
|
|
313409
|
-
const space = cut2.lastIndexOf(" ");
|
|
313410
|
-
return `${(space > max * 0.6 ? cut2.slice(0, space) : cut2).trimEnd()}\u2026`;
|
|
313411
|
-
}
|
|
313412
|
-
function deriveStaticFaq(faq) {
|
|
313413
|
-
if (!Array.isArray(faq)) return [];
|
|
313414
|
-
const out2 = [];
|
|
313415
|
-
const seen = /* @__PURE__ */ new Set();
|
|
313416
|
-
for (const raw of faq) {
|
|
313417
|
-
if (out2.length >= STATIC_FAQ_LIMITS.pairs) break;
|
|
313418
|
-
const pair = raw && typeof raw === "object" ? raw : {};
|
|
313419
|
-
const q4 = bounded(oneLine2(pair.q), STATIC_FAQ_LIMITS.question);
|
|
313420
|
-
const a3 = bounded(oneLine2(pair.a), STATIC_FAQ_LIMITS.answer);
|
|
313421
|
-
if (!q4 || !a3 || seen.has(q4.toLowerCase())) continue;
|
|
313422
|
-
seen.add(q4.toLowerCase());
|
|
313423
|
-
out2.push({ q: q4, a: a3 });
|
|
313424
|
-
}
|
|
313425
|
-
return out2;
|
|
313426
|
-
}
|
|
313427
|
-
function deriveStaticGalleries(pages2) {
|
|
313428
|
-
if (!Array.isArray(pages2)) return [];
|
|
313429
|
-
const galleries = [];
|
|
313430
|
-
const seenPhotoSets = /* @__PURE__ */ new Set();
|
|
313431
|
-
let totalPhotos = 0;
|
|
313432
|
-
for (const raw of pages2) {
|
|
313433
|
-
if (galleries.length >= STATIC_GALLERY_LIMITS.galleries || totalPhotos >= STATIC_GALLERY_LIMITS.totalPhotos) break;
|
|
313434
|
-
const page = raw && typeof raw === "object" ? raw : {};
|
|
313435
|
-
if (!Array.isArray(page.galleryImageUrls)) continue;
|
|
313436
|
-
const photos = [];
|
|
313437
|
-
for (const image of page.galleryImageUrls) {
|
|
313438
|
-
if (photos.length >= STATIC_GALLERY_LIMITS.photos || totalPhotos + photos.length >= STATIC_GALLERY_LIMITS.totalPhotos) break;
|
|
313439
|
-
if (typeof image !== "string") continue;
|
|
313440
|
-
const match = /^https:\/\/static\.wixstatic\.com\/media\/([A-Za-z0-9_~.-]+)(?:\/.*)?$/.exec(image);
|
|
313441
|
-
if (!match) continue;
|
|
313442
|
-
const url = `https://static.wixstatic.com/media/${match[1]}`;
|
|
313443
|
-
if (!photos.includes(url)) photos.push(url);
|
|
313444
|
-
}
|
|
313445
|
-
if (!photos.length) continue;
|
|
313446
|
-
const photoSet = photos.join("\n");
|
|
313447
|
-
if (seenPhotoSets.has(photoSet)) continue;
|
|
313448
|
-
seenPhotoSets.add(photoSet);
|
|
313449
|
-
totalPhotos += photos.length;
|
|
313450
|
-
const heading = Array.isArray(page.headings) ? page.headings.find((h2) => typeof h2 === "string" && !!h2.trim()) : void 0;
|
|
313451
|
-
const pageTitle = typeof page.title === "string" ? page.title.split(/\s+[|–—]\s+/)[0] : "";
|
|
313452
|
-
const title = bounded(oneLine2(page.role === "gallery" ? pageTitle || heading || "Gallery" : "Gallery"), STATIC_GALLERY_LIMITS.title);
|
|
313453
|
-
galleries.push({ id: `site-gallery-${galleries.length + 1}`, title, photos });
|
|
313454
|
-
}
|
|
313455
|
-
return galleries;
|
|
313456
|
-
}
|
|
313457
|
-
var clean3, ABOUT_MAX_LENGTH, ID_MAX, NAME_MAX, TYPE_MAX, CONTROL_CHARS2, HAS_CONTROL_CHAR, plain4, shown2, STATIC_FAQ_LIMITS, oneLine2, STATIC_GALLERY_LIMITS;
|
|
313458
|
-
var init_derive = __esm({
|
|
313459
|
-
"src/site-analyze/derive.ts"() {
|
|
313460
|
-
init_define_HHP_CATALOG();
|
|
313461
|
-
init_types2();
|
|
313462
|
-
clean3 = (s5) => (s5 ?? "").trim();
|
|
313463
|
-
ABOUT_MAX_LENGTH = 1e3;
|
|
313464
|
-
ID_MAX = 256;
|
|
313465
|
-
NAME_MAX = 120;
|
|
313466
|
-
TYPE_MAX = 80;
|
|
313467
|
-
CONTROL_CHARS2 = /[\u0000-\u001F\u007F]/g;
|
|
313468
|
-
HAS_CONTROL_CHAR = /[\u0000-\u001F\u007F]/;
|
|
313469
|
-
plain4 = (value2, max) => (value2 ?? "").replace(CONTROL_CHARS2, "").trim().slice(0, max);
|
|
313470
|
-
shown2 = (value2) => (typeof value2 === "string" ? JSON.stringify(value2) : String(value2)).slice(0, 64);
|
|
313471
|
-
STATIC_FAQ_LIMITS = { pairs: 20, question: 200, answer: 1500 };
|
|
313472
|
-
oneLine2 = (s5) => typeof s5 === "string" ? s5.replace(/[\u0000-\u001F\u007F\s]+/g, " ").trim() : "";
|
|
313473
|
-
STATIC_GALLERY_LIMITS = { galleries: 10, photos: 50, totalPhotos: 50, title: 120 };
|
|
313474
|
-
}
|
|
313475
|
-
});
|
|
313476
|
-
|
|
313477
313663
|
// src/site-analyze/copy.ts
|
|
313478
313664
|
function pathOf(url) {
|
|
313479
313665
|
try {
|
|
@@ -314131,7 +314317,7 @@ async function readMobileApp(fetchImpl, auth, deps = {}) {
|
|
|
314131
314317
|
try {
|
|
314132
314318
|
const collected = await collectOneApp(
|
|
314133
314319
|
{ metaSiteId: auth.msid, appInstance: "branded", authorization: auth.current ? await auth.current() : auth.token },
|
|
314134
|
-
{ fetchImpl, timeoutMs: deps.timeoutMs ?? TIMEOUT_MS8, pages: false, inbox: false }
|
|
314320
|
+
{ fetchImpl, timeoutMs: deps.timeoutMs ?? TIMEOUT_MS8, pages: false, inbox: false, about: false }
|
|
314135
314321
|
);
|
|
314136
314322
|
const catalog4 = deps.catalog?.size ? deps.catalog : loadSectionCatalog();
|
|
314137
314323
|
const summary2 = summarizeStructure(collected.rawStructure, catalog4);
|