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ert.svg","webpack://touchweb/./src/blueprint/theme/icons2/arrow-up.svg","webpack://touchweb/./src/blueprint/theme/icons2/bankid.svg","webpack://touchweb/./src/blueprint/theme/icons2/bookmark.svg","webpack://touchweb/./src/blueprint/theme/icons2/category-charity.svg","webpack://touchweb/./src/blueprint/theme/icons2/currency.svg","webpack://touchweb/./src/blueprint/theme/icons2/feedback.svg","webpack://touchweb/./src/blueprint/theme/icons2/filter.svg","webpack://touchweb/./src/blueprint/theme/icons2/info.svg","webpack://touchweb/./src/blueprint/theme/icons2/loading.svg","webpack://touchweb/./src/blueprint/theme/icons2/logout.svg","webpack://touchweb/./src/blueprint/theme/icons2/shield.svg","webpack://touchweb/./src/blueprint/theme/icons2/time.svg","webpack://touchweb/./src/blueprint/theme/logos/tradera_new.svg","webpack://touchweb/./src/blueprint/theme/logos/apple-pay.svg","webpack://touchweb/./src/blueprint/theme/logos/google-pay.svg","webpack://touchweb/./src/blueprint/theme/logos/klarna.svg?d2c7","webpack://touchweb/./src/blueprint/theme/logos/maestro_vertical.svg","webpack://touchweb/./src/blueprint/theme/logos/mastercard_vertical.svg","webpack://touchweb/./src/blueprint/theme/logos/paynova.svg","webpack://touchweb/./src/blueprint/theme/logos/paypal.svg?06df","webpack://touchweb/./src/blueprint/theme/logos/swish_horizontal.svg?2872","webpack://touchweb/./src/blueprint/theme/logos/tradera_new.svg?c713","webpack://touchweb/./src/blueprint/theme/logos/trustly.svg","webpack://touchweb/./src/blueprint/theme/logos/visa.svg","webpack://touchweb/./src/components/badge/badge.module.scss","webpack://touchweb/./src/components/bank-id/bank-id-body.module.scss","webpack://touchweb/./src/components/bank-id/bank-id-modal.module.scss","webpack://touchweb/./src/components/dialog/dialog-modal.module.scss","webpack://touchweb/./src/components/loader/loader.module.scss","webpack://touchweb/./src/components/scrollable-modal/header-with-image.module.scss","webpack://touchweb/./src/components/side-menu/side-menu.module.scss","webpack://touchweb/./src/components/site-width/site-width.module.scss","webpack://touchweb/./src/apps/syi/components/dropdown-field.tsx","webpack://touchweb/./src/apps/syi/components/option-field.tsx","webpack://touchweb/./src/apps/syi/constants.ts","webpack://touchweb/./src/apps/tradera/components/checkout-upsell/checkout-upsell-api.ts","webpack://touchweb/./src/apps/tradera/components/discover/helpers/search-gtm.js","webpack://touchweb/./src/apps/tradera/components/discover/hooks/use-site-layout.tsx","webpack://touchweb/./src/apps/tradera/helpers/optional-lang.js","webpack://touchweb/./src/apps/tradera/state/wish-list-nudge/reducer.ts","webpack://touchweb/./src/components/accordion/accordion.module.scss","webpack://touchweb/./src/components/accordion/accordion-next-level.module.scss","webpack://touchweb/./src/components/accordion/accordion-next-level.tsx","webpack://touchweb/./src/components/accordion/accordion.tsx","webpack://touchweb/./src/components/application-error-boundary/application-error-boundary.jsx","webpack://touchweb/./src/components/bank-id/bank-id-body.tsx","webpack://touchweb/./src/components/bank-id/bank-id-error-message.tsx","webpack://touchweb/./src/components/bank-id/bank-id-logo-color.tsx","webpack://touchweb/./src/components/bank-id/bank-id-modal.tsx","webpack://touchweb/./src/components/bank-id/footer-actions.tsx","webpack://touchweb/./src/components/bank-id/open-on-device-button.tsx","webpack://touchweb/./src/components/bank-id/state/bank-id/error-codes.ts","webpack://touchweb/./src/components/bank-id/state/bank-id/reducer.ts","webpack://touchweb/./src/components/bid-history/bid-history-api.ts","webpack://touchweb/./src/components/bid-history/bid-history-table.tsx","webpack://touchweb/./src/components/bottom-sheet/bottom-sheet.tsx","webpack://touchweb/./src/components/dialog/dialog-modal.tsx","webpack://touchweb/./src/components/form-controls/base-input-field/base-input-field.module.scss","webpack://touchweb/./src/components/form-controls/base-input-field/base-input-field.tsx","webpack://touchweb/./src/components/form-controls/base-input-wrapper/base-input-wrapper.tsx","webpack://touchweb/./src/components/form-controls/radio-switch/radio-switch.module.scss","webpack://touchweb/./src/components/form-controls/radio-switch/radio-switch.tsx","webpack://touchweb/./src/components/form-controls/text-box/text-box.module.scss","webpack://touchweb/./src/components/form-controls/text-box/text-box.tsx","webpack://touchweb/./src/components/form-controls/toggle-switch/toggle-switch.tsx","webpack://touchweb/./src/components/growth-book/growth-book.tsx","webpack://touchweb/./src/hooks/use-tw-growth-book.ts","webpack://touchweb/./src/components/image-lazy-load/image-lazy-load.tsx","webpack://touchweb/./src/components/image-lazy-load/image-loader.tsx","webpack://touchweb/./src/components/info-box/info-box.module.scss","webpack://touchweb/./src/components/info-box/info-box.tsx","webpack://touchweb/./src/components/messaging/firebase-api.ts","webpack://touchweb/./src/components/payment-method/payment-method-logo.tsx","webpack://touchweb/./src/components/referral-modal/services/referral-modal-api.ts","webpack://touchweb/./src/components/scrollable-modal/scrollable-modal-content.tsx","webpack://touchweb/./src/components/scrollable-modal/scrollable-modal.tsx","webpack://touchweb/./src/components/shipping/preferred-shipping-providers/preferred-shipping-providers-api.ts","webpack://touchweb/./src/components/underage/headphones-sneakers.svg","webpack://touchweb/./src/components/underage/underage.module.scss","webpack://touchweb/./src/components/underage/underage.tsx","webpack://touchweb/./src/constants/breakpoints.ts","webpack://touchweb/./src/constants/item-types.ts","webpack://touchweb/./src/constants/storage.ts","webpack://touchweb/./src/constants/url-hashes.ts","webpack://touchweb/./src/hooks/use-fetch-data.js","webpack://touchweb/./src/hooks/use-is-loggedin.ts","webpack://touchweb/./src/hooks/use-on-mount.js","webpack://touchweb/./src/hooks/use-scroll-into-view.ts","webpack://touchweb/./src/legacy/static/packages/debounce.ts","webpack://touchweb/./src/legacy/static/utils/environment.js","webpack://touchweb/./src/localization/map-currency-code-to-country-code.js","webpack://touchweb/./src/localization/map-language-code-to-language-key.js","webpack://touchweb/./src/localization/use-sek-price-formatter.ts","webpack://touchweb/./src/services/google-tagmanager/constants.ts","webpack://touchweb/./src/state/discover/reducer.ts","webpack://touchweb/./src/state/items/actions.ts","webpack://touchweb/./src/state/items/api.js","webpack://touchweb/./src/state/items/reducer.ts","webpack://touchweb/./src/state/items/selectors.ts","webpack://touchweb/./src/state/language/api.js","webpack://touchweb/./src/state/member-storage/actions.ts","webpack://touchweb/./src/state/member-storage/hooks.ts","webpack://touchweb/./src/state/personalisation/constants.ts","webpack://touchweb/./src/state/personalisation/recent-searches-cookies.ts","webpack://touchweb/./src/state/personalisation/reducer.ts","webpack://touchweb/./src/state/push-notifications/constants.ts","webpack://touchweb/./src/state/services/cart-api.ts","webpack://touchweb/./src/state/services/categories-api.ts","webpack://touchweb/./src/state/services/discover-api.ts","webpack://touchweb/./src/state/services/helpers/saved-searches-storage.ts","webpack://touchweb/./src/state/services/messaging-stats-api.ts","webpack://touchweb/./src/state/services/start-page-theme-api.ts","webpack://touchweb/./src/state/services/touchweb-search-api.ts","webpack://touchweb/./src/state/services/webapi-api.ts","webpack://touchweb/./src/state/services/wish-list-api.ts","webpack://touchweb/./src/state/shipping-region/actions.ts","webpack://touchweb/./src/state/shipping-region/reducer.ts","webpack://touchweb/./src/state/status/reducer.ts","webpack://touchweb/./src/utils/location.js","webpack://touchweb/./src/utils/login.ts","webpack://touchweb/./src/utils/script.ts","webpack://touchweb/./src/utils/share-link.js"],"sourcesContent":["function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 14.1 14.1\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.4 7l5.7 5.7-1.3 1.3L7 8.4l-5.7 5.7L0 12.8l5.7-5.7L0 1.3 1.3 0 7 5.7 12.7 0l1.4 1.3z\"\n})));","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 15 15\"\n}, props), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 1.6c.2.1.3.2.4.4l5.8 10c.3.5.1 1.1-.4 1.4-.2.1-.3.1-.5.1H1.7c-.6 0-1-.4-1-1 0-.2 0-.3.1-.5L6.6 2c.3-.5.9-.7 1.4-.4zm-.5.9l-5.8 10h11.5l-5.7-10zm0 7c.3 0 .5.2.5.5v1c0 .3-.2.5-.5.5S7 11.3 7 11v-1c0-.3.2-.5.5-.5zm0-4c.3 0 .5.2.5.5v2c0 .3-.2.5-.5.5S7 8.3 7 8V6c0-.3.2-.5.5-.5z\"\n})));","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 7.1L3.1 12l-1.4-1.4L8 4.2l6.4 6.4L13 12z\"\n})));","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"-367 247.5 106.8 100.8\"\n}, props), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M-333.3 300.2l4.4-28.1h-4.8c-2.2 0-5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9-2.1 3.1 0 4.6 1.9 4.1 5.1l-1.5 9.4h-5.6l1.2-7.8c.2-1.4-.2-2.1-1.3-2.1-.9 0-1.7.5-2.5 1.5l-1.3 8.3h-5.6l2.3-14.2zm18.7-4.2h5.6l-1.4 9.1 5.4-4.9h6.9l-6.9 6.1 5.5 8.2h-7.1l-4.3-6.6h-.1l-1 6.6h-5.6l3-18.5zm19.8 0h6.5l-2.9 18.4h-6.5l2.9-18.4zm9.6 0h9.2c7.1 0 9.2 5.2 8.5 9.5-.6 4.2-4 9-10.2 9h-10.3l2.8-18.5zm6 14.1c3.1 0 4.9-1.5 5.4-4.8.4-2.4-.4-4.8-3.8-4.8h-1.8l-1.5 9.7 1.7-.1z\"\n})));","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), /*#__PURE__*/React.createElement(\"path\", {\n clipRule: \"evenodd\",\n d: \"M3.1 1.1c.1 0 .3-.1.4-.1h9c.3 0 .5.2.5.5v13c0 .2-.1.4-.3.4-.2.1-.4.1-.5 0L8 12l-4.2 3h-.5c-.2-.1-.3-.3-.3-.5v-13c0-.1 0-.3.1-.4zM4 2v11.6L7.7 11c.2-.1.4-.1.6 0l3.7 2.6V2z\",\n fillRule: \"evenodd\"\n})));","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.5 9.9c.5-.2 1-.1 1.4.1s.6.7.7 1.1v.3c0 .5-.3 1-.7 1.3l-.1.1-5.7 2.7c-.5.3-1.1.3-1.7.2l-.2-.1-1.8-.7c-.2-.1-.5-.1-.8-.1h-.2l-1.3.4c-.3.1-.5-.1-.6-.3s0-.5.3-.6h.1l1.3-.4c.4-.1.9-.1 1.3 0l.2.1 1.8.7c.3.1.7.1 1 0l.1-.1 5.7-2.7c.2-.1.3-.2.3-.4v-.2c0-.2-.1-.3-.2-.4s-.3-.1-.4-.1h-.1l-3.3 1.3c-.3.1-.5 0-.7-.3s0-.5.3-.7h.1zM9 2.1c-.6-.4-1.1-.5-1.7-.4-1.1.2-1.8 1.1-1.8 2.3 0 1.4 1.1 2.8 3.1 4.1.2.1.5.1.7 0 2.1-1.3 3.1-2.7 3.1-4.1 0-1.2-.7-2.1-1.8-2.3-.5-.1-1.1 0-1.6.4zm1.5.6c.6.1 1 .6 1 1.3v.1c-.1.9-.8 2-2.4 3l-.1.1.2.1C7.4 6.2 6.5 5 6.5 4c0-.7.4-1.2 1-1.3.4-.1.9.1 1.1.4l.4.5.4-.5c.2-.4.7-.5 1.1-.4z\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.4 9.5c.2 0 .5 0 .7.1l.2.1 1.6.6c.4.2.8.5.9 1v.2c.1.5-.1 1-.5 1.3-.3.2-.8.3-1.2.2H8l-2.2-.6h-.1c-.3-.1-.5-.3-.4-.6s.3-.5.6-.4h.2l2.2.6c.2 0 .3 0 .5-.1.1-.1.1-.1.1-.2v-.2c0-.1-.1-.3-.2-.3h-.1L7 10.6c-.1 0-.3-.1-.4-.1H5.4l-3.8 1c-.3.1-.5-.1-.6-.4 0-.1.1-.4.3-.5h.1l3.8-1c.1 0 .3-.1.4-.1h.2z\"\n})));","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 3c.6 0 1 .4 1 1v8c0 .6-.4 1-1 1H1c-.6 0-1-.4-1-1V4c0-.6.4-1 1-1zM1 4v8h14V4zm7 1c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3zm0 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM3.5 5c.3 0 .5.2.5.5s-.2.5-.5.5h-1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5zm10 5c.3 0 .5.2.5.5s-.2.5-.5.5h-1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5zm0-5c.3 0 .5.2.5.5s-.2.5-.5.5h-1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5zm-10 5c.3 0 .5.2.5.5s-.2.5-.5.5h-1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5z\"\n})));","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 16 16\"\n}, props), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.93 7.45a1.32 1.32 0 00-.7-.19c-.32 0-.55.1-.7.2-.1.04-.2.17-.2.16-.1.12-.27.12-.37 0a.37.37 0 010-.44 1.39 1.39 0 01.34-.29c.21-.13.52-.25.93-.25a1.74 1.74 0 011.25.52l.01.01c.32.92.05.7-.56.28zM9.3 10.3c-.16.19 0 .04 0 0 .06.07.2.16.2.16.15.1.39.2.7.2.32 0 .56-.1.7-.2.09-.04.15-.11.21-.16a.22.22 0 01.36 0 .37.37 0 010 .44 1.39 1.39 0 01-.34.28 1.77 1.77 0 01-1.86 0 1.58 1.58 0 01-.32-.27l-.01-.01c-.23-.31.13-.72.36-.44zM3.89 5.62a.59.59 0 100-1.17.59.59 0 000 1.17zm4.82 3.66a.59.59 0 100-1.17.59.59 0 000 1.17zM6.57 5.62a.59.59 0 100-1.17.59.59 0 000 1.17zm4.87 3.66a.59.59 0 100-1.17.59.59 0 000 1.17z\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.6 9.56a3.92 3.92 0 11-7.83 0 3.92 3.92 0 017.84 0zm-3.91 4.75a4.75 4.75 0 100-9.5 4.75 4.75 0 000 9.5z\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.3 9.86v-.13l-.13.03a3.9 3.9 0 113-4.13l.02.13.12-.04a4.37 4.37 0 01.6-.17l.08-.02v-.09a4.72 4.72 0 10-3.75 5.14l.1-.02-.02-.09a4.54 4.54 0 01-.02-.61z\"\n})));","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), /*#__PURE__*/React.createElement(\"path\", {\n clipRule: \"evenodd\",\n d: \"M14.5 2.8c.2-.3 0-.8-.4-.8H1.9c-.4 0-.7.5-.4.8l4.8 6.8c.2.3.3.6.3.9v3.1c-.1.2.1.4.4.4h2c.3 0 .5-.2.5-.5v-3.1c0-.3.1-.6.3-.9zM14.1 1c1.2 0 1.9 1.4 1.2 2.4l-4.7 6.8c-.1.1-.1.2-.1.3v3.1c0 .8-.7 1.5-1.5 1.5H7c-.8 0-1.5-.7-1.5-1.5v-3.1c0-.1 0-.2-.1-.3L.6 3.4C0 2.4.7 1 1.9 1z\",\n fillRule: \"evenodd\"\n})));","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 16 16\"\n}, props), /*#__PURE__*/React.createElement(\"path\", {\n stroke: \"currentColor\",\n strokeLinecap: \"round\",\n strokeWidth: \"1.2\",\n d: \"M8 6.7v4.9\"\n}), /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"8\",\n cy: \"8\",\n r: \"7\",\n fill: \"none\",\n stroke: \"currentColor\"\n}), /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"8\",\n cy: \"4.5\",\n r: \".7\",\n fill: \"currentColor\"\n})));","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 16 16\"\n}, props), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.98 3.08a7 7 0 10-.06 9.9l-.77-.78a5.9 5.9 0 11.05-8.35l.78-.77z\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.47 1.96L11.1 4.21l2.5.5-.12-2.76z\"\n})));","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), /*#__PURE__*/React.createElement(\"path\", {\n clipRule: \"evenodd\",\n d: \"M6.8 1.1c-1.4 0-2.5 1.1-2.5 2.5v3.5h-2c-.3 0-.5.1-.5.5s.2.5.4.5h2v4.4c0 1.4 1.1 2.5 2.5 2.5h5c1.4 0 2.5-1.1 2.5-2.5V3.6c0-1.4-1.1-2.5-2.5-2.5zm-1.6 7v4.4c0 .9.5 1.6 1.3 1.6h5.2c.8 0 1.5-.7 1.5-1.6V3.6c0-.8-.6-1.5-1.5-1.5H6.6c-.8 0-1.3.7-1.3 1.5v3.5h3.6l-1-1.2c-.1-.3-.1-.7.2-.7.2-.1.6-.1.7.1l1.4 2c.1.2.1.4 0 .6l-1.4 2c-.1.2-.4.3-.7.1-.3-.1-.3-.4-.2-.8L8.8 8H5.2z\",\n fillRule: \"evenodd\"\n})));","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 .5C9.8 2.4 12.5 3 14.6 3c0 5.4-3 10.1-6.6 12.5C4.5 13.1 1.4 8.4 1.4 3 3.5 3 6.2 2.4 8 .5zm0 1.4l-.2.1a9.88 9.88 0 01-5 1.9l-.3.1v.1c.3 3.9 2.4 7.7 5.3 10l.2.2.2-.2c2.9-2.4 5-6.1 5.3-10V4h-.3c-1.9-.2-3.6-.8-5-1.9zm0 1.2v10l.2-.1c2.1-2 3.6-5 3.8-8.2v-.1h-.2a7.7 7.7 0 01-3.6-1.5z\"\n})));","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), /*#__PURE__*/React.createElement(\"path\", {\n clipRule: \"evenodd\",\n d: \"M1.5 8c0-3.6 2.9-6.5 6.5-6.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5S1.5 11.6 1.5 8zM8 .5a7.49 7.49 0 10-.02 14.98A7.49 7.49 0 008 .5zm0 4c0-.3-.2-.5-.5-.5s-.5.2-.5.5v4c0 .1.1.3.1.4s.3.1.4.1h3c.3 0 .5-.2.5-.5s-.2-.5-.5-.5H8z\",\n fillRule: \"evenodd\"\n})));","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 142 19\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.6 0c5.2 0 7.8 3 7.8 7 0 2.1-.9 3.8-2.5 5 1.3.2 2.3 1.1 2.3 2.4V19h-4.4v-4.6c0-.6-.5-1-1.3-1H25.3V19h-4.4V0zm81.8 0c5.2 0 7.8 3 7.8 7 0 2.1-.9 3.8-2.5 5 1.3.2 2.3 1.1 2.3 2.4V19h-4.4v-4.6c0-.6-.5-1-1.3-1H107.1V19h-4.4V0zM18.9 0v4.3h-7.2V19H7.2V4.3H0V0zm80.6 0v4.3H87.8v3h9.8v4h-9.8v3.5h11.7V19H83.4V0zM70.2 0c7.1 0 10.7 3.1 10.7 9.4 0 5.9-3.8 9.6-10.8 9.6h-7.6V0zm65.7 0l6.1 19h-4.5l-1.4-4.3h-8.6l-1.4 4.3h-4.5l6.1-19zM54.4 0l6.1 19H56l-1.4-4.3H46L44.6 19h-4.5l6.1-19zm15.7 4.3h-3.2v10.5h3.2c4.4 0 6.4-1.6 6.4-5.3 0-3.6-2-5.2-6.4-5.2zm62.7 0h-1.9l-2.1 6.5h6zm-81.6 0h-1.9l-2.1 6.5h6zm-20.6 0h-5.3v5.4h5.3c2.3 0 3.3-1 3.3-2.7 0-2-1.1-2.7-3.3-2.7zm81.8 0h-5.3v5.4h5.3c2.3 0 3.3-1 3.3-2.7 0-2-1.1-2.7-3.3-2.7zm28-4.3l.4 1 .4-1h.7v2.2h-.5V.5l-.4 1.1h-.4l-.5-1.2v1.7h-.4V0zm-1 0v.4h-.7v1.7h-.5V.4h-.7V0z\"\n})));","export default \"//static.tradera.net/touchweb/static/output/images/apple-pay.3451619b.svg\";","export default \"//static.tradera.net/touchweb/static/output/images/google-pay.5a4d9214.svg\";","export default \"//static.tradera.net/touchweb/static/output/images/klarna.72c8202f.svg\";","export default \"//static.tradera.net/touchweb/static/output/images/maestro_vertical.ea69c057.svg\";","export default \"//static.tradera.net/touchweb/static/output/images/mastercard_vertical.1a45709d.svg\";","export default \"//static.tradera.net/touchweb/static/output/images/paynova.25f6689b.svg\";","export default \"//static.tradera.net/touchweb/static/output/images/paypal.1891c35a.svg\";","export default \"//static.tradera.net/touchweb/static/output/images/swish_horizontal.2c6cf693.svg\";","export default \"//static.tradera.net/touchweb/static/output/images/tradera_new.96daad55.svg\";","export default \"//static.tradera.net/touchweb/static/output/images/trustly.a19a6b61.svg\";","export default \"//static.tradera.net/touchweb/static/output/images/visa.eab606d5.svg\";","// extracted by mini-css-extract-plugin\nexport default {\"badge\":\"badge--XSAZi\",\"compact\":\"compact--jJezX\",\"round\":\"round--uQbv7\",\"fluid\":\"fluid--h24_U\",\"rounded\":\"rounded--S3zh3\",\"branded\":\"branded--zI15Q\",\"primary\":\"primary--UIubD\",\"secondary\":\"secondary--d2fLl\",\"success\":\"success--k9Le2\",\"warning\":\"warning--SNZhd\",\"danger\":\"danger--O5qz1\",\"dark\":\"dark--sDbFN\",\"function\":\"function--FbYDr\",\"info\":\"info--Ba2Jk\",\"light\":\"light--snV1O\",\"white\":\"white--xXUYS\",\"gray-100\":\"gray-100--xW46r\",\"gray100\":\"gray-100--xW46r\",\"gray-200\":\"gray-200--Hd4pd\",\"gray200\":\"gray-200--Hd4pd\",\"gray-300\":\"gray-300--wG8EJ\",\"gray300\":\"gray-300--wG8EJ\",\"gray-400\":\"gray-400--dzfkG\",\"gray400\":\"gray-400--dzfkG\",\"gray-500\":\"gray-500--aAqe_\",\"gray500\":\"gray-500--aAqe_\",\"gray-600\":\"gray-600--vxwBH\",\"gray600\":\"gray-600--vxwBH\",\"gray-700\":\"gray-700--wTWOV\",\"gray700\":\"gray-700--wTWOV\",\"gray-800\":\"gray-800--q3IAb\",\"gray800\":\"gray-800--q3IAb\",\"gray-900\":\"gray-900--Z7beg\",\"gray900\":\"gray-900--Z7beg\"};","// extracted by mini-css-extract-plugin\nexport default {\"qrCode\":\"qrCode--RTDTu\"};","// extracted by mini-css-extract-plugin\nexport default {\"bankIdLogo\":\"bankIdLogo--kM1WY\",\"inProgress\":\"inProgress--CSZzB\",\"minHeight\":\"minHeight--YIxKy\"};","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"overlay--oPnuk\",\"content\":\"content--RfzmQ\",\"onTop\":\"onTop--zLYcS\",\"mobile-alert\":\"mobile-alert--UZTYG\",\"mobileAlert\":\"mobile-alert--UZTYG\",\"mobile-fullscreen\":\"mobile-fullscreen--Lkyhh\",\"mobileFullscreen\":\"mobile-fullscreen--Lkyhh\"};","// extracted by mini-css-extract-plugin\nexport default {\"local\":\"local--JvhpI\",\"visible\":\"visible--cJX_h\"};","// extracted by mini-css-extract-plugin\nexport default {\"close-btn\":\"close-btn--eE4IO\",\"closeBtn\":\"close-btn--eE4IO\",\"header\":\"header--a00HO\",\"header-tall\":\"header-tall--vZD5a\",\"headerTall\":\"header-tall--vZD5a\",\"header-content\":\"header-content--Q5qxw\",\"headerContent\":\"header-content--Q5qxw\",\"header-image\":\"header-image--Y5PkO\",\"headerImage\":\"header-image--Y5PkO\",\"header-image-overlay\":\"header-image-overlay--NOS_b\",\"headerImageOverlay\":\"header-image-overlay--NOS_b\"};","// extracted by mini-css-extract-plugin\nexport default {\"side-menu\":\"side-menu--fXt2W\",\"sideMenu\":\"side-menu--fXt2W\",\"side-menu__from-right\":\"side-menu__from-right--EV2YC\",\"sideMenuFromRight\":\"side-menu__from-right--EV2YC\"};","// extracted by mini-css-extract-plugin\nexport default {\"wrapper\":\"wrapper--zKBIn\",\"fullWidth\":\"fullWidth--u0gor\",\"narrow\":\"narrow--mddaH\",\"extra-narrow\":\"extra-narrow--cfIHh\",\"extraNarrow\":\"extra-narrow--cfIHh\"};","import {\n DropdownMenuTrigger,\n useDropdownMenuContext,\n DropdownMenuItem,\n type DropdownMenuItemProps\n} from 'tradera/components/dropdown-menu/dropdown-menu';\nimport CheckIcon from 'tradera/blueprint/theme/icons2/check.svg?jsx';\n\nimport { OptionField, type OptionFieldProps } from './option-field';\nimport { classNames } from 'tradera/utils/class-names';\n\nexport type DropdownFieldProps = Omit;\n\nexport const DropdownField = ({\n title,\n valueText,\n wrapperClass,\n placeholder,\n disabled,\n error,\n truncateValueLeft = false,\n bottomBorder = true,\n ...props\n}: DropdownFieldProps) => {\n const { isOpen } = useDropdownMenuContext();\n\n return (\n \n \n \n );\n};\n\ntype DropdownMenuItemSelectableProps = {\n text: string;\n before?: React.ReactNode;\n selected?: boolean;\n} & Omit;\n\n// KATS: this can probably be removed since DropdownMenuItem has an\n// isSelected prop which basically does the same thing\n/**\n * @deprecated use DropdownMenuItem with isSelected prop instead\n */\nexport const DropdownMenuItemSelectable = ({\n text,\n before,\n selected = false,\n ...props\n}: DropdownMenuItemSelectableProps) => {\n return (\n \n {before}\n \n {text}\n \n {selected && }\n \n );\n};\n","import { classNames } from 'tradera/utils/class-names';\nimport { Space } from 'tradera/components/atoms/space/space';\nimport { Text } from 'tradera/components/atoms/text/text';\nimport { DropdownIcon } from 'tradera/components/dropdown-button/dropdown-button';\nimport type React from 'react';\nimport { forwardRef, useEffect, useRef } from 'react';\nimport AlertIcon from '@tradera/blueprint/theme/icons2/alert.svg?jsx';\nimport styles from './option-field.module.scss';\n\nexport type OptionFieldProps = {\n title: string;\n icon?: React.ReactNode;\n valueText?: string | null;\n wrapperClass?: string;\n placeholder: string;\n isOpen: boolean;\n disabled?: boolean;\n error?: boolean | string;\n truncateValueLeft?: boolean;\n bottomBorder?: boolean;\n} & React.HTMLAttributes;\n\nexport const OptionField = forwardRef<\n React.ElementRef<'div'>,\n OptionFieldProps\n>(\n (\n {\n title,\n icon,\n valueText,\n wrapperClass,\n placeholder,\n isOpen,\n disabled,\n error,\n children,\n truncateValueLeft = false,\n bottomBorder = true,\n ...props\n },\n ref\n ) => {\n const valueRef = useRef(null);\n\n useEffect(() => {\n const element = valueRef.current;\n // we're trying to find out if the label text should be truncated or not\n if (truncateValueLeft && element) {\n // the truncate class affect the result so we need to remove it.\n element.classList.remove(styles.truncateLeft);\n if (element.scrollWidth > element.clientWidth) {\n element.classList.add(styles.truncateLeft);\n }\n }\n }, [truncateValueLeft, valueText]);\n\n return (\n \n \n {title}\n \n {icon && icon}\n {error ? (\n \n \n {typeof error === 'boolean'\n ? valueText || placeholder\n : error}\n \n ) : valueText ? (\n \n {valueText}\n \n ) : (\n \n {placeholder}\n \n )}\n \n \n );\n }\n);\nOptionField.displayName = 'OptionField';\n","export const REDIRECT_TO_NEWDRAFT_QUERY = 'redirectToNewIfNoDrafts';\n","import { createApi } from '@reduxjs/toolkit/query/react';\nimport type {\n MoreItemsForCombinedShippingApiResponse,\n MoreItemsFromSellerForCombinedShippingApiRequest\n} from 'tradera/state/services/types/webapi-discover-generated';\n\nimport { isomorphicWebApiBaseQuery } from 'tradera/state/services/utils/webapi-base-query';\n\nexport const checkoutUpsellApi = createApi({\n reducerPath: 'checkoutUpsellApi',\n baseQuery: isomorphicWebApiBaseQuery,\n endpoints: (builder) => ({\n getCombinedShippingFromSeller: builder.query<\n MoreItemsForCombinedShippingApiResponse,\n MoreItemsFromSellerForCombinedShippingApiRequest\n >({\n query: (payload) => ({\n url: '/api/webapi/discover/web/more-items/for-combined-shipping-from-seller',\n method: 'POST',\n body: payload\n })\n })\n })\n});\n\nexport const { useGetCombinedShippingFromSellerQuery } = checkoutUpsellApi;\n","/**\n * This is a helper class for sending google analytics events for the search experience\n * This is a wrapper for the GtmService. Do not call GTM or GA directly but use the GtmService.\n * Events tracked by this file set all GA categories to \"Search\" to namespace events\n */\nimport { GtmService } from 'tradera/services/google-tagmanager/google-tagmanager-service';\n\nconst GA_EVENT_SEARCH_CATEGORY = 'Search';\nexport const GA_EVENT_SAVE_SEARCH = 'Saved Search';\nexport const GA_EVENT_SAVE_SEARCH_MODAL = 'Save search modal';\nexport const GA_EVENT_SAVE_SEARCH_RELATED = 'Save search related';\nexport const GA_EVENT_SAVE_SEARCH_STICKY = 'Save search sticky';\nexport const GA_EVENT_SAVE_SEARCH_BANNER = 'Save search banner';\n\nconst filterNameMappings = {\n itemCondition: 'Condition',\n itemType: 'Ad Format',\n sellerType: 'Seller Type',\n county: 'Geo - Selected',\n countyBox: 'Geo',\n itemStatus: 'Item Status',\n shoeTypes: 'Type',\n subDepartments: 'Department',\n shoeSizes: 'Size',\n brandTags: 'Brand',\n sortBy: 'Sorting',\n price: 'Price',\n Layout: 'Layout'\n};\n\n/**\n * Generic action tracker for things that happen in the Search.\n * @param {string} action\n * @param {string} label\n */\nexport const trackAction = (action, label) => {\n GtmService.trackAction(GA_EVENT_SEARCH_CATEGORY, action, label);\n};\n\nconst getFilterLabel = (key) => {\n if (key in filterNameMappings) {\n return filterNameMappings[key];\n } else {\n return key;\n }\n};\n\n/**\n * translates the tech names of the filters to ga friendly names. to see the techie names a filter has\n * see the URL paramters on a search or a browse page.\n * @param {string | string[]} filter the name of the filter\n * @param {string | undefined} value the value the filter gets\n */\nexport const trackFilter = (filter, value) => {\n const action = getFilterLabel(filter);\n trackAction(`Filter ${action}`, value);\n};\n\nexport const trackButton = (label) => {\n trackAction('Button', label);\n};\n\nexport const trackLink = (action, label) => {\n trackAction(`Link - ${action}`, label);\n};\n\nexport const trackPriceFilter = (fromPrice, toPrice) => {\n // get a label that represents the current selected value\n const lbl = [];\n if (fromPrice !== '1' && typeof fromPrice !== 'undefined') {\n lbl.push('Min set');\n }\n if (typeof toPrice !== 'undefined') {\n lbl.push('Max set');\n }\n if (lbl.length === 0) {\n lbl.push('All');\n }\n trackAction(`Filter Price`, lbl.join(' and '));\n};\n\n/**\n * Tracks to google tag manager that a new search was made\n * @param {object} searchResults data returned fromm ajax when doing a search or browsing.\n * Note: needs to be the normalized version.\n */\nexport const trackNewSearch = (categoryPath, itemIds, metaTitle) => {\n if (typeof categoryPath === 'undefined' || categoryPath.length === 0) {\n return;\n }\n\n const reverseCategoryPath = categoryPath\n .filter((c) => c.id > 0)\n .map((c) => c.name)\n .reverse();\n\n GtmService.trackGtmEvent('viewCategory', {\n category: reverseCategoryPath.join(' > ')\n });\n\n GtmService.push({\n 'page.content-group-2': reverseCategoryPath.slice(0, 3).join(' > '),\n categoryId: categoryPath.length > 0 ? categoryPath[0].id : null\n });\n\n if (itemIds && itemIds.length >= 3) {\n GtmService.trackGtmEvent('viewItems', {\n itemIds: itemIds.slice(0, 3),\n keywords: categoryPath[0].name\n });\n }\n\n GtmService.push({\n ga_page_title: metaTitle\n });\n};\n\nexport const trackCategoryClick = (category, searchTerm) => {\n GtmService.trackGA4('search_category_click', {\n category_name: category.name,\n category_id: category.id,\n search_term: searchTerm\n });\n};\n\nexport const trackFilterClick = (filterParameter, searchTerm) => {\n GtmService.trackGA4('search_filter_click', {\n filter_name: filterParameter,\n search_term: searchTerm\n });\n};\n\nexport const trackFilterSelect = (filterType, value, searchTerm) => {\n GtmService.trackGA4('search_filter_select', {\n filter_name: filterType,\n filter_selection: value,\n search_term: searchTerm\n });\n};\n","import { DEFAULT_COOKIES } from 'tradera/constants/cookies';\nimport type { SITE_LAYOUT } from 'tradera/constants/ui';\nimport { useMemberServerStorageWithCookieFallbackString } from 'tradera/state/member-storage/hooks';\n\nexport const useSiteLayout = () =>\n useMemberServerStorageWithCookieFallbackString(\n DEFAULT_COOKIES.SITE_LAYOUT.key,\n DEFAULT_COOKIES.SITE_LAYOUT.default as SITE_LAYOUT,\n DEFAULT_COOKIES.SITE_LAYOUT.length\n );\n","import { URL_LANGUAGES } from 'tradera/lang/constants.mjs';\nexport const OPTIONAL_LANG = `/:lang(${URL_LANGUAGES.join('|')})?`;\n","/* eslint-disable better-mutation/no-mutation */\nimport { createSlice, type PayloadAction } from '@reduxjs/toolkit';\nimport GdprSettings from 'tradera/utils/gdpr-settings';\nimport cookieUtil from 'tradera/utils/cookie';\nimport {\n WISH_LIST_NOTIFICATION_DISPLAY_COUNT,\n WISH_LIST_NOTIFICATION_HIDDEN\n} from 'tradera/constants/cookies';\n\nconst slice = createSlice({\n name: 'wishListNudge',\n initialState: { wishListNudgeHidden: false },\n reducers: {\n shouldShowWishListNudge: {\n reducer: (\n state,\n action: PayloadAction<{ wishListNudgeHidden: boolean }>\n ) => {\n const { payload } = action;\n state.wishListNudgeHidden = payload.wishListNudgeHidden;\n },\n prepare: () => {\n const isHidden =\n cookieUtil.readCookie(WISH_LIST_NOTIFICATION_HIDDEN) ===\n 'true' || GdprSettings.isFunctionalEnabled() === false;\n\n if (isHidden) return { payload: { wishListNudgeHidden: true } };\n return { payload: { wishListNudgeHidden: false } };\n }\n },\n hideWishListNudge: {\n reducer: (state) => {\n state.wishListNudgeHidden = true;\n },\n prepare: () => {\n cookieUtil.createCookie(\n WISH_LIST_NOTIFICATION_HIDDEN,\n true,\n Infinity\n );\n cookieUtil.eraseCookie(WISH_LIST_NOTIFICATION_DISPLAY_COUNT);\n return { payload: {} };\n }\n }\n }\n});\n\nexport const { shouldShowWishListNudge, hideWishListNudge } = slice.actions;\n\nexport const wishListNudge = slice.reducer;\n","// extracted by mini-css-extract-plugin\nexport default {\"accordion\":\"accordion--W6h1Z\",\"skipBorderOnLast\":\"skipBorderOnLast--WDvxC\",\"accordionItem\":\"accordionItem--GGJVL\",\"item-body\":\"item-body--zyRth\",\"itemBody\":\"item-body--zyRth\",\"collapsed\":\"collapsed--q712d\",\"arrow-open\":\"arrow-open--boQm9\",\"arrowOpen\":\"arrow-open--boQm9\",\"nextLevel\":\"nextLevel--qQTvF\",\"slideIn\":\"slideIn--uiUZ_\",\"slideOut\":\"slideOut--EtnAh\"};","// extracted by mini-css-extract-plugin\nexport default {\"nextLevel\":\"nextLevel--BKBS0\",\"slideIn\":\"slideIn--u6QTH\",\"body\":\"body--faIbL\",\"slideOut\":\"slideOut--mGu6l\"};","import type React from 'react';\nimport { useState } from 'react';\nimport IconBack from '@tradera/blueprint/theme/icons2/back.svg?jsx';\nimport { Button } from 'tradera/components/atoms/button/button';\nimport styles from './accordion-next-level.module.scss';\nimport { HeaderWithCloseButton } from 'tradera/components/scrollable-modal/header-with-close-button';\nimport { classNames } from 'tradera/utils/class-names';\n\ntype AccordionNextLevelProps = {\n children: React.ReactNode;\n classNames?: { className?: string; bodyClassName?: string };\n onClose?: () => void;\n onDismiss: () => void;\n title?: string | React.ReactNode;\n};\n\nexport const AccordionNextLevel = ({\n onClose,\n onDismiss,\n classNames: nextLevelClassNames,\n children,\n title\n}: AccordionNextLevelProps) => {\n const [slideOut, setSlideOut] = useState(false);\n\n const closeNextLevel = () => {\n setSlideOut(true);\n setTimeout(() => {\n setSlideOut(false);\n onDismiss();\n }, 400);\n };\n\n return (\n \n \n \n \n }\n />\n \n {children}\n \n \n );\n};\n","import { useEffect, useState } from 'react';\nimport ArrowDown from '@tradera/blueprint/theme/icons2/arrow-down.svg?jsx';\nimport ArrowRight from '@tradera/blueprint/theme/icons2/arrow-right.svg?jsx';\nimport {\n Button,\n type ButtonProps\n} from 'tradera/components/atoms/button/button';\nimport styles from './accordion.module.scss';\nimport { classNames } from 'tradera/utils/class-names';\nimport { AccordionNextLevel } from './accordion-next-level';\n\ntype AccordionProps = React.PropsWithChildren<{\n title?: string;\n className?: string;\n skipBorderOnLast?: boolean;\n bgColor?: string;\n}>;\n\nexport const Accordion = ({\n children,\n title,\n skipBorderOnLast,\n className,\n bgColor = 'bg-white'\n}: AccordionProps) => (\n \n {title && (\n
\n {title}\n
\n )}\n {children}\n \n);\n\ntype AccordionItemProps = React.PropsWithChildren<{\n hasNextLevel?: boolean;\n nextLevel?: { className?: string; bodyClassName?: string };\n className?: string;\n /**\n * Defaults to true\n */\n collapsable?: boolean;\n hideTitle?: boolean;\n defaultOpen?: boolean;\n forceOpen?: boolean;\n onChange?: (open: boolean) => void;\n title?: string | React.ReactNode;\n label?: React.ReactNode;\n onDismiss?: () => void;\n showLabelWhileOpen?: boolean;\n borderBottom?: boolean;\n buttonNoPaddingTop?: boolean;\n buttonNoPaddingBottom?: boolean;\n}> &\n Pick;\n\nexport const AccordionItem = ({\n className = '',\n collapsable = true,\n hideTitle = false,\n defaultOpen,\n forceOpen,\n label,\n onChange,\n children,\n title,\n hasNextLevel,\n nextLevel,\n borderBottom = true,\n onDismiss,\n showLabelWhileOpen = false,\n /* inherited from ButtonProps */\n nonBrandedText,\n /* end inherited from ButtonProps */\n buttonNoPaddingTop = false,\n buttonNoPaddingBottom = false\n}: AccordionItemProps) => {\n const [accordionOpen, setAccordionOpen] = useState(defaultOpen);\n\n useEffect(() => {\n if (forceOpen) {\n setAccordionOpen(true);\n }\n }, [forceOpen]);\n\n return (\n \n {hideTitle ? (\n
{children}
\n ) : (\n <>\n {\n setAccordionOpen(!accordionOpen);\n onChange?.(!accordionOpen);\n }\n : () => {}\n }\n brandedText={!nonBrandedText}>\n \n {title}\n \n {label && (!accordionOpen || showLabelWhileOpen) ? (\n \n {label}\n \n ) : null}\n\n \n {collapsable && (\n \n {hasNextLevel ? (\n \n ) : (\n \n )}\n \n )}\n \n \n {accordionOpen && (\n <>\n {hasNextLevel ? (\n setAccordionOpen(false)}\n onClose={onDismiss}\n title={title}\n classNames={nextLevel}>\n {children}\n \n ) : (\n \n {children}\n \n )}\n \n )}\n \n )}\n \n );\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport * as Sentry from '@sentry/react';\nimport { isServer } from 'tradera/utils/nextjs';\n\nlet log;\n\n(async () => {\n if (isServer) {\n const { Logger } = await import(\n '@tradera-internal/infrastructure-logging'\n );\n // eslint-disable-next-line better-mutation/no-mutation\n log = new Logger('ApplicationErrorBoundary');\n }\n})();\n\nclass ApplicationErrorBoundary extends React.Component {\n componentDidCatch() {}\n\n onError(error) {\n const { capture = true, loggingContext } = this?.props || {};\n if (typeof capture === 'function') {\n capture(error);\n }\n if (isServer && log) {\n log.error(error, loggingContext);\n }\n }\n\n render() {\n const { children, fallback, capture } = this.props;\n\n if (!capture) {\n return children;\n }\n\n return (\n this.onError(error)}>\n {children}\n \n );\n }\n}\n\nApplicationErrorBoundary.propTypes = {\n // Capture function, if false then errors are silently ignored\n capture: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]).isRequired,\n fallback: PropTypes.node\n};\n\nApplicationErrorBoundary.defaultProps = {\n capture: true,\n fallback: null\n};\n\nexport default ApplicationErrorBoundary;\n","import { useTranslator } from 'tradera/lang/translate';\nimport { ModalState } from 'tradera/components/bank-id/state/bank-id/modal-state';\nimport { BankIdError } from './bank-id-error-message';\nimport styles from './bank-id-body.module.scss';\n\ntype BankIdModalBodyProps = {\n modalState: ModalState;\n errorCode?: string | null;\n qrData?: string | null;\n showQrCode: boolean;\n};\n\nexport const BankIdModalBody = ({\n modalState,\n errorCode,\n qrData,\n showQrCode\n}: BankIdModalBodyProps) => {\n const { t } = useTranslator();\n\n switch (modalState) {\n case ModalState.IN_PROGRESS:\n return (\n <>\n

\n {t('bankIdModal_InProgressTitle')}\n

\n {showQrCode && (\n <>\n

\n {t('bankIdModal_InProgressText')}\n

\n
\n {qrData ? (\n \n ) : (\n
\n )}\n
\n \n )}\n \n );\n case ModalState.ERROR:\n return (\n <>\n

\n {t('bankIdModal_ErrorTitle')}\n

\n \n \n );\n default:\n return null;\n }\n};\n","import { useTranslator } from 'tradera/lang/translate';\nimport * as errorCodes from 'tradera/components/bank-id/state/bank-id/error-codes';\n\ntype BankIdErrorProps = {\n errorCode?: string | null;\n};\n\nexport const BankIdError = ({ errorCode }: BankIdErrorProps) => {\n const { t } = useTranslator();\n\n let errorMessage = '';\n switch (errorCode) {\n case errorCodes.START_FAILED:\n errorMessage = t('bankId_error_start_failed');\n break;\n case errorCodes.EXPIRED_TRANSACTION:\n errorMessage = t('bankId_error_expired_transaction');\n break;\n case errorCodes.ALREADY_IN_PROGRESS:\n errorMessage = t('bankId_error_already_in_progress');\n break;\n case errorCodes.CERTIFICATE_ERROR:\n errorMessage = t('bankId_error_certificate_error');\n break;\n case errorCodes.CANCELLED:\n errorMessage = t('bankId_error_cancelled');\n break;\n case errorCodes.USER_CANCEL:\n errorMessage = t('bankId_error_user_cancel');\n break;\n default:\n errorMessage = t('bankId_error_default');\n }\n\n return

{errorMessage}

;\n};\n","import type React from 'react';\nimport BankIdIcon from '@tradera/blueprint/theme/icons2/bankid.svg?jsx';\nimport { classNames } from 'tradera/utils/class-names';\n\nconst BANK_ID_COLOR = '#183E4F'; // https://www.bankid.com/en/utvecklare/varumaerke/varumaerke-logotypen\n\nexport const BankIdLogoColor = ({\n className,\n ...props\n}: React.SVGAttributes) => {\n return (\n \n );\n};\n","import React, { useCallback } from 'react';\nimport { FooterActions } from './footer-actions';\nimport { ModalState } from 'tradera/components/bank-id/state/bank-id/modal-state';\nimport { close } from 'tradera/components/bank-id/state/bank-id/reducer';\nimport { BankIdModalBody } from './bank-id-body';\nimport { ScrollableModal } from '../scrollable-modal/scrollable-modal';\nimport { useAppDispatch, useAppSelector } from 'tradera/state/hooks';\nimport { webApiClient } from 'tradera/utils/http';\nimport useIsMobile from 'tradera/hooks/use-is-mobile';\nimport type {\n BankIdAuthenticationCancelApiRequest,\n BankIdAuthenticationCancelApiResponse,\n BankIdSignatoryAuthenticationCancelApiResponse,\n BankIdSignatoryAuthenticationCancelApiRequest\n} from 'tradera/state/services/types/webapi-auth-generated';\nimport { BankIdLogoColor } from 'tradera/components/bank-id/bank-id-logo-color';\nimport styles from './bank-id-modal.module.scss';\nimport { classNames } from 'tradera/utils/class-names';\n\nconst CLOSED_STATES = [ModalState.CLOSED, ModalState.COMPLETED];\n\ntype BankIdModalProps = {\n onClose?: () => void;\n onTop?: boolean;\n};\n\nexport const BankIdModal = ({ onTop, onClose }: BankIdModalProps) => {\n const dispatch = useAppDispatch();\n\n const isMobile = useIsMobile();\n const [mobileFlow, setMobileFlow] = React.useState(isMobile);\n const {\n errorCode,\n autoStartToken,\n qrData,\n modalState,\n bankIdOrderRef,\n contactSsn,\n memberId,\n purpose,\n organizationNumber\n } = useAppSelector((state) => state.bankId);\n\n const closeModal = useCallback(async () => {\n dispatch(close());\n onClose?.();\n setMobileFlow(isMobile);\n\n if (modalState === ModalState.IN_PROGRESS) {\n if (!bankIdOrderRef) return; // bankIdOrderRef is needed to properly cancel\n if (contactSsn) {\n webApiClient.post<\n BankIdSignatoryAuthenticationCancelApiResponse,\n BankIdSignatoryAuthenticationCancelApiRequest\n >('/auth/bankid/cancel-signatory', {\n bankIdOrderRef,\n contactSsn,\n organizationNumber\n });\n } else {\n webApiClient.post<\n BankIdAuthenticationCancelApiResponse,\n BankIdAuthenticationCancelApiRequest\n >('/auth/bankid/cancel', {\n bankIdOrderRef,\n memberId\n });\n }\n }\n }, [\n dispatch,\n onClose,\n isMobile,\n modalState,\n contactSsn,\n organizationNumber,\n bankIdOrderRef,\n memberId\n ]);\n\n if (CLOSED_STATES.includes(modalState)) {\n return null;\n }\n\n return (\n \n \n
\n \n \n
\n
\n \n
\n
\n \n );\n};\n","import type React from 'react';\nimport { ModalState } from './state/bank-id/modal-state';\nimport { useTranslator } from 'tradera/lang/translate';\nimport { Button } from 'tradera/components/atoms/button/button';\nimport OpenOnDeviceButton from './open-on-device-button';\nimport { Space } from 'tradera/components/atoms/space/space';\n\ntype FooterActionsProps = {\n onClose: () => void;\n setMobileFlow: React.Dispatch>;\n modalState: ModalState;\n autoStartToken?: string | null;\n mobileFlow: boolean;\n memberId?: number;\n purpose: string;\n};\n\nconst CancelButton = ({ onClose }: Pick) => {\n const { t } = useTranslator();\n\n return (\n \n );\n};\n\nexport const FooterActions = ({\n onClose,\n modalState,\n autoStartToken,\n mobileFlow,\n setMobileFlow,\n memberId,\n purpose\n}: FooterActionsProps) => {\n const { t } = useTranslator();\n\n switch (modalState) {\n case ModalState.IN_PROGRESS:\n return (\n \n \n {mobileFlow && (\n setMobileFlow((state) => !state)}>\n {t('bankIdModal_OpenOnOtherDevice')}\n \n )}\n \n \n );\n case ModalState.ERROR:\n return (\n
\n \n
\n );\n }\n\n return null;\n};\n","import { useTranslator } from 'tradera/lang/translate';\nimport { useState } from 'react';\nimport { Button, type ButtonProps } from '../atoms/button/button';\nimport { useAppDispatch, useAppSelector } from 'tradera/state/hooks';\nimport useIsMobile from 'tradera/hooks/use-is-mobile';\nimport { startAuthOnFile } from 'tradera/components/bank-id/state/bank-id/actions';\nimport type {\n BankIdAuthenticationCancelApiRequest,\n BankIdAuthenticationCancelApiResponse\n} from 'tradera/state/services/types/webapi-auth-generated';\nimport { webApiClient } from 'tradera/utils/http';\n\ntype GetBankIdLinkProps = {\n autoStartToken?: string | null;\n isIOS: boolean;\n};\n\nconst getBankIdLink = ({ autoStartToken, isIOS }: GetBankIdLinkProps) => {\n const queryParams = new URLSearchParams();\n if (autoStartToken) {\n queryParams.set('autostarttoken', autoStartToken);\n }\n if (isIOS) {\n queryParams.set('redirect', 'tradera-native://bank_id');\n } else {\n queryParams.set('redirect', 'null');\n }\n\n return `bankid:///?${queryParams}`;\n};\n\ntype OpenOnDeviceButtonProps = ButtonProps & {\n autoStartToken?: string | null;\n memberId?: number;\n purpose: string;\n};\n\nconst OpenOnDeviceButton = ({\n autoStartToken,\n memberId,\n purpose,\n ...props\n}: OpenOnDeviceButtonProps) => {\n const { t } = useTranslator();\n\n const isMobile = useIsMobile();\n const dispatch = useAppDispatch();\n const [isSubmitting, setIsSubmitting] = useState(false);\n const { bankIdOrderRef } = useAppSelector((state) => state.bankId);\n const { isIOS } = useAppSelector((state) => state.environment);\n\n const bankIdStartUrl = getBankIdLink({\n autoStartToken,\n isIOS: isIOS ?? false\n });\n\n const startOnFileAuth = async () => {\n if (isSubmitting) {\n return;\n }\n setIsSubmitting(true);\n await webApiClient.post<\n BankIdAuthenticationCancelApiResponse,\n BankIdAuthenticationCancelApiRequest\n >('/auth/bankid/cancel', { bankIdOrderRef, memberId });\n const autoStartToken = await dispatch(\n startAuthOnFile(purpose, memberId)\n );\n if (!autoStartToken) return;\n\n window.location.href = getBankIdLink({\n autoStartToken,\n isIOS: false\n });\n setIsSubmitting(false);\n };\n return (\n \n {t('bankIdModal_OpenAppOnThisDevice')}\n \n );\n};\n\nexport default OpenOnDeviceButton;\n","export const START_FAILED = 'START_FAILED';\nexport const EXPIRED_TRANSACTION = 'EXPIRED_TRANSACTION';\nexport const ALREADY_IN_PROGRESS = 'ALREADY_IN_PROGRESS';\nexport const CERTIFICATE_ERROR = 'CERTIFICATE_ERROR';\nexport const CANCELLED = 'CANCELLED';\nexport const USER_CANCEL = 'USER_CANCEL';\n","import { createSlice } from '@reduxjs/toolkit';\nimport type { ErrorMessageCodes } from './error-message-codes';\nimport { ModalState } from './modal-state';\n\nexport type BankIdSlice = {\n qrData?: string | null;\n errorCode?: ErrorMessageCodes | null;\n modalState: ModalState;\n autoStartToken?: string | null;\n bankIdOrderRef?: string | null;\n contactSsn?: string | null;\n organizationNumber?: string | null;\n purpose: string | null;\n memberId: number | null;\n};\n\nconst initialState: BankIdSlice = {\n qrData: null,\n errorCode: null,\n modalState: ModalState.CLOSED,\n autoStartToken: null,\n bankIdOrderRef: null,\n contactSsn: null,\n organizationNumber: null,\n purpose: null,\n memberId: null\n};\n\nexport const bankIdSlice = createSlice({\n name: 'BankId',\n initialState,\n reducers: {\n reset: () => {\n return { ...initialState };\n },\n completed: (state) => {\n return { ...state, modalState: ModalState.COMPLETED };\n },\n setError: (state, { payload }) => {\n return {\n ...state,\n errorCode: payload,\n modalState: ModalState.ERROR\n };\n },\n inProgress: (state, { payload }) => {\n return {\n ...state,\n autoStartToken: payload.autoStartToken || state.autoStartToken,\n bankIdOrderRef: payload.bankIdOrderRef || state.bankIdOrderRef,\n contactSsn: payload.contactSsn || state.contactSsn,\n organizationNumber:\n payload.organizationNumber || state.organizationNumber,\n qrData: payload.qrData\n };\n },\n startAuth: (state, { payload }) => {\n return {\n ...state,\n ...initialState, // Reset any previous BankID verification\n purpose: payload.purpose,\n memberId: payload.memberId || null,\n modalState: ModalState.IN_PROGRESS\n };\n },\n close: (state) => {\n return {\n ...state,\n modalState: ModalState.CLOSED\n };\n }\n }\n});\n\nexport const { reset, completed, setError, inProgress, startAuth, close } =\n bankIdSlice.actions;\n\nexport default bankIdSlice.reducer;\n","import { createApi } from '@reduxjs/toolkit/query/react';\nimport type { BidHistoryApiResponse } from 'tradera/state/services/types/webapi-shopping-generated';\nimport { isomorphicWebApiBaseQuery } from 'tradera/state/services/utils/webapi-base-query';\nimport { isServer } from 'tradera/utils/nextjs';\n\nexport const bidHistoryApi = createApi({\n reducerPath: 'bidHistoryApi',\n baseQuery: isomorphicWebApiBaseQuery,\n endpoints: (builder) => ({\n getBidHistory: builder.query({\n query: (itemId) => {\n const baseUrl = isServer ? '' : '/api/webapi';\n return `${baseUrl}/shopping/bidhistory/${itemId}`;\n }\n })\n })\n});\n\nexport const { useGetBidHistoryQuery } = bidHistoryApi;\n","import React from 'react';\nimport { useTranslator, useUrlLocalizer } from 'tradera/lang/translate';\nimport { formatNumberWithSeparators } from 'tradera/utils/format';\nimport { useDayJs } from 'tradera/hooks/use-day-js';\nimport { useSekPriceFormatter } from 'tradera/localization/use-sek-price-formatter';\nimport { useLocalizedPriceFormatterWithExchangeRate } from 'tradera/localization/use-localized-price-formatter';\nimport { classNames } from 'tradera/utils/class-names';\nimport type {\n BidHistoryApiResponse,\n BidHistoryBidApiDto\n} from 'tradera/state/services/types/webapi-shopping-generated';\nimport { type PaymentApiDto } from 'tradera/state/services/types/webapi-browse-generated';\nimport { CurrencyRateType } from 'tradera/state/multi-currency/reducer';\n\ntype BidsHistoryTableProps = Pick<\n BidHistoryApiResponse,\n 'bids' | 'auctionStartDate' | 'auctionOpeningBid'\n> & {\n className?: string;\n currencyIsSEK: boolean;\n payment?: PaymentApiDto | null;\n isBuyer: boolean;\n};\n\nexport const BidsHistoryTable = ({\n bids,\n auctionOpeningBid,\n auctionStartDate,\n className,\n currencyIsSEK,\n payment,\n isBuyer\n}: BidsHistoryTableProps) => {\n const { t } = useTranslator();\n const dayjs = useDayJs();\n const sekPriceFormatter = useSekPriceFormatter();\n const localizedPriceFormatter = useLocalizedPriceFormatterWithExchangeRate(\n payment?.paymentMethodExchangeRate,\n isBuyer ? CurrencyRateType.Buyer : CurrencyRateType.Seller\n );\n\n const formatDateTime = React.useCallback(\n (datetime: string) => dayjs(datetime).format('YYYY-MM-DD HH:mm'),\n [dayjs]\n );\n\n const formatMoney = React.useCallback(\n (value: number) =>\n currencyIsSEK\n ? sekPriceFormatter(value)\n : localizedPriceFormatter(value),\n [currencyIsSEK, sekPriceFormatter, localizedPriceFormatter]\n );\n\n return (\n \n \n \n \n {t('bidHistory_bidders')}\n \n \n {t('bidHistory_bids')}\n \n \n {t('bidHistory_remark')}\n \n \n {t('bidHistory_date')}\n \n \n \n \n {bids?.map((bid) => (\n \n ))}\n \n \n \n {(auctionOpeningBid ?? 0) > -1 &&\n formatMoney(auctionOpeningBid)}\n \n \n \n \n
\n {t('bidHistory_begins')}\n \n \n {auctionStartDate && formatDateTime(auctionStartDate)}\n
\n );\n};\n\ntype BidRowProps = {\n bid: BidHistoryBidApiDto;\n formatDateTime: (datetime: string) => string;\n formatMoney: (value: number) => string;\n};\n\nconst BidRow = ({ bid, formatDateTime, formatMoney }: BidRowProps) => {\n const { toLocalizedUrl } = useUrlLocalizer();\n const { t } = useTranslator();\n\n if (bid.removed) {\n return (\n \n \n {t('bidHistory_bidRemoved')}\n \n \n {formatMoney(bid.bidAmount)}\n \n \n {t('bidHistory_removedByTradera')}\n \n \n );\n }\n\n let column2Class = getBidsTableColumnClass(2);\n if (\n bid.bidReason !== 'LeadingAutoBid' &&\n bid.bidReason !== 'LeadingUserBid'\n ) {\n // eslint-disable-next-line better-mutation/no-mutation\n column2Class += ' text-muted';\n }\n\n const bidReasonLabel = getBidReasonLabel(bid.bidReason ?? '');\n\n return (\n \n \n \n {bid.memberAlias} (\n {formatNumberWithSeparators(bid.memberTotalRating)})\n \n \n \n {formatMoney(bid.bidAmount)}\n \n \n {bidReasonLabel ? t(bidReasonLabel) : ''}\n \n \n {formatDateTime(bid.displayTime)}\n \n \n );\n};\n\nconst getBidReasonLabel = (reason: string) => {\n switch (reason) {\n case 'LeadingAutoBid':\n return 'bidHistory_leadingAutoBid';\n case 'NonLeadingAutoBid':\n return 'bidHistory_nonLeadingAutoBid';\n default:\n return '';\n }\n};\n\nconst getBidsTableColumnClass = (column: number, isHeader = false) => {\n switch (column) {\n case 1:\n return 'text-hyphenate align-top py-2 pr-2';\n case 2:\n return 'font-weight-bold text-right align-top p-2';\n case 3:\n return ['p-2', 'align-top', 'd-none', 'd-md-table-cell']\n .concat(isHeader ? [] : ['font-italic', 'text-muted'])\n .join(' ');\n case 4:\n return 'text-right align-top py-2 pl-2';\n }\n};\n","import type React from 'react';\nimport { TransitionGroup } from 'react-transition-group';\nimport {\n EnterFrom,\n EnterFade\n} from 'tradera/components/transitions/transitions';\nimport { Overlay } from 'tradera/components/scrollable-modal/overlay';\nimport { RemoveScroll } from 'react-remove-scroll';\nimport styles from './bottom-sheet.module.scss';\nimport { classNames } from 'tradera/utils/class-names';\n\nexport type BottomSheetProps = React.PropsWithChildren<{\n show: boolean;\n onDismiss?: () => void;\n maxHeight?: string | number;\n inlineStyle?: React.CSSProperties;\n className?: string;\n onTop?: boolean;\n bottomAnchor?: number;\n}>;\n\nexport const BottomSheet = ({\n children,\n show,\n onDismiss,\n onTop,\n className,\n inlineStyle = {},\n maxHeight = '100%',\n bottomAnchor\n}: BottomSheetProps) => (\n \n {show && (\n \n \n \n )}\n {show && (\n \n \n \n \n {children}\n \n \n \n \n )}\n \n);\n","/**\n * Using an accessible dialog or \"modal\" window. From Radix UI\n * https://www.radix-ui.com/docs/primitives/components/dialog\n */\nimport type React from 'react';\nimport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogContent\n} from '@radix-ui/react-dialog';\nimport MediaQuery from 'react-responsive';\n\nimport { BREAKPOINT_SIZES, BREAKPOINTS } from 'tradera/constants/breakpoints';\nimport styles from './dialog-modal.module.scss';\nimport { classNames } from 'tradera/utils/class-names';\n\nconst mobileOnlyProps = { maxWidth: BREAKPOINT_SIZES[BREAKPOINTS.SM].max };\nconst desktopOnlyProps = { minWidth: BREAKPOINT_SIZES[BREAKPOINTS.MD].min };\nconst allDeviceProps = { minWidth: BREAKPOINT_SIZES[BREAKPOINTS.XS].min };\n\nexport type DialogModalProps = {\n children: React.ReactNode;\n className?: string;\n desktop?: boolean;\n dismissOnOverlayClick?: boolean;\n mediaQuery?: {\n minWidth?: number;\n maxWidth?: number;\n };\n mobile?: boolean;\n mobileFullscreen?: boolean;\n onDismiss?: () => void;\n onTop?: boolean;\n style?: React.CSSProperties;\n overlayClassNames?: string;\n};\n\nconst DialogModal = ({\n children,\n className,\n desktop,\n dismissOnOverlayClick = true,\n mediaQuery,\n mobile,\n mobileFullscreen = true,\n onTop,\n onDismiss,\n style,\n overlayClassNames\n}: DialogModalProps) => {\n const getDefaultMediaProps = () => {\n if (mobile && desktop) {\n return allDeviceProps;\n }\n if (mobile) {\n return mobileOnlyProps;\n }\n if (desktop) {\n return desktopOnlyProps;\n }\n return allDeviceProps;\n };\n\n let mediaQueryProps;\n if (!mediaQuery) {\n mediaQueryProps = getDefaultMediaProps();\n } else {\n mediaQueryProps = mediaQuery;\n }\n\n return (\n \n {\n if (!open && onDismiss) {\n onDismiss();\n }\n }}>\n \n \n e.preventDefault()\n }>\n {children}\n \n \n \n \n \n );\n};\n\nexport default DialogModal;\n","// extracted by mini-css-extract-plugin\nexport default {\"inputWrapper\":\"inputWrapper--B9gcr\",\"error\":\"error--nG0mU\",\"disabled\":\"disabled--jMYMF\",\"input\":\"input--cTqBe\",\"hidePlaceholderOnFocus\":\"hidePlaceholderOnFocus--ZKGOZ\",\"noLigatures\":\"noLigatures--tftat\"};","import React, { type FocusEvent } from 'react';\nimport { classNames } from 'tradera/utils/class-names';\nimport styles from './base-input-field.module.scss';\nimport { composeEventHandlers } from 'tradera/utils/compose-event-handler';\n\nexport type BaseInputFieldProps = {\n suffix?: React.ReactNode;\n isInvalid?: boolean;\n align?: 'left' | 'center' | 'right';\n hidePlaceholderOnFocus?: boolean;\n noLigatures?: boolean;\n selectAllOnFocus?: boolean;\n preventBubbling?: boolean;\n} & React.ComponentPropsWithRef<'input'>;\n\n/**\n * This component is used as a base for other input fields.\n * It's not meant to be used directly.\n *\n */\nexport const BaseInputField = React.forwardRef<\n HTMLInputElement,\n BaseInputFieldProps\n>(function BaseInputField(\n {\n isInvalid,\n className,\n style,\n suffix,\n name,\n hidePlaceholderOnFocus,\n noLigatures,\n selectAllOnFocus,\n preventBubbling,\n onClick,\n ...props\n },\n ref\n) {\n const onFocus = selectAllOnFocus\n ? composeEventHandlers(\n props.onFocus,\n (e: FocusEvent) => e.target.select()\n )\n : props.onFocus;\n\n return (\n \n {\n if (preventBubbling) {\n e.stopPropagation();\n }\n onClick?.(e);\n }}\n {...props}\n onFocus={onFocus}\n />\n {typeof suffix === 'undefined' ? null : (\n too high.\n 'mr-1 pt-1 pb-1-1'\n )}>\n {suffix}\n \n )}\n \n );\n});\n","import { classNames } from 'tradera/utils/class-names';\nimport type React from 'react';\n\nimport { Text } from 'tradera/components/atoms/text/text';\nimport AlertIcon from '@tradera/blueprint/theme/icons2/alert.svg?jsx';\n\nexport type BaseInputWrapperProps = {\n label?: React.ReactNode;\n hint?: React.ReactNode;\n // A string or ReactNode can be used as the error message and error styling, a boolean will only give error styling\n error?: boolean | React.ReactNode;\n help?: React.ReactNode;\n name?: string;\n children: React.ReactNode;\n /**\n * This will collapse the hint/error area when there's no info.\n * By default it is not collapsed, and will always take up space that\n * is needed for the error message and hint, if any.\n */\n collapsed?: boolean;\n className?: string;\n style?: React.CSSProperties;\n /**\n * True if the input is pristine, i.e. has not been changed from the initial state.\n */\n isPristine?: boolean;\n /**\n * Supress the error message when the input is pristine.\n * Sometimes you don't want to show an error message before the user has even\n * started interacting with the input.\n */\n supressErrorWhenPristine?: boolean;\n};\n\nconst isVisibleNode = (error: BaseInputWrapperProps['error']) => {\n return (\n (typeof error === 'string' && !!error) ||\n (typeof error === 'object' && error !== null)\n );\n};\n\nexport const BaseInputWrapper = ({\n label,\n error,\n hint,\n help,\n name,\n collapsed,\n className,\n style,\n isPristine,\n supressErrorWhenPristine,\n children\n}: BaseInputWrapperProps) => {\n const supressError = supressErrorWhenPristine && isPristine;\n\n const textBelow =\n isVisibleNode(error) && !supressError ? (\n error\n ) : isVisibleNode(hint) ? (\n hint\n ) : //   is to make sure that this element always has a height,\n // otherwise the form will jump when the error message is shown, if\n // no hint is provided\n collapsed ? (\n ''\n ) : (\n <> \n );\n\n const hasLabelOrHelp = !!label || !!help;\n\n return (\n
\n {hasLabelOrHelp ? (\n
\n \n {label}\n \n \n {help}\n \n
\n ) : null}\n {children}\n {textBelow ? (\n error && !supressError ? (\n \n {textBelow}\n \n ) : (\n \n {textBelow}\n \n )\n ) : null}\n
\n );\n};\n\nexport const FormFieldErrorMessage = ({\n children,\n className\n}: React.PropsWithChildren & { className?: string }) => (\n \n \n {children}\n \n);\n","// extracted by mini-css-extract-plugin\nexport default {\"form-control-radio-switch\":\"form-control-radio-switch--n4JHt\",\"formControlRadioSwitch\":\"form-control-radio-switch--n4JHt\",\"form-check\":\"form-check--oo3OT\",\"formCheck\":\"form-check--oo3OT\",\"form-check-inline\":\"form-check-inline--mI5SK\",\"formCheckInline\":\"form-check-inline--mI5SK\",\"form-check-inline-noclip\":\"form-check-inline-noclip--khp54\",\"formCheckInlineNoclip\":\"form-check-inline-noclip--khp54\",\"form-check-label\":\"form-check-label--o7N_G\",\"formCheckLabel\":\"form-check-label--o7N_G\",\"form-check-input\":\"form-check-input--wdasr\",\"formCheckInput\":\"form-check-input--wdasr\",\"disabled\":\"disabled--QeXzo\",\"radio-switch-branded\":\"radio-switch-branded--lVLhH\",\"radioSwitchBranded\":\"radio-switch-branded--lVLhH\"};","import type React from 'react';\nimport { classNames } from 'tradera/utils/class-names';\nimport styles from './radio-switch.module.scss';\n\ntype RadioSwitchOption = {\n name: React.ReactNode;\n value: TValue;\n className?: string;\n style?: React.CSSProperties;\n disabled?: boolean;\n};\n\nexport type RadioSwitchProps = Omit<\n React.ComponentPropsWithoutRef<'div'>,\n 'defaultChecked' | 'checked'\n> & {\n options: RadioSwitchOption[];\n handleOnChange: (value: TValue) => void;\n id: string;\n dynamic?: boolean;\n} & (\n | {\n /**\n * Cannot be used together with `defaultChecked`\n */\n checked?: never;\n /**\n * Cannot be used together with `checked`\n */\n defaultChecked: TValue;\n }\n | {\n /**\n * Cannot be used together with `defaultChecked`\n */\n checked: TValue;\n /**\n * Cannot be used together with `checked`\n */\n defaultChecked?: never;\n }\n );\n\nexport const RadioSwitch = ({\n checked,\n defaultChecked,\n className,\n handleOnChange,\n id,\n options,\n dynamic = false,\n ...otherProps\n}: RadioSwitchProps) => {\n return (\n \n {options.map((option) => {\n return (\n option.value && (\n \n {\n if (!option.disabled)\n handleOnChange(\n e.target.value as TValue\n );\n }}\n disabled={option.disabled}\n />\n \n {option.name}\n \n \n )\n );\n })}\n \n );\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"textBoxWrapper\":\"textBoxWrapper--SKHjQ\",\"error\":\"error--Uc3Mm\",\"textArea\":\"textArea--l0sy0\",\"hidePlaceholderOnFocus\":\"hidePlaceholderOnFocus--k2xA4\",\"disabled\":\"disabled--JFr_l\"};","import React, { useEffect, useRef, useState } from 'react';\nimport type { BaseInputWrapperProps } from '../base-input-wrapper/base-input-wrapper';\nimport { BaseInputWrapper } from '../base-input-wrapper/base-input-wrapper';\nimport styles from './text-box.module.scss';\nimport { classNames } from 'tradera/utils/class-names';\nimport { Button } from 'tradera/components/atoms/button/button';\nimport CloseNarrowIcon from '@tradera/blueprint/theme/icons/close-narrow.svg?jsx';\n\nexport type TextBoxProps = {\n /**\n * If true, the height of the textarea will be automatically adjusted to fit the content.\n * Defaults to true.\n */\n autoHeight?: boolean;\n hidePlaceholderOnFocus?: boolean;\n showClearButton?: boolean;\n onClearButtonClick?: () => void;\n emptyStateIconRight?: React.ReactNode;\n} & Omit &\n React.TextareaHTMLAttributes;\n\nexport const TextBox = React.forwardRef(\n function TextAreaInput(\n {\n value,\n label,\n hint,\n error,\n help,\n onChange,\n onClearButtonClick,\n emptyStateIconRight,\n showClearButton,\n name,\n collapsed,\n className,\n style,\n hidePlaceholderOnFocus,\n autoHeight = true,\n supressErrorWhenPristine = false,\n ...props\n },\n ref\n ) {\n const [localValue, setLocalValue] = useState(\n value?.toString() || ''\n );\n const [isPristine, setIsPristine] = useState(true);\n const localRef = useRef(null);\n\n const handleOnChange = (e: React.ChangeEvent) => {\n if (props.readOnly || props.disabled) return;\n /**\n * Set local value, needed if the component is not controlled.\n */\n setLocalValue(e.target.value);\n setIsPristine(false);\n\n onChange?.(e);\n };\n\n const handleOnClear = () => {\n if (props.readOnly || props.disabled) return;\n /**\n * Set local value, needed if the component is not controlled.\n */\n setLocalValue('');\n\n onClearButtonClick?.();\n };\n\n useEffect(() => {\n if (!localRef.current || !autoHeight) return;\n localRef.current.style.height = 'auto';\n if (value || localValue) {\n localRef.current.style.height = `${localRef.current.scrollHeight}px`;\n }\n }, [localValue, value, autoHeight]);\n\n const supressError = supressErrorWhenPristine && isPristine;\n\n return (\n \n \n {\n if (typeof ref === 'function') {\n ref(node);\n } else if (ref) {\n ref.current = node;\n }\n\n localRef.current = node;\n }}\n id={name}\n name={name}\n {...props}\n />\n {!localValue &&\n !value &&\n emptyStateIconRight &&\n emptyStateIconRight}\n {showClearButton &&\n (typeof value === 'undefined' ? localValue : value) && (\n \n }\n />\n )}\n \n \n );\n }\n);\n","import { classNames } from 'tradera/utils/class-names';\nimport type { ChangeEvent, ReactNode } from 'react';\nimport { createContext, useCallback, useContext } from 'react';\nimport { useControllableState } from 'tradera/components/form-controls/use-controllable-state';\nimport styles from './toggle-switch.module.scss';\n\nexport type CheckboxToggleProps = {\n onChange?: (checked: boolean) => void;\n id?: string;\n name?: string;\n value?: string;\n disabled?: boolean;\n className?: string;\n label?: ReactNode;\n size?: 'xsmall' | 'small' | 'medium';\n} & (\n | {\n checked: boolean;\n defaultChecked?: never;\n }\n | {\n defaultChecked?: boolean;\n checked?: never;\n }\n);\n\n/**\n * This component can be controlled or uncontrolled.\n * Pass in `checked` to control the component.\n * When uncontrolled, pass in `defaultChecked` to make component selected.\n *\n * ToggleSwitch2 (now ToggleSwitch) was introduced to smoothly transition from\n * ToggleSwitch's Bootstrap styling to this component's CSS module styling.\n *\n * If you want to break this component apart you can use the `` and\n * `` components separately.\n */\nexport const ToggleSwitch = ({\n checked,\n defaultChecked,\n onChange,\n id,\n name,\n value,\n disabled = false,\n className = '',\n label,\n size = 'medium',\n ...props\n}: CheckboxToggleProps) => {\n return (\n \n {label}\n \n \n );\n};\n\ntype CheckboxContextType = {\n checked?: boolean;\n name?: string;\n value?: string;\n disabled?: boolean;\n onChangeHandler?: (event: ChangeEvent) => void;\n id?: string;\n};\n\nconst CheckboxContext = createContext(null);\n\n/**\n * This component is the container for the toggle switch. Use it together with\n * the `` component to compose a larger component with a toggle switch\n * inside.\n *\n * This component can be controlled or uncontrolled.\n * Pass in `checked` to control the component.\n * When uncontrolled, pass in `defaultChecked` to make component selected.\n *\n * @example\n * import * as ToggleSwitch from '@tradera/components/form-controls/toggle-switch/toggle-switch';\n * \n * \n *

Some heading

\n * \n * \n * Lorem ipsum dolor sit amet consectetur adipisicing elit.\n * Quisquam, quos.\n * \n * \n * \n *
\n *
\n */\nexport const Root = ({\n checked: checkedProp,\n defaultChecked,\n onChange,\n id,\n name,\n value,\n disabled = false,\n className,\n children\n}: React.PropsWithChildren) => {\n const [checked, setChecked] = useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked\n });\n const onChangeHandler = useCallback(\n (event: ChangeEvent) => {\n onChange?.(event.target.checked);\n setChecked(event.target.checked);\n },\n [onChange, setChecked]\n );\n\n return (\n \n \n {children}\n \n \n );\n};\n\n/**\n * This is the visual indicator of the toggle switch. Use it inside the\n * Root component.\n *\n * @example\n * import * as ToggleSwitch from '@tradera/components/form-controls/toggle-switch/toggle-switch';\n * \n * \n *

Some heading

\n * \n * \n * Lorem ipsum dolor sit amet consectetur adipisicing elit.\n * Quisquam, quos.\n * \n * \n * \n *
\n *
\n */\nexport const Indicator = ({\n className = '',\n size = 'medium'\n}: {\n className?: string;\n size?: 'xsmall' | 'small' | 'medium';\n}) => {\n const context = useContext(CheckboxContext);\n\n if (!context) {\n throw new Error(\n 'ToggleSwitch.Indicator must be used within a ToggleSwitch.Root component'\n );\n }\n\n const {\n id,\n name,\n value,\n disabled,\n onChangeHandler,\n checked = false\n } = context;\n\n return (\n \n \n \n \n );\n};\n","import { GrowthBookProvider } from '@growthbook/growthbook-react';\nimport { useTWGrowthBook } from 'tradera/hooks/use-tw-growth-book';\n\ntype WithGrowthBookProps = { children: React.ReactNode };\n\nexport const WithGrowthBook = ({ children }: WithGrowthBookProps) => {\n const growthbook = useTWGrowthBook();\n return growthbook ? (\n \n {children}\n \n ) : (\n children\n );\n};\n","import { useRef } from 'react';\nimport { isDev } from 'tradera/legacy/static/utils/environment';\nimport { GrowthBook } from '@growthbook/growthbook-react';\nimport { GtmService } from 'tradera/services/google-tagmanager/google-tagmanager-service';\nimport { useOnMount } from './use-on-mount';\nimport { useAppSelector } from 'tradera/state/hooks';\nimport { selectMemberId } from 'tradera/state/member/selectors';\nimport { useIsFeatureEnabled } from 'tradera/hooks/use-is-feature-enabled';\nimport { selectShippingRegionCountryCodeIso2 } from 'tradera/state/shipping-region/selectors';\n\nconst GROWTHBOOK_API_HOST = 'https://growthbook-proxy.tradera.cloud';\n\nexport const useTWGrowthBook = () => {\n const clientKey = useAppSelector(\n (state) => state.initData.growthBookClientKey\n );\n const memberId = useAppSelector(selectMemberId);\n const isGrowthBookEnabled = useIsFeatureEnabled('growth-book');\n const memberCountryCodeIso2 = useAppSelector(\n selectShippingRegionCountryCodeIso2\n );\n\n const growthBookRef = useRef> | null>(\n null\n );\n\n // Force enable GrowthBook feature with query param ?force-gb\n const urlSearchParams = new URLSearchParams(window.location.search);\n const params = Object.fromEntries(urlSearchParams.entries());\n const forceEnable = params.hasOwnProperty('force-gb');\n const forceVariant = params['force-gb']?.toString() ?? null;\n\n // https://docs.growthbook.io/guide/GA4-google-analytics#using-gas-client-id\n const gaId = isGrowthBookEnabled\n ? document?.cookie?.match(/_ga=(.+?);/)\n : null;\n\n let clientId: string | null = null;\n\n if (gaId !== null && gaId.length > 1) {\n const idParts = gaId[1].split('.');\n if (idParts.length >= 2) {\n clientId = idParts.slice(-2).join('.');\n }\n }\n\n // Conditionally create a GrowthBook instance\n if (isGrowthBookEnabled && growthBookRef.current === null) {\n growthBookRef.current = new GrowthBook({\n clientKey,\n apiHost: GROWTHBOOK_API_HOST,\n enableDevMode: isDev(),\n backgroundSync: false,\n trackingCallback: (experiment, result) => {\n GtmService.trackGtmEvent('experiment_viewed', {\n event_category: 'experiment',\n experiment_id: experiment.key,\n variation_id: result.variationId\n });\n }\n });\n growthBookRef.current?.setAttributes({\n clientId: clientId ?? null,\n deviceId: clientId ?? null,\n memberId: memberId ?? null,\n country: memberCountryCodeIso2 ?? null,\n loggedIn: !!memberId,\n forceEnable,\n forceVariant\n });\n window._growthbook = growthBookRef.current;\n }\n\n //Setup Growthbook\n useOnMount(() => {\n // Load features from the GrowthBook API\n if (isGrowthBookEnabled) {\n growthBookRef.current?.loadFeatures({\n timeout: 2000\n });\n }\n });\n\n return isGrowthBookEnabled ? growthBookRef.current : null;\n};\n","import type { SyntheticEvent } from 'react';\nimport type React from 'react';\nimport { useRef } from 'react';\nimport { useOnMount } from 'tradera/hooks/use-on-mount';\n\ntype LazyImageLoaderProps = {\n src: string;\n alt?: string;\n onLoad?: (event?: SyntheticEvent | Event) => void;\n onError?: (event?: SyntheticEvent | Error) => void;\n} & React.ComponentProps<'img'>;\n\nexport const LazyImageLoader = ({\n onLoad,\n onError,\n src,\n alt,\n ...rest\n}: LazyImageLoaderProps) => {\n const imgElement = useRef(null);\n\n useOnMount(() => {\n if (imgElement.current) {\n // An image might load from SSR HTML before JavaScript is fetched, parsed & executed.\n // This prevents an already loaded image from being stuck in an infinite loading state in react in the browser.\n const imageFetchingDone = imgElement.current.complete;\n // That image fetching is done, can either mean an image has loaded or failed to load.\n if (imageFetchingDone) {\n // If the image has an intrinsic width, it has loaded successfully.\n const imageHasLoaded = imgElement.current.naturalWidth > 0;\n\n if (imageHasLoaded && onLoad) {\n onLoad(new Event('load'));\n } else if (!imageHasLoaded && onError) {\n onError(new Error(`Failed to load image ${src}`));\n }\n }\n // This runs once on mount, after that the onLoad/onError callbacks take over if the image has not loaded yet.\n }\n });\n\n return (\n \n );\n};\n","import { classNames } from 'tradera/utils/class-names';\nimport React from 'react';\n\nimport { LazyImageLoader } from './image-lazy-load';\n\nexport type ImageLoaderProps = {\n src: string;\n fallback?: React.ReactNode;\n /**\n * This can be used to force a loading state\n */\n forceLoadingState?: boolean;\n className?: string;\n loadingClassName?: string;\n alt?: string;\n};\n\nenum ImageLoaderState {\n PENDING = 'pending',\n LOADED = 'loaded',\n ERROR = 'error'\n}\n\nexport const ImageLoader = ({\n src,\n fallback,\n forceLoadingState,\n className,\n loadingClassName = '',\n ...otherProps\n}: ImageLoaderProps) => {\n const [state, setState] = React.useState(\n ImageLoaderState.PENDING\n );\n\n const onLoad = () => setState(ImageLoaderState.LOADED);\n const onError = () => setState(ImageLoaderState.ERROR);\n\n if (\n state === ImageLoaderState.PENDING ||\n state === ImageLoaderState.LOADED ||\n forceLoadingState\n ) {\n return (\n \n );\n }\n // state === ImageLoaderState.ERROR\n return <>{fallback} ?? null;\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"infoBox\":\"infoBox--iinRF\",\"danger\":\"danger--RksPD\",\"success\":\"success--bsgQg\",\"closeButton\":\"closeButton--ileRo\"};","import AlertIcon from '@tradera/blueprint/theme/icons2/alert.svg?jsx';\nimport InfoIcon from '@tradera/blueprint/theme/icons2/info.svg?jsx';\nimport CheckIcon from '@tradera/blueprint/theme/icons2/check.svg?jsx';\nimport LoadingIcon from '@tradera/blueprint/theme/icons2/loading.svg?jsx';\nimport ArrowRightIcon from 'tradera/blueprint/theme/icons2/arrow-right.svg?jsx';\nimport CloseIcon from 'tradera/blueprint/theme/icons2/close.svg?jsx';\nimport styles from './info-box.module.scss';\nimport { classNames } from 'tradera/utils/class-names';\nimport { Heading } from 'tradera/components/atoms/heading/heading';\nimport { Space } from 'tradera/components/atoms/space/space';\nimport { Text } from 'tradera/components/atoms/text/text';\nimport { MaybeLink } from 'tradera/components/maybe-link/maybe-link';\nimport { Button } from 'tradera/components/atoms/button/button';\n\ntype LoadingSpinIconProps = {\n className?: string;\n};\nconst LoadingSpinIcon = ({ className }: LoadingSpinIconProps) => (\n \n);\n\nconst CloseButton = ({ onClick }: { onClick: () => void }) => (\n
\n \n
\n);\n\ntype InfoBoxProps = React.PropsWithChildren<{\n header?: string;\n className?: string;\n info?: boolean;\n check?: boolean;\n success?: boolean;\n alert?: boolean;\n loading?: boolean;\n danger?: boolean;\n headerClassName?: string;\n actions?: React.ReactNode | React.ReactNode[];\n customIcon?: React.FunctionComponent>;\n children?: React.ReactNode;\n isFullWidth?: boolean;\n}> &\n (\n | {\n onDismiss?: () => void;\n href?: never;\n }\n | {\n onDismiss?: never;\n href?: string;\n }\n );\n\nexport const InfoBox = ({\n header,\n className,\n info,\n check,\n success,\n alert,\n loading,\n danger,\n customIcon,\n headerClassName,\n actions,\n onDismiss,\n href,\n children,\n isFullWidth = false\n}: InfoBoxProps) => {\n let Icon = InfoIcon;\n if (customIcon) Icon = customIcon;\n else if (info) Icon = InfoIcon;\n else if (check || success) Icon = CheckIcon;\n else if (alert) Icon = AlertIcon;\n else if (loading) Icon = LoadingSpinIcon;\n\n return (\n \n \n \n \n \n {header ? (\n \n {header}\n \n ) : null}\n {onDismiss && }\n \n \n {children ? (\n \n {children}\n \n ) : null}\n {actions && {actions}}\n \n \n {href && !onDismiss && (\n \n )}\n \n \n );\n};\n","import type {\n BaseQueryApi,\n BaseQueryFn,\n FetchArgs,\n FetchBaseQueryError\n} from '@reduxjs/toolkit/query/react';\nimport { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';\nimport type {\n AddMessageRequest,\n AddMessageResponse,\n GetProfileResponse,\n InitiateThreadRequest,\n InitiateThreadResponse,\n FirebaseIdToken,\n FirebaseRefreshedIdToken\n} from 'tradera/components/messaging/firebase.types';\nimport { isomorphicWebApiBaseQuery } from 'tradera/state/services/utils/webapi-base-query';\nimport type { RootState } from '../../state/configure-store';\nimport { receivedFirebaseIdToken } from 'tradera/state/auth/reducer';\nimport { memberApi } from 'tradera/state/services/member-api';\nimport type { FirebaseConfiguration } from 'tradera/state/services/types/webapi-member-generated';\n\nconst identitytoolkitBaseQuery = fetchBaseQuery({\n prepareHeaders: (headers) => {\n headers.set('Accept', 'application/json');\n headers.set('Content-Type', 'application/json');\n return headers;\n },\n baseUrl: 'https://identitytoolkit.googleapis.com/v1/'\n});\n\nexport const firebaseBaseQueryFn: BaseQueryFn<\n FetchArgs & { firebaseConfiguration: FirebaseConfiguration },\n unknown,\n FetchBaseQueryError\n> = async (args, api, extraOptions) => {\n const firebaseConfiguration = args?.firebaseConfiguration;\n if (!firebaseConfiguration) {\n return {\n error: {\n status: 400,\n statusText: 'Bad Request',\n data: 'No Messaging configuration found'\n }\n };\n }\n\n const baseUrl = `https://${firebaseConfiguration.region}-${firebaseConfiguration.projectId}.cloudfunctions.net`;\n return firebaseBaseQuery(baseUrl)(args, api, extraOptions);\n};\n\nconst firebaseBaseQuery = (baseUrl: string) =>\n fetchBaseQuery({\n prepareHeaders: (headers, { getState }) => {\n const token = (getState() as RootState).auth.firebaseIdToken;\n if (token) {\n headers.set('authorization', `Bearer ${token.idToken}`);\n }\n headers.set('Accept', 'application/json');\n headers.set('Content-Type', 'application/json');\n return headers;\n },\n baseUrl\n });\n\nconst getToken = async (\n api: BaseQueryApi,\n extraOptions: object,\n firebaseConfiguration: FirebaseConfiguration\n): Promise => {\n const customTokenResult = (await isomorphicWebApiBaseQuery(\n {\n url: '/api/webapi/auth/firebase-token',\n method: 'POST',\n body: { projectId: firebaseConfiguration.projectId }\n },\n api,\n extraOptions\n )) as { data?: { token: string } };\n\n const result = await identitytoolkitBaseQuery(\n {\n url: `accounts:signInWithCustomToken?key=${firebaseConfiguration.apiKey}`,\n method: 'POST',\n body: {\n token: customTokenResult.data?.token ?? '',\n returnSecureToken: true\n }\n },\n api,\n extraOptions\n );\n return result.data as FirebaseIdToken;\n};\n\nexport const firebaseApi = createApi({\n reducerPath: 'firebaseApi',\n baseQuery: async (args, api, extraOptions) => {\n const currentIdToken = (api.getState() as RootState).auth\n .firebaseIdToken;\n const { data: messagingConfiguration = {} } = await api.dispatch(\n memberApi.endpoints.getMessagingConfiguration.initiate(undefined)\n );\n const firebaseConfiguration =\n messagingConfiguration?.firebaseConfiguration;\n if (!firebaseConfiguration) {\n return {\n error: {\n status: 400,\n statusText: 'Bad Request',\n data: 'No Messaging configuration found'\n }\n };\n }\n const argsWithFirebaseConfiguration = {\n ...args,\n firebaseConfiguration\n };\n\n let result;\n if (currentIdToken?.idToken) {\n result = await firebaseBaseQueryFn(\n argsWithFirebaseConfiguration,\n api,\n extraOptions\n );\n if (result.error && result.error.status === 401) {\n const refreshedIdTokenQuery = await identitytoolkitBaseQuery(\n {\n url: `token?key=${firebaseConfiguration.apiKey}`,\n method: 'POST',\n body: {\n grant_type: 'refresh_token',\n refresh_token: currentIdToken.refreshToken\n }\n },\n api,\n extraOptions\n );\n\n //Not sure why but when refreshing the token the object names have underscores instead of camelCase\n const refreshedTokenData =\n refreshedIdTokenQuery?.data as FirebaseRefreshedIdToken;\n api.dispatch(\n receivedFirebaseIdToken({\n idToken: refreshedTokenData.id_token,\n refreshToken: refreshedTokenData.refresh_token,\n expiresIn: refreshedTokenData.expires_in\n })\n );\n result = await firebaseBaseQueryFn(\n argsWithFirebaseConfiguration,\n api,\n extraOptions\n );\n }\n } else {\n const token = await getToken(\n api,\n extraOptions,\n firebaseConfiguration\n );\n api.dispatch(receivedFirebaseIdToken(token));\n result = await firebaseBaseQueryFn(\n argsWithFirebaseConfiguration,\n api,\n extraOptions\n );\n }\n return result;\n },\n endpoints: (builder) => ({\n addMessage: builder.mutation({\n query: (parameters) => {\n return {\n url: '/addMessage',\n method: 'POST',\n body: { data: parameters.data }\n };\n }\n }),\n initiateThread: builder.mutation<\n InitiateThreadResponse,\n InitiateThreadRequest\n >({\n query: (parameters) => {\n return {\n url: '/initiateThread',\n method: 'POST',\n body: { data: parameters.data }\n };\n }\n }),\n getProfile: builder.query({\n query: () => {\n return {\n url: '/getProfile',\n method: 'POST',\n //Firebase http function requires a body\n body: { data: {} }\n };\n }\n })\n })\n});\n\nexport const {\n useAddMessageMutation,\n useInitiateThreadMutation,\n useGetProfileQuery\n} = firebaseApi;\n","import MaestroLogo from '@tradera/blueprint/theme/logos/maestro_vertical.svg?next-image';\nimport MasterCardLogo from '@tradera/blueprint/theme/logos/mastercard_vertical.svg?next-image';\nimport PaynovaLogo from '@tradera/blueprint/theme/logos/paynova.svg?next-image';\nimport PaypalLogo from '@tradera/blueprint/theme/logos/paypal.svg?next-image';\nimport SwishLogo from '@tradera/blueprint/theme/logos/swish_horizontal.svg?next-image';\nimport VisaLogo from '@tradera/blueprint/theme/logos/visa.svg?next-image';\nimport GooglePayLogo from '@tradera/blueprint/theme/logos/google-pay.svg?next-image';\nimport ApplePayLogo from '@tradera/blueprint/theme/logos/apple-pay.svg?next-image';\nimport KlarnaLogo from '@tradera/blueprint/theme/logos/klarna.svg?next-image';\nimport TrustlyLogo from '@tradera/blueprint/theme/logos/trustly.svg?next-image';\nimport TraderaLogo from '@tradera/blueprint/theme/logos/tradera_new.svg?next-image';\n\nimport styles from './payment-method-logo.module.scss';\n\ntype PaymentMethodLogoProps = {\n paymentMethod: string;\n displayText?: string;\n};\n\nconst PaymentMethodLogo = ({\n paymentMethod,\n displayText\n}: PaymentMethodLogoProps) => {\n const visaLogo = (\n \n {displayText}\n \n );\n const mastercardLogo = (\n \n \n \n \n );\n switch (paymentMethod) {\n case 'Visa':\n return visaLogo;\n case 'Mastercard':\n return mastercardLogo;\n case 'VisaMasterCard':\n return (\n
\n
{visaLogo}
\n {mastercardLogo}\n
\n );\n case 'Paynova':\n return (\n \n {displayText}\n \n );\n case 'PayPal':\n return (\n \n {displayText}\n \n );\n case 'SwishHandel':\n return (\n \n {displayText}\n \n );\n case 'ApplePay':\n return (\n \n );\n case 'GooglePay':\n return (\n \n );\n case 'Klarna':\n return (\n \n );\n case 'Trustly':\n return (\n \n );\n case 'Invoice':\n case 'Wallet':\n return (\n \n );\n default:\n return null;\n }\n};\n\nexport default PaymentMethodLogo;\n","import { createApi } from '@reduxjs/toolkit/query/react';\nimport { isomorphicWebApiBaseQuery } from 'tradera/state/services/utils/webapi-base-query';\nimport type {\n GenerateMemberReferralCodeApiRequest,\n GenerateMemberReferralCodeApiResponse\n} from 'tradera/state/services/types/webapi-member-generated';\n\nexport const referralModalApi = createApi({\n reducerPath: 'referralModalApi',\n baseQuery: isomorphicWebApiBaseQuery,\n endpoints: (builder) => ({\n getReferralCode: builder.query<\n GenerateMemberReferralCodeApiResponse,\n GenerateMemberReferralCodeApiRequest\n >({\n query: () => {\n return {\n url: '/api/webapi/member/referral-code',\n method: 'POST'\n };\n }\n })\n })\n});\n\nexport const { useGetReferralCodeQuery } = referralModalApi;\n","import type React from 'react';\nimport { useEffect, useState } from 'react';\nimport { useInView } from 'react-intersection-observer';\nimport styles from './scrollable-modal-content.module.scss';\nimport { classNames } from 'tradera/utils/class-names';\nimport { HeaderWithCloseButton } from './header-with-close-button';\n\nexport type ScrollableModalContentProps = {\n children: React.ReactNode;\n footer?: React.ReactNode;\n /**\n * Just want a HeaderWithCloseButton? Use `title` instead.\n */\n header?: React.ReactNode;\n /**\n * If title is provided, a HeaderWithCloseButton along with it will be rendered.\n * Remember to pass `onClose` as well!\n */\n title?: string;\n className?: string;\n innerClassName?: string;\n /**\n * If true, the content will be rendered with a higher z-index than the footer.\n */\n forceZIndex?: boolean;\n onClose?: () => void;\n} & (\n | {\n padding?: boolean;\n paddingX?: never;\n paddingTop?: never;\n paddingBottom?: never;\n }\n | {\n padding?: never;\n paddingX?: boolean;\n paddingTop?: boolean;\n paddingBottom?: boolean;\n }\n);\n\nexport const ScrollableModalContent = ({\n children,\n footer,\n header,\n className,\n title,\n onClose,\n forceZIndex,\n innerClassName = '',\n padding = true,\n paddingX = true,\n paddingTop = true,\n paddingBottom = true\n}: ScrollableModalContentProps) => {\n const inViewOptions = { initialInView: true, threshold: 1 };\n const [scrollableContentRef, isScrollableContentEntirelyVisible] =\n useInView(inViewOptions);\n const [hasScroll, setHasScroll] = useState(false);\n\n useEffect(() => {\n setHasScroll(!isScrollableContentEntirelyVisible);\n }, [isScrollableContentEntirelyVisible]);\n\n const head = header ? (\n header\n ) : title ? (\n \n ) : null;\n\n return (\n \n {head}\n \n \n {children}\n \n \n {footer && (\n \n {footer}\n \n )}\n \n );\n};\n","import type { DialogModalProps } from 'tradera/components/dialog/dialog-modal';\nimport DialogModal from 'tradera/components/dialog/dialog-modal';\nimport useIsMobile from 'tradera/hooks/use-is-mobile';\nimport { BottomSheet } from 'tradera/components/bottom-sheet/bottom-sheet';\nimport type { ScrollableModalContentProps } from './scrollable-modal-content';\nimport { ScrollableModalContent } from './scrollable-modal-content';\nimport { classNames } from 'tradera/utils/class-names';\n\nexport type ScrollableModalProps = Pick<\n ScrollableModalContentProps,\n 'children' | 'footer' | 'onClose' | 'title' | 'header' | 'forceZIndex'\n> &\n Pick<\n ScrollableModalContentProps,\n 'padding' | 'paddingX' | 'paddingTop' | 'paddingBottom'\n > &\n Omit & {\n /**\n * For example \"40rem\" or \"60vw\". It will be used like this: `min(${maxWidth}, 100%) for mobile and `min(${maxWidth}, 80vw)` for desktop\n */\n maxWidth?: string;\n /**\n * For example \"80vh\". It will be used like this: `min(${maxHeight}, 100%)` for mobile and `min(${maxHeight}, 80vh)` for desktop\n */\n maxHeight?: string;\n /**\n * If true, the modal will be rendered as a bottom sheet on mobile\n */\n mobileBottomSheet?: boolean;\n /**\n * If true, the bottom sheet will be rendered as full height\n */\n bottomSheetFullHeight?: boolean;\n show: boolean;\n onTop?: boolean;\n className?: string;\n };\n\n/**\n *\n * @example\n * const [show, setShow] = useState(false);\n *\n * const handleOnClose = () => {\n * setShow(false);\n * };\n *\n * \n Ok, got it\n }>\n * This is the content of the modal!\n * \n */\nexport const ScrollableModal = ({\n header,\n children,\n footer,\n onClose,\n title,\n maxWidth = '40rem',\n maxHeight = '80vh',\n mobileBottomSheet,\n onTop,\n bottomSheetFullHeight = false,\n forceZIndex,\n show,\n padding = true,\n paddingX,\n paddingTop,\n paddingBottom,\n className,\n ...dialogModalProps\n}: ScrollableModalProps) => {\n const isMobile = useIsMobile();\n\n const content = (\n \n {children}\n \n );\n\n if (mobileBottomSheet && isMobile) {\n return (\n \n {content}\n \n );\n }\n\n if (!show) return null;\n\n return (\n \n {content}\n \n );\n};\n","import { createApi } from '@reduxjs/toolkit/query/react';\nimport type {\n GetMemberSelectedShippingProvidersApiResponse,\n UpdateMemberSelectedShippingProvidersApiRequest\n} from 'tradera/state/services/types/webapi-selling-generated';\n\nimport { isomorphicWebApiBaseQuery } from 'tradera/state/services/utils/webapi-base-query';\n\nexport const preferredShippingProvidersApi = createApi({\n reducerPath: 'preferredShippingProvidersApi',\n baseQuery: isomorphicWebApiBaseQuery,\n endpoints: (builder) => ({\n getSelectedShippingProviders: builder.query<\n GetMemberSelectedShippingProvidersApiResponse,\n void\n >({\n query: () => {\n return `/api/webapi/selling/member-selected-shipping-providers`;\n }\n }),\n setSelectedShippingProviders: builder.mutation<\n void,\n UpdateMemberSelectedShippingProvidersApiRequest\n >({\n query: (body) => {\n return {\n url: `/api/webapi/selling/member-selected-shipping-providers`,\n method: 'POST',\n body\n };\n },\n onQueryStarted: async (arg, { dispatch, queryFulfilled }) => {\n // optimistic update\n const patchResult = dispatch(\n preferredShippingProvidersApi.util.updateQueryData(\n 'getSelectedShippingProviders',\n undefined,\n (draft) => {\n Object.assign(draft, {\n selectedShippingProviders:\n // find available shipping providers that match an id in the array of selected shipping providers we post\n draft.availableShippingProviders?.filter(\n (availableShippingProvider) =>\n arg.selectedShippingProviders?.includes(\n availableShippingProvider.providerSettingId ??\n ''\n )\n )\n });\n }\n )\n );\n\n try {\n await queryFulfilled;\n } catch {\n patchResult.undo();\n }\n }\n })\n })\n});\n\nexport const {\n useGetSelectedShippingProvidersQuery,\n useSetSelectedShippingProvidersMutation\n} = preferredShippingProvidersApi;\n","export default \"//static.tradera.net/touchweb/static/output/images/headphones-sneakers.aa886eee.svg\";","// extracted by mini-css-extract-plugin\nexport default {\"card\":\"card--ZzCKZ\"};","import type React from 'react';\nimport { Heading } from 'tradera/components/atoms/heading/heading';\nimport ALink from 'tradera/components/alink/alink';\nimport { Text } from 'tradera/components/atoms/text/text';\nimport TraderaCircleSVG from 'tradera/components/underage/headphones-sneakers.svg';\nimport styles from './underage.module.scss';\nimport { classNames } from 'tradera/utils/class-names';\nimport { useTranslator } from 'tradera/lang/translate';\n\ntype UnderageProps = {\n children?: React.ReactNode;\n onLinkClick?: () => void;\n};\n\nexport const Underage = ({ children, onLinkClick }: UnderageProps) => {\n const { t } = useTranslator();\n\n return (\n
\n \"\"\n \n {t('underage_heading')}\n \n \n {t('underage_body')}{' '}\n \n {t('underage_readMoreLink_label')}\n \n \n {children}\n
\n );\n};\n","import BPOINT from '@tradera/blueprint/theme/scss/export/breakpoints.module.scss';\n\n// Explicit list of breakpoints for code completion\nexport enum BREAKPOINTS {\n XS = 'XS',\n SM = 'SM',\n MD = 'MD',\n LG = 'LG',\n XL = 'XL'\n}\n\nexport type BreakpointWidth = {\n name: BREAKPOINTS;\n min: number;\n max: number;\n};\n\nexport const BREAKPOINT_SIZES: Record =\n Object.fromEntries(\n Object.entries(BPOINT)\n .filter(([bp]) => BREAKPOINTS[bp as keyof typeof BREAKPOINTS])\n .map(([name, size], index, entries) => {\n const min = parseInt(size, 10);\n // Look ahead to next breakpoint entry and get its size minus one as current breakpoint's max size\n const max =\n index + 1 in entries\n ? parseInt(entries[index + 1][1], 10) - 1\n : 99999;\n return [\n name as keyof typeof BREAKPOINTS,\n {\n min,\n max,\n name: name as BREAKPOINTS\n }\n ];\n })\n );\n","enum ItemTypes {\n AUCTION = 'Auction',\n AUCTION_BIN = 'AuctionBin',\n PURE_BIN = 'PureBin',\n SHOP_ITEM = 'ShopItem'\n}\n\nexport default ItemTypes;\n","const STORAGE_KEYS = {\n COOKIE_NOTIFICATION: 'cookieNotification',\n ITEMS_CLICK: 'items-click',\n SAVE_SEARCH_HINT: 'save-search-tooltip',\n SHARE_WISHLIST_TOOLTIP: 'share-wishlist-tooltip',\n SHARE_WISHLIST_TOOLTIP_SANTA: 'share-wishlist-tooltip-santa',\n SEARCH_RECENT: 'search-recent',\n RECENT_BRAND_ATTRIBUTES: 'recent-brand-attributes',\n WEB_PUSH_ACCEPTED: 'web_push_accepted',\n WEB_PUSH_SHOWN_MODALS: 'webPushModalsShown',\n SELLER_LIST_COMPACT_VIEW: 'sellerListCompactView',\n SYI_NEW_LAYOUT_INFO_DISMISSED: 'syiNewLayoutInfoDismissed',\n SYI_RESELL_SHOWN_FOR_DRAFT_IDS: 'syiResellShownForDraftIds',\n SYI_RESELL_ITEM_SHOWN_FOR_DRAFT_IDS: 'syiResellItemShownForDraftIds',\n SHIPPING_CONFIRMATION_PAGE_DIGITAL_STAMP_MODAL_DISMISSED_COUNT:\n 'shippingConfirmationPageDigitalStampModalDismissedCount',\n SELLER_LIST_MARK_AS_SENT_HINT: 'seller-list-mark-as-sent-tooltip',\n WISHLIST_BADGE_DATE_SHOWN: 'wishlist-badge-date-shown',\n ONBOARD_BUYER_CATEGORIES: 'onboard-buyer-categories',\n ONBOARD_SELLER_CLOSED: 'onboard-seller-closed',\n VIEWED_START_PAGE_COUNT: 'viewed-start-page-count',\n // State caches\n // NOTE: Even if these keys aren't used, we check for the values which are defined in utils/cache.js so don't remove these even if they looked unused\n CACHE_SYSTEM_MESSAGES: 'cache.systemMessages',\n CACHE_SYSTEM_BADGE: 'cache.systemBadges',\n // Apple ID login user\n APPLE_ID_USER: 'appleId.user',\n\n USER_PROFILE: 'tradera--user-profile',\n HAS_SHOWED_MFA_VERIFICATION_MESSAGE: 'hasShowedMfaVerification'\n};\n\nconst STORAGE_VALUES = {\n SAVE_SEARCH_HINT_CLICKED: 'CLOSE_CLICKED',\n SHARE_WISHLIST_TOOLTIP_CLICKED: 'CLOSE_CLICKED',\n SHARE_WISHLIST_TOOLTIP_SANTA_CLICKED: 'CLOSE_CLICKED',\n SELLER_LIST_MARK_AS_SENT_HINT_CLICKED: 'CLOSE_CLICKED',\n ONBOARD_SELLER_CLOSED_CLICKED: 'CLOSE_CLICKED'\n};\n\nexport { STORAGE_KEYS, STORAGE_VALUES };\n","export const URL_HASHES = {\n openBiddingModal: 'bidding=1',\n saveInWishlist: 'wishlist=1',\n openBinModal: 'bin=1',\n openChangeCombinedShippingModal: 'open_change_combined_shipping=',\n markAsPaid: 'mark_as_paid=',\n hasRequestedCombinedShipping: 'has_requested_combined_shipping=',\n openReferralModal: 'show_referral=1',\n buyShopItem: 'shop_item=1'\n};\n","import { useCallback, useEffect, useReducer } from 'react';\nimport { logger } from 'packages/logger';\n\nfunction fetchReducer(state, action) {\n switch (action.type) {\n case 'error': {\n return {\n ...state,\n status: 'rejected',\n error: action.error\n };\n }\n case 'success': {\n return {\n ...state,\n status: 'resolved',\n data: action.data\n };\n }\n case 'started': {\n return {\n ...state,\n status: 'fetching'\n };\n }\n default: {\n throw new Error(`Unhandled action type: ${action.type}`);\n }\n }\n}\n\n/**\n * Fetch data hook\n * @param {Function?} apiFunction Function which makes the async API request\n * @param {String} apiParameter (Optional) Variable that could be passed to apiFunction\n * @param {String} apiName (Optional) The name of the API request for logging purposes\n * @return {uknown} Object containing the data, status and retry function for the request.\n */\n\nexport function useFetchData(apiFunction, apiParameter, apiName) {\n const [state, dispatch] = useReducer(fetchReducer, {\n status: apiFunction ? 'idle' : 'resolved',\n data: {},\n error: null\n });\n\n const handleFetch = useCallback(async () => {\n dispatch({ type: 'started' });\n apiFunction(apiParameter)\n .then(({ data }) => {\n dispatch({ type: 'success', data });\n return;\n })\n .catch((error) => {\n dispatch({ type: 'error', error });\n logger(\n new Error(\n `Fetch ${apiName || apiParameter} failed ${error}`\n )\n );\n });\n }, [apiFunction, apiParameter, apiName]);\n\n useEffect(() => {\n if (apiFunction) {\n handleFetch();\n }\n }, [handleFetch, apiFunction]);\n\n const retryFetch = () => {\n handleFetch();\n };\n\n return {\n isLoading: state.status === 'idle' || state.status === 'fetching',\n isIdle: state.status === 'idle',\n isFetching: state.status === 'fetching',\n isResolved: state.status === 'resolved',\n isRejected: state.status === 'rejected',\n retryFetch,\n ...state\n };\n}\n","import { useAppSelector } from 'tradera/state/hooks';\n\nexport const useIsLoggedIn = () =>\n useAppSelector((state) => state.member?.isLoggedIn);\n\nexport default useIsLoggedIn;\n","import { useEffect } from 'react';\n\nexport const useOnMount = (fn) => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return useEffect(fn, []);\n};\n\nexport const useOnHydration = useOnMount;\n","type Options = ScrollIntoViewOptions & { offset?: number };\n\nconst defaultOptions: Options = {\n behavior: 'smooth'\n};\n\n/**\n * Use this hook to scroll to a specific element on the page.\n *\n * By default it will scroll to the top of an element with smooth behavior.\n * You can pass in an offset to scroll to a specific position.\n * You can also pass in any other options that are available for the\n * [scrollTo](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo) function.\n *\n * @example\n * const scroll = useScrollIntoView();\n *\n * scroll('[data-validation-error-anchor=\"shortDescription\"]', {\n * offset: 45\n * });\n *\n * @returns scroll function\n */\nexport const useScrollIntoView = () => {\n const scroll = (selector: string, options?: Options) => {\n let element;\n\n if (!selector) return;\n\n try {\n element = document.querySelector(selector);\n } catch {\n console.warn(\n `Invalid selector passed to useScrollIntoView hook: \"${selector}\"`\n );\n return;\n }\n if (!element) return;\n\n // scrollIntoView if perhaps preferred over scrollTo, but it doesn't\n // support the offset option.\n if (options?.offset) {\n const y =\n element.getBoundingClientRect().top +\n window.pageYOffset -\n options.offset;\n window.scrollTo({ top: y, ...defaultOptions, ...options });\n return;\n }\n\n element.scrollIntoView({ ...defaultOptions, ...options });\n };\n return scroll;\n};\n","/* eslint-disable better-mutation/no-mutation */\n/**\n * Debounce function\n * Borrowed from underscore;\n */\nexport const debounce = ) => void>(\n func: T,\n wait: number,\n immediate: boolean = false\n) => {\n let timeout: ReturnType | null;\n return function (...args: Parameters) {\n const later = () => {\n timeout = null;\n if (!immediate) {\n func(...args);\n }\n };\n const callNow = immediate && !timeout;\n if (timeout) {\n clearTimeout(timeout);\n }\n timeout = setTimeout(later, wait);\n if (callNow) {\n func(...args);\n }\n };\n};\n","export const isDev = () => process.env.NODE_ENV !== 'production';\n","export const mapCurrencyCodeToCountryCode = (currencyCode) => {\n const countryCode = {\n sek: 'SE',\n usd: 'US',\n jpy: 'JP',\n gbp: 'GB',\n nok: 'NO',\n eur: 'EU',\n dkk: 'DK'\n }[currencyCode.toLowerCase()];\n if (!countryCode)\n throw `CurrencyCode ${currencyCode} has no mapping to country code`;\n return countryCode;\n};\n","// We map this way to ensure that each key in lokalise is present in code.\n// This allows us to clean up unnecessary codes in the future.\nexport const mapLanguageCodeToLanguageKey = (languageCode) => {\n const lokaliseKey = {\n sv: 'language_sv',\n da: 'language_da',\n de: 'language_de',\n en: 'language_en',\n fr: 'language_fr',\n nl: 'language_nl'\n }[languageCode.toLowerCase()];\n if (!lokaliseKey)\n throw `Language ${languageCode} has no mapping to lokalise key`;\n return lokaliseKey;\n};\n","import { useCallback } from 'react';\nimport { useCurrentLanguage } from 'tradera/lang/translate';\nimport { formatPrice, type Price } from 'tradera/localization/format-price';\nimport { useAppSelector } from 'tradera/state/hooks';\nimport { selectPreferredCurrency } from 'tradera/state/multi-currency/selectors';\nimport { isNullOrUndefined } from 'tradera/utils/condition-check';\n\ntype UseSekPriceFormatterOptions = {\n showSymbol?: boolean;\n decimals?: number;\n onlyShowValid?: boolean;\n};\n\nexport const useSekPriceFormatter = ({\n showSymbol = true,\n decimals,\n onlyShowValid = false\n}: UseSekPriceFormatterOptions = {}) => {\n const { language } = useCurrentLanguage();\n const preferredCurrency = useAppSelector(selectPreferredCurrency);\n\n return useCallback(\n (price: Price) => {\n if (\n onlyShowValid &&\n (isNullOrUndefined(price) || Number.isNaN(price))\n ) {\n return '';\n }\n\n return formatPrice(price, language, {\n preferredCurrency: preferredCurrency.code,\n ...(!showSymbol && { style: 'decimal' }),\n ...(decimals && {\n minimumFractionDigits: decimals,\n maximumFractionDigits: decimals\n })\n });\n },\n [decimals, language, preferredCurrency.code, showSymbol, onlyShowValid]\n );\n};\n","// Note that these are aligned with apps, don't change the values without\n// checking with Team Analytics\nexport enum SOURCE_SCREEN {\n BRAND = 'Brand',\n CAMPAIGN = 'Campaign',\n CATEGORY = 'Category',\n CAUSE = 'Cause',\n CAUSES = 'Causes',\n ENDLESS_RECOMMENDATION = 'Endless recommendation',\n FAVOURITE_SELLERS = 'Favourite sellers',\n HOME = 'Home',\n MY_TRADERA_OVERVIEW = 'My Tradera overview',\n NEAR_YOU = 'Local buying',\n SEARCH_RESULTS = 'Search results',\n SELLER_PROFILE = 'Seller profile',\n STORE_PROFILE = 'Store profile',\n TOP_LISTS = 'Top lists',\n VALUATION = 'Valuation',\n VIP = 'View item',\n WISHLIST = 'Wishlist'\n}\n","/* eslint-disable better-mutation/no-mutation */\nimport { createSlice, type PayloadAction } from '@reduxjs/toolkit';\nimport { normalize } from './helpers';\nimport { type DiscoverState, initialState } from './initial-state';\nimport type {\n CategoryLinkViewModel,\n ItemCardViewModel,\n SearchPageApiResponse\n} from 'tradera/state/services/types/webapi-discover-generated';\nimport type { QueryParams } from 'tradera/apps/tradera/components/discover/components/filters/types';\n\nconst slice = createSlice({\n name: 'discover',\n initialState,\n reducers: {\n initialize: (_state, { payload }: PayloadAction) => {\n return { ...payload };\n },\n requestSearchResults: (state) => {\n state.error = null;\n },\n receiveSearchResults: (\n state,\n {\n payload\n }: PayloadAction<{\n result: SearchPageApiResponse & {\n categoryPath?: CategoryLinkViewModel[];\n };\n endpoint?: string | null;\n queryParams?: QueryParams;\n shippingRegionCountryCodeIso2?: string;\n }>\n ) => {\n const {\n result,\n endpoint = null,\n queryParams = null,\n shippingRegionCountryCodeIso2 = 'se'\n } = payload;\n\n return {\n ...state,\n endpoint,\n error: null,\n hasResult: true,\n queryParams,\n ...normalize(result, shippingRegionCountryCodeIso2)\n };\n },\n handleSearchResultsError: (\n state,\n { payload }: PayloadAction\n ) => {\n const normalized = normalize({});\n state.error = payload;\n state.hasResult = true;\n Object.assign(state, normalized);\n },\n setSingleFilterValue: (\n state,\n {\n payload\n }: PayloadAction<{\n filter: keyof NonNullable;\n value: string | undefined;\n }>\n ) => {\n const currentFilter = state.filters?.[payload.filter];\n\n state.filters = {\n ...state.filters,\n [payload.filter]: {\n ...currentFilter,\n selectedValue: payload.value,\n // TS complains about types being either boolean or undefined, so this is to make tsc happy\n isIndexable: !!currentFilter?.isIndexable,\n translateOptions: !!currentFilter?.translateOptions\n }\n };\n },\n updateItem: (\n state,\n {\n payload\n }: PayloadAction<{\n itemId: number;\n onDisplay: boolean;\n discountRate: number;\n price: number;\n }>\n ) => {\n const { itemId, ...itemData } = payload;\n return {\n ...state,\n items: state.items.map((x) =>\n x.itemId === itemId ? { ...x, ...itemData } : x\n ),\n itemsOnDisplay: state.itemsOnDisplay.map((x) =>\n x.itemId === itemId ? { ...x, ...itemData } : x\n ),\n relatedItems: state.relatedItems.map((x) =>\n x.itemId === itemId ? { ...x, ...itemData } : x\n )\n };\n },\n addItemOnDisplay: (\n state,\n {\n payload\n }: PayloadAction<{\n item: ItemCardViewModel;\n }>\n ) => {\n return state.itemsOnDisplay.some(\n (x) => x.itemId === payload.item.itemId\n )\n ? state\n : {\n ...state,\n itemsOnDisplay: [...state.itemsOnDisplay, payload.item]\n };\n },\n removeItemOnDisplay: (\n state,\n {\n payload\n }: PayloadAction<{\n item: ItemCardViewModel;\n }>\n ) => {\n return state.itemsOnDisplay.some(\n (x) => x.itemId === payload.item.itemId\n )\n ? {\n ...state,\n itemsOnDisplay: state.itemsOnDisplay.filter(\n (x) => x.itemId !== payload.item.itemId\n )\n }\n : state;\n },\n setCategoryPath: (\n state,\n { payload }: PayloadAction\n ) => {\n state.categoryPath = payload;\n state.currentCategoryId = (payload && payload[0].id) || 0;\n },\n setCurrentCategoryId: (state, { payload }: PayloadAction) => {\n state.currentCategoryId = payload;\n },\n setIsFilterOpen: (state, { payload }: PayloadAction) => {\n state.isFilterOpen = payload;\n },\n reset: (\n state,\n { payload }: PayloadAction<{ initialState: DiscoverState }>\n ) => {\n Object.assign(state, payload.initialState);\n },\n setWardrobeProfileEnabled: (\n state,\n { payload }: PayloadAction\n ) => {\n if (state?.wardrobeProfile) {\n state.wardrobeProfile.isEnabled = payload;\n }\n }\n }\n});\n\nexport const {\n initialize,\n requestSearchResults,\n receiveSearchResults,\n handleSearchResultsError,\n setSingleFilterValue,\n updateItem,\n addItemOnDisplay,\n removeItemOnDisplay,\n setCategoryPath,\n setIsFilterOpen,\n setCurrentCategoryId,\n reset,\n setWardrobeProfileEnabled\n} = slice.actions;\nexport const reducer = slice.reducer;\n","import { GtmService } from 'tradera/services/google-tagmanager/google-tagmanager-service';\nimport Analytics from 'packages/analytics';\nimport { signIn, openNotificationOptinModalAction } from '../ui/actions';\nimport { postWishlistItem } from './api';\nimport { API_ERRORS } from 'tradera/utils/api';\nimport { MODAL_TYPES } from 'tradera/state/push-notifications/constants';\nimport { hideWishListNudge } from 'tradera/apps/tradera/state/wish-list-nudge/reducer';\nimport cookieUtil from 'tradera/utils/cookie';\nimport {\n RECENTLY_VIEWED_ITEM_IDS,\n APP_DOWNLOAD_MODAL_DISMISSED\n} from 'tradera/constants/cookies';\nimport type { AppDispatch, GetState } from '../configure-store';\nimport {\n wishlist as setWishlistExists,\n addRecentlyViewed as addRecentlyViewedAction,\n wishlistCountIncrement\n} from './reducer';\nimport type { SOURCE_SCREEN } from 'tradera/services/google-tagmanager/constants';\n\nconst RECENTLY_VIEWED_ITEM_IDS_TTL = 30 * 24 * 60 * 60 * 1000;\n\nexport const addRecentlyViewed =\n (itemId: number) => async (dispatch: AppDispatch, getState: GetState) => {\n dispatch(addRecentlyViewedAction(itemId));\n\n const {\n items: { recentItemIds }\n } = getState();\n\n cookieUtil.createCookie(\n RECENTLY_VIEWED_ITEM_IDS,\n recentItemIds.join(';'),\n new Date(new Date().getTime() + RECENTLY_VIEWED_ITEM_IDS_TTL)\n );\n };\n\ntype WishListOptions = {\n value?: boolean;\n shouldNotTrackEventBecauseNeedsToBeSameAsLegacyVip?: boolean;\n showWishlistModals?: boolean;\n sectionGaName?: string;\n gaSourceScreen: SOURCE_SCREEN;\n gaWishlistType?: string;\n};\n\n/**\n * Toggle item in wishlist\n */\nexport const wishlist =\n (\n itemId: number,\n {\n value,\n shouldNotTrackEventBecauseNeedsToBeSameAsLegacyVip = false,\n showWishlistModals = true,\n sectionGaName,\n gaSourceScreen,\n gaWishlistType = 'Item card'\n }: WishListOptions\n ) =>\n async (dispatch: AppDispatch, getState: GetState) => {\n const {\n member: { isLoggedIn, memberId },\n items: { wishListItemIds },\n page\n } = getState();\n let existsInWishList: boolean;\n if (value === undefined) {\n existsInWishList = wishListItemIds.includes(itemId);\n } else {\n existsInWishList = !value;\n }\n\n const redirectUrl = window.location.toString();\n const onSignedOutError = () => dispatch(signIn({ redirectUrl }));\n if (!isLoggedIn) {\n onSignedOutError();\n return;\n }\n\n dispatch(setWishlistExists({ itemId, exists: !existsInWishList }));\n\n if (!existsInWishList) {\n GtmService.trackGtmEvent('add-to-wishlist', {\n memberId: memberId,\n itemId: itemId\n });\n dispatch(hideWishListNudge());\n }\n if (!shouldNotTrackEventBecauseNeedsToBeSameAsLegacyVip) {\n Analytics.trackEvent({\n category: 'Wish list',\n action: existsInWishList ? 'remove' : 'add',\n label: page.type\n });\n }\n\n GtmService.trackGA4(\n existsInWishList ? 'remove_from_wishlist' : 'add_to_wishlist',\n {\n item_id: itemId,\n items: [{ item_id: itemId }],\n source_section: sectionGaName,\n source_screen: gaSourceScreen,\n wishlist_type: gaWishlistType\n }\n );\n\n const shouldAddToWishlist = !existsInWishList;\n\n return postWishlistItem(itemId, shouldAddToWishlist)\n .then(async () => {\n if (shouldAddToWishlist && showWishlistModals) {\n dispatch(wishlistCountIncrement());\n }\n if (showWishlistModals && shouldAddToWishlist) {\n dispatch(showNotificationOptinModalWhenApplicable());\n }\n return shouldAddToWishlist;\n })\n .catch((error) => {\n // Restore previous wishlist status on error\n dispatch(\n setWishlistExists({\n itemId,\n exists: existsInWishList\n })\n );\n if (error.message === API_ERRORS.LOGGED_OUT) {\n onSignedOutError();\n }\n });\n };\n\nconst showNotificationOptinModalWhenApplicable =\n () => async (dispatch: AppDispatch, getState: GetState) => {\n const appDownloadModalDismissed =\n getState().memberStorage.data[APP_DOWNLOAD_MODAL_DISMISSED] === '1';\n if (appDownloadModalDismissed) {\n dispatch(\n openNotificationOptinModalAction(\n MODAL_TYPES.wishlistReminders,\n 'Enable - Wishlist - Reminders (from alert)',\n 'pushModal_wishlist_title',\n 'pushModal_wishlist_description',\n ['wishlistReminders']\n )\n );\n }\n };\n","import qs from 'qs';\nimport {\n checkResponseLoggedOut,\n finalizeResponse,\n handleError,\n logError\n} from 'tradera/utils/api';\nimport { touchWebClient } from 'tradera/utils/http';\n\nexport function postWishlistItem(itemId, add) {\n return touchWebClient\n .post(add ? `shopping/wishlist/add` : `shopping/wishlist/remove`, {\n itemId\n })\n .then(checkResponseLoggedOut())\n .then(finalizeResponse())\n .catch(handleError())\n .catch((error) => {\n logError(error);\n throw error;\n });\n}\n\nexport function getItemDiscountQuota() {\n return touchWebClient\n .get('/profile/shop-item-settings/quotas')\n .then(finalizeResponse())\n .catch(handleError())\n .catch((error) => {\n logError(error);\n throw error;\n });\n}\n\nexport function postItemSettings(itemId, onDisplay, discountRate) {\n const formData = qs.stringify({\n itemId,\n onDisplay,\n discountRate\n });\n return touchWebClient\n .post('/profile/shop-item-settings/settings', formData)\n .then(checkResponseLoggedOut())\n .then(finalizeResponse())\n .catch(handleError())\n .catch((error) => {\n logError(error);\n throw error;\n });\n}\n","/* eslint-disable better-mutation/no-mutation */\nimport { type PayloadAction, createSlice } from '@reduxjs/toolkit';\nimport { getInitialState } from './initial-state';\nimport type { InitData } from 'tradera/state/init-data/types';\n\n// The max size of the item cache\nconst RECENTLY_VIEWED_MAX_LENGTH = 20;\n\ntype ItemsState = {\n recentItemIds: number[];\n wishListItemIds: number[];\n wishListAddedCount: number;\n};\n\nexport const initialState: ItemsState = {\n recentItemIds: [],\n wishListItemIds: [],\n wishListAddedCount: 0\n};\n\nexport const itemsSlice = createSlice({\n name: 'items',\n initialState,\n reducers: {\n addRecentlyViewed: (state, action) => {\n const { payload: itemId } = action;\n // Remove item if already present\n state.recentItemIds = state.recentItemIds.filter(\n (x) => x !== itemId\n );\n // Add to front of list\n state.recentItemIds.unshift(itemId);\n // Limit list length\n state.recentItemIds = state.recentItemIds.slice(\n 0,\n RECENTLY_VIEWED_MAX_LENGTH\n );\n },\n setRecentlyViewed: (state, action) => {\n const { payload } = action;\n state.recentItemIds = payload.slice(0, RECENTLY_VIEWED_MAX_LENGTH);\n },\n /**\n *\n * @param state\n * @param action { payload: { itemId: number; exists: boolean } } where exists is true if the item should be added to the wishlist, false if it should be removed\n */\n wishlist: (\n state,\n action: PayloadAction<{ itemId: number; exists: boolean }>\n ) => {\n const {\n payload: { itemId, exists }\n } = action;\n\n const wishListItemIds = new Set(state.wishListItemIds || []);\n if (exists) {\n wishListItemIds.add(itemId);\n } else {\n wishListItemIds.delete(itemId);\n }\n state.wishListItemIds = Array.from(wishListItemIds);\n },\n wishlistCountIncrement: (state) => {\n state.wishListAddedCount = state.wishListAddedCount + 1;\n },\n wishlistAddRange: (state, action: PayloadAction) => {\n const { payload: itemIds } = action;\n const wishListItemIds = new Set(state.wishListItemIds || []);\n itemIds?.forEach((itemId) => wishListItemIds.add(itemId));\n state.wishListItemIds = Array.from(wishListItemIds);\n },\n wishlistRemoveRange: (state, action: PayloadAction) => {\n const { payload: itemIds } = action;\n const wishListItemIds = new Set(state.wishListItemIds || []);\n itemIds?.forEach((itemId) => wishListItemIds.delete(itemId));\n state.wishListItemIds = Array.from(wishListItemIds);\n },\n initialize: (state, action: PayloadAction) => {\n state = getInitialState(action.payload);\n }\n }\n});\n\nexport const {\n addRecentlyViewed,\n setRecentlyViewed,\n wishlist,\n wishlistAddRange,\n wishlistRemoveRange,\n initialize,\n wishlistCountIncrement\n} = itemsSlice.actions;\n\nexport default itemsSlice.reducer;\n","import type { RootState } from '../configure-store';\n\nexport const selectExistsInWishList = (itemId: number) => {\n return (state: RootState) => state.items?.wishListItemIds.includes(itemId);\n};\n\nexport const selectWishListItemIds = (state: RootState) =>\n state.items?.wishListItemIds;\n","import axios from 'axios';\nimport { handleError } from 'tradera/utils/api';\n\nexport const saveLanguageSetting = (code, toLocalizedUrl) =>\n axios\n .post(toLocalizedUrl('/my/profile/save-language-setting'), {\n languageCodeIso2: code\n })\n .catch(handleError());\n\n// Export object for Sinon stubbing\nexport default {\n saveLanguageSetting\n};\n","import { createAsyncThunk } from '@reduxjs/toolkit';\nimport type { AppDispatch, GetState } from 'tradera/state/configure-store';\nimport { setValue } from 'tradera/state/member-storage/reducer';\nimport type { MemberServerStorageListApiResponse } from 'tradera/state/services/types/webapi-member-generated';\nimport { webApiClient } from 'tradera/utils/http';\n\nexport const loadMemberServerStorageData = createAsyncThunk(\n 'memberStorage/loadMemberServerStorageData',\n async () => {\n const respone =\n await webApiClient.get(\n '/member/server-storage'\n );\n return respone.data;\n }\n);\n\nexport const saveMemberServerStorageValue =\n (key: string, value: string) =>\n async (dispatch: AppDispatch, getState: GetState) => {\n const currentValue = getState().memberStorage.data[key];\n // no need to save if value is the same\n if (currentValue === value) {\n return;\n }\n dispatch(setValue({ key, value }));\n const response = await webApiClient.put('/member/server-storage', {\n key,\n value\n });\n return response;\n };\n","import { useCallback, useEffect } from 'react';\nimport { useCookieUtil } from 'tradera/hooks/use-cookie-util';\nimport useIsLoggedIn from 'tradera/hooks/use-is-loggedin';\nimport { useAppDispatch, useAppSelector } from 'tradera/state/hooks';\nimport {\n loadMemberServerStorageData,\n saveMemberServerStorageValue\n} from 'tradera/state/member-storage/actions';\nimport { setValue } from 'tradera/state/member-storage/reducer';\n\nconst useMemberServerStorageInternal = <\n TValue,\n TDefaultValue extends TValue | undefined\n>(\n key: string,\n parse: (value: string) => TValue,\n stringify: (value: TValue) => string,\n defaultValue: TDefaultValue\n) => {\n const dispatch = useAppDispatch();\n const isLoggedIn = useIsLoggedIn();\n const isUninitialized = useAppSelector(\n (state) => state.memberStorage.isUnitialized\n );\n const isSuccess = useAppSelector((state) => state.memberStorage.isSuccess);\n const currentValue = useAppSelector(\n (state) => state.memberStorage.data[key]\n );\n if (isLoggedIn && isUninitialized) {\n dispatch(loadMemberServerStorageData());\n }\n\n const storeValue = useCallback(\n async (value: TValue) => {\n if (isLoggedIn) {\n return dispatch(\n saveMemberServerStorageValue(key, stringify(value))\n );\n }\n },\n [dispatch, isLoggedIn, key, stringify]\n );\n\n const value =\n currentValue !== undefined ? parse(currentValue) : defaultValue;\n\n return [value, storeValue, { isReady: isSuccess }] as const;\n};\n\nconst useMemberServerStorageWithCookieFallbackInternal = <\n TValue,\n TDefaultValue extends TValue | undefined\n>(\n key: string,\n parse: (value: string) => TValue,\n stringify: (value: TValue) => string,\n defaultValue: TDefaultValue,\n expires?: number | string | Date\n) => {\n const dispatch = useAppDispatch();\n const isLoggedIn = useIsLoggedIn();\n const [_value, _storeValue, { isReady: _isReady }] =\n useMemberServerStorageInternal(\n key,\n parse,\n stringify,\n // Use undefined as default value to make it possible to distinguish\n // between default value and no value.\n undefined\n );\n\n const cookieUtil = useCookieUtil();\n const isFunctionalCookieEnabled = cookieUtil.gdpr.isFunctionalEnabled();\n\n // Synchronise state with cookie value\n useEffect(() => {\n // Don't overwrite existing value\n if (_value !== undefined) return;\n\n // Don't read cookie if functional cookies are disabled\n if (!isFunctionalCookieEnabled) return;\n\n // Don't synchronise state if server data is not ready\n if (isLoggedIn && !_isReady) return;\n\n const cookieValue = cookieUtil.getCookie(key);\n\n // Nothing to synchronise if we have no cookie value\n if (cookieValue === null || cookieValue === undefined) return;\n const parsedValue = parse(cookieValue);\n\n if (isLoggedIn) {\n _storeValue(parsedValue);\n } else {\n dispatch(setValue({ key, value: stringify(parsedValue) }));\n }\n }, [\n isLoggedIn,\n isFunctionalCookieEnabled,\n _isReady,\n _value,\n key,\n cookieUtil,\n dispatch,\n _storeValue,\n parse,\n stringify\n ]);\n\n const storeValue = useCallback(\n (value: TValue) => {\n if (isLoggedIn) {\n return _storeValue(value);\n }\n const stringValue = stringify(value);\n if (isFunctionalCookieEnabled) {\n cookieUtil.createCookie(key, stringValue, expires);\n }\n dispatch(setValue({ key, value: stringValue }));\n },\n [\n _storeValue,\n cookieUtil,\n isFunctionalCookieEnabled,\n isLoggedIn,\n key,\n stringify,\n dispatch,\n expires\n ]\n );\n\n let fallbackValue: TValue | undefined;\n // No use for fallback value if we already have value\n if (!_value) {\n // Can only use cookie if functional cookies are enabled\n if (isFunctionalCookieEnabled) {\n const cookieValue = cookieUtil.getCookie(key);\n if (cookieValue !== null && cookieValue !== undefined) {\n fallbackValue = parse(cookieValue);\n }\n }\n }\n\n return [\n _value ?? fallbackValue ?? defaultValue,\n storeValue,\n {\n isReady: _isReady || !isLoggedIn,\n isPersistant: isLoggedIn || isFunctionalCookieEnabled\n }\n ] as const;\n};\n\n/**\n * You will get an array with three elements:\n * 1. The value\n * 2. A function to set the value\n * 3. An object with two properties:\n * - isReady: true if the value is ready to be used\n * - isPersistant: true if the value is persisted in the server\n * The hook is called with the key and defaultValue.\n *\n * @example\n * const [hasSeenAutoShippingModal, setHasSeenAutoShippingModal, { isReady }] =\n * useMemberServerStorageBoolean(HAS_SEEN_AUTO_SHIPPING_MODAL, false);\n */\nexport const useMemberServerStorageBoolean = (\n key: string,\n defaultValue?: boolean\n) =>\n useMemberServerStorageInternal(\n key,\n useCallback((value: string) => value === '1', []),\n useCallback((value: boolean) => (value ? '1' : '0'), []),\n defaultValue\n );\n\nexport const useMemberServerStorageNumber = <\n TDefaultValue extends number | undefined\n>(\n key: string,\n defaultValue: TDefaultValue\n) =>\n useMemberServerStorageInternal(\n key,\n useCallback((value: string) => Number(value), []),\n useCallback((value: number) => value.toString(), []),\n defaultValue\n );\n\nexport const useMemberServerStorageWithCookieFallbackBoolean = (\n key: string,\n defaultValue?: boolean,\n expires?: number | string | Date\n) =>\n useMemberServerStorageWithCookieFallbackInternal(\n key,\n // We also check for value true here since som old cookies might have been set with true/false\n useCallback((value: string) => value === '1' || value === 'true', []),\n useCallback((value: boolean) => (value ? '1' : '0'), []),\n defaultValue,\n expires\n );\n\nexport const useMemberServerStorageWithCookieFallbackString = <\n TValue extends string = string\n>(\n key: string,\n defaultValue?: TValue,\n expires?: number | string | Date\n) =>\n useMemberServerStorageWithCookieFallbackInternal(\n key,\n useCallback((value: string) => value as TValue, []),\n useCallback((value: TValue) => value as string, []),\n defaultValue,\n expires\n );\n\nexport const useMemberServerStorage = (\n key: string,\n defaultValue: TValue\n) =>\n useMemberServerStorageInternal(\n key,\n useCallback((value: string) => JSON.parse(value) as TValue, []),\n useCallback((value: TValue) => JSON.stringify(value), []),\n defaultValue\n );\n\nexport const useMemberServerStorageWithCookieFallback = <\n TValue extends unknown | undefined\n>(\n key: string,\n defaultValue: TValue,\n expires?: number | string | Date\n) =>\n useMemberServerStorageWithCookieFallbackInternal(\n key,\n useCallback((value: string) => JSON.parse(value) as TValue, []),\n useCallback((value: TValue) => JSON.stringify(value), []),\n defaultValue,\n expires\n );\n","export const MAX_RECENT_SEARCHES_STORED_IN_COOKIES = 16;\n","import { RECENT_SEARCHES } from 'tradera/constants/cookies';\nimport { MAX_RECENT_SEARCHES_STORED_IN_COOKIES } from 'tradera/state/personalisation/constants';\nimport { getRecentSearchesLocalStorage } from 'tradera/state/personalisation/helpers';\nimport type { RecentSearch } from 'tradera/state/personalisation/reducer';\nimport cookieUtil from 'tradera/utils/cookie';\nimport {\n stripItmFromQueryParameters,\n formatQueryParams,\n toQueryParameters,\n toSearchString\n} from 'tradera/utils/url';\n\nexport const parseRecentSearchesFromCookiesString = (\n cookieString: string\n): RecentSearch[] => {\n if (!cookieString) {\n return [];\n }\n\n try {\n const json = JSON.parse(cookieString);\n\n return json.map((item: string) => {\n const queryParams = stripItmFromQueryParameters(\n formatQueryParams(toQueryParameters(item))\n );\n return {\n text: queryParams.q,\n queryParams: queryParams\n };\n });\n } catch {\n return [];\n }\n};\n\nconst mapToCookie = (\n recentSearches: RecentSearch[],\n limit: number\n): string[] => {\n const mapped = recentSearches.slice(0, limit).map((item) => {\n return toSearchString(item.queryParams);\n });\n\n return mapped;\n};\n\nexport const syncLocalStorageToCookies = () => {\n const recentSearches = getRecentSearchesLocalStorage();\n const mapped = mapToCookie(\n recentSearches,\n MAX_RECENT_SEARCHES_STORED_IN_COOKIES\n );\n const cookieString = JSON.stringify(mapped);\n cookieUtil.createCookie(RECENT_SEARCHES, cookieString, 365);\n return cookieString;\n};\n","/* eslint-disable better-mutation/no-mutation */\nimport { type PayloadAction, createSlice } from '@reduxjs/toolkit';\nimport {\n getRecentBrandAttributesLocalStorage,\n getRecentSearchesLocalStorage\n} from './helpers';\nimport { parseRecentSearchesFromCookiesString } from 'tradera/state/personalisation/recent-searches-cookies';\n\nexport type RecentSearch = {\n text: string;\n count: number;\n queryParams: Record;\n};\n\ntype PersonalisationState = {\n brands: {\n items: unknown[];\n status: string;\n };\n recentSearches: RecentSearch[];\n recentSearchesFromCookie: RecentSearch[];\n recentBrandAttributes: {\n value: string;\n filter: string;\n };\n};\n\nexport const initialState: PersonalisationState = {\n brands: {\n items: [],\n status: 'NOT_FETCHED'\n },\n recentSearches: [],\n recentSearchesFromCookie: [],\n recentBrandAttributes: { value: '', filter: '' }\n};\n\nconst getInitialState = (recentSearchesCookieString: string) => {\n const recentSearches = getRecentSearchesLocalStorage() || [];\n const recentSearchesFromCookie = parseRecentSearchesFromCookiesString(\n recentSearchesCookieString\n );\n const recentBrandAttributes = getRecentBrandAttributesLocalStorage();\n\n return {\n ...initialState,\n recentSearches,\n recentSearchesFromCookie,\n recentBrandAttributes\n } as PersonalisationState;\n};\n\nconst personalisationSlice = createSlice({\n name: 'personalisation',\n initialState,\n reducers: {\n initialize: (_, { payload }: PayloadAction) => {\n return getInitialState(payload);\n },\n initializeRecentSearches: (\n state,\n { payload }: PayloadAction\n ) => {\n state.recentSearches = payload;\n },\n initializeRecentBrandAttributes: (state, { payload }) => {\n state.recentBrandAttributes = payload;\n },\n setRecentSearches: (state, { payload }) => {\n const recentSearchIndex = state.recentSearches.findIndex(\n (search) => search.text === payload.text\n );\n\n if (recentSearchIndex > -1) {\n state.recentSearches[recentSearchIndex].count = payload.count;\n state.recentSearches[recentSearchIndex].queryParams =\n payload.queryParams;\n\n // Move the search to the top of the list\n state.recentSearches.unshift(\n state.recentSearches.splice(recentSearchIndex, 1)[0]\n );\n } else {\n state.recentSearches.unshift(payload);\n }\n },\n removeRecentSearch: (state, { payload }) => {\n state.recentSearches = state.recentSearches.filter(\n (search) => search.text !== payload\n );\n },\n setRecentSearchesFromCookie: (\n state,\n { payload }: PayloadAction\n ) => {\n state.recentSearchesFromCookie =\n parseRecentSearchesFromCookiesString(payload);\n },\n setRecentBrandAttributes: (state, { payload }) => {\n state.recentBrandAttributes = payload;\n }\n }\n});\n\nexport const {\n initialize,\n initializeRecentSearches,\n initializeRecentBrandAttributes,\n setRecentSearches,\n removeRecentSearch,\n setRecentSearchesFromCookie,\n setRecentBrandAttributes\n} = personalisationSlice.actions;\n\nexport const reducer = personalisationSlice.reducer;\n","export const MODAL_TYPES = {\n default: 'default',\n wishlistReminders: 'wishlistReminders',\n selling: 'selling'\n} as const;\n\nexport const CHANNEL_TAG_GROUPS = {\n wishlistReminders: [\n 'wishlist_reminder_3_min_optin',\n 'wishlist_reminder_15_min_optin'\n ],\n buyingListingOutbid: ['member_outbid_optin'],\n buyingListingWon: ['member_won_optin'],\n sellingListingFirstBid: ['selling_first_bid_optin'],\n sellingListingAllBids: ['selling_new_bid_optin'],\n sellingListingSold: ['selling_sold_optin'],\n sellingPaymentReceived: ['selling_payment_received_optin']\n} as const;\n","import qs from 'qs';\nimport type {\n CartRequest,\n CartSummaryApiResponse\n} from 'tradera/state/services/types/webapi-shopping-generated';\nimport { isomorphicWebApiBaseQuery } from './utils/webapi-base-query';\nimport { createApi } from '@reduxjs/toolkit/query/react';\nimport { isServer } from 'tradera/utils/nextjs';\n\nexport const tagTypes = { CartSummary: 'CartSummary' } as const;\n\n/**\n * Creates a query params object for RTK Query.\n * The query parameters for RTK Query is used as key for caching hence\n * must always be the same for the same query on server and client.\n */\nexport const getCartSummaryParams = (cartId: string): CartRequest => {\n return { cartId };\n};\n\nexport const cartApi = createApi({\n reducerPath: 'cartApi',\n baseQuery: isomorphicWebApiBaseQuery,\n tagTypes: Object.values(tagTypes),\n endpoints: (builder) => ({\n getCartSummary: builder.query({\n providesTags: [tagTypes.CartSummary],\n query: ({ cartId }) => {\n const baseUrl = isServer ? '' : '/api/webapi';\n return `${baseUrl}/shopping/cart?${qs.stringify({ cartId })}`;\n }\n })\n })\n});\n\nexport const { useGetCartSummaryQuery, endpoints, util } = cartApi;\n","import type { RootState } from 'tradera/state/configure-store';\nimport type { CategoryNode } from 'tradera/backend/data/category-data';\nimport { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';\nimport { selectPreferredLanguageCode } from 'tradera/state/language/selectors';\n\ntype CategoriesRequest = {\n level: number;\n};\n\ntype CategoriesResponse = CategoryNode[];\n\nexport const categoriesApi = createApi({\n reducerPath: 'categoriesApi',\n baseQuery: fetchBaseQuery({\n baseUrl: '/api/categories'\n }),\n endpoints: (builder) => ({\n getCategories: builder.query({\n queryFn: async (\n { level },\n { getState },\n _extraOptions,\n baseQuery\n ) => {\n const languageCodeIso2: string = selectPreferredLanguageCode(\n getState() as RootState\n );\n\n const { data, ...response } = await baseQuery(\n `/${level}?languageCodeIso2=${languageCodeIso2}&next=1`\n );\n return { data: data as CategoryNode[], response };\n }\n })\n })\n});\n\nexport const { useGetCategoriesQuery, endpoints } = categoriesApi;\n","import { createApi } from '@reduxjs/toolkit/query/react';\nimport { storeSavedSearch } from './helpers/saved-searches-storage';\nimport qs from 'qs';\nimport type {\n BlueshiftRecommendations4ApiResponse,\n GetFavouriteSellersAndItems2ApiResponse,\n ExecuteSavedSearchApiResponse,\n ExecuteSavedSearchForCurrentUserApiRequest,\n GetSavedSearchesApiResponse,\n FavouritesellersAndItems2Request,\n RecommendationsV4Request,\n ItemsByIdsApiResponse,\n ItemsItemsByIdsRequest,\n CategoryPageApiRequest,\n CategoryPageApiResponse,\n BrandSuggestionsApiResponse,\n IdeasApiResponse,\n TrendingSearchesApiResponse,\n TrendingSearchViewModel,\n CausePageApiRequest,\n CausePageApiResponse,\n StartPageSellersOfInterestRequest,\n SellersOfInterestApiResponse,\n StartPageIdeasRequest,\n StartPageTrendingSearchesRequest,\n InstagramFeedApiResponse,\n InstagramFeedApiRequest,\n PersonalisedSearchesApiResponse,\n PersonalisedSearchViewModel\n} from './types/webapi-discover-generated';\nimport { isServer } from 'tradera/utils/nextjs';\nimport { isomorphicBaseQueryForWishListableItems } from './utils/webapi-base-query';\nimport type { RootState } from 'tradera/state/configure-store';\nimport { selectIsBot } from 'tradera/state/request/selectors';\n\nexport type RecommendationsQueryParams = {\n slot: string;\n userLanguage: string;\n automaticTranslationPreferred: boolean;\n shippingCountryCode: string;\n maxResults: number;\n pageNumber: number;\n seedItemIds?: number[];\n seedCategoryId?: number;\n};\n\nexport type SuggestedRecommendationsQueryParams = {\n slot: string;\n userLanguage: string;\n automaticTranslationPreferred: boolean;\n shippingCountryCode: string;\n maxResults?: number;\n pageNumber?: number;\n seedItemIds?: number[];\n seedCategoryId?: number;\n};\n\n/**\n * Creates a query params object for RTK Query.\n * The query parameters for RTK Query is used as key for caching hence\n * must always be the same for the same query on server and client.\n */\nexport const getRecommendationsQueryParams = ({\n slot,\n userLanguage,\n automaticTranslationPreferred,\n shippingCountryCode,\n maxResults = 36,\n pageNumber = 1,\n seedItemIds,\n seedCategoryId\n}: SuggestedRecommendationsQueryParams): RecommendationsQueryParams => {\n const params: RecommendationsQueryParams = {\n slot,\n maxResults,\n userLanguage: userLanguage.toLowerCase(),\n automaticTranslationPreferred,\n shippingCountryCode: shippingCountryCode.toUpperCase(),\n pageNumber\n };\n\n if (seedItemIds?.length) {\n params.seedItemIds = seedItemIds;\n }\n if (seedCategoryId) {\n params.seedCategoryId = seedCategoryId;\n }\n\n return params;\n};\n\ntype FavouriteSellersQueryParams = {\n shippingCountryCode: string;\n userLanguage: string;\n automaticTranslationPreferred: boolean;\n};\n\n/**\n * Creates a query params object for RTK Query.\n * The query parameters for RTK Query is used as key for caching hence\n * must always be the same for the same query on server and client.\n */\nexport const getFavouriteSellersQueryParams = ({\n shippingCountryCode,\n userLanguage,\n automaticTranslationPreferred\n}: FavouriteSellersQueryParams): FavouriteSellersQueryParams => ({\n shippingCountryCode: shippingCountryCode.toUpperCase(),\n userLanguage: userLanguage.toLowerCase(),\n automaticTranslationPreferred\n});\n\n/**\n * Creates a query params object for RTK Query.\n * The query parameters for RTK Query is used as key for caching hence\n * must always be the same for the same query on server and client.\n */\nexport const getInstagramQueryParams = () => ({});\n\nexport const discoverApi = createApi({\n reducerPath: 'discoveryApi',\n baseQuery: isomorphicBaseQueryForWishListableItems,\n endpoints: (builder) => ({\n getBrandSuggestions: builder.query<\n BrandSuggestionsApiResponse,\n unknown\n >({\n query: () => {\n const baseUrl = isServer ? '' : '/api/webapi';\n return `${baseUrl}/discover/web/start-page/brand-suggestions`;\n },\n extraOptions: {\n getWishListableItems: () => null\n }\n }),\n getFavouriteSellers: builder.query<\n GetFavouriteSellersAndItems2ApiResponse,\n FavouritesellersAndItems2Request\n >({\n query: ({\n shippingCountryCode,\n userLanguage,\n automaticTranslationPreferred,\n maxItemsPerFavouriteSeller = 3,\n maxItems = 20,\n maxFavouriteSellers = 20\n }) => {\n const query = qs.stringify({\n shippingCountryCode,\n userLanguage,\n automaticTranslationPreferred,\n maxItemsPerFavouriteSeller,\n maxItems,\n maxFavouriteSellers\n });\n const baseUrl = isServer ? '' : '/api/webapi';\n return `${baseUrl}/discover/favouritesellers-and-items2?${query}`;\n },\n extraOptions: {\n getWishListableItems: () => null\n }\n }),\n getSellersOfInterest: builder.query<\n SellersOfInterestApiResponse,\n StartPageSellersOfInterestRequest\n >({\n query: ({ shippingCountryCode, maxSellers = 20 }) => {\n const query = qs.stringify({\n shippingCountryCode,\n maxSellers\n });\n const baseUrl = isServer ? '' : '/api/webapi';\n return `${baseUrl}/discover/web/start-page/sellers-of-interest?${query}`;\n },\n extraOptions: {\n getWishListableItems: () => null\n }\n }),\n getIdeas: builder.query({\n query: ({ languageCodeIso2 }) => {\n const baseUrl = isServer ? '' : '/api/webapi';\n return `${baseUrl}/discover/web/start-page/ideas?languageCodeIso2=${languageCodeIso2}`;\n },\n extraOptions: {\n getWishListableItems: () => null\n }\n }),\n getInstagramFeed: builder.query<\n InstagramFeedApiResponse,\n InstagramFeedApiRequest\n >({\n query: () => {\n const baseUrl = isServer ? '' : '/api/webapi';\n return `${baseUrl}/discover/web/start-page/instagram-feed`;\n },\n extraOptions: {\n getWishListableItems: () => null\n }\n }),\n getPersonalisedSearches: builder.query<\n PersonalisedSearchViewModel[],\n undefined\n >({\n query: () => {\n const baseUrl = isServer ? '' : '/api/webapi';\n return `${baseUrl}/discover/web/start-page/personalised-searches`;\n },\n extraOptions: {\n getWishListableItems: () => null\n },\n transformResponse: (response: PersonalisedSearchesApiResponse) => {\n return response.searches || [];\n }\n }),\n getTrendingSearches: builder.query<\n TrendingSearchViewModel[],\n StartPageTrendingSearchesRequest\n >({\n queryFn: async (\n { languageCodeIso2 },\n { getState },\n _extraOptions,\n baseQuery\n ) => {\n // Never fetch trending searches for bots because\n // if language is not Swedish translation will be expensive\n // due to the volume of bot requests.\n if (selectIsBot(getState() as RootState)) {\n return { data: [] as TrendingSearchViewModel[] };\n }\n\n const baseUrl = isServer ? '' : '/api/webapi';\n const { data } = await baseQuery(\n `${baseUrl}/discover/web/start-page/trending-searches?languageCodeIso2=${languageCodeIso2}`\n );\n return {\n data: ((data as TrendingSearchesApiResponse).searches ||\n []) as TrendingSearchViewModel[]\n };\n },\n extraOptions: {\n getWishListableItems: () => null\n }\n }),\n getSavedSearches: builder.query({\n query: () => {\n const baseUrl = isServer ? '' : '/api/webapi';\n return `${baseUrl}/discover/savedsearches`;\n },\n extraOptions: {\n getWishListableItems: () => null\n }\n }),\n getRecommendations: builder.query<\n BlueshiftRecommendations4ApiResponse,\n RecommendationsV4Request\n >({\n query: ({\n slot,\n shippingCountryCode,\n userLanguage,\n automaticTranslationPreferred,\n maxResults,\n pageNumber,\n seedItemIds,\n seedCategoryId\n }: RecommendationsQueryParams) => {\n const query = qs.stringify({\n slot,\n pageNumber,\n shippingCountryCode,\n userLanguage,\n automaticTranslationPreferred,\n maxResults,\n seedItemIds,\n seedCategoryId\n });\n const baseUrl = isServer ? '' : '/api/webapi';\n return `${baseUrl}/discover/recommendations-v4?${query}`;\n },\n extraOptions: {\n getWishListableItems: (\n response: BlueshiftRecommendations4ApiResponse\n ) => response.items\n }\n }),\n getCategoryResult: builder.query<\n CategoryPageApiResponse,\n CategoryPageApiRequest\n >({\n query: (parameters) => {\n const baseUrl = isServer ? '' : '/api/webapi';\n\n return {\n url: `${baseUrl}/discover/web/category-page`,\n method: 'POST',\n body: parameters\n };\n },\n extraOptions: {\n getWishListableItems: (response: CategoryPageApiResponse) =>\n response.items\n }\n }),\n getSavedSearchResults: builder.query<\n ExecuteSavedSearchApiResponse,\n ExecuteSavedSearchForCurrentUserApiRequest\n >({\n query: (parameters) => {\n const baseUrl = isServer ? '' : '/api/webapi';\n\n return {\n url: `${baseUrl}/discover/savedsearches/search-v2`,\n method: 'POST',\n body: parameters\n };\n },\n extraOptions: {\n //response.response?.result?.items are of type SearchResultItem2ApiDto which does not currently have the \"inWishList\" property\n getWishListableItems: () => null\n },\n transformResponse: (\n response: ExecuteSavedSearchApiResponse,\n meta,\n arg\n ) => {\n if (isServer) return response;\n\n storeSavedSearch(\n arg.id,\n response.response?.result?.itemsMatched || 0\n );\n return response;\n }\n }),\n getItemsByIds: builder.query<\n ItemsByIdsApiResponse,\n ItemsItemsByIdsRequest\n >({\n query: (params) => {\n const baseUrl = isServer ? '' : '/api/webapi';\n\n const query = qs.stringify(params);\n return `${baseUrl}/discover/web/items/items-by-ids?${query}`;\n },\n extraOptions: {\n getWishListableItems: (response: ItemsByIdsApiResponse) =>\n response.items\n }\n }),\n getCausePage: builder.query({\n query: (params) => {\n return {\n url: '/api/webapi/discover/web/custom-result-pages/cause-page',\n method: 'POST',\n body: params\n };\n },\n extraOptions: {\n getWishListableItems: (response: ItemsByIdsApiResponse) =>\n response.items\n }\n })\n })\n});\n\n// KATS: break this up into more files, do not append more endpoints to this file,\n// we have decided that it's an anti-pattern to have a single file with all endpoints.\n// https://traderasweden.slack.com/archives/C01BUB6G7UJ/p1699018076088839?thread_ts=1698937051.165139&cid=C01BUB6G7UJ\nexport const {\n useGetBrandSuggestionsQuery,\n useGetIdeasQuery,\n useGetSellersOfInterestQuery,\n useGetInstagramFeedQuery,\n useGetCategoryResultQuery,\n useGetPersonalisedSearchesQuery,\n useGetSavedSearchesQuery,\n useGetSavedSearchResultsQuery,\n useGetRecommendationsQuery,\n useGetFavouriteSellersQuery,\n useGetTrendingSearchesQuery,\n useGetItemsByIdsQuery,\n useGetCausePageQuery,\n endpoints\n} = discoverApi;\n\nexport const { updateQueryData } = discoverApi.util;\n","import { SAVED_SEARCHES } from 'tradera/constants/cookies';\nimport { useCookieUtil } from 'tradera/hooks/use-cookie-util';\nimport cookieUtil from 'tradera/utils/cookie';\n\n/**\n * To have the cookie string as compact as possible the values are stored as\n * \"id_count#id_count#id_count\"\n */\n\nexport type ParsedSavedSearch = {\n id: number;\n count: number;\n};\n\nexport const toSavedSearchesFromCookieString = (\n cookieString: string\n): ParsedSavedSearch[] => {\n const savedSearches = cookieString.split('#');\n\n if (!savedSearches || savedSearches.length === 0) return [];\n\n return savedSearches.map((search) => {\n const [id, count] = search.split('_');\n return { id: Number(id), count: Number(count) };\n });\n};\n\nexport const storeSavedSearch = (id: number, count: number) => {\n const savedSearches = toSavedSearchesFromCookieString(\n cookieUtil.getCookie(SAVED_SEARCHES) ?? ''\n );\n\n if (Number.isNaN(count)) return;\n\n const newSavedSearches = [\n ...savedSearches.filter(\n (search) => search.id !== id && !Number.isNaN(search.count)\n ),\n { id, count }\n ];\n\n cookieUtil.createCookie(\n SAVED_SEARCHES,\n newSavedSearches\n .map((search) => `${search.id}_${search.count}`)\n .join('#'),\n 365\n );\n};\n\nexport const removeSavedSearch = (id: number) => {\n const savedSearches = toSavedSearchesFromCookieString(\n cookieUtil.getCookie(SAVED_SEARCHES) ?? ''\n );\n const newSavedSearches = [\n ...savedSearches.filter((search) => search.id !== id)\n ];\n\n cookieUtil.createCookie(\n SAVED_SEARCHES,\n newSavedSearches\n .map((search) => `${search.id}_${search.count}`)\n .join('#')\n );\n};\n\nexport const useGetSavedSearchesInCookies = () => {\n const cookieUtil = useCookieUtil();\n const savedSearches = cookieUtil.getCookie(SAVED_SEARCHES);\n\n return toSavedSearchesFromCookieString(savedSearches ?? '');\n};\n","import { createApi } from '@reduxjs/toolkit/query/react';\nimport { isomorphicWebApiBaseQuery } from 'tradera/state/services/utils/webapi-base-query';\nimport type { GetMessagingStatsApiResponse } from 'tradera/state/services/types/webapi-member-generated';\n\nexport const messagingStatsApi = createApi({\n reducerPath: 'messagingStatsApi',\n baseQuery: isomorphicWebApiBaseQuery,\n endpoints: (builder) => ({\n getMessagingStats: builder.query({\n query: () => '/api/webapi/member/messaging/stats'\n })\n })\n});\n\nexport const { useGetMessagingStatsQuery, util } = messagingStatsApi;\n","import {\n type GetHomepageThemeSettingApiResponse,\n type UpdateHomepageThemeApiRequest,\n type UpdateHomepageThemeApiResponse\n} from 'tradera/state/services/types/webapi-member-generated';\nimport { createApi } from '@reduxjs/toolkit/query/react';\nimport { isServer } from 'tradera/utils/nextjs';\nimport { isomorphicWebApiBaseQuery } from 'tradera/state/services/utils/webapi-base-query';\n\nexport const startPageThemeApi = createApi({\n reducerPath: 'startPageThemeApi',\n baseQuery: isomorphicWebApiBaseQuery,\n endpoints: (builder) => ({\n updateHomepageTheme: builder.mutation<\n UpdateHomepageThemeApiResponse,\n UpdateHomepageThemeApiRequest\n >({\n query: (payload) => {\n const baseUrl = isServer ? '' : '/api/webapi';\n return {\n url: `${baseUrl}/member/profile-homepage-theme`,\n method: 'PUT',\n body: payload\n };\n },\n async onQueryStarted(patch, { dispatch, queryFulfilled }) {\n const patchResult = dispatch(\n startPageThemeApi.util.updateQueryData(\n 'getHomepageTheme',\n undefined,\n (theme) => {\n Object.assign(theme, patch);\n }\n )\n );\n try {\n await queryFulfilled;\n } catch {\n patchResult.undo();\n }\n }\n }),\n getHomepageTheme: builder.query<\n GetHomepageThemeSettingApiResponse,\n void\n >({\n query: () => {\n const baseUrl = isServer ? '' : '/api/webapi';\n return {\n url: `${baseUrl}/member/profile-homepage-theme`,\n method: 'GET'\n };\n }\n })\n })\n});\n\nexport const {\n useUpdateHomepageThemeMutation,\n useGetHomepageThemeQuery,\n endpoints,\n util\n} = startPageThemeApi;\n","import { createApi } from '@reduxjs/toolkit/query/react';\nimport * as searchGtm from 'tradera/apps/tradera/components/discover/helpers/search-gtm';\nimport { httpClientBaseQuery } from './utils/http-client-base-query';\nimport { touchWebClient } from 'tradera/utils/http';\nimport { toSearchString } from 'tradera/utils/url';\n\nexport enum SortBy {\n Relevance = 'Relevance',\n AddedOn = 'AddedOn'\n}\n\ntype TouchwebSaveSearchRequest = {\n savedQueryName: string;\n categoryId?: number;\n};\n\ntype TouchwebSaveSearchResponse = {\n id: number;\n message?: string;\n};\n\nexport const touchwebSearchApi = createApi({\n reducerPath: 'touchwebSearchApi',\n baseQuery: httpClientBaseQuery({ client: touchWebClient }),\n endpoints: (builder) => ({\n saveSearch: builder.mutation<\n TouchwebSaveSearchResponse,\n TouchwebSaveSearchRequest\n >({\n query: (parameters) => {\n const payload = toSearchString(parameters, {\n addQueryPrefix: false\n });\n return {\n url: '/my/savedsearches/add',\n method: 'POST',\n body: payload,\n headers: {\n 'content-type': 'application/x-www-form-urlencoded'\n }\n };\n },\n async onQueryStarted() {\n searchGtm.trackAction(\n searchGtm.GA_EVENT_SAVE_SEARCH,\n 'Save POST Request'\n );\n }\n })\n })\n});\n\nexport const { useSaveSearchMutation } = touchwebSearchApi;\n","import { createApi } from '@reduxjs/toolkit/query/react';\nimport { isomorphicWebApiBaseQuery } from 'tradera/state/services/utils/webapi-base-query';\n\nexport const webApiTags = {\n Item: 'Item',\n Offer: 'Offer',\n KycPendingActions: 'KycPendingActions',\n KycQuestionnaire: 'KycQuestionnaire'\n};\n\nexport const webApi = createApi({\n reducerPath: 'webApi',\n tagTypes: [\n webApiTags.Item,\n webApiTags.Offer,\n webApiTags.KycPendingActions,\n webApiTags.KycQuestionnaire\n ],\n baseQuery: isomorphicWebApiBaseQuery,\n // endpoints are added through injectEndpoints\n endpoints: () => ({})\n});\n","import qs from 'qs';\nimport type {\n RemoveItemFromWishListApiResponse,\n RemoveItemsFromWishListApiRequest,\n WishListApiResponse,\n WishListRequest\n} from 'tradera/state/services/types/webapi-member-generated';\nimport { isomorphicBaseQueryForWishListableItems } from './utils/webapi-base-query';\nimport {\n createApi,\n defaultSerializeQueryArgs\n} from '@reduxjs/toolkit/query/react';\nimport { isServer } from 'tradera/utils/nextjs';\nimport {\n selectAutomaticTranslationPreferred,\n selectPreferredLanguageCode\n} from '../language/selectors';\nimport { useAppSelector } from '../hooks';\nimport { selectShippingRegionCountryCodeIso2 } from '../shipping-region/selectors';\nimport { GtmService } from 'tradera/services/google-tagmanager/google-tagmanager-service';\nimport { wishlistRemoveRange } from '../items/reducer';\nimport { createSelector } from '@reduxjs/toolkit';\n\nexport enum Tags {\n WISH_LIST = 'WISH_LIST'\n}\n\n/**\n * Creates a query params object for RTK Query.\n * The query parameters for RTK Query is used as key for caching hence\n * must always be the same for the same query on server and client.\n */\nexport const getDefaultWishListParams = ({\n page = 1,\n pageSize = 50,\n statusFilter = 'all',\n languageCodeIso2 = 'sv',\n shippingCountryCodeIso2 = 'SE',\n automaticTranslationPreferred = true\n}: WishListRequest): WishListRequest => {\n return {\n page,\n pageSize,\n statusFilter,\n languageCodeIso2,\n shippingCountryCodeIso2,\n automaticTranslationPreferred\n };\n};\n\nexport const selectWishListParams = ({\n page,\n pageSize,\n statusFilter\n}: Pick) =>\n createSelector(\n selectPreferredLanguageCode,\n selectShippingRegionCountryCodeIso2,\n selectAutomaticTranslationPreferred,\n (\n languageCodeIso2,\n shippingCountryCodeIso2,\n automaticTranslationPreferred\n ) =>\n getDefaultWishListParams({\n page,\n pageSize,\n statusFilter,\n languageCodeIso2,\n shippingCountryCodeIso2,\n automaticTranslationPreferred\n })\n );\n\nexport const useWishListParams = (\n params: Pick\n) => useAppSelector(selectWishListParams(params));\n\nexport const wishListApi = createApi({\n reducerPath: 'wishListApi',\n baseQuery: isomorphicBaseQueryForWishListableItems,\n tagTypes: Object.keys(Tags),\n endpoints: (builder) => ({\n getWishList: builder.query({\n query: (params) => {\n const queryString = qs.stringify(params);\n const baseUrl = isServer ? '' : '/api/webapi';\n return `${baseUrl}/member/web/wish-list?${queryString}`;\n },\n providesTags: [Tags.WISH_LIST],\n extraOptions: {\n getWishListableItems: (response: WishListApiResponse) =>\n response.items.map((x) => ({\n itemId: x.itemId,\n inWishList: true\n }))\n }\n }),\n deleteWishListItems: builder.mutation<\n RemoveItemFromWishListApiResponse,\n RemoveItemsFromWishListApiRequest\n >({\n invalidatesTags: [Tags.WISH_LIST],\n query: (params) => {\n const baseUrl = isServer ? '' : '/api/webapi';\n return {\n url: `${baseUrl}/member/wishlist`,\n method: 'DELETE',\n body: params\n };\n },\n onQueryStarted: async (params, { dispatch }) => {\n if (params.itemIds && params.itemIds.length > 0) {\n GtmService.trackAction(\n 'Wish list',\n 'Batch select',\n 'Delete'\n );\n dispatch(wishlistRemoveRange(params.itemIds));\n }\n }\n }),\n getWishListEndless: builder.query<\n WishListApiResponse & { page: number },\n WishListRequest\n >({\n query: (params) => {\n const queryString = qs.stringify(params);\n const baseUrl = isServer ? '' : '/api/webapi';\n return `${baseUrl}/member/web/wish-list?${queryString}`;\n },\n transformResponse: (response: WishListApiResponse, _, request) => {\n return { ...response, page: request.page ?? 1 };\n },\n providesTags: [Tags.WISH_LIST],\n serializeQueryArgs: ({\n queryArgs: { page, ...otherQueryArgs },\n endpointDefinition,\n endpointName\n }) => {\n // Exclude pageNumber from queryArgs to be ablue to use same cache for infiniteScroll\n return defaultSerializeQueryArgs({\n endpointName,\n queryArgs: otherQueryArgs,\n endpointDefinition\n });\n },\n forceRefetch({ currentArg, previousArg }) {\n return currentArg?.page !== previousArg?.page;\n },\n merge: (currentCacheData, response) => {\n return {\n ...currentCacheData,\n items: [\n ...(currentCacheData.items ?? []),\n ...(response.items ?? [])\n ],\n totalCount: response.totalCount,\n page: response.page\n };\n },\n extraOptions: {\n getWishListableItems: (response: WishListApiResponse) =>\n response.items.map((x) => ({\n itemId: x.itemId,\n inWishList: true\n }))\n }\n })\n })\n});\n\nexport const {\n useGetWishListQuery,\n useGetWishListEndlessQuery,\n useDeleteWishListItemsMutation,\n endpoints,\n util\n} = wishListApi;\n","import cookieUtil, { type CookieUtil } from 'tradera/utils/cookie';\nimport type { AppDispatch, GetState, RootState } from '../configure-store';\nimport type { InitData } from 'tradera/state/init-data/types';\nimport {\n REGION_PICKER_DISMISSED,\n SHIPPING_COUNTRY\n} from 'tradera/constants/cookies';\nimport { fetchAvailableShippingCountries } from './api';\nimport {\n selectHasLoadedAvailableShippingCountries,\n selectIsLoadingAvailableShippingCountries\n} from './selectors';\n\nimport {\n beginLoadingAvailableShippingOptions,\n initialize,\n setAvailableShippingCountries,\n setDefaultShippingCountry,\n setShippingCountry\n} from './reducer';\nimport { setPreferredCurrencyThunk } from 'tradera/state/multi-currency/actions';\nimport { setPreferredLanguage } from 'tradera/state/language/actions';\nimport Analytics from 'packages/analytics';\nimport {\n getCountryCodeFromLanguage,\n getLanguageFromCountryCode\n} from 'tradera/localization/languagecode';\nimport { getInitialState } from './initial-state';\nimport GdprSettings from 'tradera/utils/gdpr-settings';\nimport { selectPreferredLanguageCode } from 'tradera/state/language/selectors';\nimport { selectMemberCountryCodeIso2 } from 'tradera/state/member/selectors';\n\nexport const updateShippingRegion =\n (countryCodeIso2: string) => (dispatch: AppDispatch) => {\n dispatch(setShippingCountry({ countryCodeIso2 }));\n };\n\nexport const removeShippingCountryCookieIfSwedish =\n (geolocation: { isoCode: string }) => (dispatch: AppDispatch) => {\n if (\n geolocation.isoCode === 'SE' &&\n cookieUtil.hasCookie(SHIPPING_COUNTRY)\n ) {\n cookieUtil.eraseCookie(SHIPPING_COUNTRY);\n dispatch(setDefaultShippingCountry());\n }\n };\n\nexport const getAvailableShippingCountries =\n () => async (dispatch: AppDispatch, getState: GetState) => {\n if (\n selectIsLoadingAvailableShippingCountries(getState()) ||\n selectHasLoadedAvailableShippingCountries(getState())\n ) {\n return;\n }\n\n dispatch(beginLoadingAvailableShippingOptions());\n const response = await fetchAvailableShippingCountries();\n const shippingCountries = response?.shippingCountries || [];\n dispatch(setAvailableShippingCountries({ shippingCountries }));\n };\n\nexport const onLocalizationShippingRegionSelected =\n ({\n countryCodeIso2,\n currencyCode,\n toLocalizedUrl\n }: {\n countryCodeIso2: string;\n currencyCode: string;\n toLocalizedUrl: (url: string) => string;\n }) =>\n (dispatch: AppDispatch) => {\n const languageCodeIso2 = getLanguageFromCountryCode(countryCodeIso2);\n\n Analytics.trackEvent({\n category: 'Top navigation',\n action: 'Localization menu tooltip',\n label: `Set localization region - ${countryCodeIso2}`\n });\n\n dispatch(getAvailableShippingCountries()); //make sure we have loaded countries\n dispatch(updateShippingRegion(countryCodeIso2));\n dispatch(setPreferredCurrencyThunk(currencyCode));\n dispatch(setPreferredLanguage(languageCodeIso2, toLocalizedUrl));\n };\n\nconst getFallbackShippingCountry = (state: RootState) =>\n getCountryCodeFromLanguage(selectPreferredLanguageCode(state));\n\nexport const initializeFromInitData =\n (initData: InitData) => (dispatch: AppDispatch, getState: GetState) => {\n const memberCountryCodeIso2 = initData.memberCountryCodeIso2;\n const initialState = getInitialState({\n memberCountryCodeIso2,\n isFunctionalCookiesEnabled: GdprSettings.isFunctionalEnabled(),\n hasRegionPickerDismissedCookie: cookieUtil.hasCookie(\n REGION_PICKER_DISMISSED\n ),\n shippingCountryCookieValue: cookieUtil.readCookie(SHIPPING_COUNTRY),\n fallbackShippingCountry: getFallbackShippingCountry(getState())\n });\n dispatch(initialize(initialState));\n };\n\nexport const initializeFromState =\n (\n gdprSettings: { isFunctionalEnabled: () => boolean },\n ssrCookieUtil: CookieUtil\n ) =>\n (dispatch: AppDispatch, getState: GetState) => {\n const memberCountryCodeIso2 = selectMemberCountryCodeIso2(getState());\n const initialState = getInitialState({\n memberCountryCodeIso2,\n isFunctionalCookiesEnabled: gdprSettings.isFunctionalEnabled(),\n hasRegionPickerDismissedCookie: ssrCookieUtil.hasCookie(\n REGION_PICKER_DISMISSED\n ),\n shippingCountryCookieValue:\n ssrCookieUtil.readCookie(SHIPPING_COUNTRY),\n fallbackShippingCountry: getFallbackShippingCountry(getState())\n });\n dispatch(initialize(initialState));\n };\n","/* eslint-disable better-mutation/no-mutation */\n\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\nimport cookieUtil from 'tradera/utils/cookie';\nimport {\n REGION_PICKER_DISMISSED,\n SHIPPING_COUNTRY\n} from 'tradera/constants/cookies';\n\nconst yearInMilliseconds = 1000 * 60 * 60 * 24 * 365;\n\ntype ShippingCountry = {\n countryCodeIso2: string;\n};\n\ntype ShippingRegionState = {\n shippingCountry: ShippingCountry;\n shippingCountryCookieValue: string;\n availableShippingCountries: unknown[];\n availableShippingCountryCodes: string[];\n hasLoadedAvailableShippingCountries: boolean;\n isLoadingAvailableShippingCountries: boolean;\n regionPickerDismissed: boolean;\n};\n\nconst shippingRegionSlice = createSlice({\n name: 'shippingRegion',\n initialState: {} as ShippingRegionState,\n reducers: {\n initialize: (_state, { payload }) => {\n return { ...payload };\n },\n setShippingCountry: {\n reducer: (state, action: PayloadAction) => {\n const { countryCodeIso2 } = action.payload;\n state.shippingCountry = {\n countryCodeIso2: toUpperCase(countryCodeIso2)\n };\n state.shippingCountryCookieValue = countryCodeIso2;\n },\n prepare: (payload) => {\n const { countryCodeIso2 } = payload;\n const expireDate = new Date(\n new Date().getTime() + yearInMilliseconds\n );\n cookieUtil.createCookie(\n SHIPPING_COUNTRY,\n countryCodeIso2,\n expireDate\n );\n return { payload };\n }\n },\n setDefaultShippingCountry: (state) => {\n state.shippingCountry = { countryCodeIso2: 'SE' };\n },\n setAvailableShippingCountries: (\n state,\n action: PayloadAction<{ shippingCountries: ShippingCountry[] }>\n ) => {\n state.availableShippingCountries = action.payload.shippingCountries;\n state.availableShippingCountryCodes =\n action.payload.shippingCountries.map(\n (shippingCountry) => shippingCountry.countryCodeIso2\n );\n state.hasLoadedAvailableShippingCountries = true;\n state.isLoadingAvailableShippingCountries = false;\n },\n beginLoadingAvailableShippingOptions: (state) => {\n state.isLoadingAvailableShippingCountries = true;\n },\n dismissLocalizationRegionPicker: {\n reducer: (state) => {\n state.regionPickerDismissed = true;\n },\n prepare: (payload) => {\n cookieUtil.createCookie(REGION_PICKER_DISMISSED, true);\n return { payload };\n }\n }\n }\n});\n\nconst toUpperCase = (countryCodeIso2 = '') => countryCodeIso2.toUpperCase();\n\nexport const {\n initialize,\n setShippingCountry,\n setAvailableShippingCountries,\n beginLoadingAvailableShippingOptions,\n dismissLocalizationRegionPicker,\n setDefaultShippingCountry\n} = shippingRegionSlice.actions;\nexport default shippingRegionSlice.reducer;\n","/* eslint-disable better-mutation/no-mutation */\n\nimport { type PayloadAction, createSlice } from '@reduxjs/toolkit';\n\ntype StatusState = {\n isActionsPerFullPageLoadDone: boolean;\n hasReportedViewportDiff: boolean;\n loadedLanguages: string[];\n};\n\nexport const initialState: StatusState = {\n isActionsPerFullPageLoadDone: false,\n hasReportedViewportDiff: false,\n loadedLanguages: []\n};\n\nconst slice = createSlice({\n name: 'status',\n initialState,\n reducers: {\n setIsActionsPerFullPageLoadDone: (state, { payload }) => {\n state.isActionsPerFullPageLoadDone = payload;\n },\n setHasReportedViewportDiff: (state, { payload }) => {\n state.hasReportedViewportDiff = payload;\n },\n addLoadedLanguage: (state, { payload }: PayloadAction) => {\n if (!state.loadedLanguages.includes(payload)) {\n state.loadedLanguages = [...state.loadedLanguages, payload];\n }\n }\n }\n});\n\nexport const {\n setIsActionsPerFullPageLoadDone,\n setHasReportedViewportDiff,\n addLoadedLanguage\n} = slice.actions;\n\nexport const reducer = slice.reducer;\n","import { toLocalizedUrl } from 'tradera/utils/url';\n\n/**\n * Hide location.reload to be able to stub it with sinon\n * see https://developer.mozilla.org/en-US/docs/Web/API/Location/reload\n */\nexport const reload = (force = false) => location.reload(force);\n\nexport const reloadLocalized = (code) =>\n (window.location.href = toLocalizedUrl(window.location.href, code));\n\n// Export object for Sinon stubbing\nexport default {\n reload,\n reloadLocalized\n};\n","export const getRedirectUrl = (redirectURL?: string) =>\n encodeURIComponent(\n redirectURL\n ? redirectURL\n : window.location.pathname +\n window.location.search +\n window.location.hash\n );\n\nexport const getReturnUrl = (redirectURL?: string) =>\n `?returnUrl=${getRedirectUrl(redirectURL)}`;\n","/* eslint-disable better-mutation/no-mutation */\n\nimport { isServer } from 'tradera/utils/nextjs';\n\ntype Options = {\n timeout?: number;\n dataAttributes?: Record;\n key?: string;\n unload?: () => void;\n};\n\nconst scriptPromises = new Map>();\n\nexport function loadScript(src: string, options: Options = {}) {\n if (isServer) {\n // Since we use a global variable we cannot support SSR as\n // all requests would share the same variable.\n throw new Error('loadScript() is not supported on the server');\n }\n const optionsWithDefaults = {\n timeout: options.timeout || 0,\n dataAttributes: options.dataAttributes || {}\n };\n const promise = scriptPromises.get(src);\n if (promise) {\n // Every time we call loadScript with the same src, we return the same promise.\n // This is so that everyone waiting for that promise can get the same result.\n // If we don't do this and loadScript is called twice, the second call can\n // resolve before script.onload() has happened.\n return promise;\n }\n\n const newPromise = new Promise((resolve, reject) => {\n if (document.querySelector(`head > script[src=\"${src}\"]`) !== null) {\n resolve();\n return;\n }\n\n if (options.key) {\n const scriptWithKey = document.querySelector(\n `head > script[data-key=\"${options.key}\"]`\n );\n\n if (scriptWithKey) {\n document.head.removeChild(scriptWithKey);\n options.unload?.();\n }\n }\n\n const script = document.createElement('script');\n\n let timeoutTimer: ReturnType;\n if (optionsWithDefaults.timeout > 0) {\n timeoutTimer = setTimeout(() => {\n script.onload = null;\n script.onerror = null;\n document.head.removeChild(script);\n options.unload?.();\n reject(new Error('SCRIPT_LOAD_TIMEOUT'));\n }, optionsWithDefaults.timeout);\n }\n\n script.src = src;\n\n if (options.key) {\n optionsWithDefaults.dataAttributes = {\n ...optionsWithDefaults.dataAttributes,\n key: options.key\n };\n }\n for (const attribute of Object.keys(\n optionsWithDefaults.dataAttributes\n )) {\n script.setAttribute(\n `data-${attribute}`,\n optionsWithDefaults.dataAttributes[attribute]\n );\n }\n script.async = true;\n script.onload = () => {\n if (timeoutTimer) clearTimeout(timeoutTimer);\n resolve();\n };\n script.onerror = (error) => {\n if (timeoutTimer) clearTimeout(timeoutTimer);\n reject(error);\n };\n document.head.appendChild(script);\n });\n scriptPromises.set(src, newPromise);\n return newPromise;\n}\n","export const getEmailShareLink = ({ subject, body }) => {\n // Use encodeURIComponent instead of URLSearchParams for spaced to encode to %20 instead of +\n const encodedSubject = encodeURIComponent(subject);\n const encodedBody = encodeURIComponent(body.replace(/\\\\n/g, '\\r\\n'));\n return `mailto:?${\n subject ? `subject=${encodedSubject}&` : ''\n }body=${encodedBody}`;\n};\n\nexport const getFacebookShareLink = ({ url }) => {\n const link = new URL('https://www.facebook.com/sharer/sharer.php');\n link.searchParams.set('u', url);\n return link.toString();\n};\n\nexport const getPinterestShareLink = ({ url, description, imageUrl }) => {\n const link = new URL('https://pinterest.com/pin/create/button/');\n link.searchParams.set('url', url);\n link.searchParams.set('description', description);\n link.searchParams.set('media', imageUrl);\n return link.toString();\n};\n\nexport const getSmsShareLink = ({ number, body }) => {\n const encodedBody = encodeURIComponent(body);\n return number\n ? `sms:${number};?&body=${encodedBody}`\n : `sms:?&body=${encodedBody}`;\n};\n"],"names":["_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_ref","styles","props","_objectWithoutProperties","_excluded","React","viewBox","xmlns","d","clipRule","fillRule","stroke","strokeLinecap","strokeWidth","cx","cy","r","fill","DropdownField","title","valueText","wrapperClass","placeholder","disabled","error","_ref$truncateValueLef","truncateValueLeft","_ref$bottomBorder","bottomBorder","isOpen","useDropdownMenuContext","_jsx","DropdownMenuTrigger","_objectSpread","asChild","children","OptionField","DropdownMenuItemSelectable","_ref2","text","before","_ref2$selected","selected","_excluded2","_jsxs","DropdownMenuItem","className","classNames","CheckIcon","forwardRef","ref","icon","valueRef","useRef","useEffect","element","current","classList","remove","truncateLeft","scrollWidth","clientWidth","add","Space","role","tabIndex","gap","onPointerOver","Text","as","font","nowrap","value","align","fontWeight","color","AlertIcon","undefined","DropdownIcon","displayName","REDIRECT_TO_NEWDRAFT_QUERY","checkoutUpsellApi","createApi","reducerPath","baseQuery","isomorphicWebApiBaseQuery","endpoints","builder","getCombinedShippingFromSeller","query","payload","url","method","body","useGetCombinedShippingFromSellerQuery","GA_EVENT_SAVE_SEARCH","trackAction","action","label","GtmService","useSiteLayout","useMemberServerStorageWithCookieFallbackString","DEFAULT_COOKIES","SITE_LAYOUT","default","OPTIONAL_LANG","URL_LANGUAGES","join","slice","createSlice","name","initialState","wishListNudgeHidden","reducers","shouldShowWishListNudge","reducer","state","prepare","cookieUtil","readCookie","WISH_LIST_NOTIFICATION_HIDDEN","GdprSettings","isFunctionalEnabled","hideWishListNudge","createCookie","Infinity","eraseCookie","WISH_LIST_NOTIFICATION_DISPLAY_COUNT","_slice$actions","actions","wishListNudge","AccordionNextLevel","onClose","onDismiss","nextLevelClassNames","_useState2","_slicedToArray","useState","slideOut","setSlideOut","HeaderWithCloseButton","border","menu","Button","theme","onClick","closeNextLevel","setTimeout","autoFocus","IconBack","bodyClassName","Accordion","skipBorderOnLast","_ref$bgColor","bgColor","AccordionItem","_ref2$className","_ref2$collapsable","collapsable","_ref2$hideTitle","hideTitle","defaultOpen","forceOpen","onChange","hasNextLevel","nextLevel","_ref2$borderBottom","borderBottom","_ref2$showLabelWhileO","showLabelWhileOpen","nonBrandedText","_ref2$buttonNoPadding","buttonNoPaddingTop","_ref2$buttonNoPadding2","buttonNoPaddingBottom","accordionOpen","setAccordionOpen","_Fragment","type","brandedText","ArrowRight","ArrowDown","log","isServer","Logger","ApplicationErrorBoundary","componentDidCatch","onError","_ref$capture","capture","loggingContext","render","_this$props","fallback","Sentry","propTypes","defaultProps","BankIdModalBody","modalState","errorCode","qrData","showQrCode","t","useTranslator","ModalState","IN_PROGRESS","src","qrCode","alt","ERROR","BankIdError","errorMessage","errorCodes","BankIdLogoColor","BankIdIcon","CLOSED_STATES","CLOSED","COMPLETED","BankIdModal","onTop","dispatch","useAppDispatch","isMobile","useIsMobile","_React$useState2","mobileFlow","setMobileFlow","_useAppSelector","useAppSelector","bankId","autoStartToken","bankIdOrderRef","contactSsn","memberId","purpose","organizationNumber","closeModal","useCallback","async","close","webApiClient","post","includes","ScrollableModal","show","maxWidth","maxHeight","mobileBottomSheet","minHeight","bankIdLogo","inProgress","FooterActions","CancelButton","direction","OpenOnDeviceButton","fluid","variant","getBankIdLink","isIOS","queryParams","URLSearchParams","set","isSubmitting","setIsSubmitting","environment","bankIdStartUrl","startAuthOnFile","window","location","href","rel","loading","START_FAILED","EXPIRED_TRANSACTION","ALREADY_IN_PROGRESS","CERTIFICATE_ERROR","CANCELLED","USER_CANCEL","bankIdSlice","reset","completed","setError","startAuth","_ref3","_bankIdSlice$actions","bidHistoryApi","getBidHistory","itemId","useGetBidHistoryQuery","BidsHistoryTable","bids","auctionOpeningBid","auctionStartDate","currencyIsSEK","payment","isBuyer","dayjs","useDayJs","sekPriceFormatter","useSekPriceFormatter","localizedPriceFormatter","useLocalizedPriceFormatterWithExchangeRate","paymentMethodExchangeRate","CurrencyRateType","Buyer","Seller","formatDateTime","datetime","format","formatMoney","getBidsTableColumnClass","style","width","map","bid","BidRow","bidId","_bid$bidReason","toLocalizedUrl","useUrlLocalizer","removed","bidAmount","column2Class","bidReason","bidReasonLabel","getBidReasonLabel","memberAliasNormalized","memberAlias","formatNumberWithSeparators","memberTotalRating","displayTime","reason","column","isHeader","concat","BottomSheet","_ref$inlineStyle","inlineStyle","_ref$maxHeight","bottomAnchor","TransitionGroup","component","mountOnEnter","EnterFade","in","Overlay","closeModalCallback","EnterFrom","from","RemoveScroll","forwardProps","bottom","sheetContainer","bottomSheet","mobileOnlyProps","BREAKPOINT_SIZES","BREAKPOINTS","SM","max","desktopOnlyProps","minWidth","MD","min","allDeviceProps","XS","desktop","_ref$dismissOnOverlay","dismissOnOverlayClick","mediaQuery","mobile","_ref$mobileFullscreen","mobileFullscreen","overlayClassNames","mediaQueryProps","MediaQuery","Dialog","onOpenChange","open","DialogPortal","forceMount","DialogOverlay","overlay","mobileAlert","DialogContent","content","onPointerDownOutside","e","preventDefault","BaseInputField","isInvalid","suffix","hidePlaceholderOnFocus","noLigatures","selectAllOnFocus","preventBubbling","onFocus","composeEventHandlers","select","id","stopPropagation","isVisibleNode","BaseInputWrapper","hint","help","collapsed","isPristine","supressErrorWhenPristine","supressError","textBelow","hasLabelOrHelp","htmlFor","size","FormFieldErrorMessage","RadioSwitch","checked","defaultChecked","handleOnChange","options","_ref$dynamic","dynamic","otherProps","option","flexGrow","TextBox","onClearButtonClick","emptyStateIconRight","showClearButton","_ref$autoHeight","autoHeight","_ref$supressErrorWhen","toString","localValue","setLocalValue","_useState4","setIsPristine","localRef","height","scrollHeight","readOnly","node","handleOnClear","CloseNarrowIcon","ToggleSwitch","_ref$disabled","_ref$className","_ref$size","Root","Indicator","CheckboxContext","createContext","checkedProp","_ref2$disabled","_useControllableState2","useControllableState","prop","defaultProp","setChecked","onChangeHandler","event","Provider","_ref3$className","_ref3$size","context","useContext","Error","_context$checked","wrapper","small","xsmall","input","switch","WithGrowthBook","growthbook","useTWGrowthBook","_params$forceGb$toSt","_params$forceGb","_document","_document$cookie","clientKey","initData","growthBookClientKey","selectMemberId","isGrowthBookEnabled","useIsFeatureEnabled","memberCountryCodeIso2","selectShippingRegionCountryCodeIso2","growthBookRef","urlSearchParams","search","params","fromEntries","entries","forceEnable","forceVariant","gaId","document","cookie","match","clientId","idParts","split","_growthBookRef$curren","_clientId","_clientId2","GrowthBook","apiHost","enableDevMode","isDev","backgroundSync","trackingCallback","experiment","result","trackGtmEvent","event_category","experiment_id","variation_id","variationId","setAttributes","deviceId","country","loggedIn","_growthbook","useOnMount","_growthBookRef$curren2","loadFeatures","timeout","GrowthBookProvider","LazyImageLoader","onLoad","rest","imgElement","complete","imageHasLoaded","naturalWidth","Event","ImageLoaderState","ImageLoader","forceLoadingState","_ref$loadingClassName","loadingClassName","PENDING","setState","LOADED","_Fragment2","LoadingSpinIcon","LoadingIcon","CloseButton","round","CloseIcon","InfoBox","header","info","check","success","alert","danger","customIcon","headerClassName","_ref3$isFullWidth","isFullWidth","Icon","InfoIcon","MaybeLink","justify","Heading","branded","ArrowRightIcon","identitytoolkitBaseQuery","fetchBaseQuery","prepareHeaders","headers","baseUrl","firebaseBaseQueryFn","args","api","extraOptions","firebaseConfiguration","status","statusText","data","region","projectId","firebaseBaseQuery","token","getState","auth","firebaseIdToken","idToken","firebaseApi","currentIdToken","_await$api$dispatch$d","memberApi","getMessagingConfiguration","initiate","messagingConfiguration","argsWithFirebaseConfiguration","refreshedIdTokenQuery","apiKey","grant_type","refresh_token","refreshToken","refreshedTokenData","receivedFirebaseIdToken","id_token","expiresIn","expires_in","_customTokenResult$da","_customTokenResult$da2","customTokenResult","returnSecureToken","getToken","addMessage","mutation","parameters","initiateThread","getProfile","useAddMessageMutation","useInitiateThreadMutation","useGetProfileQuery","paymentMethod","displayText","visaLogo","logoWithBorder","narrow","padding","VisaLogo","mastercardLogo","MaestroLogo","logoDouble","MasterCardLogo","marginRight","PaynovaLogo","PaypalLogo","SwishLogo","ApplePayLogo","logoWithoutBorder","GooglePayLogo","KlarnaLogo","TrustlyLogo","TraderaLogo","referralModalApi","getReferralCode","useGetReferralCodeQuery","ScrollableModalContent","footer","forceZIndex","_ref$innerClassName","innerClassName","_ref$padding","_ref$paddingX","paddingX","_ref$paddingTop","paddingTop","_ref$paddingBottom","paddingBottom","_useInView2","useInView","initialInView","threshold","scrollableContentRef","isScrollableContentEntirelyVisible","hasScroll","setHasScroll","head","smallScrollbar","zIndex","shadow","_ref$maxWidth","_ref$bottomSheetFullH","bottomSheetFullHeight","dialogModalProps","DialogModal","flexBasis","preferredShippingProvidersApi","getSelectedShippingProviders","setSelectedShippingProviders","onQueryStarted","arg","queryFulfilled","patchResult","util","updateQueryData","draft","_draft$availableShipp","selectedShippingProviders","availableShippingProviders","filter","availableShippingProvider","_arg$selectedShipping","_availableShippingPro","providerSettingId","undo","useGetSelectedShippingProvidersQuery","useSetSelectedShippingProvidersMutation","Underage","onLinkClick","ALink","BPOINT","bp","index","_ref4","parseInt","ItemTypes","STORAGE_KEYS","COOKIE_NOTIFICATION","ITEMS_CLICK","SAVE_SEARCH_HINT","SHARE_WISHLIST_TOOLTIP","SHARE_WISHLIST_TOOLTIP_SANTA","SEARCH_RECENT","RECENT_BRAND_ATTRIBUTES","WEB_PUSH_ACCEPTED","WEB_PUSH_SHOWN_MODALS","SELLER_LIST_COMPACT_VIEW","SYI_NEW_LAYOUT_INFO_DISMISSED","SYI_RESELL_SHOWN_FOR_DRAFT_IDS","SYI_RESELL_ITEM_SHOWN_FOR_DRAFT_IDS","SHIPPING_CONFIRMATION_PAGE_DIGITAL_STAMP_MODAL_DISMISSED_COUNT","SELLER_LIST_MARK_AS_SENT_HINT","WISHLIST_BADGE_DATE_SHOWN","ONBOARD_BUYER_CATEGORIES","ONBOARD_SELLER_CLOSED","VIEWED_START_PAGE_COUNT","CACHE_SYSTEM_MESSAGES","CACHE_SYSTEM_BADGE","APPLE_ID_USER","USER_PROFILE","HAS_SHOWED_MFA_VERIFICATION_MESSAGE","STORAGE_VALUES","SAVE_SEARCH_HINT_CLICKED","SHARE_WISHLIST_TOOLTIP_CLICKED","SHARE_WISHLIST_TOOLTIP_SANTA_CLICKED","SELLER_LIST_MARK_AS_SENT_HINT_CLICKED","ONBOARD_SELLER_CLOSED_CLICKED","URL_HASHES","openBiddingModal","saveInWishlist","openBinModal","openChangeCombinedShippingModal","markAsPaid","hasRequestedCombinedShipping","openReferralModal","buyShopItem","fetchReducer","useFetchData","apiFunction","apiParameter","apiName","_useReducer2","useReducer","handleFetch","then","catch","logger","isLoading","isIdle","isFetching","isResolved","isRejected","retryFetch","useIsLoggedIn","_state$member","member","isLoggedIn","fn","useOnHydration","defaultOptions","behavior","useScrollIntoView","scroll","selector","querySelector","console","warn","offset","y","getBoundingClientRect","top","pageYOffset","scrollTo","scrollIntoView","debounce","func","wait","immediate","_len","Array","_key","callNow","clearTimeout","later","process","mapCurrencyCodeToCountryCode","currencyCode","countryCode","sek","usd","jpy","gbp","nok","eur","dkk","toLowerCase","mapLanguageCodeToLanguageKey","languageCode","lokaliseKey","sv","da","de","en","fr","nl","_ref$showSymbol","showSymbol","decimals","_ref$onlyShowValid","onlyShowValid","language","useCurrentLanguage","preferredCurrency","selectPreferredCurrency","price","isNullOrUndefined","Number","isNaN","formatPrice","code","minimumFractionDigits","maximumFractionDigits","SOURCE_SCREEN","initialize","_state","requestSearchResults","receiveSearchResults","_payload$endpoint","endpoint","_payload$queryParams","_payload$shippingRegi","shippingRegionCountryCodeIso2","hasResult","normalize","handleSearchResultsError","normalized","setSingleFilterValue","_state$filters","currentFilter","filters","selectedValue","isIndexable","translateOptions","updateItem","_ref5","itemData","items","x","itemsOnDisplay","relatedItems","addItemOnDisplay","_ref6","some","item","removeItemOnDisplay","_ref7","setCategoryPath","_ref8","categoryPath","currentCategoryId","setCurrentCategoryId","_ref9","setIsFilterOpen","_ref10","isFilterOpen","_ref11","setWardrobeProfileEnabled","_ref12","wardrobeProfile","isEnabled","wishlist","_ref$shouldNotTrackEv","shouldNotTrackEventBecauseNeedsToBeSameAsLegacyVip","_ref$showWishlistModa","showWishlistModals","sectionGaName","gaSourceScreen","_ref$gaWishlistType","gaWishlistType","_getState2","_getState2$member","wishListItemIds","page","existsInWishList","redirectUrl","onSignedOutError","signIn","setWishlistExists","exists","Analytics","category","trackGA4","item_id","source_section","source_screen","wishlist_type","shouldAddToWishlist","touchWebClient","checkResponseLoggedOut","finalizeResponse","handleError","logError","postWishlistItem","wishlistCountIncrement","showNotificationOptinModalWhenApplicable","message","API_ERRORS","LOGGED_OUT","memberStorage","APP_DOWNLOAD_MODAL_DISMISSED","openNotificationOptinModalAction","MODAL_TYPES","wishlistReminders","itemsSlice","recentItemIds","wishListAddedCount","addRecentlyViewed","unshift","setRecentlyViewed","_action$payload","Set","delete","wishlistAddRange","itemIds","forEach","wishlistRemoveRange","getInitialState","_itemsSlice$actions","selectExistsInWishList","_state$items","saveLanguageSetting","axios","languageCodeIso2","loadMemberServerStorageData","createAsyncThunk","get","saveMemberServerStorageValue","setValue","put","useMemberServerStorageInternal","parse","stringify","defaultValue","isUninitialized","isUnitialized","isSuccess","currentValue","storeValue","isReady","useMemberServerStorageWithCookieFallbackInternal","expires","_useMemberServerStora2","_value","_storeValue","_isReady","useCookieUtil","isFunctionalCookieEnabled","gdpr","cookieValue","getCookie","parsedValue","stringValue","fallbackValue","isPersistant","useMemberServerStorageBoolean","useMemberServerStorageWithCookieFallbackBoolean","useMemberServerStorage","JSON","useMemberServerStorageWithCookieFallback","MAX_RECENT_SEARCHES_STORED_IN_COOKIES","parseRecentSearchesFromCookiesString","cookieString","stripItmFromQueryParameters","formatQueryParams","toQueryParameters","q","syncLocalStorageToCookies","mapped","mapToCookie","recentSearches","limit","toSearchString","getRecentSearchesLocalStorage","RECENT_SEARCHES","brands","recentSearchesFromCookie","recentBrandAttributes","personalisationSlice","_","recentSearchesCookieString","getRecentBrandAttributesLocalStorage","initializeRecentSearches","initializeRecentBrandAttributes","setRecentSearches","recentSearchIndex","findIndex","count","splice","removeRecentSearch","setRecentSearchesFromCookie","setRecentBrandAttributes","_personalisationSlice","selling","CHANNEL_TAG_GROUPS","buyingListingOutbid","buyingListingWon","sellingListingFirstBid","sellingListingAllBids","sellingListingSold","sellingPaymentReceived","tagTypes","CartSummary","getCartSummaryParams","cartId","cartApi","values","getCartSummary","providesTags","qs","useGetCartSummaryQuery","categoriesApi","getCategories","queryFn","_extraOptions","level","selectPreferredLanguageCode","_await$baseQuery","response","useGetCategoriesQuery","discoverApi","isomorphicBaseQueryForWishListableItems","getBrandSuggestions","getWishListableItems","getFavouriteSellers","shippingCountryCode","userLanguage","automaticTranslationPreferred","_ref3$maxItemsPerFavo","maxItemsPerFavouriteSeller","_ref3$maxItems","maxItems","_ref3$maxFavouriteSel","maxFavouriteSellers","getSellersOfInterest","_ref4$maxSellers","maxSellers","getIdeas","getInstagramFeed","getPersonalisedSearches","transformResponse","searches","getTrendingSearches","selectIsBot","getSavedSearches","getRecommendations","slot","maxResults","pageNumber","seedItemIds","seedCategoryId","getCategoryResult","getSavedSearchResults","meta","_response$response","_response$response$re","storeSavedSearch","itemsMatched","getItemsByIds","getCausePage","useGetTrendingSearchesQuery","useGetBrandSuggestionsQuery","useGetIdeasQuery","useGetSellersOfInterestQuery","useGetInstagramFeedQuery","useGetCategoryResultQuery","useGetPersonalisedSearchesQuery","useGetSavedSearchesQuery","useGetSavedSearchResultsQuery","useGetRecommendationsQuery","useGetFavouriteSellersQuery","useGetItemsByIdsQuery","useGetCausePageQuery","toSavedSearchesFromCookieString","savedSearches","_search$split2","_cookieUtil$getCookie","SAVED_SEARCHES","newSavedSearches","removeSavedSearch","_cookieUtil$getCookie2","messagingStatsApi","getMessagingStats","useGetMessagingStatsQuery","startPageThemeApi","updateHomepageTheme","patch","getHomepageTheme","useUpdateHomepageThemeMutation","useGetHomepageThemeQuery","touchwebSearchApi","httpClientBaseQuery","client","saveSearch","addQueryPrefix","searchGtm","useSaveSearchMutation","webApiTags","Item","Offer","KycPendingActions","KycQuestionnaire","webApi","Tags","useWishListParams","pageSize","statusFilter","createSelector","selectAutomaticTranslationPreferred","shippingCountryCodeIso2","_ref$page","_ref$pageSize","_ref$statusFilter","_ref$languageCodeIso","_ref$shippingCountryC","_ref$automaticTransla","getDefaultWishListParams","selectWishListParams","wishListApi","keys","getWishList","queryString","WISH_LIST","inWishList","deleteWishListItems","invalidatesTags","getWishListEndless","request","_request$page","serializeQueryArgs","_ref4$queryArgs","queryArgs","otherQueryArgs","endpointDefinition","endpointName","defaultSerializeQueryArgs","forceRefetch","currentArg","previousArg","merge","currentCacheData","_currentCacheData$ite","_response$items","totalCount","useGetWishListEndlessQuery","useGetWishListQuery","useDeleteWishListItemsMutation","updateShippingRegion","countryCodeIso2","setShippingCountry","removeShippingCountryCookieIfSwedish","geolocation","isoCode","hasCookie","SHIPPING_COUNTRY","setDefaultShippingCountry","getAvailableShippingCountries","selectIsLoadingAvailableShippingCountries","selectHasLoadedAvailableShippingCountries","beginLoadingAvailableShippingOptions","fetchAvailableShippingCountries","shippingCountries","setAvailableShippingCountries","onLocalizationShippingRegionSelected","getLanguageFromCountryCode","setPreferredCurrencyThunk","setPreferredLanguage","getFallbackShippingCountry","getCountryCodeFromLanguage","initializeFromInitData","isFunctionalCookiesEnabled","hasRegionPickerDismissedCookie","REGION_PICKER_DISMISSED","shippingCountryCookieValue","fallbackShippingCountry","shippingRegionSlice","shippingCountry","toUpperCase","expireDate","Date","getTime","availableShippingCountries","availableShippingCountryCodes","hasLoadedAvailableShippingCountries","isLoadingAvailableShippingCountries","dismissLocalizationRegionPicker","regionPickerDismissed","_shippingRegionSlice$","isActionsPerFullPageLoadDone","hasReportedViewportDiff","loadedLanguages","setIsActionsPerFullPageLoadDone","setHasReportedViewportDiff","addLoadedLanguage","reload","force","reloadLocalized","getReturnUrl","redirectURL","encodeURIComponent","pathname","hash","getRedirectUrl","scriptPromises","Map","loadScript","optionsWithDefaults","dataAttributes","promise","newPromise","Promise","resolve","reject","scriptWithKey","_options$unload","removeChild","unload","script","createElement","timeoutTimer","_options$unload2","onload","onerror","attribute","setAttribute","appendChild","getEmailShareLink","subject","encodedSubject","replace","getFacebookShareLink","link","URL","searchParams","getPinterestShareLink","description","imageUrl","getSmsShareLink","number","encodedBody"],"sourceRoot":""}