/* FULL JS V101 | BARAH 1686797991 | replace JS editor only */ /* BARAH MARKET V92.2 | SINGLE VIEW & SHOP CTA, all visual listing cards. All native Salla purchase forms are preserved in the product page. */ ;(function(){ var path=location.pathname||'/'; var product=/\/product-[^/]+|\/p\d+(?:\/|$)|\/checkout(?:\/|$)|\/cart(?:\/|$)/i.test(path); window.__BARAH_CTA_V92_ENABLED__=!product; })(); /* BARAH CATEGORY V89: stop legacy V78 navbar on recognized category routes. */ ;(function(){ var p=location.pathname||'',host=String(location.hostname||'').toLowerCase(); var match=p.match(/(?:^|\/)c(\d+)(?:\/|$)/); var supported='127906256,1688516963,14674117,2041169613,727852954,290880391,1338082535,853119302,408073301,511828448,2091725275,336613091,254687842,694872552,2121151936,804161413,228633582,146261065,92693286,792633346,558473504,1851175671'.split(','); window.__BARAH_CATEGORY_V89_MODE__=!!(match && supported.indexOf(match[1])!==-1 && (/(?:^|\.)barahstore\.com$/.test(host)||/(?:^|\.)salla\.sa$/.test(host))); })(); /* BARAH MARKET V87 | HOME GATE | PREVIEW 1686797991 * Homepage uses one clean V85 module; legacy original JavaScript is preserved * for category, product, cart and other non-home pages. * No custom CSS required for the homepage: scoped critical styles self-install. */ ;(function(){ var host=String(location.hostname||'').toLowerCase(); var p=(location.pathname||'/').replace(/\/+$/,'')||'/'; var preview=/(?:^|\.)salla\.sa$/.test(host)&&/^\/br1(?:\/(?:ar|en))?$/.test(p); var live=/(?:^|\.)barahstore\.com$/.test(host)&&/^(?:\/|\/(?:ar|en))$/.test(p); window.__BARAH_MARKET_V87_HOME_MODE__=preview||live; })(); /* Preservation gate: exact uploaded V82 JavaScript only on NON-home routes. */ if(!window.__BARAH_MARKET_V87_HOME_MODE__){ /* * BARAH STORE | COMPLETE JAVASCRIPT V82.1 | Growth theme development 1686797991 * Date: 2026-10-29 * FULL REPLACEMENT file assembled from owner-provided 2026-10-29 backup. * Preserves all original modules preceding the final standalone V81 banner. * Replaces V81 banner once with responsive V82; no duplicate V81/V82. * Homepage sections were separately reordered through Salla connector. * No change to product prices, discount configuration, inventory, or checkout. * IMPORTANT: Original backup labels itself as full known-backup of 135910905. * Do not overwrite a DIFFERENT current draft JavaScript without comparing them. * Keep existing custom CSS in Salla. Paste WITHOUT