@amwaljs/checkout-button 0.3.1 → 0.3.2
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/README.md +1 -1
- package/dist/checkout/checkout.esm.js +1 -1
- package/dist/checkout/{p-c03b6161.entry.js → p-00045a8c.entry.js} +1 -1
- package/dist/checkout/p-01bbe74f.entry.js +1 -0
- package/dist/checkout/p-051412fa.entry.js +1 -0
- package/dist/checkout/p-09cbe586.entry.js +4 -0
- package/dist/checkout/{p-439ad699.entry.js → p-0a85a01f.entry.js} +2 -2
- package/dist/checkout/{p-d5652cd4.entry.js → p-0bbfeb3c.entry.js} +1 -1
- package/dist/checkout/{p-4ae1a390.entry.js → p-0d96b482.entry.js} +1 -1
- package/dist/checkout/{p-DUa_5Mmb.js → p-0f03cd28.js} +2 -2
- package/dist/checkout/p-104d7733.entry.js +1 -0
- package/dist/checkout/{p-8036cf49.entry.js → p-10ad151a.entry.js} +5 -5
- package/dist/checkout/p-112455b1.js +1 -0
- package/dist/checkout/p-11beffea.entry.js +1 -0
- package/dist/checkout/p-13245fd4.js +1 -0
- package/dist/checkout/p-13741a94.entry.js +1 -0
- package/dist/checkout/p-14ea2c82.entry.js +1 -0
- package/dist/checkout/p-167dc7a7.entry.js +4 -0
- package/dist/checkout/p-1a749b59.entry.js +1 -0
- package/dist/checkout/p-1c718939.entry.js +1 -0
- package/dist/checkout/{p-11205aeb.entry.js → p-1cbb13f2.entry.js} +1 -1
- package/dist/checkout/{p-46ff73b3.entry.js → p-20df5234.entry.js} +1 -1
- package/dist/checkout/p-24068b1c.entry.js +1 -0
- package/dist/checkout/{p-7006753a.entry.js → p-28ccecc7.entry.js} +2 -2
- package/dist/checkout/p-361649c3.js +4 -0
- package/dist/{components/p-DoR35tr_.js → checkout/p-39ad94cf.js} +2 -2
- package/dist/checkout/p-3b75b22a.js +5 -0
- package/dist/checkout/p-3b80783d.js +8 -0
- package/dist/checkout/p-3d3eefc3.js +4 -0
- package/dist/checkout/p-3e1e3453.js +4 -0
- package/dist/checkout/p-3e681e57.js +4 -0
- package/dist/checkout/{p-bf933eb6.entry.js → p-3e8da476.entry.js} +1 -1
- package/dist/checkout/{p-1dc08181.entry.js → p-4028c0d2.entry.js} +1 -1
- package/dist/checkout/p-44c91c42.entry.js +1 -0
- package/dist/checkout/p-464f5a60.entry.js +1 -0
- package/dist/checkout/p-46b7ee7f.entry.js +1 -0
- package/dist/checkout/p-48784250.entry.js +1 -0
- package/dist/{components/p-wiOwkFtc.js → checkout/p-4be20bf2.js} +1 -1
- package/dist/{components/p-Dl_WhQZu.js → checkout/p-4f78d3a0.js} +2 -2
- package/dist/checkout/{p-4da4ecc4.entry.js → p-529bce3f.entry.js} +1 -1
- package/dist/checkout/p-536a0294.js +4 -0
- package/dist/checkout/{p-eae2d3f2.entry.js → p-5eecd5ef.entry.js} +1 -1
- package/dist/checkout/p-64257c8d.entry.js +1 -0
- package/dist/checkout/{p-5903b3af.entry.js → p-64bd1dd3.entry.js} +1 -1
- package/dist/checkout/{p-9b7d7231.entry.js → p-68a4caba.entry.js} +1 -1
- package/dist/checkout/{p-978b3762.entry.js → p-69242ed6.entry.js} +1 -1
- package/dist/checkout/{p-62b7c8b0.entry.js → p-6d886d7e.entry.js} +1 -1
- package/dist/checkout/{p-ofaUly0p.js → p-6fa979e3.js} +2 -2
- package/dist/checkout/p-6fb474f3.entry.js +1 -0
- package/dist/checkout/p-77104220.js +7 -0
- package/dist/checkout/{p-aba43d04.entry.js → p-79ec3e4b.entry.js} +1 -1
- package/dist/checkout/{p-cd2c344b.entry.js → p-7b51bf67.entry.js} +2 -2
- package/dist/checkout/p-7f0004c9.js +4 -0
- package/dist/checkout/p-7fe50ab4.entry.js +1 -0
- package/dist/checkout/p-880b451c.entry.js +4 -0
- package/dist/checkout/p-886dad62.entry.js +1 -0
- package/dist/checkout/p-886e8746.entry.js +1 -0
- package/dist/checkout/p-88abdf59.js +4 -0
- package/dist/checkout/{p-f845e91b.entry.js → p-8a97a411.entry.js} +1 -1
- package/dist/checkout/p-8af3c6cc.entry.js +1 -0
- package/dist/checkout/{p-8b015c21.entry.js → p-8c022f5d.entry.js} +1 -1
- package/dist/checkout/{p-56e307eb.entry.js → p-91855eae.entry.js} +1 -1
- package/dist/checkout/{p-ca257d45.entry.js → p-9185e55b.entry.js} +1 -1
- package/dist/checkout/{p-4b34896c.entry.js → p-926eda98.entry.js} +1 -1
- package/dist/checkout/p-93e5b313.entry.js +4 -0
- package/dist/checkout/{p-4a86b731.entry.js → p-97024acb.entry.js} +1 -1
- package/dist/checkout/p-99e447f9.js +1 -0
- package/dist/{components/p-BgOwfqIY.js → checkout/p-9b519de5.js} +2 -2
- package/dist/checkout/{p-b8245f6a.entry.js → p-9b65a6e5.entry.js} +1 -1
- package/dist/checkout/{p-53ae9dd0.entry.js → p-9cc1fdfb.entry.js} +1 -1
- package/dist/checkout/{p-8fc1287a.entry.js → p-9f26fb71.entry.js} +1 -1
- package/dist/checkout/p-9f41a631.entry.js +1 -0
- package/dist/checkout/{p-5f005b5e.entry.js → p-a2ce8858.entry.js} +1 -1
- package/dist/checkout/{p-e4d0702d.entry.js → p-a3fca65c.entry.js} +1 -1
- package/dist/checkout/{p-d370e756.entry.js → p-a6056eb1.entry.js} +2 -2
- package/dist/checkout/{p-c929d6ea.entry.js → p-a7b2cbb9.entry.js} +1 -1
- package/dist/{components/p-Dwo-QLgs.js → checkout/p-ab16e6ce.js} +1 -1
- package/dist/checkout/{p-63db3363.entry.js → p-ab9a18c4.entry.js} +1 -1
- package/dist/checkout/p-b038db20.js +4 -0
- package/dist/checkout/p-b4ad8642.entry.js +1 -0
- package/dist/checkout/p-b4cf78ad.entry.js +1 -0
- package/dist/checkout/p-b7be2ec0.js +4 -0
- package/dist/checkout/p-b84d9e44.js +4 -0
- package/dist/{components/p-CwRU9ccI.js → checkout/p-b8fdd517.js} +1 -1
- package/dist/checkout/{p-d799009b.entry.js → p-b9d8ab12.entry.js} +1 -1
- package/dist/checkout/p-bb1f698e.js +4 -0
- package/dist/checkout/p-bd17be25.js +4 -0
- package/dist/checkout/p-bd4df0bc.entry.js +1 -0
- package/dist/checkout/p-c152bdea.js +4 -0
- package/dist/checkout/{p-f22v7XAM.js → p-c30e2b28.js} +2 -2
- package/dist/checkout/{p-c2296aa1.entry.js → p-c61a3d5d.entry.js} +1 -1
- package/dist/checkout/p-c6ee4bb6.entry.js +1 -0
- package/dist/checkout/p-c771a565.entry.js +1 -0
- package/dist/checkout/{p-3c9a8bee.entry.js → p-c82b2823.entry.js} +1 -1
- package/dist/checkout/p-c8f7d1b5.entry.js +1 -0
- package/dist/checkout/p-ceef30cd.entry.js +1 -0
- package/dist/checkout/p-d5733333.entry.js +1 -0
- package/dist/checkout/p-d5bba69c.entry.js +1 -0
- package/dist/checkout/p-d60b2328.js +4 -0
- package/dist/checkout/p-d60e05e2.entry.js +1 -0
- package/dist/checkout/p-d6b04157.entry.js +1 -0
- package/dist/checkout/p-d7a430bf.js +2 -0
- package/dist/checkout/{p-B3WORC1a.js → p-d839c693.js} +1 -1
- package/dist/checkout/{p-141f2eab.entry.js → p-d9dfb3ae.entry.js} +3 -3
- package/dist/checkout/p-dc51d318.js +5 -0
- package/dist/checkout/p-ddbe30b8.entry.js +1 -0
- package/dist/checkout/p-de418dd1.entry.js +1 -0
- package/dist/checkout/{p-b4000357.entry.js → p-defa5f72.entry.js} +2 -2
- package/dist/checkout/{p-b90c064e.entry.js → p-df0fa5e1.entry.js} +2 -2
- package/dist/checkout/{p-c8740acc.entry.js → p-e0f073f1.entry.js} +3 -3
- package/dist/checkout/p-e237d611.entry.js +1 -0
- package/dist/checkout/p-ea71fb8d.entry.js +1 -0
- package/dist/checkout/{p-95563c4c.entry.js → p-eda93a0b.entry.js} +1 -1
- package/dist/checkout/p-eee05053.entry.js +1 -0
- package/dist/checkout/{p-95431a73.entry.js → p-f8460dc4.entry.js} +1 -1
- package/dist/checkout/p-f875507d.entry.js +1 -0
- package/dist/checkout/p-faf06441.js +4 -0
- package/dist/checkout/p-fb147065.entry.js +1 -0
- package/dist/checkout/{p-af32124b.entry.js → p-fb45cdd1.entry.js} +1 -1
- package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
- package/dist/cjs/amwal-checkout-button_5.cjs.entry.js +1298 -2881
- package/dist/cjs/amwal-installments-guide.cjs.entry.js +42 -43
- package/dist/cjs/amwal-pos.cjs.entry.js +3180 -3452
- package/dist/cjs/amwal-widget-modal.cjs.entry.js +162 -175
- package/dist/cjs/amwal-widget.cjs.entry.js +314 -343
- package/dist/cjs/{animation-BhN-MT4J.js → animation-26241cb2.js} +2 -2
- package/dist/cjs/{app-globals-NtXImkuk.js → app-globals-42a13029.js} +1 -1
- package/dist/cjs/{ar-CbT6TM-Q.js → ar-3a6829a4.js} +10 -4
- package/dist/cjs/{capacitor-CqhugS19.js → capacitor-a9365f60.js} +1 -1
- package/dist/cjs/checkout.cjs.js +19 -16
- package/dist/cjs/{data-UgkxeXMB.js → data-19081291.js} +1 -1
- package/dist/cjs/{form-controller-DRf0gBOg.js → form-controller-3ffb27b1.js} +1 -1
- package/dist/cjs/{framework-delegate-D-6PUvOi.js → framework-delegate-ab2cc190.js} +1 -1
- package/dist/cjs/{gesture-controller-IMq9Cgi2.js → gesture-controller-b1c0efac.js} +1 -1
- package/dist/cjs/{haptic-CC9tl6g8.js → haptic-80174512.js} +1 -1
- package/dist/cjs/{hardware-back-button-C2D2eOk8.js → hardware-back-button-ddfefd22.js} +3 -3
- package/dist/cjs/{helpers-B4vhh9gt.js → helpers-72ba682d.js} +4 -1
- package/dist/cjs/i18n-18ad02d5.js +13 -0
- package/dist/cjs/{index-CKcQE8Zg.js → index-0d0b84fb.js} +4 -3
- package/dist/cjs/{index-6eOg4xTk.js → index-2602a653.js} +0 -1
- package/dist/cjs/{index-DZA7ogU0.js → index-2cd1a895.js} +4 -4
- package/dist/cjs/index-7522b3a9.js +2256 -0
- package/dist/cjs/{index-bc_r9XRf.js → index-9b7d2c31.js} +9 -9
- package/dist/cjs/{index-q1ImtF5k.js → index-ce06e6a3.js} +3 -3
- package/dist/cjs/{index-XMjUjboS.js → index-da554121.js} +3 -3
- package/dist/cjs/{input-shims-CCRbO2DB.js → input-shims-1a8ed779.js} +6 -6
- package/dist/cjs/{input.utils-CyVgmmWQ.js → input.utils-67143876.js} +3 -3
- package/dist/cjs/ion-accordion-group.cjs.entry.js +199 -203
- package/dist/cjs/ion-accordion.cjs.entry.js +305 -305
- package/dist/cjs/ion-action-sheet_3.cjs.entry.js +695 -705
- package/dist/cjs/ion-app.cjs.entry.js +95 -93
- package/dist/cjs/ion-avatar.cjs.entry.js +14 -12
- package/dist/cjs/ion-back-button.cjs.entry.js +78 -76
- package/dist/cjs/ion-backdrop.cjs.entry.js +44 -42
- package/dist/cjs/ion-badge.cjs.entry.js +19 -17
- package/dist/cjs/ion-breadcrumb.cjs.entry.js +86 -84
- package/dist/cjs/ion-breadcrumbs.cjs.entry.js +120 -124
- package/dist/cjs/ion-buttons_3.cjs.entry.js +822 -822
- package/dist/cjs/ion-card-content.cjs.entry.js +19 -17
- package/dist/cjs/ion-card-header.cjs.entry.js +22 -20
- package/dist/cjs/ion-card-subtitle.cjs.entry.js +20 -18
- package/dist/cjs/ion-card-title.cjs.entry.js +20 -18
- package/dist/cjs/ion-card.cjs.entry.js +55 -53
- package/dist/cjs/ion-checkbox_7.cjs.entry.js +862 -882
- package/dist/cjs/ion-chip.cjs.entry.js +24 -22
- package/dist/cjs/ion-col.cjs.entry.js +110 -108
- package/dist/cjs/ion-content.cjs.entry.js +376 -374
- package/dist/cjs/ion-datetime-button.cjs.entry.js +330 -328
- package/dist/cjs/ion-datetime.cjs.entry.js +1547 -1567
- package/dist/cjs/ion-fab-button.cjs.entry.js +78 -76
- package/dist/cjs/ion-fab-list.cjs.entry.js +31 -31
- package/dist/cjs/ion-fab.cjs.entry.js +58 -58
- package/dist/cjs/ion-footer.cjs.entry.js +94 -92
- package/dist/cjs/ion-grid.cjs.entry.js +17 -15
- package/dist/cjs/ion-header.cjs.entry.js +143 -141
- package/dist/cjs/ion-icon.cjs.entry.js +104 -112
- package/dist/cjs/ion-img.cjs.entry.js +83 -83
- package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +34 -32
- package/dist/cjs/ion-infinite-scroll.cjs.entry.js +174 -176
- package/dist/cjs/ion-input.cjs.entry.js +447 -453
- package/dist/cjs/ion-item-divider.cjs.entry.js +23 -21
- package/dist/cjs/ion-item-group.cjs.entry.js +20 -18
- package/dist/cjs/ion-item-option.cjs.entry.js +45 -43
- package/dist/cjs/ion-item-options.cjs.entry.js +40 -38
- package/dist/cjs/ion-item-sliding.cjs.entry.js +391 -391
- package/dist/cjs/ion-loading.cjs.entry.js +162 -164
- package/dist/cjs/ion-menu-button.cjs.entry.js +60 -58
- package/dist/cjs/ion-menu-toggle.cjs.entry.js +36 -34
- package/dist/cjs/ion-menu.cjs.entry.js +606 -612
- package/dist/cjs/ion-modal.cjs.entry.js +551 -553
- package/dist/cjs/ion-nav-link.cjs.entry.js +17 -15
- package/dist/cjs/ion-nav.cjs.entry.js +823 -825
- package/dist/cjs/ion-note.cjs.entry.js +19 -17
- package/dist/cjs/ion-picker-column.cjs.entry.js +327 -327
- package/dist/cjs/ion-picker.cjs.entry.js +198 -200
- package/dist/cjs/ion-popover.cjs.entry.js +326 -330
- package/dist/cjs/ion-progress-bar.cjs.entry.js +44 -42
- package/dist/cjs/ion-range.cjs.entry.js +644 -654
- package/dist/cjs/ion-refresher-content.cjs.entry.js +53 -51
- package/dist/cjs/ion-refresher.cjs.entry.js +586 -586
- package/dist/cjs/ion-reorder-group.cjs.entry.js +252 -252
- package/dist/cjs/ion-reorder.cjs.entry.js +26 -24
- package/dist/cjs/ion-route-redirect.cjs.entry.js +19 -21
- package/dist/cjs/ion-route.cjs.entry.js +37 -41
- package/dist/cjs/ion-router-link.cjs.entry.js +31 -29
- package/dist/cjs/ion-router-outlet.cjs.entry.js +178 -178
- package/dist/cjs/ion-router.cjs.entry.js +266 -264
- package/dist/cjs/ion-row.cjs.entry.js +12 -10
- package/dist/cjs/ion-searchbar.cjs.entry.js +388 -396
- package/dist/cjs/ion-segment-button.cjs.entry.js +96 -96
- package/dist/cjs/ion-segment.cjs.entry.js +414 -420
- package/dist/cjs/ion-select-option.cjs.entry.js +16 -14
- package/dist/cjs/ion-select.cjs.entry.js +693 -699
- package/dist/cjs/ion-skeleton-text.cjs.entry.js +35 -33
- package/dist/cjs/ion-spinner.cjs.entry.js +50 -48
- package/dist/cjs/ion-split-pane.cjs.entry.js +120 -124
- package/dist/cjs/ion-tab-bar.cjs.entry.js +66 -66
- package/dist/cjs/ion-tab-button.cjs.entry.js +82 -80
- package/dist/cjs/ion-tab.cjs.entry.js +50 -50
- package/dist/cjs/ion-tabs.cjs.entry.js +134 -132
- package/dist/cjs/ion-textarea.cjs.entry.js +396 -400
- package/dist/cjs/ion-thumbnail.cjs.entry.js +12 -10
- package/dist/cjs/ion-title.cjs.entry.js +43 -43
- package/dist/cjs/ion-toast.cjs.entry.js +371 -375
- package/dist/cjs/ion-toggle.cjs.entry.js +230 -230
- package/dist/cjs/ion-toolbar.cjs.entry.js +61 -59
- package/dist/cjs/{ionic-global-DRLi5Iq3.js → ionic-global-3915f1f1.js} +55 -58
- package/dist/cjs/{ios.transition-D4vyO_a_.js → ios.transition-b9c0b967.js} +5 -5
- package/dist/cjs/{keyboard-iyHR2ZF4.js → keyboard-5d4b83b3.js} +3 -3
- package/dist/cjs/{keyboard-DuKzsHsS.js → keyboard-bc8ebbf7.js} +1 -1
- package/dist/cjs/{keyboard-controller-rH21qC_2.js → keyboard-controller-c6633754.js} +2 -2
- package/dist/cjs/loader.cjs.js +19 -8
- package/dist/cjs/{md.transition-Dkxy3kpE.js → md.transition-830acbb7.js} +5 -5
- package/dist/cjs/{menu-toggle-util-CmPuayU0.js → menu-toggle-util-315c26b3.js} +1 -1
- package/dist/cjs/{notch-controller-Dtpow1eD.js → notch-controller-dcf09601.js} +2 -2
- package/dist/cjs/{overlays-Bc8tk6t5.js → overlays-08819e3f.js} +6 -6
- package/dist/cjs/{refresher.utils-CPl6gciv.js → refresher.utils-e41509f7.js} +3 -3
- package/dist/cjs/{status-tap-XtIhF72O.js → status-tap-ec021cb4.js} +4 -4
- package/dist/cjs/{swipe-back-C9j0kufI.js → swipe-back-3d3a5129.js} +4 -4
- package/dist/collection/collection-manifest.json +8 -8
- package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.js +1714 -1888
- package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.stories.js +84 -84
- package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.js +75 -80
- package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.stories.js +25 -25
- package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.js +506 -569
- package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.stories.js +80 -80
- package/dist/collection/components/amwal-pos/amwal-pos.js +1022 -1094
- package/dist/collection/components/amwal-pos/amwal-pos.stories.js +209 -209
- package/dist/collection/components/amwal-widget/amwal-widget-modal.js +326 -350
- package/dist/collection/components/amwal-widget/amwal-widget.js +673 -736
- package/dist/collection/components/amwal-widget/amwal-widget.stories.js +184 -184
- package/dist/collection/lang/i18n.js +7 -7
- package/dist/components/amwal-checkout-button.d.ts +2 -2
- package/dist/components/amwal-checkout-button.js +3811 -1
- package/dist/components/amwal-installments-guide.d.ts +2 -2
- package/dist/components/amwal-installments-guide.js +75 -1
- package/dist/components/amwal-installments-timeline.d.ts +2 -2
- package/dist/components/amwal-installments-timeline.js +6 -1
- package/dist/components/amwal-pos.d.ts +2 -2
- package/dist/components/amwal-pos.js +3391 -1
- package/dist/components/amwal-widget-modal.d.ts +2 -2
- package/dist/components/amwal-widget-modal.js +6 -1
- package/dist/components/amwal-widget.d.ts +2 -2
- package/dist/components/amwal-widget.js +389 -1
- package/dist/components/index.d.ts +0 -6
- package/dist/components/index.js +6 -1
- package/dist/components/ion-accordion-group.js +248 -1
- package/dist/components/ion-accordion.js +353 -1
- package/dist/components/ion-action-sheet.js +6 -1
- package/dist/components/ion-alert.js +6 -1
- package/dist/components/ion-app.js +125 -1
- package/dist/components/ion-avatar.js +39 -1
- package/dist/components/ion-back-button.js +127 -1
- package/dist/components/ion-backdrop.js +6 -1
- package/dist/components/ion-badge.js +46 -1
- package/dist/components/ion-breadcrumb.js +131 -1
- package/dist/components/ion-breadcrumbs.js +152 -1
- package/dist/components/ion-button.js +6 -1
- package/dist/components/ion-buttons.js +6 -1
- package/dist/components/ion-card-content.js +43 -1
- package/dist/components/ion-card-header.js +50 -1
- package/dist/components/ion-card-subtitle.js +47 -1
- package/dist/components/ion-card-title.js +47 -1
- package/dist/components/ion-card.js +98 -1
- package/dist/components/ion-checkbox.js +6 -1
- package/dist/components/ion-chip.js +59 -1
- package/dist/components/ion-col.js +186 -2
- package/dist/components/ion-content.js +440 -1
- package/dist/components/ion-datetime-button.js +378 -1
- package/dist/components/ion-datetime.js +1961 -2
- package/dist/components/ion-fab-button.js +130 -1
- package/dist/components/ion-fab-list.js +56 -1
- package/dist/components/ion-fab.js +90 -1
- package/dist/components/ion-footer.js +152 -2
- package/dist/components/ion-grid.js +41 -1
- package/dist/components/ion-header.js +356 -2
- package/dist/components/ion-icon.js +6 -1
- package/dist/components/ion-img.js +124 -1
- package/dist/components/ion-infinite-scroll-content.js +69 -1
- package/dist/components/ion-infinite-scroll.js +209 -1
- package/dist/components/ion-input.js +564 -1
- package/dist/components/ion-item-divider.js +51 -1
- package/dist/components/ion-item-group.js +44 -1
- package/dist/components/ion-item-option.js +85 -1
- package/dist/components/ion-item-options.js +67 -1
- package/dist/components/ion-item-sliding.js +449 -1
- package/dist/components/ion-item.js +6 -1
- package/dist/components/ion-label.js +6 -1
- package/dist/components/ion-list-header.js +6 -1
- package/dist/components/ion-list.js +6 -1
- package/dist/components/ion-loading.js +325 -3
- package/dist/components/ion-menu-button.js +100 -1
- package/dist/components/ion-menu-toggle.js +57 -1
- package/dist/components/ion-menu.js +679 -1
- package/dist/components/ion-modal.js +1775 -3
- package/dist/components/ion-nav-link.js +63 -2
- package/dist/components/ion-nav.js +945 -2
- package/dist/components/ion-note.js +6 -1
- package/dist/components/ion-picker-column-internal.js +6 -1
- package/dist/components/ion-picker-column.js +6 -1
- package/dist/components/ion-picker-internal.js +6 -1
- package/dist/components/ion-picker.js +317 -3
- package/dist/components/ion-popover.js +6 -1
- package/dist/components/ion-progress-bar.js +79 -1
- package/dist/components/ion-radio-group.js +6 -1
- package/dist/components/ion-radio.js +6 -1
- package/dist/components/ion-range.js +778 -2
- package/dist/components/ion-refresher-content.js +90 -1
- package/dist/components/ion-refresher.js +652 -1
- package/dist/components/ion-reorder-group.js +300 -1
- package/dist/components/ion-reorder.js +58 -1
- package/dist/components/ion-ripple-effect.js +6 -1
- package/dist/components/ion-route-redirect.js +42 -1
- package/dist/components/ion-route.js +66 -1
- package/dist/components/ion-router-link.js +60 -1
- package/dist/components/ion-router-outlet.js +219 -1
- package/dist/components/ion-router.js +833 -3
- package/dist/components/ion-row.js +34 -1
- package/dist/components/ion-searchbar.js +472 -1
- package/dist/components/ion-segment-button.js +139 -1
- package/dist/components/ion-segment.js +472 -1
- package/dist/components/ion-select-option.js +42 -1
- package/dist/components/ion-select-popover.js +6 -1
- package/dist/components/ion-select.js +864 -1
- package/dist/components/ion-skeleton-text.js +59 -1
- package/dist/components/ion-spinner.js +6 -1
- package/dist/components/ion-split-pane.js +166 -1
- package/dist/components/ion-tab-bar.js +95 -1
- package/dist/components/ion-tab-button.js +125 -1
- package/dist/components/ion-tab.js +80 -1
- package/dist/components/ion-tabs.js +176 -1
- package/dist/components/ion-text.js +6 -1
- package/dist/components/ion-textarea.js +496 -1
- package/dist/components/ion-thumbnail.js +34 -1
- package/dist/components/ion-title.js +71 -1
- package/dist/components/ion-toast.js +914 -3
- package/dist/components/ion-toggle.js +282 -1
- package/dist/components/ion-toolbar.js +91 -1
- package/dist/components/p-01b49f83.js +269 -0
- package/dist/{esm/ios.transition-DMsViooj.js → components/p-02b77441.js} +2 -5
- package/dist/components/p-02bc6b21.js +203 -0
- package/dist/components/p-031ed92d.js +389 -0
- package/dist/components/p-03803c7d.js +369 -0
- package/dist/components/p-089e034e.js +234 -0
- package/dist/components/p-0dc7a5ff.js +512 -0
- package/dist/components/p-110f8490.js +566 -0
- package/dist/components/p-112455b1.js +17 -0
- package/dist/{esm/index-BMJhFU53.js → components/p-1596e301.js} +4 -4
- package/dist/components/p-1785e30a.js +318 -0
- package/dist/{esm/helpers-C6kqtbmV.js → components/p-2bb89b46.js} +5 -2
- package/dist/components/p-2d7d745d.js +224 -0
- package/dist/components/p-2fc99fef.js +262 -0
- package/dist/{esm/input-shims-DSFPFhb7.js → components/p-3296ebd9.js} +4 -6
- package/dist/{esm/data-Cl-_yBA0.js → components/p-39ad94cf.js} +2 -2
- package/dist/{esm/capacitor-CG3xQUND.js → components/p-3d3eefc3.js} +1 -1
- package/dist/{esm/form-controller-xetTxjL6.js → components/p-3e1d2896.js} +1 -1
- package/dist/{esm/keyboard-controller-CqGCg8tB.js → components/p-3e1e3453.js} +2 -2
- package/dist/{esm/md.transition-BQT2r4ED.js → components/p-503328f2.js} +2 -5
- package/dist/components/p-51c44f42.js +98 -0
- package/dist/components/p-5280b372.js +42 -0
- package/dist/{esm/index-DuUXGZp2.js → components/p-53e2dbe4.js} +3 -3
- package/dist/components/p-5441c730.js +851 -0
- package/dist/{esm/refresher.utils-D4tPnZsM.js → components/p-74e68924.js} +4 -4
- package/dist/{esm/framework-delegate-D_uGiYYw.js → components/p-76525f0f.js} +1 -1
- package/dist/{esm/index-CcopIPA0.js → components/p-77104220.js} +6 -4
- package/dist/components/p-77ccb793.js +185 -0
- package/dist/components/p-83e529db.js +380 -0
- package/dist/{esm/animation-DRf3dwMu.js → components/p-89c4c5cb.js} +2 -2
- package/dist/components/p-8b3d1e06.js +67 -0
- package/dist/components/p-901c16c5.js +210 -0
- package/dist/components/p-93e2a608.js +374 -0
- package/dist/components/p-95c79593.js +43 -0
- package/dist/components/p-96073863.js +82 -0
- package/dist/components/p-99e447f9.js +13 -0
- package/dist/{esm/keyboard-DgiyREKb.js → components/p-9b519de5.js} +1 -1
- package/dist/{esm/input.utils-BuIvhxo3.js → components/p-9d350d61.js} +3 -3
- package/dist/{esm/notch-controller-CQeDnZLe.js → components/p-9df67c24.js} +2 -2
- package/dist/components/p-a0e691dd.js +39 -0
- package/dist/components/p-ab10d1ae.js +47 -0
- package/dist/components/p-abc01c5d.js +194 -0
- package/dist/components/p-abd248d1.js +196 -0
- package/dist/{esm/haptic-D5jGzBs8.js → components/p-af073aaf.js} +2 -2
- package/dist/{esm/swipe-back-DE05lWQD.js → components/p-b32529b9.js} +3 -4
- package/dist/{esm/index-C75BfBAE.js → components/p-b8fdd517.js} +1 -2
- package/dist/components/p-cebc113f.js +38 -0
- package/dist/components/p-d25fd077.js +331 -0
- package/dist/{esm/menu-toggle-util-wdO31cdC.js → components/p-d3596f64.js} +1 -1
- package/dist/{esm/keyboard-DcbqYXj5.js → components/p-d60b2328.js} +1 -3
- package/dist/components/p-d69dc32f.js +97 -0
- package/dist/{esm/hardware-back-button-CzxcJiYO.js → components/p-d72e8d7b.js} +2 -3
- package/dist/{esm/ar-B3WORC1a.js → components/p-d839c693.js} +12 -5
- package/dist/{esm/index-D8d_89Nl.js → components/p-e187a77c.js} +1 -1
- package/dist/components/p-e65ea9fb.js +1379 -0
- package/dist/components/p-ec0e3f3f.js +2040 -0
- package/dist/components/p-ecb4db1c.js +64 -0
- package/dist/{esm/gesture-controller-CukVBo5-.js → components/p-f728a68f.js} +1 -1
- package/dist/components/p-f7e3c502.js +73 -0
- package/dist/components/p-fe463a42.js +272 -0
- package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
- package/dist/esm/amwal-checkout-button_5.entry.js +1296 -2881
- package/dist/esm/amwal-installments-guide.entry.js +40 -43
- package/dist/esm/amwal-pos.entry.js +3178 -3452
- package/dist/esm/amwal-widget-modal.entry.js +160 -175
- package/dist/esm/amwal-widget.entry.js +312 -343
- package/dist/esm/animation-a6d5c3b1.js +1063 -0
- package/dist/esm/{app-globals-BHnkZZiH.js → app-globals-c817b28b.js} +1 -1
- package/dist/esm/ar-7d2629bf.js +51 -0
- package/dist/esm/capacitor-ba4337da.js +13 -0
- package/dist/esm/checkout.js +18 -16
- package/dist/esm/config-8e06237c.js +171 -0
- package/dist/esm/cubic-bezier-874f336d.js +90 -0
- package/dist/esm/data-8916315d.js +1628 -0
- package/dist/esm/dir-1d4aa386.js +18 -0
- package/dist/esm/focus-visible-32968d3d.js +75 -0
- package/dist/esm/form-controller-b1aa7393.js +64 -0
- package/dist/esm/framework-delegate-de1aa369.js +140 -0
- package/dist/esm/gesture-controller-58ffa500.js +195 -0
- package/dist/esm/haptic-4d4d8eb1.js +206 -0
- package/dist/esm/hardware-back-button-f93acff0.js +116 -0
- package/dist/esm/helpers-f0dcbd72.js +418 -0
- package/dist/esm/i18n-53f85411.js +13 -0
- package/dist/esm/{index-CNcx43L8.js → index-0b560278.js} +4 -4
- package/dist/esm/index-5894dd63.js +196 -0
- package/dist/esm/{index-DUF6JAQL.js → index-5a126e54.js} +6 -6
- package/dist/esm/index-5e663431.js +128 -0
- package/dist/esm/index-8cc94b11.js +2219 -0
- package/dist/esm/index-afdf867c.js +26 -0
- package/dist/esm/index-d9b41a43.js +34 -0
- package/dist/esm/index-f6dce931.js +466 -0
- package/dist/esm/index-fb97e55c.js +7 -0
- package/dist/esm/input-shims-75d4750d.js +617 -0
- package/dist/esm/input.utils-79bde07f.js +138 -0
- package/dist/esm/ion-accordion-group.entry.js +197 -203
- package/dist/esm/ion-accordion.entry.js +303 -305
- package/dist/esm/ion-action-sheet_3.entry.js +693 -705
- package/dist/esm/ion-app.entry.js +93 -93
- package/dist/esm/ion-avatar.entry.js +12 -12
- package/dist/esm/ion-back-button.entry.js +76 -76
- package/dist/esm/ion-backdrop.entry.js +42 -42
- package/dist/esm/ion-badge.entry.js +17 -17
- package/dist/esm/ion-breadcrumb.entry.js +84 -84
- package/dist/esm/ion-breadcrumbs.entry.js +118 -124
- package/dist/esm/ion-buttons_3.entry.js +820 -822
- package/dist/esm/ion-card-content.entry.js +17 -17
- package/dist/esm/ion-card-header.entry.js +20 -20
- package/dist/esm/ion-card-subtitle.entry.js +18 -18
- package/dist/esm/ion-card-title.entry.js +18 -18
- package/dist/esm/ion-card.entry.js +53 -53
- package/dist/esm/ion-checkbox_7.entry.js +860 -882
- package/dist/esm/ion-chip.entry.js +22 -22
- package/dist/esm/ion-col.entry.js +108 -108
- package/dist/esm/ion-content.entry.js +374 -374
- package/dist/esm/ion-datetime-button.entry.js +328 -328
- package/dist/esm/ion-datetime.entry.js +1545 -1567
- package/dist/esm/ion-fab-button.entry.js +76 -76
- package/dist/esm/ion-fab-list.entry.js +29 -31
- package/dist/esm/ion-fab.entry.js +56 -58
- package/dist/esm/ion-footer.entry.js +92 -92
- package/dist/esm/ion-grid.entry.js +15 -15
- package/dist/esm/ion-header.entry.js +141 -141
- package/dist/esm/ion-icon.entry.js +102 -112
- package/dist/esm/ion-img.entry.js +81 -83
- package/dist/esm/ion-infinite-scroll-content.entry.js +32 -32
- package/dist/esm/ion-infinite-scroll.entry.js +172 -176
- package/dist/esm/ion-input.entry.js +445 -453
- package/dist/esm/ion-item-divider.entry.js +21 -21
- package/dist/esm/ion-item-group.entry.js +18 -18
- package/dist/esm/ion-item-option.entry.js +43 -43
- package/dist/esm/ion-item-options.entry.js +38 -38
- package/dist/esm/ion-item-sliding.entry.js +389 -391
- package/dist/esm/ion-loading.entry.js +160 -164
- package/dist/esm/ion-menu-button.entry.js +58 -58
- package/dist/esm/ion-menu-toggle.entry.js +34 -34
- package/dist/esm/ion-menu.entry.js +604 -612
- package/dist/esm/ion-modal.entry.js +549 -553
- package/dist/esm/ion-nav-link.entry.js +15 -15
- package/dist/esm/ion-nav.entry.js +821 -825
- package/dist/esm/ion-note.entry.js +17 -17
- package/dist/esm/ion-picker-column.entry.js +325 -327
- package/dist/esm/ion-picker.entry.js +196 -200
- package/dist/esm/ion-popover.entry.js +324 -330
- package/dist/esm/ion-progress-bar.entry.js +42 -42
- package/dist/esm/ion-range.entry.js +642 -654
- package/dist/esm/ion-refresher-content.entry.js +51 -51
- package/dist/esm/ion-refresher.entry.js +584 -586
- package/dist/esm/ion-reorder-group.entry.js +250 -252
- package/dist/esm/ion-reorder.entry.js +24 -24
- package/dist/esm/ion-route-redirect.entry.js +17 -21
- package/dist/esm/ion-route.entry.js +35 -41
- package/dist/esm/ion-router-link.entry.js +29 -29
- package/dist/esm/ion-router-outlet.entry.js +176 -178
- package/dist/esm/ion-router.entry.js +264 -264
- package/dist/esm/ion-row.entry.js +10 -10
- package/dist/esm/ion-searchbar.entry.js +386 -396
- package/dist/esm/ion-segment-button.entry.js +94 -96
- package/dist/esm/ion-segment.entry.js +412 -420
- package/dist/esm/ion-select-option.entry.js +14 -14
- package/dist/esm/ion-select.entry.js +691 -699
- package/dist/esm/ion-skeleton-text.entry.js +33 -33
- package/dist/esm/ion-spinner.entry.js +48 -48
- package/dist/esm/ion-split-pane.entry.js +118 -124
- package/dist/esm/ion-tab-bar.entry.js +64 -66
- package/dist/esm/ion-tab-button.entry.js +80 -80
- package/dist/esm/ion-tab.entry.js +48 -50
- package/dist/esm/ion-tabs.entry.js +132 -132
- package/dist/esm/ion-textarea.entry.js +394 -400
- package/dist/esm/ion-thumbnail.entry.js +10 -10
- package/dist/esm/ion-title.entry.js +41 -43
- package/dist/esm/ion-toast.entry.js +369 -375
- package/dist/esm/ion-toggle.entry.js +228 -230
- package/dist/esm/ion-toolbar.entry.js +59 -59
- package/dist/esm/{ionic-global-DXXzPLPc.js → ionic-global-0b7766cb.js} +55 -58
- package/dist/esm/ios.transition-22fb53bc.js +651 -0
- package/dist/esm/keyboard-1f073554.js +82 -0
- package/dist/esm/keyboard-96b6e80b.js +146 -0
- package/dist/esm/keyboard-controller-5a2f625f.js +165 -0
- package/dist/esm/loader.js +17 -8
- package/dist/esm/lock-controller-632e3c10.js +38 -0
- package/dist/esm/md.transition-f6ff9834.js +57 -0
- package/dist/esm/menu-toggle-util-594849ff.js +12 -0
- package/dist/esm/notch-controller-d511b3b3.js +153 -0
- package/dist/esm/{overlays-SBLrmFy6.js → overlays-642a91df.js} +7 -7
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/refresher.utils-19137568.js +196 -0
- package/dist/esm/{status-tap-CjxQA4Bj.js → status-tap-bb6959a8.js} +4 -4
- package/dist/esm/swipe-back-6cec4c33.js +79 -0
- package/dist/esm/theme-35c700b7.js +43 -0
- package/dist/esm/watch-options-7bf43687.js +47 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +193 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +135 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +127 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +229 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +456 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +384 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.ios.css +755 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +770 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/app/app.css +17 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.ios.css +132 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.md.css +132 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +372 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +385 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.ios.css +136 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.md.css +136 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.ios.css +168 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.md.css +164 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +326 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +310 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +81 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +80 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +596 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +517 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.ios.css +279 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.md.css +299 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card/card.ios.css +203 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card/card.md.css +198 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.ios.css +163 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.md.css +165 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.ios.css +141 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.md.css +138 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.ios.css +138 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.md.css +136 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.ios.css +137 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.md.css +137 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.ios.css +536 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.md.css +552 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.ios.css +212 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.md.css +207 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/col/col.css +200 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +282 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +850 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +706 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +100 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab/fab.css +366 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.ios.css +422 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.md.css +393 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-list/fab-list.css +240 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +146 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.md.css +129 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/grid/grid.css +235 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +250 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/header/header.md.css +133 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/img/img.css +12 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll/infinite-scroll.css +8 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +156 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +156 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +833 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +1446 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +815 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +1187 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.ios.css +351 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.md.css +417 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.ios.css +114 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.md.css +114 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +242 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +236 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +287 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +284 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +121 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +334 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +421 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +242 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list/list.md.css +287 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.ios.css +285 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.md.css +266 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +205 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +196 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +378 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +374 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.ios.css +279 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.md.css +282 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu-toggle/menu-toggle.css +3 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +357 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +272 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/nav/nav.css +64 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/note/note.ios.css +127 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/note/note.md.css +127 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.ios.css +367 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.md.css +354 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.ios.css +255 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.md.css +246 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +138 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +196 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +262 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +258 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +366 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +266 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +261 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +261 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.ios.css +557 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.md.css +580 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +660 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +819 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +321 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +316 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.ios.css +77 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.md.css +77 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/reorder-group/reorder-group.css +89 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/ripple-effect/ripple-effect.css +113 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/router-link/router-link.css +84 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/router-outlet/router-outlet.css +64 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/row/row.css +136 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +477 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +456 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.ios.css +224 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.md.css +214 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +520 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +506 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +787 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +1374 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select-option/select-option.css +3 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.ios.css +190 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +212 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +108 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +232 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.ios.css +265 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.md.css +265 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab/tab.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +252 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +239 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.ios.css +477 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.md.css +501 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tabs/tabs.css +74 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/text/text.css +58 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +987 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +1553 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/thumbnail/thumbnail.css +76 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +183 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/title/title.md.css +102 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +399 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +429 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +680 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +625 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +265 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +244 -0
- package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +144 -0
- package/dist/types/components/amwal-checkout-button/amwal-checkout-button.d.ts +327 -327
- package/dist/types/components/amwal-checkout-button/amwal-checkout-button.stories.d.ts +34 -34
- package/dist/types/components/amwal-installments-guide/amwal-installments-guide.d.ts +14 -14
- package/dist/types/components/amwal-installments-guide/amwal-installments-guide.stories.d.ts +17 -17
- package/dist/types/components/amwal-installments-timeline/amwal-installments-timeline.d.ts +106 -106
- package/dist/types/components/amwal-installments-timeline/amwal-installments-timeline.stories.d.ts +67 -67
- package/dist/types/components/amwal-pos/amwal-pos.d.ts +228 -228
- package/dist/types/components/amwal-pos/amwal-pos.stories.d.ts +185 -185
- package/dist/types/components/amwal-widget/amwal-widget-modal.d.ts +56 -56
- package/dist/types/components/amwal-widget/amwal-widget.d.ts +165 -165
- package/dist/types/components/amwal-widget/amwal-widget.stories.d.ts +101 -101
- package/dist/types/components.d.ts +0 -206
- package/dist/types/lang/i18n.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +21 -191
- package/loader/cdn.js +3 -1
- package/loader/index.cjs.js +3 -1
- package/loader/index.d.ts +1 -4
- package/loader/index.es2017.js +3 -1
- package/loader/index.js +3 -1
- package/loader/package.json +11 -0
- package/package.json +28 -34
- package/dist/checkout/p-0161d109.entry.js +0 -1
- package/dist/checkout/p-0a8ef1ec.entry.js +0 -1
- package/dist/checkout/p-10a72fbe.entry.js +0 -1
- package/dist/checkout/p-12ed4081.entry.js +0 -1
- package/dist/checkout/p-13c36adc.entry.js +0 -1
- package/dist/checkout/p-194b17d8.entry.js +0 -1
- package/dist/checkout/p-272a1ffd.entry.js +0 -1
- package/dist/checkout/p-307af48b.entry.js +0 -1
- package/dist/checkout/p-3207674d.entry.js +0 -1
- package/dist/checkout/p-3208e56f.entry.js +0 -1
- package/dist/checkout/p-4426eb3b.entry.js +0 -1
- package/dist/checkout/p-458da59f.entry.js +0 -1
- package/dist/checkout/p-46e69508.entry.js +0 -1
- package/dist/checkout/p-49046c16.entry.js +0 -4
- package/dist/checkout/p-53dc0e86.entry.js +0 -1
- package/dist/checkout/p-5a6fc9fd.entry.js +0 -1
- package/dist/checkout/p-5e65653a.entry.js +0 -1
- package/dist/checkout/p-5f124c24.entry.js +0 -1
- package/dist/checkout/p-6a8ad104.entry.js +0 -1
- package/dist/checkout/p-76fb4325.entry.js +0 -1
- package/dist/checkout/p-78db60fb.entry.js +0 -1
- package/dist/checkout/p-8e34a1bb.entry.js +0 -1
- package/dist/checkout/p-91474b10.entry.js +0 -1
- package/dist/checkout/p-93OyAGoo.js +0 -2
- package/dist/checkout/p-94a57258.entry.js +0 -1
- package/dist/checkout/p-BEVStXwd.js +0 -7
- package/dist/checkout/p-BQu7QPd5.js +0 -4
- package/dist/checkout/p-BR7SJd-v.js +0 -4
- package/dist/checkout/p-BcFRJSFv.js +0 -4
- package/dist/checkout/p-BcUxrseY.js +0 -1
- package/dist/checkout/p-BdG893XR.js +0 -4
- package/dist/checkout/p-BgOwfqIY.js +0 -4
- package/dist/checkout/p-Bm9bMvCb.js +0 -4
- package/dist/checkout/p-C03M5ZSM.js +0 -1
- package/dist/checkout/p-C6kqtbmV.js +0 -4
- package/dist/checkout/p-C75BfBAE.js +0 -1
- package/dist/checkout/p-CVrvo9Qz.js +0 -4
- package/dist/checkout/p-ChixdDt6.js +0 -4
- package/dist/checkout/p-Cjnmql4G.js +0 -8
- package/dist/checkout/p-D0I0TqZU.js +0 -4
- package/dist/checkout/p-D2NxOvQ8.js +0 -4
- package/dist/checkout/p-D8d_89Nl.js +0 -4
- package/dist/checkout/p-DAhcxcAh.js +0 -4
- package/dist/checkout/p-DDtPO7yO.js +0 -4
- package/dist/checkout/p-DKg_dYcq.js +0 -4
- package/dist/checkout/p-DMAPbDyG.js +0 -4
- package/dist/checkout/p-DihS-5gH.js +0 -4
- package/dist/checkout/p-DkrNcwKK.js +0 -5
- package/dist/checkout/p-Dzj_jqIY.js +0 -4
- package/dist/checkout/p-E8AXUhZ3.js +0 -7
- package/dist/checkout/p-Ufaww5Lq.js +0 -4
- package/dist/checkout/p-a90efa79.entry.js +0 -1
- package/dist/checkout/p-abd12b84.entry.js +0 -1
- package/dist/checkout/p-abe1becc.entry.js +0 -1
- package/dist/checkout/p-b2f66c60.entry.js +0 -4
- package/dist/checkout/p-b45f5952.entry.js +0 -1
- package/dist/checkout/p-c2240d19.entry.js +0 -1
- package/dist/checkout/p-c28b4374.entry.js +0 -1
- package/dist/checkout/p-cb2db223.entry.js +0 -1
- package/dist/checkout/p-cb3967fc.entry.js +0 -1
- package/dist/checkout/p-cef16f11.entry.js +0 -1
- package/dist/checkout/p-df1b4347.entry.js +0 -4
- package/dist/checkout/p-e4bc42fb.entry.js +0 -1
- package/dist/checkout/p-e785fb8a.entry.js +0 -1
- package/dist/checkout/p-e8bd206a.entry.js +0 -1
- package/dist/checkout/p-ef749875.entry.js +0 -1
- package/dist/checkout/p-f157b6b2.entry.js +0 -4
- package/dist/checkout/p-f351a19a.entry.js +0 -1
- package/dist/checkout/p-ff2e59e3.entry.js +0 -1
- package/dist/checkout/p-hAETByzF.js +0 -5
- package/dist/checkout/p-vn1iXXUO.js +0 -9
- package/dist/cjs/i18n-uGNv9SLK.js +0 -13
- package/dist/cjs/index-DncWzXDA.js +0 -3738
- package/dist/components/p-55BwDerf.js +0 -8
- package/dist/components/p-B-M4K7iJ.js +0 -7
- package/dist/components/p-B-hirT0v.js +0 -4
- package/dist/components/p-B3WORC1a.js +0 -1
- package/dist/components/p-B5XH2zAk.js +0 -1
- package/dist/components/p-B5ZghgSh.js +0 -4
- package/dist/components/p-BEVStXwd.js +0 -7
- package/dist/components/p-BH0TCnxk.js +0 -4
- package/dist/components/p-BIA8A9ZO.js +0 -1
- package/dist/components/p-BOkYKP6F.js +0 -1
- package/dist/components/p-BOm0KT2x.js +0 -1
- package/dist/components/p-Bb_Zji0h.js +0 -4
- package/dist/components/p-BmVRXR1y.js +0 -4
- package/dist/components/p-BnQDByf2.js +0 -1
- package/dist/components/p-BoxjYI-Q.js +0 -4
- package/dist/components/p-BriBxgcM.js +0 -1
- package/dist/components/p-BwKjt_Dc.js +0 -4
- package/dist/components/p-Bx78uXfc.js +0 -5
- package/dist/components/p-C-20JWsp.js +0 -4
- package/dist/components/p-C03M5ZSM.js +0 -1
- package/dist/components/p-C53feagD.js +0 -4
- package/dist/components/p-CLrB3zV0.js +0 -4
- package/dist/components/p-CN34uOrj.js +0 -9
- package/dist/components/p-CQmcNwZM.js +0 -4
- package/dist/components/p-CYd0Smt1.js +0 -1
- package/dist/components/p-CgPXSjzI.js +0 -4
- package/dist/components/p-Cho32MPa.js +0 -4
- package/dist/components/p-ClE6rMJs.js +0 -4
- package/dist/components/p-Cm9b7fIl.js +0 -1
- package/dist/components/p-CukVBo5-.js +0 -4
- package/dist/components/p-D2NxOvQ8.js +0 -4
- package/dist/components/p-D4DqwBlW.js +0 -4
- package/dist/components/p-D7YY0NXg.js +0 -4
- package/dist/components/p-D8OVJo1v.js +0 -7
- package/dist/components/p-DKg_dYcq.js +0 -4
- package/dist/components/p-DLVYPrYs.js +0 -1
- package/dist/components/p-DMmSL7_l.js +0 -1
- package/dist/components/p-DOPF2QRF.js +0 -1
- package/dist/components/p-DTgJTJD6.js +0 -1
- package/dist/components/p-DiVJyqlX.js +0 -4
- package/dist/components/p-DrS88eFz.js +0 -1
- package/dist/components/p-Dtdm8lKC.js +0 -4
- package/dist/components/p-DuZ7hY1a.js +0 -4
- package/dist/components/p-Dx-C8Ob_.js +0 -7
- package/dist/components/p-DxEgz9x_.js +0 -1
- package/dist/components/p-DxSo4SXG.js +0 -1
- package/dist/components/p-HSPzo8it.js +0 -1
- package/dist/components/p-OrwCUtWu.js +0 -4
- package/dist/components/p-UgkI2Wa4.js +0 -1
- package/dist/components/p-VeNdmYSo.js +0 -1
- package/dist/components/p-YbpebnFS.js +0 -4
- package/dist/components/p-ZjP4CjeZ.js +0 -4
- package/dist/components/p-_VuKPdkD.js +0 -4
- package/dist/components/p-aWL6BxTN.js +0 -4
- package/dist/components/p-hHmYLOfE.js +0 -4
- package/dist/components/p-qoI-S7yk.js +0 -4
- package/dist/components/p-uXV7tzS3.js +0 -1
- package/dist/components/p-yu3xCFhr.js +0 -7
- package/dist/components/p-zp5f483d.js +0 -1
- package/dist/esm/i18n-C_AfxZ5D.js +0 -13
- package/dist/esm/index-93OyAGoo.js +0 -3721
- /package/dist/checkout/{p-B-hirT0v.js → p-01ad898f.js} +0 -0
- /package/dist/checkout/{p-DiVJyqlX.js → p-350e7423.js} +0 -0
- /package/dist/checkout/{p-sObYyvOy.js → p-52b4c112.js} +0 -0
- /package/dist/checkout/{p-BmVRXR1y.js → p-620fa0ec.js} +0 -0
- /package/dist/checkout/{p-hHmYLOfE.js → p-94286cc3.js} +0 -0
- /package/dist/checkout/{p-D4RIp70E.js → p-9efbca93.js} +0 -0
- /package/dist/checkout/{p-Dtdm8lKC.js → p-9f4ac833.js} +0 -0
- /package/dist/checkout/{p-yu3xCFhr.js → p-b2289937.js} +0 -0
- /package/dist/checkout/{p-C53feagD.js → p-d5862637.js} +0 -0
- /package/dist/checkout/{p-ZjP4CjeZ.js → p-d7fe59ee.js} +0 -0
- /package/dist/{components/p-CYPPT3AE.js → checkout/p-e187a77c.js} +0 -0
- /package/dist/checkout/{p-CukVBo5-.js → p-f728a68f.js} +0 -0
- /package/dist/cjs/{compare-with-utils-JlLIkecm.js → compare-with-utils-adbe64a6.js} +0 -0
- /package/dist/cjs/{config-ptk2Lf4l.js → config-e2a8c0c7.js} +0 -0
- /package/dist/cjs/{cubic-bezier-Bv3PvaRI.js → cubic-bezier-5ff9b04e.js} +0 -0
- /package/dist/cjs/{dir-Br-7_bel.js → dir-374f13f2.js} +0 -0
- /package/dist/cjs/{focus-visible-Da2o6bTP.js → focus-visible-b7381162.js} +0 -0
- /package/dist/cjs/{index-CH3IFTaK.js → index-071786b4.js} +0 -0
- /package/dist/cjs/{index-D3mJ1Cix.js → index-a281cac3.js} +0 -0
- /package/dist/cjs/{lock-controller-58TZFRHC.js → lock-controller-e2dfece6.js} +0 -0
- /package/dist/cjs/{spinner-configs-BN41iw42.js → spinner-configs-036ebfd8.js} +0 -0
- /package/dist/cjs/{theme-DbHdw1Nx.js → theme-12dec869.js} +0 -0
- /package/dist/cjs/{watch-options-DOFUPyuf.js → watch-options-1cccbe6a.js} +0 -0
- /package/dist/{esm/lock-controller-B-hirT0v.js → components/p-01ad898f.js} +0 -0
- /package/dist/{esm/theme-DiVJyqlX.js → components/p-350e7423.js} +0 -0
- /package/dist/{esm/focus-visible-BmVRXR1y.js → components/p-620fa0ec.js} +0 -0
- /package/dist/{esm/cubic-bezier-hHmYLOfE.js → components/p-94286cc3.js} +0 -0
- /package/dist/{esm/watch-options-Dtdm8lKC.js → components/p-9f4ac833.js} +0 -0
- /package/dist/{esm/config-yu3xCFhr.js → components/p-b2289937.js} +0 -0
- /package/dist/{esm/dir-C53feagD.js → components/p-d5862637.js} +0 -0
- /package/dist/{esm/index-ZjP4CjeZ.js → components/p-d7fe59ee.js} +0 -0
- /package/dist/esm/{compare-with-utils-sObYyvOy.js → compare-with-utils-d58be312.js} +0 -0
- /package/dist/esm/{spinner-configs-D4RIp70E.js → spinner-configs-c9fb0813.js} +0 -0
|
@@ -1,378 +1,347 @@
|
|
|
1
|
-
import { r as registerInstance,
|
|
2
|
-
import { T as TranslationUtils } from './i18n-
|
|
1
|
+
import { r as registerInstance, d as createEvent, h } from './index-8cc94b11.js';
|
|
2
|
+
import { T as TranslationUtils } from './i18n-53f85411.js';
|
|
3
3
|
|
|
4
|
-
const amwalWidgetCss = () => `.amwal-reset,.amwal-reset *,.amwal-reset *::before,.amwal-reset *::after{margin:0 !important;padding:0 !important;border:0 !important;vertical-align:baseline !important;box-sizing:border-box !important;background:transparent !important;text-decoration:none !important;list-style:none !important;outline:none !important;-webkit-tap-highlight-color:transparent !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;font-size:100% !important;font-weight:normal !important;font-style:normal !important;font-variant:normal !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;line-height:normal !important}.amwal-widget-container{font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;box-sizing:border-box !important;position:relative !important;font-size:16px !important;font-weight:normal !important;font-style:normal !important;line-height:1.4 !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;color:#222 !important}.amwal-widget-container,.amwal-widget-container *{font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important}.amwal-promo,.amwal-promo *{font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important}.amwal-widget-container.show-badge::before{position:absolute !important;top:-8px !important;background:linear-gradient(135deg, #F4C542, #E8A91F) !important;color:#333 !important;padding:4px 12px !important;border-radius:12px !important;font-size:10px !important;font-weight:600 !important;z-index:1001 !important;box-shadow:0 2px 4px rgba(255, 215, 0, 0.4) !important;text-shadow:0 1px 0 rgba(0, 0, 0, 0.1) !important;white-space:nowrap !important}.amwal-widget-container:not([dir="rtl"]).show-badge::before{content:"Sharia Compliant" !important;left:12px !important}.amwal-widget-container[dir="rtl"].show-badge::before{content:"متوافق مع الشريعة" !important;right:12px !important;left:auto !important}.amwal-promo{all:initial !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;cursor:pointer !important;box-sizing:border-box !important;position:relative !important;padding:14px 18px !important;border-radius:10px !important;border:1px solid #e1e5e9 !important;background:#fff !important;color:#222 !important;min-width:270px !important;max-width:min(600px, 90vw) !important;margin:10px 0 !important;display:flex !important;align-items:center !important;justify-content:space-between !important;z-index:1000 !important;transition:all 0.2s ease !important;box-shadow:0 1px 3px rgba(0, 0, 0, 0.05) !important;text-align:left !important;direction:ltr !important;font-size:16px !important;font-weight:normal !important;font-style:normal !important;line-height:1.4 !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;text-decoration:none !important}.amwal-promo[dir="rtl"]{direction:rtl !important;text-align:right !important}.amwal-promo:hover{border-color:#000 !important;transform:translateY(-1px) !important}.amwal-promo.green-border:hover{border-color:#000 !important}.amwal-promo.green-border::after{position:absolute !important;top:-6px !important;background:#229E57 !important;color:white !important;padding:3px 8px !important;border-radius:8px !important;font-size:9px !important;font-weight:600 !important;box-shadow:0 1px 3px rgba(0, 200, 81, 0.3) !important;z-index:1 !important;white-space:nowrap !important}.amwal-promo:not([dir="rtl"]).green-border::after{content:"0% Interest" !important;right:-6px !important}.amwal-promo[dir="rtl"].green-border::after{content:"فائدة 0%" !important;left:-6px !important;right:auto !important}.amwal-logo{position:static !important;width:68px !important;height:auto !important;flex-shrink:0 !important;margin-inline-end:14px !important}.amwal-promo[dir="rtl"] .amwal-logo{margin-inline-end:0 !important;margin-inline-start:14px !important;order:2 !important}.amwal-promo-content{display:flex !important;align-items:center !important;flex-grow:1 !important;font-family:inherit !important;direction:inherit !important}.amwal-promo[dir="rtl"] .amwal-promo-content{flex-direction:row-reverse !important}.amwal-promo-text{font-weight:600 !important;font-size:16px !important;color:#222 !important;line-height:1.4 !important;direction:inherit !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;font-style:normal !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;text-decoration:none !important}.amwal-promo-text-container{display:flex !important;flex-direction:column !important;gap:2px !important;flex-grow:1 !important;direction:inherit !important}.amwal-promo[dir="rtl"] .amwal-promo-text-container{text-align:right !important;margin-right:15px !important}.amwal-installments-count{font-weight:700 !important;font-size:16px !important;color:#4666f5 !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;font-style:normal !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;text-decoration:none !important;line-height:1.4 !important}.amwal-link{color:#4666f5 !important;text-decoration:underline !important;font-size:16px !important;white-space:nowrap !important;font-weight:600 !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;font-style:normal !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;line-height:1.4 !important}.amwal-monthly-payment{font-size:13px !important;font-weight:500 !important;color:#666 !important;margin-top:2px !important;display:inline-block !important;direction:inherit !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;font-style:normal !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;text-decoration:none !important;line-height:1.4 !important}.amwal-savings-text{font-size:14px !important;font-weight:500 !important;color:#00c851 !important;margin-top:2px !important;display:inline-block !important;direction:inherit !important;background-color:#e6f9e6 !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;font-style:normal !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;text-decoration:none !important;line-height:1.4 !important}.amwal-payment-savings-container{display:flex !important;align-items:center !important;gap:8px !important;margin-top:2px !important;direction:inherit !important;flex-wrap:wrap !important}.amwal-widget-container[dir="rtl"] .amwal-payment-savings-container{flex-direction:row !important}.amwal-promo.loading{opacity:0.7 !important;pointer-events:none !important;cursor:default !important}.amwal-social-proof{font-size:12px !important;color:#999 !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;font-weight:normal !important;font-style:normal !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;text-decoration:none !important;line-height:1.4 !important}@media only screen and (max-width: 768px){.amwal-promo{max-width:100% !important;padding:12px 15px !important;width:100% !important;margin:8px 0 !important;min-width:280px !important}.amwal-logo{width:60px !important;margin-inline-end:12px !important}.amwal-promo[dir="rtl"] .amwal-logo{margin-inline-start:12px !important}.amwal-promo-text{font-size:14px !important;margin-top:5px !important}.amwal-installments-count{font-size:14px !important}.amwal-link{font-size:14px !important}.amwal-monthly-payment{font-size:12px !important}.amwal-savings-text{font-size:11px !important}}@media only screen and (max-width: 480px){.amwal-promo{padding:10px 12px !important;min-width:260px !important}.amwal-logo{width:55px !important;margin-inline-end:10px !important}.amwal-promo[dir="rtl"] .amwal-logo{margin-inline-start:10px !important}.amwal-promo-text{font-size:13px !important}.amwal-installments-count{font-size:13px !important}.amwal-link{font-size:13px !important}.amwal-monthly-payment{font-size:11px !important}.amwal-savings-text{font-size:10px !important}.amwal-social-proof{font-size:10px !important}}@media (prefers-contrast: more){.amwal-promo{border:2px solid #000 !important;background:#fff !important;color:#000 !important}.amwal-promo-text{color:#000 !important}.amwal-link{color:#0000ff !important}}@media (prefers-reduced-motion: reduce){.amwal-promo{transition:none !important}.amwal-promo:hover{transform:none !important}}.amwal-widget-container,.amwal-widget-container *,.amwal-promo,.amwal-promo *{text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;filter:none !important;opacity:1 !important;visibility:visible !important;float:none !important;clear:none !important;z-index:1 !important}.amwal-widget-container[dir="rtl"] .amwal-installments-count,.amwal-widget-container[dir="rtl"] .amwal-monthly-payment,.amwal-widget-container[dir="rtl"] .amwal-savings-text{font-feature-settings:"lnum" 1 !important;unicode-bidi:embed !important}.amwal-promo[dir="rtl"] .amwal-promo-text{unicode-bidi:embed !important;text-align:right !important}.amwal-promo[dir="rtl"] .amwal-promo-text,.amwal-promo[dir="rtl"] .amwal-monthly-payment,.amwal-promo[dir="rtl"] .amwal-savings-text{word-spacing:0.3em !important}`;
|
|
4
|
+
const amwalWidgetCss = ".amwal-reset,.amwal-reset *,.amwal-reset *::before,.amwal-reset *::after{margin:0 !important;padding:0 !important;border:0 !important;vertical-align:baseline !important;box-sizing:border-box !important;background:transparent !important;text-decoration:none !important;list-style:none !important;outline:none !important;-webkit-tap-highlight-color:transparent !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;font-size:100% !important;font-weight:normal !important;font-style:normal !important;font-variant:normal !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;line-height:normal !important}.amwal-widget-container{font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;box-sizing:border-box !important;position:relative !important;font-size:16px !important;font-weight:normal !important;font-style:normal !important;line-height:1.4 !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;color:#222 !important}.amwal-widget-container,.amwal-widget-container *{font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important}.amwal-promo,.amwal-promo *{font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important}.amwal-widget-container.show-badge::before{position:absolute !important;top:-8px !important;background:linear-gradient(135deg, #F4C542, #E8A91F) !important;color:#333 !important;padding:4px 12px !important;border-radius:12px !important;font-size:10px !important;font-weight:600 !important;z-index:1001 !important;box-shadow:0 2px 4px rgba(255, 215, 0, 0.4) !important;text-shadow:0 1px 0 rgba(0, 0, 0, 0.1) !important;white-space:nowrap !important}.amwal-widget-container:not([dir=\"rtl\"]).show-badge::before{content:\"Sharia Compliant\" !important;left:12px !important}.amwal-widget-container[dir=\"rtl\"].show-badge::before{content:\"متوافق مع الشريعة\" !important;right:12px !important;left:auto !important}.amwal-promo{all:initial !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;cursor:pointer !important;box-sizing:border-box !important;position:relative !important;padding:14px 18px !important;border-radius:10px !important;border:1px solid #e1e5e9 !important;background:#fff !important;color:#222 !important;min-width:270px !important;max-width:min(600px, 90vw) !important;margin:10px 0 !important;display:flex !important;align-items:center !important;justify-content:space-between !important;z-index:1000 !important;transition:all 0.2s ease !important;box-shadow:0 1px 3px rgba(0, 0, 0, 0.05) !important;text-align:left !important;direction:ltr !important;font-size:16px !important;font-weight:normal !important;font-style:normal !important;line-height:1.4 !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;text-decoration:none !important}.amwal-promo[dir=\"rtl\"]{direction:rtl !important;text-align:right !important}.amwal-promo:hover{border-color:#000 !important;transform:translateY(-1px) !important}.amwal-promo.green-border:hover{border-color:#000 !important}.amwal-promo.green-border::after{position:absolute !important;top:-6px !important;background:#229E57 !important;color:white !important;padding:3px 8px !important;border-radius:8px !important;font-size:9px !important;font-weight:600 !important;box-shadow:0 1px 3px rgba(0, 200, 81, 0.3) !important;z-index:1 !important;white-space:nowrap !important}.amwal-promo:not([dir=\"rtl\"]).green-border::after{content:\"0% Interest\" !important;right:-6px !important}.amwal-promo[dir=\"rtl\"].green-border::after{content:\"فائدة 0%\" !important;left:-6px !important;right:auto !important}.amwal-logo{position:static !important;width:68px !important;height:auto !important;flex-shrink:0 !important;margin-inline-end:14px !important}.amwal-promo[dir=\"rtl\"] .amwal-logo{margin-inline-end:0 !important;margin-inline-start:14px !important;order:2 !important}.amwal-promo-content{display:flex !important;align-items:center !important;flex-grow:1 !important;font-family:inherit !important;direction:inherit !important}.amwal-promo[dir=\"rtl\"] .amwal-promo-content{flex-direction:row-reverse !important}.amwal-promo-text{font-weight:600 !important;font-size:16px !important;color:#222 !important;line-height:1.4 !important;direction:inherit !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;font-style:normal !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;text-decoration:none !important}.amwal-promo-text-container{display:flex !important;flex-direction:column !important;gap:2px !important;flex-grow:1 !important;direction:inherit !important}.amwal-promo[dir=\"rtl\"] .amwal-promo-text-container{text-align:right !important;margin-right:15px !important}.amwal-installments-count{font-weight:700 !important;font-size:16px !important;color:#4666f5 !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;font-style:normal !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;text-decoration:none !important;line-height:1.4 !important}.amwal-link{color:#4666f5 !important;text-decoration:underline !important;font-size:16px !important;white-space:nowrap !important;font-weight:600 !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;font-style:normal !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;line-height:1.4 !important}.amwal-monthly-payment{font-size:13px !important;font-weight:500 !important;color:#666 !important;margin-top:2px !important;display:inline-block !important;direction:inherit !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;font-style:normal !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;text-decoration:none !important;line-height:1.4 !important}.amwal-savings-text{font-size:14px !important;font-weight:500 !important;color:#00c851 !important;margin-top:2px !important;display:inline-block !important;direction:inherit !important;background-color:#e6f9e6 !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;font-style:normal !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;text-decoration:none !important;line-height:1.4 !important}.amwal-payment-savings-container{display:flex !important;align-items:center !important;gap:8px !important;margin-top:2px !important;direction:inherit !important;flex-wrap:wrap !important}.amwal-widget-container[dir=\"rtl\"] .amwal-payment-savings-container{flex-direction:row !important}.amwal-promo.loading{opacity:0.7 !important;pointer-events:none !important;cursor:default !important}.amwal-social-proof{font-size:12px !important;color:#999 !important;font-family:'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif !important;font-weight:normal !important;font-style:normal !important;text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;text-decoration:none !important;line-height:1.4 !important}@media only screen and (max-width: 768px){.amwal-promo{max-width:100% !important;padding:12px 15px !important;width:100% !important;margin:8px 0 !important;min-width:280px !important}.amwal-logo{width:60px !important;margin-inline-end:12px !important}.amwal-promo[dir=\"rtl\"] .amwal-logo{margin-inline-start:12px !important}.amwal-promo-text{font-size:14px !important;margin-top:5px !important}.amwal-installments-count{font-size:14px !important}.amwal-link{font-size:14px !important}.amwal-monthly-payment{font-size:12px !important}.amwal-savings-text{font-size:11px !important}}@media only screen and (max-width: 480px){.amwal-promo{padding:10px 12px !important;min-width:260px !important}.amwal-logo{width:55px !important;margin-inline-end:10px !important}.amwal-promo[dir=\"rtl\"] .amwal-logo{margin-inline-start:10px !important}.amwal-promo-text{font-size:13px !important}.amwal-installments-count{font-size:13px !important}.amwal-link{font-size:13px !important}.amwal-monthly-payment{font-size:11px !important}.amwal-savings-text{font-size:10px !important}.amwal-social-proof{font-size:10px !important}}@media (prefers-contrast: more){.amwal-promo{border:2px solid #000 !important;background:#fff !important;color:#000 !important}.amwal-promo-text{color:#000 !important}.amwal-link{color:#0000ff !important}}@media (prefers-reduced-motion: reduce){.amwal-promo{transition:none !important}.amwal-promo:hover{transform:none !important}}.amwal-widget-container,.amwal-widget-container *,.amwal-promo,.amwal-promo *{text-transform:none !important;letter-spacing:normal !important;word-spacing:normal !important;text-shadow:none !important;filter:none !important;opacity:1 !important;visibility:visible !important;float:none !important;clear:none !important;z-index:1 !important}.amwal-widget-container[dir=\"rtl\"] .amwal-installments-count,.amwal-widget-container[dir=\"rtl\"] .amwal-monthly-payment,.amwal-widget-container[dir=\"rtl\"] .amwal-savings-text{font-feature-settings:\"lnum\" 1 !important;unicode-bidi:embed !important}.amwal-promo[dir=\"rtl\"] .amwal-promo-text{unicode-bidi:embed !important;text-align:right !important}.amwal-promo[dir=\"rtl\"] .amwal-promo-text,.amwal-promo[dir=\"rtl\"] .amwal-monthly-payment,.amwal-promo[dir=\"rtl\"] .amwal-savings-text{word-spacing:0.3em !important}";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Default promotion URL for Amwal installment promotions
|
|
8
8
|
*/
|
|
9
9
|
const DEFAULT_PROMOTION_URL = 'https://pay.sa.amwal.tech/installment-promotion';
|
|
10
10
|
const AmwalWidget = class {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Enable or disable the widget
|
|
18
|
-
*/
|
|
19
|
-
this.isActive = true;
|
|
20
|
-
/**
|
|
21
|
-
* Show green border for special offers (subtle enhancement)
|
|
22
|
-
*/
|
|
23
|
-
this.showGreenBorder = false;
|
|
24
|
-
/**
|
|
25
|
-
* The language of the plugin. Supported languages are Arabic ("ar") and English ("en")
|
|
26
|
-
*/
|
|
27
|
-
this.locale = "en";
|
|
28
|
-
/**
|
|
29
|
-
* Enable debug mode for additional console logs
|
|
30
|
-
*/
|
|
31
|
-
this.debug = false;
|
|
32
|
-
/**
|
|
33
|
-
* Show monthly payment amount (clean display)
|
|
34
|
-
*/
|
|
35
|
-
this.showMonthlyPayment = false;
|
|
36
|
-
/**
|
|
37
|
-
* Show savings compared to credit card interest (subtle)
|
|
38
|
-
*/
|
|
39
|
-
this.showSavings = false;
|
|
40
|
-
/**
|
|
41
|
-
* Estimated credit card monthly interest rate for savings calculation
|
|
42
|
-
*/
|
|
43
|
-
this.creditCardInterestRate = 0.02; // 2% monthly
|
|
44
|
-
/**
|
|
45
|
-
* Show subtle social proof
|
|
46
|
-
*/
|
|
47
|
-
this.showSocialProof = false;
|
|
48
|
-
/**
|
|
49
|
-
* Custom social proof text
|
|
50
|
-
*/
|
|
51
|
-
this.socialProofText = "Trusted by 50,000+ customers";
|
|
52
|
-
/**
|
|
53
|
-
* Show subtle popular choice badge
|
|
54
|
-
*/
|
|
55
|
-
this.showPopularBadge = false;
|
|
56
|
-
/**
|
|
57
|
-
* Enable analytics tracking
|
|
58
|
-
*/
|
|
59
|
-
this.enableAnalytics = false;
|
|
60
|
-
/**
|
|
61
|
-
* Layout theme for the modal
|
|
62
|
-
*/
|
|
63
|
-
this.layoutTheme = 'mobile';
|
|
64
|
-
this.isVisible = true;
|
|
65
|
-
this.showModal = false;
|
|
66
|
-
this.isLoading = false;
|
|
67
|
-
/**
|
|
68
|
-
* Translation function to handle localization
|
|
69
|
-
* @private
|
|
70
|
-
*/
|
|
71
|
-
this.t = (val) => val;
|
|
72
|
-
/**
|
|
73
|
-
* Reference to the modal element in the body
|
|
74
|
-
*/
|
|
75
|
-
this.modalElement = null;
|
|
76
|
-
/**
|
|
77
|
-
* Clean click handler
|
|
78
|
-
*/
|
|
79
|
-
this.handleClick = async () => {
|
|
80
|
-
if (!this.config || this.isLoading)
|
|
81
|
-
return;
|
|
82
|
-
this.isLoading = true;
|
|
83
|
-
this.trackEvent('amwal_promotion_clicked');
|
|
84
|
-
try {
|
|
85
|
-
this.promotionClick.emit(this.config);
|
|
86
|
-
this.createModalInBody();
|
|
87
|
-
if (this.debug) {
|
|
88
|
-
console.log('[AmwalWidget] Promotion clicked:', this.config);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
catch (error) {
|
|
92
|
-
console.error('[AmwalWidget] Error handling click:', error);
|
|
93
|
-
}
|
|
94
|
-
finally {
|
|
95
|
-
// Reset loading state after a short delay
|
|
96
|
-
setTimeout(() => {
|
|
97
|
-
this.isLoading = false;
|
|
98
|
-
}, 200);
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* Create modal element and append to document body
|
|
103
|
-
*/
|
|
104
|
-
this.createModalInBody = () => {
|
|
105
|
-
// Remove existing modal if any
|
|
106
|
-
this.removeModalFromBody();
|
|
107
|
-
// Create new modal element
|
|
108
|
-
this.modalElement = document.createElement('amwal-widget-modal');
|
|
109
|
-
// Set modal properties
|
|
110
|
-
this.modalElement.config = Object.assign(Object.assign({}, this.config), { promotionUrl: this.getPromotionUrl() });
|
|
111
|
-
this.modalElement.locale = this.locale;
|
|
112
|
-
this.modalElement.debug = this.debug;
|
|
113
|
-
this.modalElement.layoutTheme = this.layoutTheme;
|
|
114
|
-
// Add event listener for modal close
|
|
115
|
-
this.modalElement.addEventListener('modalClose', this.handleModalClose);
|
|
116
|
-
// Append to body
|
|
117
|
-
if (this.modalElement && this.modalElement.nodeType === Node.ELEMENT_NODE) {
|
|
118
|
-
document.body.appendChild(this.modalElement);
|
|
119
|
-
}
|
|
120
|
-
this.showModal = true;
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* Remove modal from document body
|
|
124
|
-
*/
|
|
125
|
-
this.removeModalFromBody = () => {
|
|
126
|
-
if (this.modalElement) {
|
|
127
|
-
this.modalElement.removeEventListener('modalClose', this.handleModalClose);
|
|
128
|
-
if (this.modalElement.parentNode) {
|
|
129
|
-
this.modalElement.parentNode.removeChild(this.modalElement);
|
|
130
|
-
}
|
|
131
|
-
this.modalElement = null;
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
this.handleModalClose = () => {
|
|
135
|
-
this.removeModalFromBody();
|
|
136
|
-
this.showModal = false;
|
|
137
|
-
this.trackEvent('amwal_modal_closed');
|
|
138
|
-
if (this.debug) {
|
|
139
|
-
console.log('[AmwalWidget] Modal closed');
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
}
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
registerInstance(this, hostRef);
|
|
13
|
+
this.promotionClick = createEvent(this, "promotionClick", 7);
|
|
14
|
+
this.priceUpdate = createEvent(this, "priceUpdate", 7);
|
|
15
|
+
this.analyticsEvent = createEvent(this, "analyticsEvent", 7);
|
|
143
16
|
/**
|
|
144
|
-
*
|
|
17
|
+
* Translation function to handle localization
|
|
18
|
+
* @private
|
|
145
19
|
*/
|
|
146
|
-
|
|
147
|
-
return this.locale === 'ar' || this.locale === 'he' || this.locale === 'fa';
|
|
148
|
-
}
|
|
20
|
+
this.t = (val) => val;
|
|
149
21
|
/**
|
|
150
|
-
*
|
|
22
|
+
* Reference to the modal element in the body
|
|
151
23
|
*/
|
|
152
|
-
|
|
153
|
-
return this.isRTL ? 'rtl' : 'ltr';
|
|
154
|
-
}
|
|
24
|
+
this.modalElement = null;
|
|
155
25
|
/**
|
|
156
|
-
*
|
|
26
|
+
* Clean click handler
|
|
157
27
|
*/
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
28
|
+
this.handleClick = async () => {
|
|
29
|
+
if (!this.config || this.isLoading)
|
|
30
|
+
return;
|
|
31
|
+
this.isLoading = true;
|
|
32
|
+
this.trackEvent('amwal_promotion_clicked');
|
|
33
|
+
try {
|
|
34
|
+
this.promotionClick.emit(this.config);
|
|
35
|
+
this.createModalInBody();
|
|
36
|
+
if (this.debug) {
|
|
37
|
+
console.log('[AmwalWidget] Promotion clicked:', this.config);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
console.error('[AmwalWidget] Error handling click:', error);
|
|
42
|
+
}
|
|
43
|
+
finally {
|
|
44
|
+
// Reset loading state after a short delay
|
|
45
|
+
setTimeout(() => {
|
|
46
|
+
this.isLoading = false;
|
|
47
|
+
}, 200);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
162
50
|
/**
|
|
163
|
-
*
|
|
51
|
+
* Create modal element and append to document body
|
|
164
52
|
*/
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
53
|
+
this.createModalInBody = () => {
|
|
54
|
+
// Remove existing modal if any
|
|
55
|
+
this.removeModalFromBody();
|
|
56
|
+
// Create new modal element
|
|
57
|
+
this.modalElement = document.createElement('amwal-widget-modal');
|
|
58
|
+
// Set modal properties
|
|
59
|
+
this.modalElement.config = Object.assign(Object.assign({}, this.config), { promotionUrl: this.getPromotionUrl() });
|
|
60
|
+
this.modalElement.locale = this.locale;
|
|
61
|
+
this.modalElement.debug = this.debug;
|
|
62
|
+
this.modalElement.layoutTheme = this.layoutTheme;
|
|
63
|
+
// Add event listener for modal close
|
|
64
|
+
this.modalElement.addEventListener('modalClose', this.handleModalClose);
|
|
65
|
+
// Append to body
|
|
66
|
+
if (this.modalElement && this.modalElement.nodeType === Node.ELEMENT_NODE) {
|
|
67
|
+
document.body.appendChild(this.modalElement);
|
|
68
|
+
}
|
|
69
|
+
this.showModal = true;
|
|
70
|
+
};
|
|
176
71
|
/**
|
|
177
|
-
*
|
|
72
|
+
* Remove modal from document body
|
|
178
73
|
*/
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
catch (e) {
|
|
185
|
-
console.error('Failed to update translation:', e);
|
|
186
|
-
this.t = (val) => val;
|
|
74
|
+
this.removeModalFromBody = () => {
|
|
75
|
+
if (this.modalElement) {
|
|
76
|
+
this.modalElement.removeEventListener('modalClose', this.handleModalClose);
|
|
77
|
+
if (this.modalElement.parentNode) {
|
|
78
|
+
this.modalElement.parentNode.removeChild(this.modalElement);
|
|
187
79
|
}
|
|
80
|
+
this.modalElement = null;
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
this.handleModalClose = () => {
|
|
84
|
+
this.removeModalFromBody();
|
|
85
|
+
this.showModal = false;
|
|
86
|
+
this.trackEvent('amwal_modal_closed');
|
|
87
|
+
if (this.debug) {
|
|
88
|
+
console.log('[AmwalWidget] Modal closed');
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
this.config = undefined;
|
|
92
|
+
this.isActive = true;
|
|
93
|
+
this.showGreenBorder = false;
|
|
94
|
+
this.locale = "en";
|
|
95
|
+
this.debug = false;
|
|
96
|
+
this.customText = undefined;
|
|
97
|
+
this.showMonthlyPayment = false;
|
|
98
|
+
this.showSavings = false;
|
|
99
|
+
this.creditCardInterestRate = 0.02;
|
|
100
|
+
this.showSocialProof = false;
|
|
101
|
+
this.socialProofText = "Trusted by 50,000+ customers";
|
|
102
|
+
this.showPopularBadge = false;
|
|
103
|
+
this.enableAnalytics = false;
|
|
104
|
+
this.layoutTheme = 'mobile';
|
|
105
|
+
this.isVisible = true;
|
|
106
|
+
this.showModal = false;
|
|
107
|
+
this.isLoading = false;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Check if current locale is RTL
|
|
111
|
+
*/
|
|
112
|
+
get isRTL() {
|
|
113
|
+
return this.locale === 'ar' || this.locale === 'he' || this.locale === 'fa';
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Get text direction attribute
|
|
117
|
+
*/
|
|
118
|
+
get textDirection() {
|
|
119
|
+
return this.isRTL ? 'rtl' : 'ltr';
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Lifecycle method called when component is disconnected
|
|
123
|
+
*/
|
|
124
|
+
disconnectedCallback() {
|
|
125
|
+
// Clean up any modal that might still be in the body
|
|
126
|
+
this.removeModalFromBody();
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Lifecycle method that is called once when the component is first created
|
|
130
|
+
*/
|
|
131
|
+
async componentWillLoad() {
|
|
132
|
+
// Initialize the translation function when component loads
|
|
133
|
+
try {
|
|
134
|
+
this.t = await TranslationUtils.useTranslation(this.locale);
|
|
188
135
|
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
*/
|
|
192
|
-
onConfigChange() {
|
|
193
|
-
this.updateVisibility();
|
|
136
|
+
catch (e) {
|
|
137
|
+
console.error('Failed to initialize translation:', e);
|
|
194
138
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
// Emit price update event when config changes
|
|
206
|
-
this.priceUpdate.emit({
|
|
207
|
-
price: this.config.price,
|
|
208
|
-
currency: this.config.currency
|
|
209
|
-
});
|
|
210
|
-
if (this.debug) {
|
|
211
|
-
console.log('[AmwalWidget] Config updated:', {
|
|
212
|
-
price: this.config.price,
|
|
213
|
-
currency: this.config.currency,
|
|
214
|
-
isRTL: this.isRTL,
|
|
215
|
-
textDirection: this.textDirection
|
|
216
|
-
});
|
|
217
|
-
}
|
|
139
|
+
// Check if config has valid price to determine visibility
|
|
140
|
+
this.updateVisibility();
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Lifecycle method to update translations when locale changes
|
|
144
|
+
*/
|
|
145
|
+
async updateLocale(newValue) {
|
|
146
|
+
this.locale = newValue;
|
|
147
|
+
try {
|
|
148
|
+
this.t = await TranslationUtils.useTranslation(this.locale);
|
|
218
149
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
async updateConfig(newConfig) {
|
|
223
|
-
this.config = Object.assign(Object.assign({}, this.config), newConfig);
|
|
224
|
-
this.updateVisibility();
|
|
150
|
+
catch (e) {
|
|
151
|
+
console.error('Failed to update translation:', e);
|
|
152
|
+
this.t = (val) => val;
|
|
225
153
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Watch for config changes and update visibility
|
|
157
|
+
*/
|
|
158
|
+
onConfigChange() {
|
|
159
|
+
this.updateVisibility();
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Update widget visibility based on config
|
|
163
|
+
*/
|
|
164
|
+
updateVisibility() {
|
|
165
|
+
var _a, _b;
|
|
166
|
+
if (!((_a = this.config) === null || _a === void 0 ? void 0 : _a.price) || !((_b = this.config) === null || _b === void 0 ? void 0 : _b.currency) || isNaN(this.config.price) || this.config.price <= 0) {
|
|
167
|
+
this.isVisible = false;
|
|
168
|
+
return;
|
|
234
169
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
170
|
+
this.isVisible = true;
|
|
171
|
+
// Emit price update event when config changes
|
|
172
|
+
this.priceUpdate.emit({
|
|
173
|
+
price: this.config.price,
|
|
174
|
+
currency: this.config.currency
|
|
175
|
+
});
|
|
176
|
+
if (this.debug) {
|
|
177
|
+
console.log('[AmwalWidget] Config updated:', {
|
|
178
|
+
price: this.config.price,
|
|
179
|
+
currency: this.config.currency,
|
|
180
|
+
isRTL: this.isRTL,
|
|
181
|
+
textDirection: this.textDirection
|
|
182
|
+
});
|
|
248
183
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Method to programmatically update the widget config
|
|
187
|
+
*/
|
|
188
|
+
async updateConfig(newConfig) {
|
|
189
|
+
this.config = Object.assign(Object.assign({}, this.config), newConfig);
|
|
190
|
+
this.updateVisibility();
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Get installment price formatted as string
|
|
194
|
+
*/
|
|
195
|
+
getInstallmentPrice() {
|
|
196
|
+
var _a, _b;
|
|
197
|
+
if (!((_a = this.config) === null || _a === void 0 ? void 0 : _a.installmentsCount) || !((_b = this.config) === null || _b === void 0 ? void 0 : _b.price))
|
|
198
|
+
return '0.00';
|
|
199
|
+
return (this.config.price / this.config.installmentsCount).toFixed(2);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Format currency with proper RTL support
|
|
203
|
+
*/
|
|
204
|
+
formatCurrency(amount) {
|
|
205
|
+
const currency = this.config.currency;
|
|
206
|
+
if (this.isRTL) {
|
|
207
|
+
// For RTL, put currency after the number with proper spacing
|
|
208
|
+
return `${amount} ${currency}`;
|
|
262
209
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
calculateSavings() {
|
|
267
|
-
var _a;
|
|
268
|
-
if (!((_a = this.config) === null || _a === void 0 ? void 0 : _a.price))
|
|
269
|
-
return '';
|
|
270
|
-
const creditCardCost = this.config.price * this.creditCardInterestRate;
|
|
271
|
-
const formattedSavings = this.formatCurrency(creditCardCost.toFixed(2));
|
|
272
|
-
if (this.isRTL) {
|
|
273
|
-
return `${this.t('Save')} ${formattedSavings}`;
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
return `${this.t('Save')} ${formattedSavings}`;
|
|
277
|
-
}
|
|
210
|
+
else {
|
|
211
|
+
// For LTR, currency before number
|
|
212
|
+
return `${currency} ${amount}`;
|
|
278
213
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
installmentPrice: this.getInstallmentPrice(),
|
|
290
|
-
timestamp: Date.now()
|
|
291
|
-
};
|
|
292
|
-
// Emit custom event for parent components
|
|
293
|
-
this.analyticsEvent.emit({
|
|
294
|
-
eventName,
|
|
295
|
-
eventData
|
|
296
|
-
});
|
|
297
|
-
// Track with Google Analytics if available
|
|
298
|
-
if (typeof window !== 'undefined' && window.gtag) {
|
|
299
|
-
window.gtag('event', eventName, {
|
|
300
|
-
'event_category': 'amwal_widget',
|
|
301
|
-
'event_label': 'installments',
|
|
302
|
-
'value': this.config.price,
|
|
303
|
-
'custom_parameters': {
|
|
304
|
-
'locale': this.locale,
|
|
305
|
-
'text_direction': this.textDirection
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
if (this.debug) {
|
|
310
|
-
console.log('[AmwalWidget] Analytics Event:', eventName, eventData);
|
|
311
|
-
}
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Calculate monthly payment display text with RTL support
|
|
217
|
+
*/
|
|
218
|
+
renderMonthlyPayment() {
|
|
219
|
+
const monthlyAmount = this.getInstallmentPrice();
|
|
220
|
+
const formattedAmount = this.formatCurrency(monthlyAmount);
|
|
221
|
+
const monthText = this.t('month');
|
|
222
|
+
if (this.isRTL) {
|
|
223
|
+
return `${formattedAmount}/${monthText}`;
|
|
312
224
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
* @returns The promotion URL to use for the modal
|
|
316
|
-
*/
|
|
317
|
-
getPromotionUrl() {
|
|
318
|
-
var _a;
|
|
319
|
-
return ((_a = this.config) === null || _a === void 0 ? void 0 : _a.promotionUrl) || DEFAULT_PROMOTION_URL;
|
|
225
|
+
else {
|
|
226
|
+
return `${formattedAmount}/${monthText}`;
|
|
320
227
|
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Calculate potential savings compared to credit card with RTL support
|
|
231
|
+
*/
|
|
232
|
+
calculateSavings() {
|
|
233
|
+
var _a;
|
|
234
|
+
if (!((_a = this.config) === null || _a === void 0 ? void 0 : _a.price))
|
|
235
|
+
return '';
|
|
236
|
+
const creditCardCost = this.config.price * this.creditCardInterestRate;
|
|
237
|
+
const formattedSavings = this.formatCurrency(creditCardCost.toFixed(2));
|
|
238
|
+
if (this.isRTL) {
|
|
239
|
+
return `${this.t('Save')} ${formattedSavings}`;
|
|
326
240
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
*/
|
|
330
|
-
renderInstallmentText() {
|
|
331
|
-
if (this.customText) {
|
|
332
|
-
return (h("span", null, this.customText, ' ', h("span", { class: "amwal-link" }, this.t('Learn more'))));
|
|
333
|
-
}
|
|
334
|
-
else {
|
|
335
|
-
const installmentsCount = this.config.installmentsCount || 0;
|
|
336
|
-
if (this.isRTL) {
|
|
337
|
-
return (h("span", null, this.t('Split to'), ' ', h("span", { class: "amwal-installments-count" }, installmentsCount), ' ', this.t('months'), ".", ' ', this.t('With bank without interest'), ' ', h("span", { class: "amwal-link" }, this.t('Learn more'))));
|
|
338
|
-
}
|
|
339
|
-
else {
|
|
340
|
-
return (h("span", null, "0% Bank Installments up to", ' ', h("span", { class: "amwal-installments-count" }, installmentsCount), ' ', "months.", ' ', h("span", { class: "amwal-link" }, this.t('Learn more'))));
|
|
341
|
-
}
|
|
342
|
-
}
|
|
241
|
+
else {
|
|
242
|
+
return `${this.t('Save')} ${formattedSavings}`;
|
|
343
243
|
}
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Track analytics events (optional)
|
|
247
|
+
*/
|
|
248
|
+
trackEvent(eventName) {
|
|
249
|
+
if (!this.enableAnalytics || !this.config)
|
|
250
|
+
return;
|
|
251
|
+
const eventData = {
|
|
252
|
+
price: this.config.price,
|
|
253
|
+
currency: this.config.currency,
|
|
254
|
+
installmentsCount: this.config.installmentsCount,
|
|
255
|
+
installmentPrice: this.getInstallmentPrice(),
|
|
256
|
+
timestamp: Date.now()
|
|
257
|
+
};
|
|
258
|
+
// Emit custom event for parent components
|
|
259
|
+
this.analyticsEvent.emit({
|
|
260
|
+
eventName,
|
|
261
|
+
eventData
|
|
262
|
+
});
|
|
263
|
+
// Track with Google Analytics if available
|
|
264
|
+
if (typeof window !== 'undefined' && window.gtag) {
|
|
265
|
+
window.gtag('event', eventName, {
|
|
266
|
+
'event_category': 'amwal_widget',
|
|
267
|
+
'event_label': 'installments',
|
|
268
|
+
'value': this.config.price,
|
|
269
|
+
'custom_parameters': {
|
|
270
|
+
'locale': this.locale,
|
|
271
|
+
'text_direction': this.textDirection
|
|
357
272
|
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
if (this.debug) {
|
|
276
|
+
console.log('[AmwalWidget] Analytics Event:', eventName, eventData);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Get the promotion URL with fallback to default if not provided
|
|
281
|
+
* @returns The promotion URL to use for the modal
|
|
282
|
+
*/
|
|
283
|
+
getPromotionUrl() {
|
|
284
|
+
var _a;
|
|
285
|
+
return ((_a = this.config) === null || _a === void 0 ? void 0 : _a.promotionUrl) || DEFAULT_PROMOTION_URL;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Render the Amwal logo
|
|
289
|
+
*/
|
|
290
|
+
renderAmwalLogo() {
|
|
291
|
+
return (h("svg", { class: "amwal-logo", width: "72", height: "29", viewBox: "0 0 72 29", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("rect", { width: "72", height: "28.946", rx: "6", fill: "black" }), h("path", { d: "M24.1912 11.6545C25.5297 10.5672 27.8358 10.9347 28.8503 12.3232C28.8972 12.3845 28.9818 12.3896 29.0287 12.3334C29.0804 12.2722 29.1274 12.2109 29.179 12.1547C29.7191 11.5626 30.3861 11.241 31.1328 11.0981C31.9219 10.9449 32.7015 10.9909 33.453 11.3125C34.3641 11.7004 34.9794 12.4253 35.3598 13.3901C35.6369 14.0843 35.7684 14.8194 35.7731 15.5698C35.7825 17.1216 35.7778 18.6785 35.7872 20.2303C35.7872 20.3579 35.7543 20.3783 35.6463 20.3783C34.9512 20.3732 34.2561 20.3732 33.5657 20.3783C33.453 20.3783 33.4201 20.3528 33.4201 20.2252C33.4248 18.7551 33.4248 17.2849 33.4248 15.8148C33.4248 15.386 33.359 14.9725 33.1712 14.5897C32.5747 13.3748 31.0859 13.2522 30.3109 14.36C30.015 14.7836 29.8741 15.2686 29.8741 15.7944C29.8741 17.2747 29.8741 18.7551 29.8788 20.2354C29.8788 20.3528 29.8506 20.3783 29.7473 20.3783C29.0381 20.3732 28.3242 20.3732 27.615 20.3783C27.5211 20.3783 27.4976 20.3528 27.4976 20.2507C27.5023 18.7704 27.4976 17.29 27.5023 15.8097C27.5023 15.534 27.4788 15.2584 27.4178 14.9878C27.244 14.263 26.6804 13.7168 25.9994 13.6147C24.9521 13.4564 24.3227 14.314 24.1161 15.0644C24.0409 15.3298 24.0127 15.6004 24.0127 15.8811C24.0127 17.29 24.0127 18.704 24.0174 20.1129C24.0174 20.2609 23.9094 20.3783 23.7732 20.3783C23.1016 20.3732 22.43 20.3732 21.7536 20.3783C21.655 20.3783 21.6362 20.3477 21.6362 20.2507C21.6409 17.2798 21.6409 14.314 21.6362 11.3431C21.6362 11.2512 21.6503 11.2206 21.7443 11.2206C22.4675 11.2257 23.1908 11.2257 23.9141 11.2206C23.9892 11.2206 24.0174 11.2359 24.0127 11.3227C24.008 11.4044 24.008 11.4809 24.008 11.5626C24.008 11.6596 24.1161 11.7157 24.1912 11.6545Z", fill: "white" }), h("path", { d: "M43.8655 20.384C43.8233 20.4759 43.7012 20.4759 43.6589 20.384C43.3724 19.7357 43.0906 19.0976 42.8088 18.4595C42.527 17.8215 42.2452 17.1885 41.9634 16.5402C41.9211 16.4432 41.799 16.4432 41.7568 16.5402C41.1885 17.8266 40.6249 19.0976 40.0566 20.3942C40.0143 20.4861 39.8969 20.4912 39.8499 20.3993C38.3564 17.3314 36.8723 14.2839 35.374 11.216C35.4304 11.216 35.468 11.216 35.5055 11.216C36.2993 11.216 37.0977 11.216 37.8914 11.2109C37.9807 11.2109 38.0229 11.2467 38.0605 11.3283C38.6899 12.7117 39.3239 14.09 39.9579 15.4733C39.9767 15.509 39.9908 15.5448 40.019 15.606C40.1364 15.3406 40.2444 15.0905 40.3478 14.8454C40.4793 14.5494 40.6061 14.2482 40.7376 13.9521C40.7705 13.8807 40.7705 13.8245 40.7376 13.7479C40.39 12.9516 40.0425 12.1502 39.6996 11.3488C39.6855 11.313 39.6668 11.2773 39.6527 11.2365C39.6761 11.2007 39.709 11.216 39.7372 11.216C40.4323 11.216 41.1274 11.216 41.8225 11.2109C41.9024 11.2109 41.9399 11.2416 41.9728 11.3181C42.5881 12.7219 43.208 14.1257 43.828 15.5295C43.8327 15.5397 43.8421 15.5499 43.8609 15.5754C43.9595 15.3304 44.0581 15.1007 44.152 14.8659C44.6264 13.6867 45.1055 12.5075 45.5751 11.3283C45.6127 11.2365 45.655 11.2109 45.7442 11.2109C46.4393 11.216 47.1344 11.2109 47.8295 11.2109C46.5896 14.2788 45.2323 17.3212 43.8655 20.384Z", fill: "white" }), h("path", { d: "M59.6416 13.6148C59.6416 15.8149 59.6416 18.015 59.6463 20.2151C59.6463 20.3376 59.6275 20.3733 59.5054 20.3733C58.7962 20.3682 58.0824 20.3682 57.3732 20.3733C57.2839 20.3733 57.2651 20.3478 57.2651 20.2508C57.2698 15.8302 57.2698 11.4096 57.2651 6.99405C57.2651 6.88175 57.298 6.86133 57.3919 6.86133C58.0964 6.86643 58.8056 6.86643 59.5101 6.86133C59.6228 6.86133 59.6463 6.89196 59.6463 7.01447C59.6369 9.21457 59.6416 11.4147 59.6416 13.6148Z", fill: "white" }), h("path", { d: "M56.11 11.3788C56.11 11.3584 56.1053 11.3329 56.11 11.3125C56.1194 11.241 56.0959 11.2206 56.0255 11.2206C55.3304 11.2206 54.6306 11.2206 53.9355 11.2206C53.8228 11.2206 53.7335 11.3176 53.7335 11.4401C53.7335 11.486 53.7335 11.532 53.7335 11.5779C53.7335 11.68 53.6255 11.7362 53.5504 11.68C53.0478 11.2818 52.4842 11.0725 51.8737 11.0368C50.6244 10.9602 49.5676 11.4707 48.7316 12.4661C47.689 13.7117 47.3414 15.1869 47.6326 16.8306C47.9755 18.7397 49.3938 20.3579 51.2866 20.5621C51.9911 20.6387 52.6674 20.5161 53.292 20.1333C53.3813 20.0771 53.4611 20.0159 53.541 19.9444C53.6161 19.8781 53.7288 19.9342 53.7288 20.0414C53.7288 20.118 53.7288 20.1894 53.7241 20.266C53.7194 20.363 53.7429 20.3885 53.8322 20.3885C54.4991 20.3834 55.166 20.3834 55.8376 20.3885C55.9832 20.3885 56.1053 20.2609 56.1053 20.1027C56.1053 17.1828 56.11 14.2783 56.11 11.3788ZM53.6678 16.7438C53.3719 17.535 52.705 18.0149 51.9112 18.0098C50.6572 17.9893 49.8259 16.8663 49.9621 15.5544C50.0608 14.5743 50.6103 13.8903 51.4228 13.6606C52.5688 13.339 53.6772 14.166 53.8087 15.4472C53.8556 15.8964 53.8228 16.3303 53.6678 16.7438Z", fill: "white" }), h("path", { d: "M20.528 11.3792C20.528 11.3537 20.5233 11.3333 20.528 11.3129C20.5374 11.2414 20.5139 11.221 20.4435 11.221C19.7014 11.221 18.964 11.2261 18.222 11.221C18.1468 11.221 18.1421 11.2567 18.1421 11.318C18.1421 11.4048 18.1421 11.4864 18.1421 11.5783C18.1421 11.6804 18.0388 11.7366 17.959 11.6804C17.4564 11.2874 16.8928 11.0781 16.2823 11.0423C15.0846 10.9658 14.0561 11.4303 13.2388 12.3644C12.013 13.7478 11.6655 15.4221 12.1539 17.2649C12.6799 19.2506 14.3285 20.634 16.1883 20.5676C16.8365 20.5421 17.4376 20.3787 17.9543 19.9346C18.0294 19.8683 18.1421 19.9244 18.1421 20.0316C18.1421 20.1031 18.1421 20.1745 18.1374 20.246C18.1327 20.3481 18.1562 20.3736 18.2549 20.3736C18.964 20.3685 19.6685 20.3685 20.3777 20.3736C20.4951 20.3736 20.5327 20.3481 20.5327 20.2154C20.5233 17.27 20.528 14.3246 20.528 11.3792ZM18.0529 16.8208C17.7147 17.6069 17.123 17.9898 16.3809 18.0153C15.3148 18.0153 14.4834 17.1985 14.3801 16.0959C14.2862 15.1158 14.6619 14.2736 15.404 13.8499C16.5171 13.2067 17.9871 13.7988 18.222 15.4068C18.2877 15.8917 18.2455 16.3716 18.0529 16.8208Z", fill: "white" })));
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Render installment text with proper RTL support
|
|
295
|
+
*/
|
|
296
|
+
renderInstallmentText() {
|
|
297
|
+
if (this.customText) {
|
|
298
|
+
return (h("span", null, this.customText, ' ', h("span", { class: "amwal-link" }, this.t('Learn more'))));
|
|
299
|
+
}
|
|
300
|
+
const installmentsCount = this.config.installmentsCount || 0;
|
|
301
|
+
// Get the correct plural form for payment count
|
|
302
|
+
let paymentsText;
|
|
303
|
+
if (this.isRTL) {
|
|
304
|
+
// Arabic grammar: 3-10 → دفعات (plural), 11+ → دفعة (singular tamyiz)
|
|
305
|
+
paymentsText = (installmentsCount >= 3 && installmentsCount <= 10)
|
|
306
|
+
? this.t('monthly payments')
|
|
307
|
+
: this.t('monthly payment');
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
// English: 1 → singular, 2+ → plural
|
|
311
|
+
paymentsText = installmentsCount === 1
|
|
312
|
+
? this.t('monthly payment')
|
|
313
|
+
: this.t('monthly payments');
|
|
314
|
+
}
|
|
315
|
+
return (h("span", null, this.t('Install in up to'), ' ', h("span", { class: "amwal-installments-count" }, installmentsCount), ' ', paymentsText, this.isRTL ? ' ' : ', ', this.t('no fees or interest and Sharia Compliant'), ' ', h("span", { class: "amwal-link" }, this.t('Learn more'))));
|
|
316
|
+
}
|
|
317
|
+
render() {
|
|
318
|
+
if (!this.isActive || !this.isVisible || !this.config) {
|
|
319
|
+
return null;
|
|
320
|
+
}
|
|
321
|
+
if (this.debug) {
|
|
322
|
+
console.log('[AmwalWidget] Rendering widget', {
|
|
323
|
+
price: this.config.price,
|
|
324
|
+
currency: this.config.currency,
|
|
325
|
+
installmentsCount: this.config.installmentsCount,
|
|
326
|
+
installmentPrice: this.getInstallmentPrice(),
|
|
327
|
+
isRTL: this.isRTL,
|
|
328
|
+
textDirection: this.textDirection
|
|
329
|
+
});
|
|
366
330
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
331
|
+
return (h("div", { class: {
|
|
332
|
+
'amwal-widget-container': true,
|
|
333
|
+
'show-badge': this.showPopularBadge
|
|
334
|
+
}, dir: this.textDirection }, h("div", { class: {
|
|
335
|
+
'amwal-promo': true,
|
|
336
|
+
'green-border': this.showGreenBorder,
|
|
337
|
+
'loading': this.isLoading
|
|
338
|
+
}, dir: this.textDirection, onClick: this.handleClick }, h("div", { class: "amwal-promo-content" }, this.renderAmwalLogo(), h("div", { class: "amwal-promo-text-container" }, h("span", { class: "amwal-promo-text" }, this.renderInstallmentText()), (this.showMonthlyPayment || this.showSavings) && (h("div", { class: "amwal-payment-savings-container" }, this.showMonthlyPayment && (h("span", { class: "amwal-monthly-payment" }, this.renderMonthlyPayment())), this.showSavings && (h("span", { class: "amwal-savings-text" }, this.calculateSavings()))))))), this.showSocialProof && (h("div", { class: "amwal-social-proof" }, this.t(this.socialProofText)))));
|
|
339
|
+
}
|
|
340
|
+
static get watchers() { return {
|
|
341
|
+
"locale": ["updateLocale"],
|
|
342
|
+
"config": ["onConfigChange"]
|
|
343
|
+
}; }
|
|
375
344
|
};
|
|
376
|
-
AmwalWidget.style = amwalWidgetCss
|
|
345
|
+
AmwalWidget.style = amwalWidgetCss;
|
|
377
346
|
|
|
378
347
|
export { AmwalWidget as amwal_widget };
|