ui.shipaid.com 0.3.159 → 0.3.160
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.
|
@@ -53,17 +53,17 @@ const pt = {
|
|
|
53
53
|
},
|
|
54
54
|
plus,
|
|
55
55
|
"checkout-plus": {
|
|
56
|
-
title: "
|
|
57
|
-
checkout: "
|
|
58
|
-
"checkout-title": "
|
|
59
|
-
"continue": "
|
|
56
|
+
title: "Garantia de Entrega",
|
|
57
|
+
checkout: "FINALIZAR COMPRA",
|
|
58
|
+
"checkout-title": "Finalizar compra",
|
|
59
|
+
"continue": "Finalizar compra — não protegido",
|
|
60
60
|
labels: {
|
|
61
|
-
cta: "
|
|
61
|
+
cta: "Finalizar Compra+",
|
|
62
62
|
"protected": "Protegido"
|
|
63
63
|
},
|
|
64
64
|
buttons: {
|
|
65
|
-
primary: "
|
|
66
|
-
secondary: "
|
|
65
|
+
primary: "FINALIZAR COMPRA+ Protegido",
|
|
66
|
+
secondary: "Finalizar compra",
|
|
67
67
|
"continue-without": "Continuar sem garantia de entrega"
|
|
68
68
|
},
|
|
69
69
|
aria: {
|
|
@@ -86,11 +86,11 @@ const pt = {
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
"impact-activated": {
|
|
89
|
-
title: "
|
|
90
|
-
"green-protection-title": " | 1
|
|
91
|
-
"free-gift-title": " |
|
|
92
|
-
"title-checkout-plus": "
|
|
93
|
-
description: "
|
|
89
|
+
title: "Proteção",
|
|
90
|
+
"green-protection-title": " | 1 Árvore",
|
|
91
|
+
"free-gift-title": " | Brinde",
|
|
92
|
+
"title-checkout-plus": "Proteção | Brinde",
|
|
93
|
+
description: "em caso de Perda, Dano ou Roubo"
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
export {
|
package/dist/widget.es.js
CHANGED
|
@@ -970,7 +970,7 @@ const useOnce = (element, on) => useEffect(element, on, []);
|
|
|
970
970
|
function n(n2, o3, r2) {
|
|
971
971
|
return n2 ? o3() : null == r2 ? void 0 : r2();
|
|
972
972
|
}
|
|
973
|
-
const styles
|
|
973
|
+
const styles = i2`
|
|
974
974
|
:host {
|
|
975
975
|
--shipaid-primary: #0056d6;
|
|
976
976
|
--shipaid-secondary: #0076ff;
|
|
@@ -1168,7 +1168,7 @@ const _ConfirmationPopup = class _ConfirmationPopup extends s$1 {
|
|
|
1168
1168
|
`;
|
|
1169
1169
|
}
|
|
1170
1170
|
};
|
|
1171
|
-
_ConfirmationPopup.styles = styles
|
|
1171
|
+
_ConfirmationPopup.styles = styles;
|
|
1172
1172
|
let ConfirmationPopup = _ConfirmationPopup;
|
|
1173
1173
|
__decorateClass$5([
|
|
1174
1174
|
n$7({ type: Boolean, attribute: true })
|
|
@@ -2456,223 +2456,6 @@ if (!customElements.get("checkout-package-protection")) {
|
|
|
2456
2456
|
}
|
|
2457
2457
|
customElements.get("shipaid-learn-more-carousel") || customElements.define("shipaid-learn-more-carousel", en2);
|
|
2458
2458
|
})();
|
|
2459
|
-
const styles = i2`
|
|
2460
|
-
:host {
|
|
2461
|
-
--shipaid-primary: #002bd6;
|
|
2462
|
-
--shipaid-secondary: #0076ff;
|
|
2463
|
-
--shipaid-danger: #f44336;
|
|
2464
|
-
--shipaid-text: #000000;
|
|
2465
|
-
--shipaid-text-muted: #cccccc;
|
|
2466
|
-
--shipaid-text-grey: #aaaaaa;
|
|
2467
|
-
--shipaid-light-grey: #ebecf0;
|
|
2468
|
-
--shipaid-font: "Lato", sans-serif;
|
|
2469
|
-
--shipaid-font-xxs: 11px;
|
|
2470
|
-
--shipaid-font-xs: 12px;
|
|
2471
|
-
--shipaid-font-sm: 14px;
|
|
2472
|
-
--shipaid-font-base: 16px;
|
|
2473
|
-
--shipaid-font-lg: 18px;
|
|
2474
|
-
--shipaid-font-regular: 400;
|
|
2475
|
-
--shipaid-font-heavy: 700;
|
|
2476
|
-
--shipaid-prompt-badge: #f2f7ff;
|
|
2477
|
-
}
|
|
2478
|
-
|
|
2479
|
-
* {
|
|
2480
|
-
font-family: var(--shipaid-font);
|
|
2481
|
-
}
|
|
2482
|
-
|
|
2483
|
-
p,
|
|
2484
|
-
a {
|
|
2485
|
-
font-weight: var(--shipaid-font-regular);
|
|
2486
|
-
font-size: var(--shipaid-font-base);
|
|
2487
|
-
color: var(--shipaid-text);
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
|
-
.error {
|
|
2491
|
-
color: var(--shipaid-danger);
|
|
2492
|
-
font-size: var(--shipaid-font-sm);
|
|
2493
|
-
}
|
|
2494
|
-
|
|
2495
|
-
@media (max-width: 600px) {
|
|
2496
|
-
.shipaid-prompt {
|
|
2497
|
-
width: var(--shipaid-prompt-width-mobile, 100%);
|
|
2498
|
-
}
|
|
2499
|
-
}
|
|
2500
|
-
|
|
2501
|
-
.shipaid-widget-container {
|
|
2502
|
-
display: flex;
|
|
2503
|
-
justify-content: right;
|
|
2504
|
-
}
|
|
2505
|
-
|
|
2506
|
-
.shipaid-prompt {
|
|
2507
|
-
max-width: fit-content;
|
|
2508
|
-
}
|
|
2509
|
-
|
|
2510
|
-
.shipaid-prompt p,
|
|
2511
|
-
.shipaid-prompt a {
|
|
2512
|
-
margin: 0;
|
|
2513
|
-
line-height: 1;
|
|
2514
|
-
}
|
|
2515
|
-
.shipaid-prompt .prompt-title {
|
|
2516
|
-
text-align: center;
|
|
2517
|
-
font-size: var(--shipaid-font-lg, 18px);
|
|
2518
|
-
font-weight: var(--shipaid-font-heavy);
|
|
2519
|
-
}
|
|
2520
|
-
.shipaid-prompt .prompt-product {
|
|
2521
|
-
display: flex;
|
|
2522
|
-
flex-direction: row;
|
|
2523
|
-
gap: 0.5rem;
|
|
2524
|
-
margin-top: 1rem;
|
|
2525
|
-
}
|
|
2526
|
-
.shipaid-prompt .prompt-product .prompt-product-image {
|
|
2527
|
-
position: relative;
|
|
2528
|
-
}
|
|
2529
|
-
.shipaid-prompt .prompt-product .prompt-product-image svg {
|
|
2530
|
-
height: var(--shipaid-logo-height, 35px);
|
|
2531
|
-
max-height: var(--shipaid-logo-max-height, 35px);
|
|
2532
|
-
width: var(--shipaid-logo-width, auto);
|
|
2533
|
-
max-width: var(--shipaid-logo-max-width, 50px);
|
|
2534
|
-
}
|
|
2535
|
-
.shipaid-prompt
|
|
2536
|
-
.prompt-product
|
|
2537
|
-
.prompt-product-details
|
|
2538
|
-
.prompt-product-details-title {
|
|
2539
|
-
text-align: left;
|
|
2540
|
-
font-size: var(--shipaid-font-lg);
|
|
2541
|
-
font-weight: var(--shipaid-font-heavy);
|
|
2542
|
-
}
|
|
2543
|
-
|
|
2544
|
-
.shipaid-prompt
|
|
2545
|
-
.prompt-product
|
|
2546
|
-
.prompt-product-details
|
|
2547
|
-
.prompt-product-details-description {
|
|
2548
|
-
font-size: var(--shipaid-font-xxs);
|
|
2549
|
-
margin-top: var(--shipaid-prompt-product-description-margin, 5px);
|
|
2550
|
-
}
|
|
2551
|
-
|
|
2552
|
-
.shipaid-prompt .prompt-product .prompt-product-actions {
|
|
2553
|
-
margin-left: auto;
|
|
2554
|
-
display: flex;
|
|
2555
|
-
flex-direction: column;
|
|
2556
|
-
justify-content: var(--shipaid-prompt-product-actions-content, space-between);
|
|
2557
|
-
text-align: right;
|
|
2558
|
-
min-width: 55px;
|
|
2559
|
-
}
|
|
2560
|
-
.shipaid-prompt
|
|
2561
|
-
.prompt-product
|
|
2562
|
-
.prompt-product-actions
|
|
2563
|
-
.prompt-product-actions-price {
|
|
2564
|
-
color: var(--shipaid-prompt-actions-price-color, var(--shipaid-text-muted));
|
|
2565
|
-
font-size: var(--shipaid-prompt-actions-price-fontSize, --shipaid-font-base);
|
|
2566
|
-
}
|
|
2567
|
-
.shipaid-prompt
|
|
2568
|
-
.prompt-product
|
|
2569
|
-
.prompt-product-actions
|
|
2570
|
-
.prompt-product-actions-button {
|
|
2571
|
-
background-color: transparent;
|
|
2572
|
-
border: none;
|
|
2573
|
-
color: var(--shipaid-prompt-actions-button-color, var(--shipaid-primary));
|
|
2574
|
-
text-transform: uppercase;
|
|
2575
|
-
font-weight: var(--shipaid-font-heavy);
|
|
2576
|
-
cursor: pointer;
|
|
2577
|
-
padding: 6px 0;
|
|
2578
|
-
text-align: right;
|
|
2579
|
-
}
|
|
2580
|
-
.shipaid-prompt .prompt-footer {
|
|
2581
|
-
margin-top: var(--shipaid-prompt-footer-topMargin, 0px);
|
|
2582
|
-
display: var(--shipaid-prompt-footer-display, flex);
|
|
2583
|
-
flex-direction: row;
|
|
2584
|
-
justify-content: var(--shipaid-prompt-footer-location, flex-start);
|
|
2585
|
-
align-items: center;
|
|
2586
|
-
}
|
|
2587
|
-
.shipaid-prompt .prompt-footer .prompt-footer-about {
|
|
2588
|
-
color: var(--shipaid-text);
|
|
2589
|
-
cursor: pointer;
|
|
2590
|
-
font-size: var(--shipaid-prompt-footer-button-size, 10px);
|
|
2591
|
-
background-color: transparent;
|
|
2592
|
-
cursor: pointer;
|
|
2593
|
-
border: 1px solid var(--shipaid-text);
|
|
2594
|
-
border-radius: 10px;
|
|
2595
|
-
margin-left: 0.5rem;
|
|
2596
|
-
}
|
|
2597
|
-
.shipaid-prompt .prompt-footer .prompt-footer-badge {
|
|
2598
|
-
background-color: var(
|
|
2599
|
-
--shipaid-prompt-badge-background-color,
|
|
2600
|
-
var(--shipaid-prompt-badge)
|
|
2601
|
-
);
|
|
2602
|
-
color: var(--shipaid-prompt-badge-text-color, var(--shipaid-text));
|
|
2603
|
-
padding: 0.2rem 1rem;
|
|
2604
|
-
border-radius: var(--shipaid-prompt-badge-border-radius, 30px);
|
|
2605
|
-
cursor: pointer;
|
|
2606
|
-
text-decoration: none;
|
|
2607
|
-
font-size: var(--shipaid-font-xs);
|
|
2608
|
-
display: inline-flex;
|
|
2609
|
-
align-items: center;
|
|
2610
|
-
gap: 0.8rem;
|
|
2611
|
-
white-space: nowrap;
|
|
2612
|
-
}
|
|
2613
|
-
.shipaid-prompt .prompt-footer .prompt-footer-badge svg {
|
|
2614
|
-
height:var(--shipaid-footer-badge-logo-height, 9px);
|
|
2615
|
-
}
|
|
2616
|
-
.prompt-product-details-subtitle {
|
|
2617
|
-
display: flex;
|
|
2618
|
-
}
|
|
2619
|
-
|
|
2620
|
-
.shipaid-benefits-container {
|
|
2621
|
-
width: 100%;
|
|
2622
|
-
max-height: 0;
|
|
2623
|
-
overflow: hidden;
|
|
2624
|
-
transition: max-height 0.3s ease;
|
|
2625
|
-
}
|
|
2626
|
-
|
|
2627
|
-
.shipaid-benefits-container.open {
|
|
2628
|
-
max-height: 400px;
|
|
2629
|
-
}
|
|
2630
|
-
|
|
2631
|
-
.shipaid-benefits {
|
|
2632
|
-
margin-top: 0.75rem;
|
|
2633
|
-
border-radius: 12px;
|
|
2634
|
-
display: flex;
|
|
2635
|
-
flex-direction: column;
|
|
2636
|
-
gap: 0.75rem;
|
|
2637
|
-
}
|
|
2638
|
-
|
|
2639
|
-
.shipaid-benefits__header {
|
|
2640
|
-
display: flex;
|
|
2641
|
-
justify-content: space-between;
|
|
2642
|
-
align-items: center;
|
|
2643
|
-
font-size: var(--shipaid-font-xs);
|
|
2644
|
-
font-weight: var(--shipaid-font-heavy);
|
|
2645
|
-
}
|
|
2646
|
-
|
|
2647
|
-
.shipaid-benefits__link {
|
|
2648
|
-
font-size: var(--shipaid-font-xs);
|
|
2649
|
-
text-decoration: underline;
|
|
2650
|
-
cursor: pointer;
|
|
2651
|
-
}
|
|
2652
|
-
|
|
2653
|
-
.shipaid-benefits ul {
|
|
2654
|
-
list-style: none;
|
|
2655
|
-
margin: 0;
|
|
2656
|
-
padding: 0;
|
|
2657
|
-
display: flex;
|
|
2658
|
-
flex-direction: column;
|
|
2659
|
-
gap: 0.8rem;
|
|
2660
|
-
}
|
|
2661
|
-
|
|
2662
|
-
.shipaid-benefits li {
|
|
2663
|
-
display: flex;
|
|
2664
|
-
align-items: center;
|
|
2665
|
-
gap: 0.5rem;
|
|
2666
|
-
font-size: 11px;
|
|
2667
|
-
line-height: 1.3;
|
|
2668
|
-
}
|
|
2669
|
-
|
|
2670
|
-
.shipaid-benefits li svg {
|
|
2671
|
-
width: 18px;
|
|
2672
|
-
height: 18px;
|
|
2673
|
-
flex-shrink: 0;
|
|
2674
|
-
}
|
|
2675
|
-
`;
|
|
2676
2459
|
const CheckmarkIcon = x`
|
|
2677
2460
|
<svg
|
|
2678
2461
|
id="Layer_1"
|
|
@@ -3289,7 +3072,7 @@ const langFiles = /* @__PURE__ */ Object.assign({
|
|
|
3289
3072
|
"../lang/fr.json": () => import("./fr-C7qY8Ze-.js").then((m2) => m2["default"]),
|
|
3290
3073
|
"../lang/it.json": () => import("./it-CKtGl5_a.js").then((m2) => m2["default"]),
|
|
3291
3074
|
"../lang/nl.json": () => import("./nl-BgrjSxfu.js").then((m2) => m2["default"]),
|
|
3292
|
-
"../lang/pt.json": () => import("./pt-
|
|
3075
|
+
"../lang/pt.json": () => import("./pt-taPnDKL8.js").then((m2) => m2["default"])
|
|
3293
3076
|
});
|
|
3294
3077
|
registerTranslateConfig({
|
|
3295
3078
|
loader: async (lang) => {
|
|
@@ -3625,7 +3408,7 @@ var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
|
3625
3408
|
if (result) __defProp$2(target, key, result);
|
|
3626
3409
|
return result;
|
|
3627
3410
|
};
|
|
3628
|
-
|
|
3411
|
+
class ShipAidWidget extends s$1 {
|
|
3629
3412
|
constructor() {
|
|
3630
3413
|
var _a, _b, _c;
|
|
3631
3414
|
super(...arguments);
|
|
@@ -5873,7 +5656,9 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
|
|
|
5873
5656
|
}
|
|
5874
5657
|
|
|
5875
5658
|
.shipaid-prompt {
|
|
5876
|
-
|
|
5659
|
+
width: var(--shipaid-prompt-width, 100%);
|
|
5660
|
+
margin: var(--shipaid-prompt-margin, unset);
|
|
5661
|
+
padding: var(--shipaid-prompt-padding, unset);
|
|
5877
5662
|
}
|
|
5878
5663
|
|
|
5879
5664
|
.shipaid-prompt p,
|
|
@@ -6197,9 +5982,7 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
|
|
|
6197
5982
|
</div>
|
|
6198
5983
|
`;
|
|
6199
5984
|
}
|
|
6200
|
-
}
|
|
6201
|
-
_ShipAidWidget.styles = styles;
|
|
6202
|
-
let ShipAidWidget = _ShipAidWidget;
|
|
5985
|
+
}
|
|
6203
5986
|
__decorateClass$2([
|
|
6204
5987
|
n$7({ type: String, attribute: true })
|
|
6205
5988
|
], ShipAidWidget.prototype, "env");
|