hemfixarna-web-components 1.8.4 → 1.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{collection/utils/api.js → hemfixarna-components/api-e3c51cb3.js} +7 -4
- package/dist/hemfixarna-components/api-e3c51cb3.js.map +1 -0
- package/dist/hemfixarna-components/app-globals-0f993ce5.js +5 -0
- package/dist/hemfixarna-components/app-globals-0f993ce5.js.map +1 -0
- package/dist/{collection/utils/calc.js → hemfixarna-components/calc-b3b6593c.js} +7 -13
- package/dist/hemfixarna-components/calc-b3b6593c.js.map +1 -0
- package/dist/hemfixarna-components/css-shim-4fde41f0.js +6 -0
- package/dist/hemfixarna-components/css-shim-4fde41f0.js.map +1 -0
- package/dist/hemfixarna-components/dom-8de30773.js +75 -0
- package/dist/hemfixarna-components/dom-8de30773.js.map +1 -0
- package/dist/{collection/utils/enviroment.js → hemfixarna-components/enviroment-fd0a763a.js} +8 -6
- package/dist/hemfixarna-components/enviroment-fd0a763a.js.map +1 -0
- package/dist/{collection/utils/form.js → hemfixarna-components/form-c53dca29.js} +4 -2
- package/dist/hemfixarna-components/form-c53dca29.js.map +1 -0
- package/dist/{collection/components/hemfixarna-address/hemfixarna-address.js → hemfixarna-components/hemfixarna-address.entry.js} +14 -20
- package/dist/hemfixarna-components/hemfixarna-address.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-box.entry.js +49 -0
- package/dist/hemfixarna-components/hemfixarna-box.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-breadcrumbs/hemfixarna-breadcrumbs.js → hemfixarna-components/hemfixarna-breadcrumbs.entry.js} +13 -28
- package/dist/hemfixarna-components/hemfixarna-breadcrumbs.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-byggmax.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-byggmax.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-cart/hemfixarna-cart.js → hemfixarna-components/hemfixarna-cart.entry.js} +12 -6
- package/dist/hemfixarna-components/hemfixarna-cart.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-category.entry.js +2 -2
- package/dist/hemfixarna-components/hemfixarna-category.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-checkout/hemfixarna-checkout.js → hemfixarna-components/hemfixarna-checkout.entry.js} +33 -26
- package/dist/hemfixarna-components/hemfixarna-checkout.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-component.entry.js +189 -0
- package/dist/hemfixarna-components/hemfixarna-component.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-components.esm.js +162 -1
- package/dist/hemfixarna-components/hemfixarna-components.esm.js.map +1 -1
- package/dist/{collection/components/hemfixarna-contact/hemfixarna-contact.js → hemfixarna-components/hemfixarna-contact.entry.js} +11 -29
- package/dist/hemfixarna-components/hemfixarna-contact.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-demo/hemfixarna-demo.js → hemfixarna-components/hemfixarna-demo.entry.js} +21 -46
- package/dist/hemfixarna-components/hemfixarna-demo.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-doro.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-doro.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-elfa.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-elfa.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-fargvaruhuset.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-fargvaruhuset.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-flyttsmart.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-flyttsmart.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-forebygg.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-forebygg.entry.js.map +1 -0
- package/dist/hemfixarna-components/hemfixarna-getuser.entry.js +770 -0
- package/dist/hemfixarna-components/hemfixarna-getuser.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-hornbach.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-hornbach.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-info/hemfixarna-info.js → hemfixarna-components/hemfixarna-info.entry.js} +11 -7
- package/dist/hemfixarna-components/hemfixarna-info.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-invoice/hemfixarna-invoice.js → hemfixarna-components/hemfixarna-invoice.entry.js} +16 -27
- package/dist/hemfixarna-components/hemfixarna-invoice.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-kbygg.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-kbygg.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-klint.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-klint.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-kund.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-kund.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-norrgavel.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-norrgavel.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-order/hemfixarna-order.js → hemfixarna-components/hemfixarna-order.entry.js} +11 -7
- package/dist/hemfixarna-components/hemfixarna-order.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-orderrows/hemfixarna-orderrows.js → hemfixarna-components/hemfixarna-orderrows.entry.js} +12 -30
- package/dist/hemfixarna-components/hemfixarna-orderrows.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-power.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-power.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-product/hemfixarna-product.js → hemfixarna-components/hemfixarna-product.entry.js} +18 -27
- package/dist/hemfixarna-components/hemfixarna-product.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-service.entry.js +2 -2
- package/dist/hemfixarna-components/hemfixarna-service.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-skanska.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-skanska.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-sparfonster.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-sparfonster.entry.js.map +1 -0
- package/dist/{collection/components/hemfixarna-start/hemfixarna-start.js → hemfixarna-components/hemfixarna-start.entry.js} +11 -48
- package/dist/hemfixarna-components/hemfixarna-start.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-string-furniture.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-string-furniture.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-superfront.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-superfront.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-tesla.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-tesla.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-traningspartner.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-traningspartner.entry.js.map +1 -0
- package/dist/{esm → hemfixarna-components}/hemfixarna-zaptec.entry.js +1 -1
- package/dist/hemfixarna-components/hemfixarna-zaptec.entry.js.map +1 -0
- package/dist/{esm/index-aa51ad9d.js → hemfixarna-components/index-21ba2b05.js} +2 -2
- package/dist/{esm/index-aa51ad9d.js.map → hemfixarna-components/index-21ba2b05.js.map} +1 -1
- package/dist/hemfixarna-components/index-2ce8b901.js +3461 -0
- package/dist/hemfixarna-components/index-2ce8b901.js.map +1 -0
- package/dist/hemfixarna-components/index.esm.js +1 -0
- package/dist/hemfixarna-components/index.esm.js.map +1 -1
- package/dist/{collection/utils/scroll.js → hemfixarna-components/scroll-6c26b5da.js} +4 -2
- package/dist/hemfixarna-components/scroll-6c26b5da.js.map +1 -0
- package/dist/hemfixarna-components/shadow-css-af2290df.js +389 -0
- package/dist/hemfixarna-components/shadow-css-af2290df.js.map +1 -0
- package/dist/{collection/utils/types.js → hemfixarna-components/types-6da209ae.js} +6 -3
- package/dist/hemfixarna-components/types-6da209ae.js.map +1 -0
- package/package.json +1 -1
- package/dist/cjs/hemfixarna-address_15.cjs.entry.js +0 -2180
- package/dist/cjs/hemfixarna-address_15.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-byggmax.cjs.entry.js +0 -27
- package/dist/cjs/hemfixarna-byggmax.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-category.cjs.entry.js +0 -28
- package/dist/cjs/hemfixarna-category.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-components.cjs.js +0 -28
- package/dist/cjs/hemfixarna-components.cjs.js.map +0 -1
- package/dist/cjs/hemfixarna-doro.cjs.entry.js +0 -26
- package/dist/cjs/hemfixarna-doro.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-elfa.cjs.entry.js +0 -26
- package/dist/cjs/hemfixarna-elfa.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-fargvaruhuset.cjs.entry.js +0 -23
- package/dist/cjs/hemfixarna-fargvaruhuset.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-flyttsmart.cjs.entry.js +0 -23
- package/dist/cjs/hemfixarna-flyttsmart.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-forebygg.cjs.entry.js +0 -26
- package/dist/cjs/hemfixarna-forebygg.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-hornbach.cjs.entry.js +0 -26
- package/dist/cjs/hemfixarna-hornbach.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-kbygg.cjs.entry.js +0 -23
- package/dist/cjs/hemfixarna-kbygg.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-klint.cjs.entry.js +0 -23
- package/dist/cjs/hemfixarna-klint.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-kund.cjs.entry.js +0 -23
- package/dist/cjs/hemfixarna-kund.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-norrgavel.cjs.entry.js +0 -23
- package/dist/cjs/hemfixarna-norrgavel.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-power.cjs.entry.js +0 -23
- package/dist/cjs/hemfixarna-power.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-service.cjs.entry.js +0 -24
- package/dist/cjs/hemfixarna-service.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-skanska.cjs.entry.js +0 -26
- package/dist/cjs/hemfixarna-skanska.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-sparfonster.cjs.entry.js +0 -23
- package/dist/cjs/hemfixarna-sparfonster.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-string-furniture.cjs.entry.js +0 -26
- package/dist/cjs/hemfixarna-string-furniture.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-superfront.cjs.entry.js +0 -24
- package/dist/cjs/hemfixarna-superfront.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-tesla.cjs.entry.js +0 -23
- package/dist/cjs/hemfixarna-tesla.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-traningspartner.cjs.entry.js +0 -23
- package/dist/cjs/hemfixarna-traningspartner.cjs.entry.js.map +0 -1
- package/dist/cjs/hemfixarna-zaptec.cjs.entry.js +0 -23
- package/dist/cjs/hemfixarna-zaptec.cjs.entry.js.map +0 -1
- package/dist/cjs/index-3e8dcb29.js +0 -265
- package/dist/cjs/index-3e8dcb29.js.map +0 -1
- package/dist/cjs/index-e6926623.js +0 -1741
- package/dist/cjs/index-e6926623.js.map +0 -1
- package/dist/cjs/index-e81df82e.js +0 -49
- package/dist/cjs/index-e81df82e.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -4
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -24
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/collection/assets/back.svg +0 -3
- package/dist/collection/assets/cart.svg +0 -10
- package/dist/collection/assets/checked.svg +0 -10
- package/dist/collection/assets/close.svg +0 -5
- package/dist/collection/assets/copy.png +0 -0
- package/dist/collection/assets/date.svg +0 -6
- package/dist/collection/assets/down.svg +0 -3
- package/dist/collection/assets/drag-drop.svg +0 -3
- package/dist/collection/assets/elfa.png +0 -0
- package/dist/collection/assets/gubbe-pensel.svg +0 -1
- package/dist/collection/assets/hemfixarna.svg +0 -11
- package/dist/collection/assets/hornbach/logo.svg +0 -42
- package/dist/collection/assets/hornbach/nav.jpg +0 -0
- package/dist/collection/assets/info.svg +0 -5
- package/dist/collection/assets/kbygg.svg +0 -29
- package/dist/collection/assets/minus.svg +0 -4
- package/dist/collection/assets/montering.svg +0 -15
- package/dist/collection/assets/norrgavel.svg +0 -1
- package/dist/collection/assets/pensel.svg +0 -1
- package/dist/collection/assets/plus.svg +0 -5
- package/dist/collection/assets/spinner.gif +0 -0
- package/dist/collection/assets/tesla.svg +0 -1
- package/dist/collection/assets/zaptec.svg +0 -1
- package/dist/collection/collection-manifest.json +0 -47
- package/dist/collection/components/customers/hemfixarna-byggmax/hemfixarna-byggmax.css +0 -0
- package/dist/collection/components/customers/hemfixarna-byggmax/hemfixarna-byggmax.js +0 -122
- package/dist/collection/components/customers/hemfixarna-byggmax/hemfixarna-byggmax.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-doro/hemfixarna-doro.css +0 -0
- package/dist/collection/components/customers/hemfixarna-doro/hemfixarna-doro.js +0 -104
- package/dist/collection/components/customers/hemfixarna-doro/hemfixarna-doro.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-elfa/hemfixarna-elfa.css +0 -0
- package/dist/collection/components/customers/hemfixarna-elfa/hemfixarna-elfa.js +0 -104
- package/dist/collection/components/customers/hemfixarna-elfa/hemfixarna-elfa.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-fargvaruhuset/hemfixarna-fargvaruhuset.js +0 -94
- package/dist/collection/components/customers/hemfixarna-fargvaruhuset/hemfixarna-fargvaruhuset.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-flyttsmart/hemfixarna-flyttsmart.js +0 -94
- package/dist/collection/components/customers/hemfixarna-flyttsmart/hemfixarna-flyttsmart.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-forebygg/hemfixarna-forebygg.css +0 -0
- package/dist/collection/components/customers/hemfixarna-forebygg/hemfixarna-forebygg.js +0 -104
- package/dist/collection/components/customers/hemfixarna-forebygg/hemfixarna-forebygg.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-hornbach/hemfixarna-hornbach.css +0 -0
- package/dist/collection/components/customers/hemfixarna-hornbach/hemfixarna-hornbach.js +0 -104
- package/dist/collection/components/customers/hemfixarna-hornbach/hemfixarna-hornbach.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-kbygg/hemfixarna-kbygg.js +0 -94
- package/dist/collection/components/customers/hemfixarna-kbygg/hemfixarna-kbygg.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-klint/hemfixarna-klint.js +0 -94
- package/dist/collection/components/customers/hemfixarna-klint/hemfixarna-klint.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-kund/hemfixarna-kund.js +0 -94
- package/dist/collection/components/customers/hemfixarna-kund/hemfixarna-kund.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-norrgavel/hemfixarna-norrgavel.js +0 -94
- package/dist/collection/components/customers/hemfixarna-norrgavel/hemfixarna-norrgavel.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-power/hemfixarna-power.js +0 -94
- package/dist/collection/components/customers/hemfixarna-power/hemfixarna-power.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-skanska/hemfixarna-skanska.css +0 -0
- package/dist/collection/components/customers/hemfixarna-skanska/hemfixarna-skanska.js +0 -104
- package/dist/collection/components/customers/hemfixarna-skanska/hemfixarna-skanska.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-sparfonster/hemfixarna-sparfonster.js +0 -94
- package/dist/collection/components/customers/hemfixarna-sparfonster/hemfixarna-sparfonster.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-string/hemfixarna-string-furniture.js +0 -104
- package/dist/collection/components/customers/hemfixarna-string/hemfixarna-string-furniture.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-string/hemfixarna-string.css +0 -0
- package/dist/collection/components/customers/hemfixarna-superfront.tsx/hemfixarna-superfront.js +0 -113
- package/dist/collection/components/customers/hemfixarna-superfront.tsx/hemfixarna-superfront.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-tesla/hemfixarna-tesla.js +0 -94
- package/dist/collection/components/customers/hemfixarna-tesla/hemfixarna-tesla.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-traningspartner/hemfixarna-traningspartner.js +0 -94
- package/dist/collection/components/customers/hemfixarna-traningspartner/hemfixarna-traningspartner.js.map +0 -1
- package/dist/collection/components/customers/hemfixarna-zaptec/hemfixarna-zaptec.js +0 -94
- package/dist/collection/components/customers/hemfixarna-zaptec/hemfixarna-zaptec.js.map +0 -1
- package/dist/collection/components/hemfixarna-address/hemfixarna-address.js.map +0 -1
- package/dist/collection/components/hemfixarna-box/hemfixarna-box.js +0 -138
- package/dist/collection/components/hemfixarna-box/hemfixarna-box.js.map +0 -1
- package/dist/collection/components/hemfixarna-breadcrumbs/hemfixarna-breadcrumbs.js.map +0 -1
- package/dist/collection/components/hemfixarna-cart/hemfixarna-cart.js.map +0 -1
- package/dist/collection/components/hemfixarna-category.tsx/hemfixarna-category.js +0 -18
- package/dist/collection/components/hemfixarna-category.tsx/hemfixarna-category.js.map +0 -1
- package/dist/collection/components/hemfixarna-checkout/hemfixarna-checkout.js.map +0 -1
- package/dist/collection/components/hemfixarna-component/hemfixarna-component.js +0 -330
- package/dist/collection/components/hemfixarna-component/hemfixarna-component.js.map +0 -1
- package/dist/collection/components/hemfixarna-component/hemfixarna.css +0 -1061
- package/dist/collection/components/hemfixarna-contact/hemfixarna-contact.js.map +0 -1
- package/dist/collection/components/hemfixarna-demo/hemfixarna-demo.css +0 -135
- package/dist/collection/components/hemfixarna-demo/hemfixarna-demo.js.map +0 -1
- package/dist/collection/components/hemfixarna-getuser/hemfixarna-getuser.js +0 -91
- package/dist/collection/components/hemfixarna-getuser/hemfixarna-getuser.js.map +0 -1
- package/dist/collection/components/hemfixarna-info/hemfixarna-info.js.map +0 -1
- package/dist/collection/components/hemfixarna-invoice/hemfixarna-invoice.css +0 -76
- package/dist/collection/components/hemfixarna-invoice/hemfixarna-invoice.js.map +0 -1
- package/dist/collection/components/hemfixarna-order/hemfixarna-order.js.map +0 -1
- package/dist/collection/components/hemfixarna-orderrows/hemfixarna-orderrows.js.map +0 -1
- package/dist/collection/components/hemfixarna-product/hemfixarna-product.css +0 -0
- package/dist/collection/components/hemfixarna-product/hemfixarna-product.js.map +0 -1
- package/dist/collection/components/hemfixarna-service/hemfixarna-service.js +0 -14
- package/dist/collection/components/hemfixarna-service/hemfixarna-service.js.map +0 -1
- package/dist/collection/components/hemfixarna-start/hemfixarna-start.js.map +0 -1
- package/dist/collection/index.js +0 -2
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/store/index.js +0 -69
- package/dist/collection/store/index.js.map +0 -1
- package/dist/collection/types/felixtypes.js +0 -3
- package/dist/collection/types/felixtypes.js.map +0 -1
- package/dist/collection/types/index.js +0 -46
- package/dist/collection/types/index.js.map +0 -1
- package/dist/collection/utils/api.js.map +0 -1
- package/dist/collection/utils/calc.js.map +0 -1
- package/dist/collection/utils/creditSafe.js +0 -18
- package/dist/collection/utils/creditSafe.js.map +0 -1
- package/dist/collection/utils/enviroment.js.map +0 -1
- package/dist/collection/utils/felixApi.js +0 -19
- package/dist/collection/utils/felixApi.js.map +0 -1
- package/dist/collection/utils/felixFunctions.js +0 -188
- package/dist/collection/utils/felixFunctions.js.map +0 -1
- package/dist/collection/utils/form.js.map +0 -1
- package/dist/collection/utils/scroll.js.map +0 -1
- package/dist/collection/utils/types.js.map +0 -1
- package/dist/esm/hemfixarna-address_15.entry.js +0 -2162
- package/dist/esm/hemfixarna-address_15.entry.js.map +0 -1
- package/dist/esm/hemfixarna-byggmax.entry.js.map +0 -1
- package/dist/esm/hemfixarna-category.entry.js.map +0 -1
- package/dist/esm/hemfixarna-components.js +0 -23
- package/dist/esm/hemfixarna-components.js.map +0 -1
- package/dist/esm/hemfixarna-doro.entry.js.map +0 -1
- package/dist/esm/hemfixarna-elfa.entry.js.map +0 -1
- package/dist/esm/hemfixarna-fargvaruhuset.entry.js.map +0 -1
- package/dist/esm/hemfixarna-flyttsmart.entry.js.map +0 -1
- package/dist/esm/hemfixarna-forebygg.entry.js.map +0 -1
- package/dist/esm/hemfixarna-hornbach.entry.js.map +0 -1
- package/dist/esm/hemfixarna-kbygg.entry.js.map +0 -1
- package/dist/esm/hemfixarna-klint.entry.js.map +0 -1
- package/dist/esm/hemfixarna-kund.entry.js.map +0 -1
- package/dist/esm/hemfixarna-norrgavel.entry.js.map +0 -1
- package/dist/esm/hemfixarna-power.entry.js.map +0 -1
- package/dist/esm/hemfixarna-service.entry.js.map +0 -1
- package/dist/esm/hemfixarna-skanska.entry.js.map +0 -1
- package/dist/esm/hemfixarna-sparfonster.entry.js.map +0 -1
- package/dist/esm/hemfixarna-string-furniture.entry.js.map +0 -1
- package/dist/esm/hemfixarna-superfront.entry.js.map +0 -1
- package/dist/esm/hemfixarna-tesla.entry.js.map +0 -1
- package/dist/esm/hemfixarna-traningspartner.entry.js.map +0 -1
- package/dist/esm/hemfixarna-zaptec.entry.js.map +0 -1
- package/dist/esm/index-ea1d222e.js +0 -1710
- package/dist/esm/index-ea1d222e.js.map +0 -1
- package/dist/esm/index.js +0 -3
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -20
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/hemfixarna-components/p-0106398c.entry.js +0 -2
- package/dist/hemfixarna-components/p-0106398c.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-2171ef72.entry.js +0 -2
- package/dist/hemfixarna-components/p-2171ef72.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-21f904c4.entry.js +0 -2
- package/dist/hemfixarna-components/p-21f904c4.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-30539ae5.entry.js +0 -2
- package/dist/hemfixarna-components/p-30539ae5.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-3064ec85.entry.js +0 -2
- package/dist/hemfixarna-components/p-3064ec85.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-31254a9b.entry.js +0 -2
- package/dist/hemfixarna-components/p-31254a9b.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-5cc10f3e.js +0 -2
- package/dist/hemfixarna-components/p-5cc10f3e.js.map +0 -1
- package/dist/hemfixarna-components/p-5f8e1f23.entry.js +0 -2
- package/dist/hemfixarna-components/p-5f8e1f23.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-62fdb014.entry.js +0 -2
- package/dist/hemfixarna-components/p-62fdb014.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-642db21e.js +0 -2
- package/dist/hemfixarna-components/p-642db21e.js.map +0 -1
- package/dist/hemfixarna-components/p-695b4ab5.entry.js +0 -2
- package/dist/hemfixarna-components/p-695b4ab5.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-6f9913cb.entry.js +0 -2
- package/dist/hemfixarna-components/p-6f9913cb.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-80044bef.entry.js +0 -2
- package/dist/hemfixarna-components/p-80044bef.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-9defa3dc.entry.js +0 -2
- package/dist/hemfixarna-components/p-9defa3dc.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-a66f910f.entry.js +0 -2
- package/dist/hemfixarna-components/p-a66f910f.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-b904e94f.entry.js +0 -2
- package/dist/hemfixarna-components/p-b904e94f.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-c707b937.js +0 -3
- package/dist/hemfixarna-components/p-c707b937.js.map +0 -1
- package/dist/hemfixarna-components/p-cc0920f6.entry.js +0 -2
- package/dist/hemfixarna-components/p-cc0920f6.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-d2135574.entry.js +0 -2
- package/dist/hemfixarna-components/p-d2135574.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-d31b9a6e.entry.js +0 -2
- package/dist/hemfixarna-components/p-d31b9a6e.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-d452b6c8.entry.js +0 -2
- package/dist/hemfixarna-components/p-d452b6c8.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-d522ece7.entry.js +0 -2
- package/dist/hemfixarna-components/p-d522ece7.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-dcf4f921.entry.js +0 -2
- package/dist/hemfixarna-components/p-dcf4f921.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-e2cd711c.entry.js +0 -2
- package/dist/hemfixarna-components/p-e2cd711c.entry.js.map +0 -1
- package/dist/hemfixarna-components/p-ff1548ae.entry.js +0 -2
- package/dist/hemfixarna-components/p-ff1548ae.entry.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- /package/dist/{esm → hemfixarna-components}/index-c8ce6f4b.js +0 -0
- /package/dist/{esm → hemfixarna-components}/index-c8ce6f4b.js.map +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"hemfixarna-component.entry.esm.js","mappings":";;;;;;;;AAAA,MAAM,aAAa,GAAG,q+sBAAq+sB;;MCa9+sB,mBAAmB;;;IAiG9B,u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arna-component/hemfixarna.scss?tag=hemfixarna-component&encapsulation=shadow","./src/components/hemfixarna-component/hemfixarna-component.tsx"],"sourcesContent":["@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n$yellow: #fffaf2;\n$background: #faf1e8;\n$grey: #b7b7b7;\n$brown: #e9d7ca;\n$black: #474444;\n$white: #fff;\n$darkyellow: #fcd9c9;\n$pink: #f1ded6;\n$green: #25a710;\n$orange: #ec6632;\n$darkorange: #c84e18;\n\n$border: 1px solid $darkyellow;\n$greyBorder: 1px solid #e3e3e3;\n$border-radius: 4px;\n$box-shadow: 0px 4px 8px 0px #0000000a;\n$box-shadow-hover: 0px 8px 16px 2px #0000000a;\n$widgetBoxColor: 0px 2px 16px 0px #00000014;\n\n@mixin hover {\n &:hover {\n transition: 0.1s all cubic-bezier(0.465, 0.183, 0.153, 0.946);\n filter: brightness(1.02);\n transform: scale(1.01);\n box-shadow: $box-shadow-hover;\n }\n}\n\n@mixin cartLength {\n position: relative;\n span {\n position: absolute;\n background: $white;\n border-radius: 100%;\n width: 24px;\n height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-weight: 600;\n font-size: 13px;\n line-height: 11px;\n top: -6px;\n right: -12px;\n }\n}\n\n@mixin mobile {\n @media (max-width: 768px) {\n @content;\n }\n}\n\n@mixin desktop {\n @media (min-width: 769px) {\n @content;\n }\n}\n\n* {\n box-sizing: border-box;\n}\n\n:host {\n font-family: 'Inter', sans-serif;\n input[type='text'] {\n padding: 16px;\n width: 100%;\n font-size: 16px;\n border: 1px solid $darkyellow;\n }\n .mb-2 {\n margin-bottom: 32px;\n }\n button {\n color: $black;\n }\n form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n position: relative;\n button {\n position: absolute;\n right: 0;\n top: -1rem;\n }\n img {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n pointer-events: none;\n &:first-of-type {\n left: 16px;\n }\n &:last-of-type {\n right: 16px;\n }\n }\n span {\n margin-top: -8px;\n color: $orange;\n }\n p {\n text-align: center;\n }\n p {\n margin: 0;\n }\n div {\n position: relative;\n label {\n pointer-events: none;\n position: absolute;\n left: 16px;\n top: 50%;\n transform: translateY(-50%);\n background: $white;\n padding: 4px;\n transition: 0.2s all cubic-bezier(0.465, 0.183, 0.153, 0.946);\n }\n input {\n padding: 16px;\n width: 100%;\n font-size: 16px;\n border: 1px solid $darkyellow;\n }\n input:focus ~ label,\n .input_active ~ label {\n top: 0;\n transform: translateY(-50%);\n background: linear-gradient(180deg, $background 50%, $white 50%);\n }\n }\n select {\n padding: 0.75rem 1rem;\n width: 100%;\n }\n }\n h1 {\n font-size: 24px;\n font-weight: 400;\n line-height: 32px;\n letter-spacing: -3%;\n text-align: left;\n margin: 0 0 8px;\n }\n h2 {\n margin: 0 0 24px;\n font-weight: 700;\n font-size: 20px;\n line-height: 28px;\n letter-spacing: -3%;\n }\n p {\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n letter-spacing: -3%;\n }\n .hemfixarna {\n width: 100%;\n &_source {\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n img {\n width: 20px;\n }\n &--pw {\n max-width: 300px !important;\n input[type='password'] {\n padding: 0.5rem;\n }\n form {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n }\n }\n &_contact {\n display: flex;\n gap: 16px;\n a {\n display: flex;\n align-items: center;\n gap: 8px;\n color: $black;\n text-decoration: none;\n font-weight: 600;\n font-size: 13px;\n &:hover {\n text-decoration: underline;\n }\n }\n &--horizontal {\n span {\n display: none;\n }\n @include desktop {\n span {\n display: initial;\n }\n }\n }\n }\n &_painting {\n > h2,\n p {\n text-align: center;\n padding: 0 16px;\n }\n > h2 {\n margin: 0 0 8px;\n }\n opacity: 0;\n padding: 0 1rem;\n animation: fadeIn 0.5s forwards 0.3s;\n }\n &_partnerlogo {\n max-height: 50px;\n min-height: 45px;\n object-fit: contain;\n max-width: 150px;\n @include desktop {\n max-width: 200px;\n }\n }\n &_nav {\n position: absolute;\n top: 0;\n width: 100dvw;\n left: 0;\n height: 80px;\n z-index: 9999;\n\n &--links {\n display: none !important;\n @include desktop {\n display: flex !important;\n }\n a {\n color: $orange;\n text-decoration: none;\n border: 1px solid rgba($color: $white, $alpha: 0.3);\n border-radius: 56px;\n padding: 8px 32px;\n text-transform: capitalize;\n }\n }\n > div {\n position: relative;\n overflow: hidden;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 16px;\n @include desktop {\n padding: 0 32px;\n }\n > div {\n display: flex;\n gap: 32px;\n justify-content: space-between;\n }\n\n > img {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n z-index: -1;\n }\n }\n a {\n text-decoration: none;\n }\n p {\n color: $black;\n }\n p.with-bg {\n color: $white;\n }\n }\n &_standalone {\n .hemfixarna {\n &_backdrop {\n background: $yellow;\n opacity: 1;\n }\n &_modal {\n top: 80px;\n transform: translateX(-50%);\n border: none;\n height: calc(100dvh - 80px);\n opacity: 0;\n &--open {\n opacity: 1;\n }\n }\n }\n }\n .switch {\n position: relative;\n display: inline-block;\n width: 40px;\n height: 20px;\n }\n\n /* Hide default HTML checkbox */\n .switch input {\n opacity: 0;\n width: 0;\n height: 0;\n }\n\n /* The slider */\n .slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n -webkit-transition: 0.4s;\n transition: 0.4s;\n border-radius: 34px;\n }\n\n .slider:before {\n position: absolute;\n content: '';\n height: 18px;\n width: 18px;\n left: 2px;\n bottom: 1px;\n background-color: white;\n -webkit-transition: 0.4s;\n transition: 0.4s;\n border-radius: 50%;\n }\n\n input:checked + .slider {\n background-color: $darkyellow;\n }\n\n input:focus + .slider {\n box-shadow: 0 0 1px $darkyellow;\n }\n\n input:checked + .slider:before {\n -webkit-transform: translateX(18px);\n -ms-transform: translateX(18px);\n transform: translateX(18px);\n background: $orange;\n }\n\n &_maleribox {\n background: $white;\n box-shadow: $box-shadow;\n width: 100%;\n min-height: 132px;\n padding: 24px;\n display: flex;\n align-items: center;\n gap: 24px;\n text-align: left;\n @include hover;\n }\n\n &_checkbox {\n display: grid;\n grid-template-columns: 40px auto;\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n letter-spacing: -3%;\n > span {\n transform: translateY(6px);\n }\n span,\n span p {\n color: $black;\n font-size: 14px;\n }\n p {\n text-align: left;\n }\n }\n\n &_info {\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 32px;\n box-shadow: $box-shadow;\n border-radius: $border-radius;\n border: $border;\n h2 {\n margin: 0;\n }\n @include desktop {\n position: sticky;\n top: 0;\n }\n }\n\n &_infomodal {\n position: absolute;\n top: 40%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 100%;\n max-width: 80%;\n background: $yellow;\n border: $border;\n padding: 32px;\n z-index: 99;\n border-radius: $border-radius;\n box-shadow: $box-shadow;\n display: flex;\n flex-direction: column;\n gap: 16px;\n p,\n h4 {\n margin: 0;\n }\n button {\n background: $orange;\n color: $white;\n border-radius: 60px;\n font-size: 16px;\n padding: 8px 16px;\n }\n }\n\n &_addressinfo {\n padding: 16px 16px 64px;\n border: $border;\n position: relative;\n margin-bottom: 32px;\n display: grid;\n grid-template-columns: 1fr;\n gap: 8px;\n @include desktop {\n grid-template-columns: 1fr 1fr;\n }\n button {\n position: absolute;\n bottom: 16px;\n right: 16px;\n font-weight: 500;\n text-underline-offset: 2px;\n text-decoration: underline;\n }\n }\n\n &_part {\n background: $white;\n box-shadow: $box-shadow;\n display: grid;\n padding: 16px;\n grid-template-columns: auto 75px;\n }\n &_counter {\n display: flex;\n align-items: center;\n span {\n padding: 0 8px;\n }\n img {\n cursor: pointer;\n &:not(.disabled) {\n @include hover;\n }\n }\n }\n &_description {\n display: grid;\n gap: 16px;\n ul {\n list-style: disc;\n padding-right: 12px;\n transform: translateX(12px);\n }\n &--hidden {\n max-height: 140px;\n overflow: hidden;\n position: relative;\n cursor: pointer;\n &::after {\n content: '';\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 128px;\n background: linear-gradient(180deg, rgba(255, 253, 250, 0), rgba(255, 253, 250, 0.46) 50%, $background);\n }\n }\n }\n &_terms {\n font-size: 14px;\n a {\n color: inherit;\n }\n }\n &_logo {\n height: 64px;\n }\n &_box {\n padding: 16px;\n display: flex;\n align-items: center;\n width: 100%;\n box-sizing: border-box;\n border-radius: 4px;\n gap: 16px 8px;\n border-radius: 4px;\n gap: 16px 8px;\n p,\n span {\n font-size: 15px;\n }\n .underline {\n text-decoration: underline;\n text-underline-offset: 2px;\n }\n .pointer {\n cursor: pointer;\n }\n .p-s {\n font-size: 12px;\n }\n > div {\n display: grid;\n gap: 8px;\n }\n &--standard {\n background: $yellow;\n border: $border;\n }\n &--alternative,\n &--alternative_2,\n &--alternative_3 {\n background: transparent;\n border: $greyBorder;\n }\n &--alternative_2,\n &--alternative_3 {\n box-shadow: $widgetBoxColor;\n }\n &--alternative_3 {\n justify-content: center;\n }\n }\n &_altbtn {\n display: flex !important;\n flex-direction: column;\n gap: 8px;\n align-items: center;\n margin-left: auto;\n }\n &_btn {\n margin-left: auto;\n }\n &_btn,\n &_buy,\n input[type='submit'] {\n border: none;\n border-radius: 60px;\n font-weight: 600;\n letter-spacing: 0.5px;\n line-height: 20px;\n box-shadow: $box-shadow;\n &:not(.disabled) {\n @include hover;\n }\n }\n div:has(> input[type='submit']) {\n position: relative;\n input {\n cursor: pointer;\n }\n img {\n display: none;\n }\n }\n .loading {\n cursor: default;\n opacity: 0.6;\n > img {\n display: initial !important;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n &_btn {\n font-size: 14px;\n background: $darkorange;\n color: $white;\n padding: 16px 24px;\n white-space: nowrap;\n @include cartLength;\n span {\n background: $green;\n color: $white;\n right: 0 !important;\n }\n }\n &_buy,\n input[type='submit'] {\n font-size: 21px;\n background: $green;\n color: $white;\n padding: 16px 24px;\n }\n .disabled {\n opacity: 0.5;\n cursor: default;\n }\n &_modal {\n position: fixed;\n background: $background;\n border: $border;\n border-radius: $border-radius;\n top: 50%;\n left: 50%;\n z-index: 1000;\n transition: 0.1s all cubic-bezier(0.465, 0.183, 0.153, 0.946);\n transform: translate(-50%, -50%) scale(0.7);\n opacity: 0;\n height: 92%;\n width: 92%;\n max-width: 920px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n &--open {\n opacity: 1;\n transform: translate(-50%, -50%) scale(1);\n }\n }\n &_backdrop {\n z-index: 999;\n position: fixed;\n background: $black;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n transition:\n transform 0.1s cubic-bezier(0.465, 0.183, 0.153, 0.946),\n opacity 0.1s cubic-bezier(0.465, 0.183, 0.153, 0.946);\n &--open {\n opacity: 0.3;\n }\n }\n &_order {\n position: absolute;\n top: -1px;\n left: -1px;\n right: -1px;\n bottom: -1px;\n background-repeat: no-repeat !important;\n background-size: cover !important;\n background-position: center !important;\n display: grid;\n grid-template-columns: 1fr 1fr;\n padding: 48px 32px 64px;\n @include mobile {\n grid-template-columns: 1fr;\n grid-template-rows: 0 auto;\n }\n > div:last-of-type {\n background: $yellow;\n padding: 32px;\n display: flex;\n flex-direction: column;\n max-height: 100%;\n overflow: auto;\n }\n img {\n cursor: pointer;\n }\n button {\n margin: 16px 0;\n padding: 0;\n text-decoration: underline;\n text-underline-offset: 2px;\n font-size: 14px;\n font-weight: 600;\n }\n }\n &_cart {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 32px;\n @include mobile {\n grid-template-columns: 1fr;\n gap: 0;\n }\n &--right,\n &--left {\n h2 {\n display: flex;\n align-items: center;\n img {\n margin-top: 3.2px;\n }\n }\n }\n &--left {\n h2 {\n button {\n @include desktop {\n display: none;\n }\n }\n }\n }\n &--right {\n h2 {\n button {\n @include mobile {\n display: none;\n }\n }\n }\n }\n &--startfee {\n display: flex;\n justify-content: space-between;\n }\n &--rutrot {\n display: flex;\n justify-content: space-between;\n div {\n display: flex;\n gap: 16px;\n align-items: center;\n }\n }\n &--additional {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: 16px;\n border-top: $border;\n p {\n font-size: 14px;\n position: relative;\n strong {\n text-decoration: underline;\n text-underline-offset: 2px;\n cursor: pointer;\n }\n img {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: -20px;\n cursor: pointer;\n }\n }\n }\n &--price {\n border-top: $border;\n h3 {\n margin: 0;\n }\n padding: 16px;\n display: flex;\n justify-content: space-between;\n }\n &--item {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 16px 0;\n border-top: $border;\n span {\n font-size: 12px;\n }\n > div {\n display: flex;\n justify-content: space-between;\n > div {\n display: flex;\n align-items: center;\n gap: 16px;\n }\n button {\n color: $orange;\n }\n }\n }\n &--group {\n border-radius: 16px;\n background: #fefaf6;\n margin-bottom: 16px;\n padding: 10px 20px;\n ul {\n li {\n &:first-of-type {\n border-top: 0;\n }\n }\n }\n }\n }\n &_categories {\n &--wrapper {\n gap: 32px;\n display: grid;\n grid-template-columns: 1fr 1fr;\n @include mobile {\n grid-template-columns: 1fr;\n }\n }\n display: flex;\n flex-direction: column;\n gap: 24px;\n li {\n position: relative;\n background: $white;\n border-radius: $border-radius;\n min-height: 132px;\n padding: 24px;\n box-shadow: $box-shadow;\n display: flex;\n align-items: center;\n gap: 24px;\n cursor: pointer;\n @include hover;\n > button {\n height: 100%;\n width: 100%;\n }\n .price {\n font-weight: 700;\n }\n }\n }\n &_content {\n height: 100%;\n overflow: auto;\n padding: 0 32px 64px;\n &--5 {\n padding-top: 16px;\n }\n &--painting {\n padding: 0;\n overflow: initial;\n }\n }\n &_crumbs {\n position: relative;\n padding: 16px 24px;\n border-bottom: $border;\n display: flex;\n justify-content: space-between;\n &--back {\n padding: 16px 24px 8px;\n display: flex;\n align-items: center;\n gap: 8px;\n box-shadow: none !important;\n @include hover;\n }\n img {\n cursor: pointer;\n }\n .close {\n position: absolute;\n right: -16px;\n top: -16px;\n z-index: 9;\n -webkit-transform: translate3d(0, 0, 0);\n }\n .cart {\n display: flex;\n padding-left: 16px;\n img {\n cursor: inherit;\n }\n @include cartLength;\n &_active {\n cursor: pointer;\n span {\n background: $green;\n color: $white;\n }\n }\n }\n &--links {\n display: flex;\n align-items: center;\n gap: 16px;\n overflow: auto;\n @include desktop {\n &::-webkit-scrollbar {\n display: none;\n }\n\n &::-webkit-scrollbar-button {\n display: none;\n }\n -ms-overflow-style: none;\n }\n }\n &--right {\n display: flex;\n align-items: center;\n }\n button {\n white-space: nowrap;\n background: $pink;\n border-radius: 64px;\n padding: 12px 16px;\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.3px;\n box-shadow: none !important;\n &:not(.active) {\n @include hover;\n }\n @include mobile {\n display: none;\n }\n }\n .active {\n background: $yellow;\n cursor: default;\n // border: 1px solid $pink;\n }\n }\n &_features {\n gap: 12px !important;\n li {\n display: flex;\n gap: 16px;\n align-items: center;\n }\n }\n &_address {\n margin-bottom: 16px;\n }\n &_product {\n display: grid;\n gap: 16px;\n &--link {\n font-weight: 700;\n color: $black;\n text-underline-offset: 4px;\n }\n &--left {\n gap: 32px;\n }\n &--right {\n gap: 32px;\n }\n &--price {\n margin-top: 4px;\n font-weight: 700;\n }\n &--total {\n text-align: center;\n margin: -16px 0;\n font-size: 21px;\n line-height: 28px;\n }\n &--item {\n background: $white;\n padding: 16px;\n display: grid;\n grid-template-columns: auto 75px;\n box-shadow: $box-shadow;\n }\n &--grid {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 32px;\n @include mobile {\n grid-template-columns: 1fr;\n }\n > div {\n display: flex;\n flex-direction: column;\n }\n ul {\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n }\n p {\n margin: 0;\n }\n &--top {\n img {\n object-fit: contain;\n }\n > div {\n width: 100%;\n h1 {\n max-width: 80%;\n @include mobile {\n max-width: 100%;\n }\n }\n }\n display: flex;\n gap: 32px;\n h4 {\n margin-bottom: 8px;\n }\n }\n }\n }\n h5,\n p {\n margin: 0;\n }\n input[type='submit'] {\n cursor: pointer;\n }\n input[type='date'] ~ label {\n left: 56px;\n }\n input[type='date'] {\n border: 1px solid $darkyellow;\n padding-left: 64px;\n }\n input[type='checkbox'] {\n height: 18px;\n width: 18px;\n border: $border;\n }\n input[type='checkbox']:checked {\n background: red;\n }\n input[type='date']::-webkit-calendar-picker-indicator {\n background: transparent;\n bottom: 0;\n color: transparent;\n cursor: pointer;\n height: auto;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n width: auto;\n }\n button,\n a {\n cursor: pointer;\n background: none;\n border: none;\n }\n ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n}\n","import { Component, Element, Fragment, Listen, Prop, State, Watch, getAssetPath, h } from '@stencil/core';\nimport state from '../../store';\nimport { Business, Product, WidgetStyle } from '../../types';\nimport { getCustomer, getGreenDiscount, getOptions, getRot, getRut, loginCustomer } from '../../utils/api';\nimport { getProductPriceWithRotAndRut } from '../../utils/calc';\nimport { scrollToTop } from '../../utils/scroll';\n\n@Component({\n tag: 'hemfixarna-component',\n styleUrl: 'hemfixarna.scss',\n shadow: true,\n assetsDirs: ['assets'],\n})\nexport class HemfixarnaComponent {\n @State() modal: boolean = false;\n @State() showModal: boolean = false;\n @State() product: Product | null = null;\n @Prop() id?: string;\n @Prop() slug?: string;\n @Prop() business: Business;\n @Prop() widgetStyle: WidgetStyle = WidgetStyle.standard;\n @Prop() buttonColor?: string;\n @Prop() buttonBg?: string;\n @State() proppedProduct: Product | null = null;\n @State() loginSourceError: null | string = null;\n\n @Element() private el: HTMLElement;\n\n loadCategoryOrProduct(id: string) {\n this.proppedProduct = null;\n if (id.startsWith('c-')) {\n const categories = [...state.customer.categories, ...state.customer.categories.map(c => c.sub_categories ?? [])].flat();\n const category = categories.find(c => c && c.id === id.replace('c-', ''));\n if (category) {\n state.selectedCustomerCategory = category;\n state.step = 2;\n }\n } else {\n const products = state.customer.categories\n .map(c => (c.show_products ? c.products : c.sub_categories ? c.sub_categories.map(c => c.products) : []))\n .flat()\n .flat();\n const product = products.find(p => p && p.fields.ID === parseInt(id));\n if (product) {\n state.selectedProduct = product.fields;\n state.step = 4;\n this.proppedProduct = product.fields;\n }\n }\n }\n\n @Watch('id')\n async watchIdChange(id: string) {\n if (id && state.customer) {\n if (id === 'maleri') {\n state.maleri = true;\n state.step = 4;\n } else {\n this.loadCategoryOrProduct(id);\n }\n }\n }\n\n async componentWillLoad() {\n state.business = this.business;\n const cart = window.sessionStorage.getItem(`hemfixarna-${this.business}-cart`);\n if (cart) {\n state.cart = JSON.parse(cart);\n }\n const user = window.sessionStorage.getItem(`hemfixarna-${this.business}-user`);\n if (user) {\n state.user = JSON.parse(user);\n }\n const creditSafeUser = window.sessionStorage.getItem(`hemfixarna-${this.business}-creditSafeUser`);\n if (creditSafeUser) {\n state.creditSafeUser = JSON.parse(creditSafeUser);\n }\n\n const [options, rut, rot, greenDiscount] = await Promise.all([getOptions(), getRut(), getRot(), getGreenDiscount()]);\n\n try {\n const customer = await getCustomer(this.business);\n if (customer?.code === 'not_found') {\n console.warn('customer not found');\n } else if (customer) {\n state.customer = customer;\n const id = this.id || this.slug;\n if (id) {\n if (id === 'maleri') {\n state.maleri = true;\n state.step = 4;\n } else {\n this.loadCategoryOrProduct(id);\n }\n }\n }\n } catch (error) {\n console.warn('customer not found');\n }\n\n state.rotOptions = rot;\n state.rutOptions = rut;\n state.greenOptions = greenDiscount;\n state.options = options;\n\n if (localStorage.getItem('select_source')) {\n state.selectSource = true;\n }\n }\n\n triggerScrollTotop = () => {\n const el = this.el.shadowRoot.querySelector('.hemfixarna_content');\n scrollToTop(el);\n };\n\n // Open close modal && click outside event\n openModal() {\n if (this.id) {\n if (this.id === 'maleri') {\n state.maleri = true;\n state.step = 4;\n } else {\n state.maleri = false;\n this.loadCategoryOrProduct(this.id);\n }\n }\n this.modal = true;\n setTimeout(() => {\n this.showModal = true;\n }, 50);\n }\n closeModal() {\n this.showModal = false;\n setTimeout(() => {\n this.modal = false;\n }, 200);\n }\n @Listen('click')\n handleClick(e: Event) {\n if ((e?.composedPath()[0] as HTMLElement).classList.contains('hemfixarna_backdrop')) {\n this.closeModal();\n }\n const infomodal = this.el.shadowRoot.querySelector('.hemfixarna_infomodal');\n if (infomodal) {\n const isClickInside = infomodal.contains(e.composedPath()[0] as HTMLInputElement);\n if (!isClickInside) {\n state.modal = null;\n }\n }\n }\n\n async handleLogin() {\n this.loginSourceError = null;\n const passwordInput = this.el.shadowRoot.querySelector('input[type=\"password\"]');\n const password = (passwordInput as HTMLInputElement).value;\n\n try {\n const status = await loginCustomer({ id: state.customer.ID, password: password });\n if (status === 200) {\n state.showSourcePasswordPrompt = false;\n state.selectSource = true;\n } else {\n this.loginSourceError = 'Fel lösenord';\n }\n } catch (error) {\n console.log(error);\n this.loginSourceError = 'Fel lösenord';\n }\n }\n\n getCartLength() {\n return state.cart.reduce((acc, curr) => acc + curr.amount, 0);\n }\n\n render() {\n const logo = getAssetPath(`./assets/hemfixarna.svg`);\n const pensel = getAssetPath(`./assets/pensel.svg`);\n const monteringLogo = getAssetPath(`./assets/montering.svg`);\n\n return (\n <div class={`hemfixarna hemfixarna-${this.business}`}>\n <div class={`hemfixarna_box hemfixarna_box--${this.widgetStyle}`}>\n {[WidgetStyle.alternative_2, WidgetStyle.alternative_3].includes(this.widgetStyle) ? (\n <img src={this.id === 'maleri' ? pensel : monteringLogo} alt=\"montering logo\" width={32} height={32} />\n ) : null}\n <div>\n <div>\n <p\n onClick={() => this.openModal()}\n class={`pointer ${[WidgetStyle.alternative_2, WidgetStyle.alternative_3].includes(this.widgetStyle) && state.selectedProduct ? 'underline' : ''}`}\n >\n {this.id === 'maleri' ? (\n <span>Beräkna fast pris på måleri & tapetsering här</span>\n ) : (\n <Fragment>\n {!state.selectedCustomerCategory && !this.product && !this.proppedProduct ? (\n <Fragment>\n {state.customer?.widget_title ? (\n <span>{state.customer.widget_title}</span>\n ) : (\n <span>\n Montering/Installation - <strong class=\"underline\">se priser här</strong>\n </span>\n )}\n </Fragment>\n ) : (\n <Fragment>\n {this.product?.title || this.proppedProduct?.title || state.selectedCustomerCategory?.widget_title || (\n <span>\n Montering\n <wbr />\n /Installation {state.selectedCustomerCategory?.name ?? 'på plats'} - <strong class=\"underline\">se priser här</strong>\n </span>\n )}\n {this.proppedProduct && !this.product?.invoice && !this.proppedProduct?.invoice ? (\n <span>\n {' från'} <strong>{getProductPriceWithRotAndRut(this.proppedProduct || this.product)}kr</strong>\n </span>\n ) : null}\n </Fragment>\n )}\n </Fragment>\n )}\n </p>\n </div>\n {this.widgetStyle === WidgetStyle.standard ? <img src={logo} width={104} /> : null}\n {this.widgetStyle === WidgetStyle.alternative ? (\n <span class=\"p-s\">\n Utförs av <strong>Hemfixarna</strong>\n </span>\n ) : null}\n </div>\n {[WidgetStyle.standard, WidgetStyle.alternative].includes(this.widgetStyle) ? (\n <button\n onClick={() => this.openModal()}\n class=\"hemfixarna_btn\"\n style={{\n color: this.buttonColor?.startsWith('#') || !this.buttonColor?.length ? this.buttonColor : `#${this.buttonColor}`,\n backgroundColor: this.buttonBg?.startsWith('#') || !this.buttonBg?.length ? this.buttonBg : `#${this.buttonBg}`,\n }}\n >\n Beställ här\n {this.getCartLength() > 0 && <span>{this.getCartLength()}</span>}\n </button>\n ) : null}\n {WidgetStyle.alternative_2 === this.widgetStyle ? (\n <div class=\"hemfixarna_altbtn\">\n <strong class=\"p-s\">Utförs av</strong>\n <img src={logo} alt=\"hemfixarna logo\" width={98} />\n </div>\n ) : null}\n </div>\n {this.modal && (\n <div>\n <div class={`hemfixarna_modal ${this.showModal ? 'hemfixarna_modal--open' : ''}`}>\n {state.modal && (\n <div class=\"hemfixarna_infomodal\">\n {state.modal.title && <h2>{state.modal.title}</h2>}\n <p innerHTML={state.modal.text}></p>\n <div>\n <button onClick={() => (state.modal = null)}>Stäng</button>\n </div>\n </div>\n )}\n {state.showSourcePasswordPrompt ? (\n <div class=\"hemfixarna_source--pw hemfixarna_infomodal\">\n <form\n onSubmit={e => {\n e.preventDefault();\n this.handleLogin();\n }}\n >\n <input type=\"password\" placeholder=\"Lösenord\" />\n <input type=\"submit\" value=\"Logga in\" />\n {this.loginSourceError && <span>Fel lösenord</span>}\n </form>\n </div>\n ) : null}\n {state.customer && <hemfixarna-breadcrumbs closeModal={() => this.closeModal()} />}\n <div class={`hemfixarna_content hemfixarna_content--${state.step} ${state.step === 4 && state.maleri ? 'hemfixarna_content--painting' : ''}`}>\n {state.step < 4 && <hemfixarna-start />}\n {/* // IF SELECTED PRODUCT (step 4) */}\n {state.step === 4 && <hemfixarna-product />}\n {/* // IF CHECKOUT (step 5) */}\n {state.step === 5 && <hemfixarna-cart />}\n {/* // IF ORDER CONFIRM (step 6) */}\n {state.step === 6 && <hemfixarna-order />}\n </div>\n </div>\n <div class={`hemfixarna_backdrop ${this.showModal ? 'hemfixarna_backdrop--open' : ''}`}></div>\n </div>\n )}\n </div>\n );\n }\n}\n"],"version":3}
|
@@ -1,2 +1,163 @@
|
|
1
|
-
import{
|
1
|
+
import { B as BUILD, c as consoleDevInfo, p as plt, w as win, H, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-2ce8b901.js';
|
2
|
+
export { s as setNonce } from './index-2ce8b901.js';
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
4
|
+
|
5
|
+
/*
|
6
|
+
Stencil Client Patch Browser v3.4.2 | MIT Licensed | https://stenciljs.com
|
7
|
+
*/
|
8
|
+
/**
|
9
|
+
* Helper method for querying a `meta` tag that contains a nonce value
|
10
|
+
* out of a DOM's head.
|
11
|
+
*
|
12
|
+
* @param doc The DOM containing the `head` to query against
|
13
|
+
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
14
|
+
* exists or the tag has no content.
|
15
|
+
*/
|
16
|
+
function queryNonceMetaTagContent(doc) {
|
17
|
+
var _a, _b, _c;
|
18
|
+
return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
|
19
|
+
}
|
20
|
+
// TODO(STENCIL-661): Remove code related to the dynamic import shim
|
21
|
+
const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
|
22
|
+
const patchBrowser = () => {
|
23
|
+
// NOTE!! This fn cannot use async/await!
|
24
|
+
if (BUILD.isDev && !BUILD.isTesting) {
|
25
|
+
consoleDevInfo('Running in development mode.');
|
26
|
+
}
|
27
|
+
// TODO(STENCIL-659): Remove code implementing the CSS variable shim
|
28
|
+
if (BUILD.cssVarShim) {
|
29
|
+
// shim css vars
|
30
|
+
// TODO(STENCIL-659): Remove code implementing the CSS variable shim
|
31
|
+
plt.$cssShim$ = win.__cssshim;
|
32
|
+
}
|
33
|
+
if (BUILD.cloneNodeFix) {
|
34
|
+
// opted-in to polyfill cloneNode() for slot polyfilled components
|
35
|
+
patchCloneNodeFix(H.prototype);
|
36
|
+
}
|
37
|
+
if (BUILD.profile && !performance.mark) {
|
38
|
+
// not all browsers support performance.mark/measure (Safari 10)
|
39
|
+
// because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,
|
40
|
+
// simply stub the implementations out.
|
41
|
+
// TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)
|
42
|
+
// @ts-ignore
|
43
|
+
performance.mark = performance.measure = () => {
|
44
|
+
/*noop*/
|
45
|
+
};
|
46
|
+
performance.getEntriesByName = () => [];
|
47
|
+
}
|
48
|
+
// @ts-ignore
|
49
|
+
const scriptElm =
|
50
|
+
// TODO(STENCIL-661): Remove code related to the dynamic import shim
|
51
|
+
// TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
|
52
|
+
BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
|
53
|
+
? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
|
54
|
+
s.getAttribute('data-stencil-namespace') === NAMESPACE)
|
55
|
+
: null;
|
56
|
+
const importMeta = import.meta.url;
|
57
|
+
const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};
|
58
|
+
// TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
|
59
|
+
if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
|
60
|
+
// Safari < v11 support: This IF is true if it's Safari below v11.
|
61
|
+
// This fn cannot use async/await since Safari didn't support it until v11,
|
62
|
+
// however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
|
63
|
+
// so both the ESM file and nomodule file would get downloaded. Only Safari
|
64
|
+
// has 'onbeforeload' in the script, and "history.scrollRestoration" was added
|
65
|
+
// to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
|
66
|
+
// IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
|
67
|
+
return {
|
68
|
+
then() {
|
69
|
+
/* promise noop */
|
70
|
+
},
|
71
|
+
};
|
72
|
+
}
|
73
|
+
// TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
|
74
|
+
if (!BUILD.safari10 && importMeta !== '') {
|
75
|
+
opts.resourcesUrl = new URL('.', importMeta).href;
|
76
|
+
// TODO(STENCIL-661): Remove code related to the dynamic import shim
|
77
|
+
// TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
|
78
|
+
}
|
79
|
+
else if (BUILD.dynamicImportShim || BUILD.safari10) {
|
80
|
+
opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
|
81
|
+
// TODO(STENCIL-661): Remove code related to the dynamic import shim
|
82
|
+
if (BUILD.dynamicImportShim) {
|
83
|
+
patchDynamicImport(opts.resourcesUrl, scriptElm);
|
84
|
+
}
|
85
|
+
// TODO(STENCIL-661): Remove code related to the dynamic import shim
|
86
|
+
if (BUILD.dynamicImportShim && !win.customElements) {
|
87
|
+
// module support, but no custom elements support (Old Edge)
|
88
|
+
// @ts-ignore
|
89
|
+
return import(/* webpackChunkName: "polyfills-dom" */ './dom-8de30773.js').then(() => opts);
|
90
|
+
}
|
91
|
+
}
|
92
|
+
return promiseResolve(opts);
|
93
|
+
};
|
94
|
+
// TODO(STENCIL-661): Remove code related to the dynamic import shim
|
95
|
+
const patchDynamicImport = (base, orgScriptElm) => {
|
96
|
+
const importFunctionName = getDynamicImportFunction(NAMESPACE);
|
97
|
+
try {
|
98
|
+
// test if this browser supports dynamic imports
|
99
|
+
// There is a caching issue in V8, that breaks using import() in Function
|
100
|
+
// By generating a random string, we can workaround it
|
101
|
+
// Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
|
102
|
+
win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
|
103
|
+
}
|
104
|
+
catch (e) {
|
105
|
+
// this shim is specifically for browsers that do support "esm" imports
|
106
|
+
// however, they do NOT support "dynamic" imports
|
107
|
+
// basically this code is for old Edge, v18 and below
|
108
|
+
const moduleMap = new Map();
|
109
|
+
win[importFunctionName] = (src) => {
|
110
|
+
var _a;
|
111
|
+
const url = new URL(src, base).href;
|
112
|
+
let mod = moduleMap.get(url);
|
113
|
+
if (!mod) {
|
114
|
+
const script = doc.createElement('script');
|
115
|
+
script.type = 'module';
|
116
|
+
script.crossOrigin = orgScriptElm.crossOrigin;
|
117
|
+
script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
|
118
|
+
type: 'application/javascript',
|
119
|
+
}));
|
120
|
+
// Apply CSP nonce to the script tag if it exists
|
121
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
122
|
+
if (nonce != null) {
|
123
|
+
script.setAttribute('nonce', nonce);
|
124
|
+
}
|
125
|
+
mod = new Promise((resolve) => {
|
126
|
+
script.onload = () => {
|
127
|
+
resolve(win[importFunctionName].m);
|
128
|
+
script.remove();
|
129
|
+
};
|
130
|
+
});
|
131
|
+
moduleMap.set(url, mod);
|
132
|
+
doc.head.appendChild(script);
|
133
|
+
}
|
134
|
+
return mod;
|
135
|
+
};
|
136
|
+
}
|
137
|
+
};
|
138
|
+
const patchCloneNodeFix = (HTMLElementPrototype) => {
|
139
|
+
const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
|
140
|
+
HTMLElementPrototype.cloneNode = function (deep) {
|
141
|
+
if (this.nodeName === 'TEMPLATE') {
|
142
|
+
return nativeCloneNodeFn.call(this, deep);
|
143
|
+
}
|
144
|
+
const clonedNode = nativeCloneNodeFn.call(this, false);
|
145
|
+
const srcChildNodes = this.childNodes;
|
146
|
+
if (deep) {
|
147
|
+
for (let i = 0; i < srcChildNodes.length; i++) {
|
148
|
+
// Node.ATTRIBUTE_NODE === 2, and checking because IE11
|
149
|
+
if (srcChildNodes[i].nodeType !== 2) {
|
150
|
+
clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
return clonedNode;
|
155
|
+
};
|
156
|
+
};
|
157
|
+
|
158
|
+
patchBrowser().then(options => {
|
159
|
+
globalScripts();
|
160
|
+
return bootstrapLazy([["hemfixarna-cart",[[0,"hemfixarna-cart"]]],["hemfixarna-order",[[0,"hemfixarna-order"]]],["hemfixarna-product",[[0,"hemfixarna-product",{"amount":[32],"hideDescription":[32]}]]],["hemfixarna-start",[[0,"hemfixarna-start",{"tree":[16],"slug":[1]}]]],["hemfixarna-breadcrumbs",[[0,"hemfixarna-breadcrumbs",{"closeModal":[16]}]]],["hemfixarna-checkout",[[0,"hemfixarna-checkout",{"date":[32],"dateError":[32],"generalError":[32],"loading":[32],"enteredPin":[32],"selectedSubSource":[32],"partnerOrderId":[32],"sellerID":[32],"RefferalID":[32]}]]],["hemfixarna-contact",[[0,"hemfixarna-contact",{"vertical":[4]}]]],["hemfixarna-invoice",[[0,"hemfixarna-invoice",{"formError":[32],"displayImages":[32],"formImages":[32],"formState":[32]}]]],["hemfixarna-address",[[0,"hemfixarna-address",{"street":[32],"streetError":[32],"zip":[32],"zipError":[32],"town":[32],"townError":[32]}]]],["hemfixarna-getuser",[[0,"hemfixarna-getuser",{"email":[32],"emailError":[32],"phone":[32],"phoneError":[32],"ssn":[32],"ssnError":[32]}]]],["hemfixarna-orderrows",[[0,"hemfixarna-orderrows",{"cart":[4]}]]],["hemfixarna-box",[[0,"hemfixarna-box",{"post":[16],"category":[16],"icon":[1],"postTitle":[1,"post-title"]}]]],["hemfixarna-info",[[0,"hemfixarna-info"]]],["hemfixarna-component",[[1,"hemfixarna-component",{"id":[1],"slug":[1],"business":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"modal":[32],"showModal":[32],"product":[32],"proppedProduct":[32],"loginSourceError":[32]},[[0,"click","handleClick"]]]]],["hemfixarna-byggmax",[[1,"hemfixarna-byggmax",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"],"slug":[1]}]]],["hemfixarna-demo",[[1,"hemfixarna-demo",{"selectedSlug":[32],"selectedID":[32],"tooltipText":[32],"tree":[32],"customer":[32],"widgetStyle":[32],"buttonBg":[32],"buttonColor":[32],"partner":[32],"colorAccessibility":[32],"loggedIn":[32],"loginError":[32]}]]],["hemfixarna-doro",[[1,"hemfixarna-doro",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-elfa",[[1,"hemfixarna-elfa",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-fargvaruhuset",[[1,"hemfixarna-fargvaruhuset",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-flyttsmart",[[1,"hemfixarna-flyttsmart",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-forebygg",[[1,"hemfixarna-forebygg",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-hornbach",[[1,"hemfixarna-hornbach",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-kbygg",[[1,"hemfixarna-kbygg",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-klint",[[1,"hemfixarna-klint",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-kund",[[1,"hemfixarna-kund",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-norrgavel",[[1,"hemfixarna-norrgavel",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-power",[[1,"hemfixarna-power",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-skanska",[[1,"hemfixarna-skanska",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-sparfonster",[[1,"hemfixarna-sparfonster",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-string-furniture",[[1,"hemfixarna-string-furniture",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-superfront",[[1,"hemfixarna-superfront",{"id":[1],"loadFromQuery":[1,"load-from-query"],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-tesla",[[1,"hemfixarna-tesla",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-traningspartner",[[1,"hemfixarna-traningspartner",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-zaptec",[[1,"hemfixarna-zaptec",{"id":[1],"widgetStyle":[1,"widget-style"],"buttonColor":[1,"button-color"],"buttonBg":[1,"button-bg"]}]]],["hemfixarna-category",[[0,"hemfixarna-category"]]],["hemfixarna-service",[[0,"hemfixarna-service"]]]], options);
|
161
|
+
});
|
162
|
+
|
2
163
|
//# sourceMappingURL=hemfixarna-components.esm.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","selectedSlug","selectedID","tooltipText","tree","customer","widgetStyle","buttonBg","buttonColor","partner","colorAccessibility","loggedIn","loginError","id","slug","business","modal","showModal","product","proppedProduct","loginSourceError","amount","hideDescription","closeModal","date","dateError","generalError","loading","enteredPin","selectedSubSource","partnerOrderId","sellerID","RefferalID","vertical","formError","displayImages","formImages","formState","street","streetError","zip","zipError","town","townError","email","emailError","phone","phoneError","ssn","ssnError","cart","post","category","icon","postTitle","loadFromQuery"],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.4.2 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n if (BUILD.cssVarShim) {\n // shim css vars\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = \n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"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KAAK,UAAU,EAAE;AAC1C,YAAY,OAAO,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACtD,SAAS;AACT,QAAQ,MAAM,UAAU,GAAG,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/D,QAAQ,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC;AAC9C,QAAQ,IAAI,IAAI,EAAE;AAClB,YAAY,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC3D;AACA,gBAAgB,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,EAAE;AACrD,oBAAoB,UAAU,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;AAC7E,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT,QAAQ,OAAO,UAAU,CAAC;AAC1B,KAAK,CAAC;AACN,CAAC;;ACrJD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAC/B,EAAE,aAAa,EAAE,CAAC;AAClB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.4.2 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n if (BUILD.cssVarShim) {\n // shim css vars\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = \n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
|
@@ -1,7 +1,9 @@
|
|
1
|
-
import { h } from '
|
2
|
-
import state from '
|
3
|
-
|
4
|
-
|
1
|
+
import { r as registerInstance, h } from './index-2ce8b901.js';
|
2
|
+
import { s as state } from './index-21ba2b05.js';
|
3
|
+
|
4
|
+
const HemfixarnaInfo = class {
|
5
|
+
constructor(hostRef) {
|
6
|
+
registerInstance(this, hostRef);
|
5
7
|
this.vertical = false;
|
6
8
|
}
|
7
9
|
render() {
|
@@ -11,28 +13,8 @@ export class HemfixarnaInfo {
|
|
11
13
|
}
|
12
14
|
}, class: "hemfixarna_source" }, state.selectSource ? (h("svg", { viewBox: "0 0 1024 1024", fill: "#C84E18", height: "1em", width: "1em" }, h("path", { d: "M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1156 0z" }))) : (h("svg", { viewBox: "0 0 1024 1024", fill: "#C84E18", height: "1em", width: "1em" }, h("path", { d: "M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1156 0zm152-237H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224z" }))))) : null, h("a", { href: "tel:0770-220 720" }, h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M7 4V20H17V4H7ZM6 2H18C18.5523 2 19 2.44772 19 3V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V3C5 2.44772 5.44772 2 6 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z", fill: "#C84E18" })), h("span", null, "0770-220 720")), h("a", { href: "https://hemfixarna.se/kundservice/", target: "_blank" }, h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { "clip-path": "url(#clip0_1001_894)" }, h("path", { d: "M21 12.22C21 6.73 16.74 3 12 3C7.31 3 3 6.65 3 12.28C2.4 12.62 2 13.26 2 14V16C2 17.1 2.9 18 4 18H5V11.9C5 8.03 8.13 4.9 12 4.9C15.87 4.9 19 8.03 19 11.9V19H11V21H19C20.1 21 21 20.1 21 19V17.78C21.59 17.47 22 16.86 22 16.14V13.84C22 13.14 21.59 12.53 21 12.22Z", fill: "#C84E18" }), h("path", { d: "M9 14C9.55228 14 10 13.5523 10 13C10 12.4477 9.55228 12 9 12C8.44772 12 8 12.4477 8 13C8 13.5523 8.44772 14 9 14Z", fill: "#C84E18" }), h("path", { d: "M15 14C15.5523 14 16 13.5523 16 13C16 12.4477 15.5523 12 15 12C14.4477 12 14 12.4477 14 13C14 13.5523 14.4477 14 15 14Z", fill: "#C84E18" }), h("path", { d: "M18 11.03C17.52 8.18 15.04 6 12.05 6C9.01997 6 5.75997 8.51 6.01997 12.45C8.48997 11.44 10.35 9.24 10.88 6.56C12.19 9.19 14.88 11 18 11.03Z", fill: "#C84E18" })), h("defs", null, h("clipPath", { id: "clip0_1001_894" }, h("rect", { width: "24", height: "24", fill: "white" })))), h("span", null, "Kundservice"))));
|
13
15
|
}
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
"mutable": false,
|
20
|
-
"complexType": {
|
21
|
-
"original": "boolean",
|
22
|
-
"resolved": "boolean",
|
23
|
-
"references": {}
|
24
|
-
},
|
25
|
-
"required": false,
|
26
|
-
"optional": true,
|
27
|
-
"docs": {
|
28
|
-
"tags": [],
|
29
|
-
"text": ""
|
30
|
-
},
|
31
|
-
"attribute": "vertical",
|
32
|
-
"reflect": false,
|
33
|
-
"defaultValue": "false"
|
34
|
-
}
|
35
|
-
};
|
36
|
-
}
|
37
|
-
}
|
38
|
-
//# sourceMappingURL=hemfixarna-contact.js.map
|
16
|
+
};
|
17
|
+
|
18
|
+
export { HemfixarnaInfo as hemfixarna_contact };
|
19
|
+
|
20
|
+
//# sourceMappingURL=hemfixarna-contact.entry.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"hemfixarna-contact.entry.esm.js","mappings":";;;MAOa,cAAc;;;oBACI,KAAK;;EAElC,MAAM;IACJ,QACE,WAAK,KAAK,EAAE,sBAAsB,IAAI,CAAC,QAAQ,GAAG,8BAA8B,GAAG,gCAAgC,EAAE,IAClH,KAAK,CAAC,QAAQ,CAAC,MAAM,IACpB,WACE,OAAO,EAAE;QACP,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE;UACvB,KAAK,CAAC,wBAAwB,GAAG,IAAI,CAAC;SACvC;OACF,EACD,KAAK,EAAC,mBAAmB,IAExB,KAAK,CAAC,YAAY,IACjB,WAAK,OAAO,EAAC,eAAe,EAAC,IAAI,EAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,IAClE,YAAM,CAAC,EAAC,mVAAmV,GAAG,CAC1V,KAEN,WAAK,OAAO,EAAC,eAAe,EAAC,IAAI,EAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,IAClE,YAAM,CAAC,EAAC,8TAA8T,GAAG,CACrU,CACP,CACG,IACJ,IAAI,EACR,SAAG,IAAI,EAAC,kBAAkB,IACxB,WAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,IAC5F,YACE,CAAC,EAAC,+PAA+P,EACjQ,IAAI,EAAC,SAAS,GACd,CACE,EACN,+BAAyB,CACvB,EACJ,SAAG,IAAI,EAAC,oCAAoC,EAAC,MAAM,EAAC,QAAQ,IAC1D,WAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,IAC5F,sBAAa,sBAAsB,IACjC,YACE,CAAC,EAAC,sQAAsQ,EACxQ,IAAI,EAAC,SAAS,GACd,EACF,YAAM,CAAC,EAAC,mHAAmH,EAAC,IAAI,EAAC,SAAS,GAAG,EAC7I,YAAM,CAAC,EAAC,yHAAyH,EAAC,IAAI,EAAC,SAAS,GAAG,EACnJ,YACE,CAAC,EAAC,6IAA6I,EAC/I,IAAI,EAAC,SAAS,GACd,CACA,EACJ,gBACE,gBAAU,EAAE,EAAC,gBAAgB,IAC3B,YAAM,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,GAAG,CACnC,CACN,CACH,EACN,8BAAwB,CACtB,CACA,EACN;GACH;;;;;","names":[],"sources":["./src/components/hemfixarna-contact/hemfixarna-contact.tsx"],"sourcesContent":["import { Component, Prop, h } from '@stencil/core';\nimport state from '../../store';\n\n@Component({\n tag: 'hemfixarna-contact',\n shadow: false,\n})\nexport class HemfixarnaInfo {\n @Prop() vertical?: boolean = false;\n\n render() {\n return (\n <div class={`hemfixarna_contact ${this.vertical ? 'hemfixarna_contact--vertical' : 'hemfixarna_contact--horizontal'}`}>\n {state.customer.source ? (\n <div\n onClick={() => {\n if (!state.selectSource) {\n state.showSourcePasswordPrompt = true;\n }\n }}\n class=\"hemfixarna_source\"\n >\n {state.selectSource ? (\n <svg viewBox=\"0 0 1024 1024\" fill=\"#C84E18\" height=\"1em\" width=\"1em\">\n <path d=\"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1156 0z\" />\n </svg>\n ) : (\n <svg viewBox=\"0 0 1024 1024\" fill=\"#C84E18\" height=\"1em\" width=\"1em\">\n <path d=\"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1156 0zm152-237H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224z\" />\n </svg>\n )}\n </div>\n ) : null}\n <a href=\"tel:0770-220 720\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M7 4V20H17V4H7ZM6 2H18C18.5523 2 19 2.44772 19 3V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V3C5 2.44772 5.44772 2 6 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z\"\n fill=\"#C84E18\"\n />\n </svg>\n <span>0770-220 720</span>\n </a>\n <a href=\"https://hemfixarna.se/kundservice/\" target=\"_blank\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clip-path=\"url(#clip0_1001_894)\">\n <path\n d=\"M21 12.22C21 6.73 16.74 3 12 3C7.31 3 3 6.65 3 12.28C2.4 12.62 2 13.26 2 14V16C2 17.1 2.9 18 4 18H5V11.9C5 8.03 8.13 4.9 12 4.9C15.87 4.9 19 8.03 19 11.9V19H11V21H19C20.1 21 21 20.1 21 19V17.78C21.59 17.47 22 16.86 22 16.14V13.84C22 13.14 21.59 12.53 21 12.22Z\"\n fill=\"#C84E18\"\n />\n <path d=\"M9 14C9.55228 14 10 13.5523 10 13C10 12.4477 9.55228 12 9 12C8.44772 12 8 12.4477 8 13C8 13.5523 8.44772 14 9 14Z\" fill=\"#C84E18\" />\n <path d=\"M15 14C15.5523 14 16 13.5523 16 13C16 12.4477 15.5523 12 15 12C14.4477 12 14 12.4477 14 13C14 13.5523 14.4477 14 15 14Z\" fill=\"#C84E18\" />\n <path\n d=\"M18 11.03C17.52 8.18 15.04 6 12.05 6C9.01997 6 5.75997 8.51 6.01997 12.45C8.48997 11.44 10.35 9.24 10.88 6.56C12.19 9.19 14.88 11 18 11.03Z\"\n fill=\"#C84E18\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_1001_894\">\n <rect width=\"24\" height=\"24\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n <span>Kundservice</span>\n </a>\n </div>\n );\n }\n}\n"],"version":3}
|
@@ -1,10 +1,14 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { getCustomer, loginCustomer } from '
|
4
|
-
import { getApiUrl } from '
|
5
|
-
import { isBusiness } from '
|
6
|
-
|
7
|
-
|
1
|
+
import { r as registerInstance, e as getAssetPath, h, F as Fragment } from './index-2ce8b901.js';
|
2
|
+
import { W as WidgetStyle, B as Business } from './index-c8ce6f4b.js';
|
3
|
+
import { g as getCustomer, l as loginCustomer } from './api-e3c51cb3.js';
|
4
|
+
import { g as getApiUrl } from './enviroment-fd0a763a.js';
|
5
|
+
import { i as isBusiness } from './types-6da209ae.js';
|
6
|
+
|
7
|
+
const hemfixarnaDemoCss = "@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap\"); :host{font-family:\"Inter\", sans-serif}:host .hemfixarna_widgetstyles label{cursor:pointer}:host .hemfixarna_widgetstyles>div{display:flex;gap:1rem}:host .hemfixarna_widgetstyles h5{margin:1rem 0}:host .hemfixarna_example{margin-bottom:16px;background:#000;padding:16px;color:#fff;display:flex;justify-content:space-between;cursor:pointer;max-width:500px;box-sizing:border-box;position:relative}:host .hemfixarna_example--tooltip{background:#000;top:-48px;font-size:16px;left:40%;color:white;padding:8px;position:absolute;opacity:0}:host .hemfixarna_example--tooltip::after{content:\"\";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#000 transparent transparent transparent}:host .hemfixarna_example:hover .hemfixarna_example--tooltip{opacity:1}:host .hemfixarna_example p{font-size:14px}:host .hemfixarna_example img{filter:invert(1)}:host .hemfixarna_install{display:grid;gap:8px;margin-top:16px}:host .hemfixarna_product--label{background:#e1e0f5}:host .hemfixarna_categories{max-height:100%;overflow:auto;position:relative}:host .hemfixarna_categories--label{display:flex;align-items:center;justify-content:space-between;padding:8px}:host .hemfixarna_categories--label button{background:#3f3a92;border:none;font-weight:600;padding:3.2px 9.6px;border-radius:10px;margin-right:8px;color:#ece8e8}:host .hemfixarna_categories--label button:active{transform:scale(0.95)}:host .hemfixarna_categories--label--big{font-weight:600;border-bottom:1px solid black}:host p{margin:0}:host span{color:darkolivegreen;font-size:10px}:host button{cursor:pointer}:host>div:not(.hemfixarna_hosted){grid-template-columns:1fr 1fr}:host .hemfixarna_hosted .hemfixarna_scripts{display:none}:host>div{display:grid;gap:32px;width:100%;height:100vh;place-items:center;overflow:hidden;padding:16px 32px;box-sizing:border-box}:host>div>*{width:100%}:host>div>div{max-width:500px}:host>div ul{margin:0;padding:0;list-style:none}:host>div ul ul{gap:1px;display:grid}:host>div ul li{padding-left:16px;background:#fff}";
|
8
|
+
|
9
|
+
const MyComponent = class {
|
10
|
+
constructor(hostRef) {
|
11
|
+
registerInstance(this, hostRef);
|
8
12
|
this.debounce = null;
|
9
13
|
this.cdnLink = '<script type="module" src="https://cdn.jsdelivr.net/npm//hemfixarna-web-components@latest/dist/hemfixarna-components/hemfixarna-components.esm.js"></script>';
|
10
14
|
this.selectedSlug = undefined;
|
@@ -156,42 +160,13 @@ export class MyComponent {
|
|
156
160
|
color: 'red',
|
157
161
|
} }, "No customer found"));
|
158
162
|
}
|
159
|
-
static get
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
};
|
170
|
-
}
|
171
|
-
static get states() {
|
172
|
-
return {
|
173
|
-
"selectedSlug": {},
|
174
|
-
"selectedID": {},
|
175
|
-
"tooltipText": {},
|
176
|
-
"tree": {},
|
177
|
-
"customer": {},
|
178
|
-
"widgetStyle": {},
|
179
|
-
"buttonBg": {},
|
180
|
-
"buttonColor": {},
|
181
|
-
"partner": {},
|
182
|
-
"colorAccessibility": {},
|
183
|
-
"loggedIn": {},
|
184
|
-
"loginError": {}
|
185
|
-
};
|
186
|
-
}
|
187
|
-
static get watchers() {
|
188
|
-
return [{
|
189
|
-
"propName": "buttonBg",
|
190
|
-
"methodName": "debouncedFunction"
|
191
|
-
}, {
|
192
|
-
"propName": "buttonColor",
|
193
|
-
"methodName": "debouncedFunction"
|
194
|
-
}];
|
195
|
-
}
|
196
|
-
}
|
197
|
-
//# sourceMappingURL=hemfixarna-demo.js.map
|
163
|
+
static get watchers() { return {
|
164
|
+
"buttonBg": ["debouncedFunction"],
|
165
|
+
"buttonColor": ["debouncedFunction"]
|
166
|
+
}; }
|
167
|
+
};
|
168
|
+
MyComponent.style = hemfixarnaDemoCss;
|
169
|
+
|
170
|
+
export { MyComponent as hemfixarna_demo };
|
171
|
+
|
172
|
+
//# sourceMappingURL=hemfixarna-demo.entry.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"hemfixarna-demo.entry.esm.js","mappings":";;;;;;AAAA,MAAM,iBAAiB,GAAG,+lEAA+lE;;MCmB5mE,WAAW;;;IAad,aAAQ,GAAY,IAAI,CAAC;IAmFjC,YAAO,GAAG,8JAA8J,CAAC;;;uBA7F1I,sBAAsB;gBACpB,IAAI;oBAC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AM,EAAE,MAAM;QACd,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,gBAAgB;QACxB,YAAY,EAAE,KAAK;QACnB,UAAU,EAAE,QAAQ;OACrB,IAED,aAAO,IAAI,EAAC,UAAU,EAAC,WAAW,EAAC,eAAU,GAAG,EAChD,cAAQ,IAAI,EAAC,QAAQ,eAAkB,EACtC,IAAI,CAAC,UAAU,IAAI,oCAAyB,CACxC,CACH,CACP,CACQ,KAEX,UACE,KAAK,EAAE;QACL,SAAS,EAAE,QAAQ;QACnB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,MAAM;QAChB,UAAU,EAAE,MAAM;QAClB,KAAK,EAAE,KAAK;OACb,wBAGE,CACN,CAAC;GACH;;;;;;;;;;","names":[],"sources":["./src/components/hemfixarna-demo/hemfixarna-demo.scss?tag=hemfixarna-demo&encapsulation=shadow","./src/components/hemfixarna-demo/hemfixarna-demo.tsx"],"sourcesContent":["@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');\n\n:host {\n font-family: 'Inter', sans-serif;\n\n .hemfixarna {\n &_widgetstyles {\n label {\n cursor: pointer;\n }\n > div {\n display: flex;\n gap: 1rem;\n }\n h5 {\n margin: 1rem 0;\n }\n }\n &_example {\n margin-bottom: 16px;\n background: #000;\n padding: 16px;\n color: #fff;\n display: flex;\n justify-content: space-between;\n cursor: pointer;\n max-width: 500px;\n box-sizing: border-box;\n position: relative;\n\n &--tooltip {\n background: #000;\n top: -48px;\n font-size: 16px;\n left: 40%;\n color: white;\n padding: 8px;\n position: absolute;\n opacity: 0;\n &::after {\n content: '';\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n border-color: #000 transparent transparent transparent;\n }\n }\n &:hover {\n .hemfixarna_example--tooltip {\n opacity: 1;\n }\n }\n p {\n font-size: 14px;\n }\n img {\n filter: invert(1);\n }\n }\n &_install {\n display: grid;\n gap: 8px;\n margin-top: 16px;\n }\n &_product--label {\n background: #e1e0f5;\n }\n &_categories {\n max-height: 100%;\n overflow: auto;\n position: relative;\n &--label {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 8px;\n button {\n background: #3f3a92;\n border: none;\n font-weight: 600;\n padding: 3.2px 9.6px;\n border-radius: 10px;\n margin-right: 8px;\n color: #ece8e8;\n &:active {\n transform: scale(0.95);\n }\n }\n &--big {\n font-weight: 600;\n border-bottom: 1px solid black;\n }\n }\n }\n }\n p {\n margin: 0;\n }\n span {\n color: darkolivegreen;\n font-size: 10px;\n }\n button {\n cursor: pointer;\n }\n > div:not(.hemfixarna_hosted) {\n grid-template-columns: 1fr 1fr;\n }\n .hemfixarna_hosted {\n .hemfixarna_scripts {\n display: none;\n }\n }\n > div {\n display: grid;\n gap: 32px;\n width: 100%;\n height: 100vh;\n place-items: center;\n overflow: hidden;\n padding: 16px 32px;\n box-sizing: border-box;\n > * {\n width: 100%;\n }\n > div {\n max-width: 500px;\n }\n ul {\n margin: 0;\n padding: 0;\n list-style: none;\n ul {\n gap: 1px;\n display: grid;\n }\n li {\n padding-left: 16px;\n background: #fff;\n }\n }\n }\n}\n","import { Component, Fragment, State, Watch, getAssetPath, h } from '@stencil/core';\nimport { Business, Category, Customer, WidgetStyle } from '../../types';\nimport { getCustomer, loginCustomer } from '../../utils/api';\nimport { getApiUrl } from '../../utils/enviroment';\nimport { isBusiness } from '../../utils/types';\n\ninterface ColorAccessibility {\n small: string;\n bold: string;\n large: string;\n overall: string;\n contrast: string;\n}\n\n@Component({\n tag: 'hemfixarna-demo',\n styleUrl: 'hemfixarna-demo.scss',\n shadow: true,\n})\nexport class MyComponent {\n @State() selectedSlug: string;\n @State() selectedID: string;\n @State() tooltipText: string = 'Kopiera till urklipp';\n @State() tree: Category | null = null;\n @State() customer: Customer | null = null;\n @State() widgetStyle: WidgetStyle = WidgetStyle.standard;\n @State() buttonBg: string = '';\n @State() buttonColor: string = '';\n @State() partner: Business | undefined = undefined;\n @State() colorAccessibility?: ColorAccessibility = undefined;\n @State() loggedIn: boolean = false;\n @State() loginError: boolean = false;\n private debounce?: number = null;\n\n @Watch('buttonBg')\n @Watch('buttonColor')\n debouncedFunction() {\n if (this.debounce !== null) {\n clearTimeout(this.debounce);\n this.debounce = null;\n }\n\n this.debounce = window.setTimeout(() => {\n this.checkColorAccessibility();\n this.debounce = null;\n }, 1500);\n }\n\n async checkColorAccessibility() {\n const defaultTextColor = '#fff';\n const defaultBgColor = '#c84e18';\n const firstColor = this.buttonBg.length ? (this.buttonBg.startsWith('#') ? this.buttonBg : `#${this.buttonBg}`) : defaultBgColor;\n const secondColor = this.buttonColor.length ? (this.buttonColor.startsWith('#') ? this.buttonColor : `#${this.buttonColor}`) : defaultTextColor;\n try {\n const response = await fetch('https://www.aremycolorsaccessible.com/api/are-they', {\n mode: 'cors',\n method: 'POST',\n body: JSON.stringify({ colors: [firstColor, secondColor] }),\n });\n\n if (!response) {\n throw new Error('Network response was not ok');\n }\n\n const json = await response.json();\n if (json && (json satisfies ColorAccessibility)) {\n this.colorAccessibility = json;\n }\n } catch (error) {\n console.warn('Error fetching color accessibility:', error);\n }\n }\n\n getColor(rating: string) {\n switch (rating) {\n case 'AAA':\n return 'green';\n case 'AA':\n return 'orange';\n case 'A':\n return 'yellow';\n case 'Fail':\n return 'red';\n default:\n return 'black';\n }\n }\n\n async componentWillLoad() {\n const partner = window.location.pathname.replace('/', '');\n if (!isBusiness(partner) && partner) return;\n this.partner = partner ? (partner as Business) : Business.kund;\n const customer = await getCustomer(this.partner);\n if (customer.code !== 'not_found' && customer) {\n this.customer = customer;\n if (!this.customer.password_protected || window.localStorage.getItem(`${this.customer.ID}-loggedin`)) {\n this.loggedIn = true;\n }\n }\n }\n\n getExample() {\n return `<hemfixarna-component business=\"${this.partner}\"${this.selectedSlug ? ` slug=\"${this.selectedSlug}\" ` : ''}${this.selectedID ? ` id=\"${this.selectedID}\" ` : ''} ${\n this.widgetStyle === WidgetStyle.standard ? '' : `widget-style=\"${this.widgetStyle}\"`\n } ${this.buttonColor.length ? `button-color=\"${this.buttonColor}\"` : ''} ${this.buttonBg.length ? `button-bg=\"${this.buttonBg}\"` : ''}></hemfixarna-component>`;\n }\n\n copyExample() {\n navigator.clipboard.writeText(this.getExample());\n this.tooltipText = 'Snippet kopierad';\n setTimeout(() => {\n this.tooltipText = 'Kopiera till urklipp';\n }, 2000);\n }\n\n cdnLink = '<script type=\"module\" src=\"https://cdn.jsdelivr.net/npm//hemfixarna-web-components@latest/dist/hemfixarna-components/hemfixarna-components.esm.js\"></script>';\n\n copyCdn() {\n navigator.clipboard.writeText(this.cdnLink);\n this.tooltipText = 'Text kopierad';\n setTimeout(() => {\n this.tooltipText = 'Kopiera till urklipp';\n }, 2000);\n }\n\n copyNpmInstall() {\n navigator.clipboard.writeText('npm i hemfixarna-web-components');\n this.tooltipText = 'Text kopierad';\n setTimeout(() => {\n this.tooltipText = 'Kopiera till urklipp';\n }, 2000);\n }\n\n showMaleri() {\n const allCategories = this.customer?.categories.map(c => (c.sub_categories ? c.sub_categories : c)).flat();\n return allCategories?.some(c => c.add_painting);\n }\n\n async handleLogin() {\n const shadowHost = document.querySelector('hemfixarna-demo');\n const shadowRoot = shadowHost.shadowRoot;\n const passwordInput = shadowRoot.querySelector('input[type=\"password\"]');\n const password = (passwordInput as HTMLInputElement).value;\n\n this.loginError = false;\n try {\n const status = await loginCustomer({ id: this.customer.ID, password: password });\n if (status === 200) {\n this.loggedIn = true;\n window.localStorage.setItem(`${this.customer.ID}-loggedin`, 'true');\n } else {\n this.loginError = true;\n }\n } catch (error) {\n console.log(error);\n this.loginError = true;\n }\n }\n\n render() {\n const copy = getAssetPath(`./assets/copy.png`);\n\n return this.customer ? (\n <Fragment>\n {this.loggedIn ? (\n <div class={this.customer?.at_hemfixarna ? 'hemfixarna_hosted' : ''}>\n <div class=\"hemfixarna_scripts\">\n <div onClick={() => this.copyExample()} class=\"hemfixarna_example\">\n <p>{this.getExample()}</p>\n <img src={copy} height={20} />\n <span class=\"hemfixarna_example--tooltip\">{this.tooltipText}</span>\n </div>\n <hemfixarna-component\n business={this.partner}\n buttonBg={this.buttonBg}\n buttonColor={this.buttonColor}\n widgetStyle={this.widgetStyle}\n id={this.selectedID}\n ></hemfixarna-component>\n <div class=\"hemfixarna_install\">\n <div onClick={() => this.copyCdn()} class=\"hemfixarna_example\">\n <p>{this.cdnLink}</p>\n <span class=\"hemfixarna_example--tooltip\">{this.tooltipText}</span>\n <img src={copy} height={20} />\n </div>\n </div>\n <div class=\"hemfixarna_widgetstyles\">\n <h5>Widget styles</h5>\n <div>\n {Object.values(WidgetStyle).map(style => (\n <label key={style}>\n <input type=\"radio\" value={style} checked={this.widgetStyle === style} onChange={() => (this.widgetStyle = style)} />\n {style}\n </label>\n ))}\n </div>\n <div>\n <div>\n <h5>Button background color</h5>\n <input type=\"text\" value={this.buttonBg} onInput={e => (this.buttonBg = (e.target as HTMLInputElement).value)} />\n </div>\n <div>\n <h5>Button text color</h5>\n <input type=\"text\" value={this.buttonColor} onInput={e => (this.buttonColor = (e.target as HTMLInputElement).value)} />\n </div>\n </div>\n </div>\n <span>Write an hexa code no # needed</span>\n {this.colorAccessibility ? (\n <div>\n <h5>Tillgänglighetsrapport</h5>\n <div>\n <strong>Liten text:</strong>\n <span style={{ color: this.getColor(this.colorAccessibility.small) }}>{this.colorAccessibility.small}</span>\n <br />\n <strong>Fet text:</strong>\n <span style={{ color: this.getColor(this.colorAccessibility.bold) }}>{this.colorAccessibility.bold}</span>\n <br />\n <strong>Stor text:</strong>\n <span style={{ color: this.getColor(this.colorAccessibility.large) }}>{this.colorAccessibility.large}</span>\n <br />\n <strong>Kontrastförhållande:</strong> {this.colorAccessibility.contrast}\n </div>\n </div>\n ) : null}\n </div>\n <ul class=\"hemfixarna_categories\">\n <div>\n {this.customer.logo ? (\n <div style={{ width: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ maxWidth: '250px', height: 'auto', margin: '0 auto 2rem' }} src={this.customer.logo.url} alt={this.customer.post_title} />\n </div>\n ) : null}\n {this.showMaleri() ? (\n <li>\n <div class=\"hemfixarna_categories--label hemfixarna_categories--label--big\">\n <div>\n <p>Måleriverktyget</p>\n <span>maleri</span>\n </div>\n <div>\n <button onClick={() => navigator.clipboard.writeText('maleri')}>Kopiera ID</button>\n {this.customer.at_hemfixarna ? (\n <button onClick={() => navigator.clipboard.writeText(`${getApiUrl()}/partner/${this.customer.post_name}?id=maleri`)}>Kopiera URL</button>\n ) : (\n <button onClick={() => (this.selectedID = 'maleri')}>Ladda måleri</button>\n )}\n </div>\n </div>\n </li>\n ) : null}\n {this.customer.categories.map(c => (\n <li>\n <div class=\"hemfixarna_categories--label hemfixarna_categories--label--big\">\n <div>\n <p>{c.name}</p>\n <span>{`c-${c.id}`}</span>\n </div>\n <div>\n <button onClick={() => navigator.clipboard.writeText(`c-${c.id}`)}>Kopiera ID</button>\n {this.customer.at_hemfixarna ? (\n <button onClick={() => navigator.clipboard.writeText(`${getApiUrl()}/partner/${this.customer.post_name}?id=c-${c.id}`)}>Kopiera URL</button>\n ) : (\n <button onClick={() => (this.selectedID = `c-${c.id}`)}>Ladda kategori</button>\n )}\n </div>\n </div>\n {c.show_products && c.products ? (\n <ul>\n {c.products.map(p => (\n <li>\n <div class=\"hemfixarna_categories--label hemfixarna_product--label\">\n <div>\n <p>{p.fields.title}</p>\n <span>{p.fields.ID}</span>\n </div>\n <div>\n <button onClick={() => navigator.clipboard.writeText(String(p.fields.ID))}>Kopiera ID</button>\n {this.customer.at_hemfixarna ? (\n <button onClick={() => navigator.clipboard.writeText(`${getApiUrl()}/partner/${this.customer.post_name}?id=${p.fields.ID}`)}>Kopiera URL</button>\n ) : (\n <button onClick={() => (this.selectedID = String(p.fields.ID))}>Ladda produkt</button>\n )}\n </div>\n </div>\n </li>\n ))}\n </ul>\n ) : (\n <ul>\n {c.sub_categories &&\n c.sub_categories.map(sc => (\n <li>\n <div class=\"hemfixarna_categories--label\">\n <div>\n <p>{sc.name}</p>\n <span>{`c-${sc.id}`}</span>\n </div>\n <div>\n <button onClick={() => navigator.clipboard.writeText(`c-${sc.id}`)}>Kopiera ID</button>\n {this.customer.at_hemfixarna ? (\n <button onClick={() => navigator.clipboard.writeText(`${getApiUrl()}/partner/${this.customer.post_name}?id=c-${c.id}`)}>Kopiera URL</button>\n ) : (\n <button onClick={() => (this.selectedID = `c-${sc.id}`)}>Ladda kategori</button>\n )}\n </div>\n </div>\n <ul>\n {sc.products.map(p => (\n <li>\n <div class=\"hemfixarna_categories--label hemfixarna_product--label\">\n <div>\n <p>{p.fields.title}</p>\n <span>{p.fields.ID}</span>\n </div>\n <div>\n <button onClick={() => navigator.clipboard.writeText(String(p.fields.ID))}>Kopiera ID</button>\n {this.customer.at_hemfixarna ? (\n <button onClick={() => navigator.clipboard.writeText(`${getApiUrl()}/partner/${this.customer.post_name}?id=${p.fields.ID}`)}>\n Kopiera URL\n </button>\n ) : (\n <button onClick={() => (this.selectedID = String(p.fields.ID))}>Ladda produkt</button>\n )}\n </div>\n </div>\n </li>\n ))}\n </ul>\n </li>\n ))}\n </ul>\n )}\n </li>\n ))}\n </div>\n </ul>\n </div>\n ) : (\n <div>\n <form\n onSubmit={e => {\n e.preventDefault();\n this.handleLogin();\n }}\n style={{\n display: 'flex',\n flexDirection: 'column',\n gap: '1rem',\n maxWidth: '300px',\n margin: 'auto',\n padding: '20px',\n border: '1px solid #ccc',\n borderRadius: '5px',\n gridColumn: 'span 2',\n }}\n >\n <input type=\"password\" placeholder=\"Lösenord\" />\n <button type=\"submit\">Logga in</button>\n {this.loginError && <span>Fel lösenord</span>}\n </form>\n </div>\n )}\n </Fragment>\n ) : (\n <h1\n style={{\n textAlign: 'center',\n margin: 'auto',\n padding: '20px',\n fontSize: '24px',\n fontWeight: 'bold',\n color: 'red',\n }}\n >\n No customer found\n </h1>\n );\n }\n}\n"],"version":3}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"hemfixarna-doro.entry.esm.js","mappings":";;;AAAA,MAAM,iBAAiB,GAAG,EAAE;;MCQf,WAAW;;;;uBAEc,WAAW,CAAC,QAAQ;;;;EAIxD,MAAM;IACJ,QACE,4BAAsB,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,GAAyB,EAC1K;GACH;;;;;;","names":[],"sources":["./src/components/customers/hemfixarna-doro/hemfixarna-doro.scss?tag=hemfixarna-doro&encapsulation=shadow","./src/components/customers/hemfixarna-doro/hemfixarna-doro.tsx"],"sourcesContent":["","import { Component, Prop, h } from '@stencil/core';\nimport { Business, WidgetStyle } from '../../../types';\n\n@Component({\n tag: 'hemfixarna-doro',\n styleUrl: 'hemfixarna-doro.scss',\n shadow: true,\n})\nexport class MyComponent {\n @Prop() id?: string;\n @Prop() widgetStyle?: WidgetStyle = WidgetStyle.standard;\n @Prop() buttonColor?: string;\n @Prop() buttonBg?: string;\n\n render() {\n return (\n <hemfixarna-component widgetStyle={this.widgetStyle} buttonBg={this.buttonBg} buttonColor={this.buttonColor} id={this.id} business={Business.doro}></hemfixarna-component>\n );\n }\n}\n"],"version":3}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"hemfixarna-elfa.entry.esm.js","mappings":";;;AAAA,MAAM,iBAAiB,GAAG,EAAE;;MCQf,WAAW;;;;uBAEc,WAAW,CAAC,QAAQ;;;;EAIxD,MAAM;IACJ,QACE,4BAAsB,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,GAAyB,EAC1K;GACH;;;;;;","names":[],"sources":["./src/components/customers/hemfixarna-elfa/hemfixarna-elfa.scss?tag=hemfixarna-elfa&encapsulation=shadow","./src/components/customers/hemfixarna-elfa/hemfixarna-elfa.tsx"],"sourcesContent":["","import { Component, Prop, h } from '@stencil/core';\nimport { Business, WidgetStyle } from '../../../types';\n\n@Component({\n tag: 'hemfixarna-elfa',\n styleUrl: 'hemfixarna-elfa.scss',\n shadow: true,\n})\nexport class MyComponent {\n @Prop() id?: string;\n @Prop() widgetStyle?: WidgetStyle = WidgetStyle.standard;\n @Prop() buttonColor?: string;\n @Prop() buttonBg?: string;\n\n render() {\n return (\n <hemfixarna-component widgetStyle={this.widgetStyle} buttonBg={this.buttonBg} buttonColor={this.buttonColor} id={this.id} business={Business.elfa}></hemfixarna-component>\n );\n }\n}\n"],"version":3}
|