/* KALO × RJ — ثيم KALO (2026-11-07). نسخة مضغوطة؛ المصدر المقروء في مجلد العميل design/theme/src. التراجع: استبدل الملف كاملاً بنسخة backups/rj-kalo-js-backup-before-v6-2026-11-07.js */ !function(){"use strict";if(!window.__kaloRJ){window.__kaloRJ=1;var e=[".k-hide{display:none!important}",".k-sg-link{display:inline-flex;align-items:center;gap:6px;margin-inline-start:auto;font-size:13px;font-weight:700;color:var(--color-primary,#535386);text-decoration:underline;text-underline-offset:3px;cursor:pointer;background:none;border:0;padding:0}",".k-sg-head{display:flex;align-items:center;gap:8px;width:100%}",".k-sg-head{flex-wrap:wrap}.k-sg-link{white-space:nowrap}@media(min-width:1024px){.k-sg-head>small,.k-sg-head .k-sg-link{flex-basis:100%;margin-inline-start:0}.k-sg-head .k-sg-link{margin-top:6px;justify-content:flex-start}}",".k-sg-ov{position:fixed;inset:0;z-index:100000;display:flex;align-items:flex-end;justify-content:center;background:rgba(20,20,40,.55)}","@media(min-width:768px){.k-sg-ov{align-items:center}}",".k-sg{width:100%;max-width:560px;max-height:88vh;overflow:auto;background:#fff;border-radius:18px 18px 0 0;padding:20px 16px 24px;direction:rtl;font-family:inherit}","@media(min-width:768px){.k-sg{border-radius:18px}}",".k-sg h3{margin:0 0 4px;font-size:18px;font-weight:800;color:#2b2b45}",".k-sg p{margin:0 0 14px;font-size:13px;color:#6b6b80;line-height:1.8}",".k-sg table{width:100%;border-collapse:collapse;font-size:13px;text-align:center}",".k-sg th{background:#535386;color:#fff;font-weight:700;padding:9px 4px;line-height:1.4}",".k-sg td{padding:10px 4px;border-bottom:1px solid #ececf3;color:#2b2b45}",".k-sg tr:nth-child(even) td{background:#f7f7fb}",".k-sg td:first-child{font-weight:800}",".k-sg td:first-child,.k-sg td:last-child{white-space:nowrap;direction:ltr;unicode-bidi:isolate}",".k-sg-x{float:left;width:34px;height:34px;border-radius:50%;border:0;background:#f1f1f6;font-size:20px;line-height:34px;cursor:pointer;color:#2b2b45}",".k-sg-note{margin-top:12px!important;font-size:12px!important}",".k-opt-alert{margin-top:8px;padding:8px 12px;border-radius:10px;background:#fff1f1;color:#b42318;font-size:13px;font-weight:700}",".k-opt-shake{animation:kShake .35s}","@keyframes kShake{0%,100%{transform:none}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}","@media(max-width:767px){body.product-single #bcio-whatsapp-widget{position:fixed!important;left:0;right:0;bottom:122px;height:0;transform:translateZ(0);z-index:30}body.product-single .scroll-to-top{bottom:132px!important}}"].join(""),t=document.createElement("style");t.id="k-rj-css",t.textContent=e,document.head.appendChild(t);var n=[["S - M",122,71,86,26,"39×33"],["L - XL",126,76,91,26,"39×33"],["XXL - XXXL",140,80,95,26,"39×33"],["4XL - 5XL",140,100,116,40,"39×37"]];window.__kaloGuide=a,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",i):i()}function a(){if(!document.querySelector(".k-sg-ov")){var e=n.map(function(e){return""+e[0]+""+e[1]+""+e[2]+""+e[3]+""+e[4]+""+e[5]+""}).join(""),t=document.createElement("div");t.className="k-sg-ov",t.innerHTML='',t.addEventListener("click",function(e){(e.target===t||e.target.classList.contains("k-sg-x"))&&a()}),document.addEventListener("keydown",r),document.body.appendChild(t)}function a(){t.remove(),document.removeEventListener("keydown",r)}function r(e){"Escape"===e.key&&a()}}function r(e){[].forEach.call((e||document).querySelectorAll(".product-card__title a"),function(e){if(!e.dataset.k){e.dataset.k="1";var t=e.textContent,n=t.replace(/\s*-\s*RJ\s*$/i,"");n!==t&&(e.title=t.trim(),e.textContent=n)}})}function i(){r();var e=0;if(new MutationObserver(function(){e||(e=1,requestAnimationFrame(function(){e=0,r()}))}).observe(document.body,{childList:!0,subtree:!0}),document.body.classList.contains("product-single"))var t=0,n=setInterval(function(){(function(){var e=document.querySelector("form.product-form");if(!e||e.dataset.k)return!!e;var t=e.parentElement,n=t&&t.querySelector(":scope > salla-installment"),r=e.querySelector("salla-product-options");if(!r||!r.querySelector(".s-product-options-option"))return!1;e.dataset.k="1",n&&e.nextSibling&&t.insertBefore(n,e.nextSibling);var i=e.querySelector(".product-sku-wrapper");return i&&(i.closest("section")||i).classList.add("k-hide"),[].forEach.call(e.children,function(e){e.matches("div.bg-storeBG")&&/^\s*السعر/.test(e.innerText||"")&&e.classList.add("k-hide")}),[].forEach.call(r.querySelectorAll(".s-product-options-option"),function(e){var t=e.querySelector(".s-product-options-option-label");if(t&&/مقاس/.test(t.textContent)&&(n=e,(r=[].map.call(n.querySelectorAll(".s-product-options-grid-mode-span"),function(e){return e.textContent.trim()})).length&&r.every(function(e){return/^(S\s*-\s*M|L\s*-\s*XL|XXL\s*-\s*XXXL|4XL\s*-\s*5XL)$/i.test(e)}))&&!e.querySelector(".k-sg-link")){var n,r;t.classList.add("k-sg-head");var i=document.createElement("button");i.type="button",i.className="k-sg-link",i.textContent="دليل المقاسات",i.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),a()}),t.appendChild(i)}}),document.addEventListener("click",function(e){if(e.target.closest&&e.target.closest("salla-add-product-button, .s-add-product-button-main button")){var t=[].filter.call(r.querySelectorAll('.s-product-options-option[data-option-required="true"]'),function(e){return!(e.querySelector("input:checked")||e.querySelector("select")&&e.querySelector("select").value)});if(t.length){var n=t[0],a=n.querySelector(".k-opt-alert");a&&a.remove();var i=document.createElement("div");i.className="k-opt-alert",i.setAttribute("role","alert"),i.textContent="اختر "+((n.querySelector(".s-product-options-option-label b")||{}).firstChild||{textContent:"المقاس"}).textContent.trim()+" أولاً عشان نضيفه للسلة",n.appendChild(i),n.classList.remove("k-opt-shake"),n.offsetWidth,n.classList.add("k-opt-shake"),n.addEventListener("change",function(){i.remove()},{once:!0})}}},!0),!0}()||++t>40)&&clearInterval(n)},250)}}(),function(){"use strict";if(!window.__kaloRJD){window.__kaloRJD=1;var e='',t='',n='',a='',r='',i='',o={1582322429:{eye:"عرض العائلة",t1:"روب لك…",t2:"وروب طفلك هدية",b1:"روب أطفال",b2:"هدية"},2034243550:{eye:"بكجات جاهزة للهدايا",t1:"كل راحتك",t2:"في بكج واحد",b1:"وفر حتى",b2:"62%"},575825615:{eye:"الأكثر مبيعاً",t1:"اطلع من الشاور",t2:"ناشف ومرتاح",b1:"بدل 283",b2:"154 ر.س"}},l=0,s=0,c=0,d=setInterval(function(){s=1,c=c||function(){if(window.innerWidth<1024)return!0;var e=[].filter.call(document.querySelectorAll("header .main-menu > li.root-level"),function(e){return e.offsetWidth>0});if(!e.length)return!1;var t=document.querySelector("header .inner")||document.querySelector("header");if(!t||t.querySelector(".k-mega"))return!0;var n={a:[194762328,"أرواب للجنسين"],k:[1700853081,"أرواب للأطفال"],b:[479330517,"مناشف الجسم"],h:[1853829078,"مناشف الشعر"],p:[796592349,"واقي سرير"],c:[169962960,"غطاء رأس"],r:[836021202,"ربطة رأس"],w:[61983443,"ربطة معصم"],s:[944000727,"منتجات رياضية"],g:[2034243550,"بكجات RJ"]},a={1280594216:"acbsg",1746902826:"ahrwg",1638857781:"kbhg",1119216084:"bhpc",944000727:"swrb",2034243550:"akbg",575825615:"akbg"};function r(e,t,n){var a=document.createElement(e);return t&&(a.className=t),null!=n&&(a.textContent=n),a}var i=r("div","k-mega");i.setAttribute("role","region"),t.appendChild(i);var o,l={};function s(e){var t=e&&(null!=e.amount?e.amount:e);return null!=t?Math.round(100*t)/100+" ر.س":""}function c(){i.classList.remove("is-open"),e.forEach(function(e){e.classList.remove("k-on")})}e.forEach(function(t){t.addEventListener("mouseenter",function(){clearTimeout(o),o=setTimeout(function(){!function(t){var o=t.querySelector(":scope > a");if(o){var d=o.getAttribute("href")||"",u=d.match(/c(\d+)/);if(u&&a[u[1]]){var p=(o.textContent||"").trim();i.textContent="";var h=r("div","k-mega__side");h.appendChild(r("div","k-mega__h","تصفح الأقسام")),a[u[1]].split("").forEach(function(e){var t,a,i=n[e],o=r("a",null,i[1]);o.href=(t=d,a=i[0],t.replace(/c\d+/,"c"+a)),h.appendChild(o)});var f=r("div","k-mega__main");f.appendChild(r("div","k-mega__h","مختارات من "+p));var v=r("div","k-mega__grid");f.appendChild(v);var m=r("a","k-mega__cta","تسوق كل "+p);if(m.href=d,f.appendChild(m),i.appendChild(h),i.appendChild(f),l[u[1]])k(l[u[1]]);else{for(var g=0;g<3;g++)v.appendChild(r("span","k-mega__card is-skel"));window.salla&&salla.product&&salla.product.fetch&&salla.product.fetch({source:"categories",source_value:[+u[1]],per_page:3}).then(function(e){l[u[1]]=e&&e.data||[],i.dataset.cat===u[1]&&k(l[u[1]])}).catch(function(){})}i.dataset.cat=u[1],e.forEach(function(e){e.classList.toggle("k-on",e===t)}),i.classList.add("is-open")}else c()}function k(e){v.textContent="",e.slice(0,3).forEach(function(e){var t=r("a","k-mega__card");t.href=e.url;var n=r("span","k-mega__img"),a=r("img");a.src=(window.__kRs||function(e){return e})(e.image&&e.image.url||e.thumbnail||"",260),a.alt=e.name,a.loading="lazy",n.appendChild(a),t.appendChild(n),t.appendChild(r("b",null,(e.name||"").replace(/\s*-\s*RJ\s*$/i,"")));var i=r("span","k-mega__price",s(e.price));e.regular_price&&e.price&&(e.regular_price.amount||e.regular_price)>(e.price.amount||e.price)&&i.appendChild(r("s",null,s(e.regular_price))),t.appendChild(i),v.appendChild(t)})}}(t)},120)}),t.addEventListener("mouseleave",function(){clearTimeout(o),o=setTimeout(c,220)})}),i.addEventListener("mouseenter",function(){clearTimeout(o)}),i.addEventListener("mouseleave",function(){o=setTimeout(c,220)}),document.addEventListener("keydown",function(e){"Escape"===e.key&&c()});var d=e.find(function(e){return/هدية/.test(e.textContent||"")});return d&&d.classList.add("k-promo"),!0}(),(s&&c||++l>40)&&clearInterval(d)},250);"loading"===document.readyState?document.addEventListener("DOMContentLoaded",h):h()}function u(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}function p(e){if(!e.dataset.kcap){var t=e.querySelector("a[href]"),n=t&&t.getAttribute("href").match(/c(\d+)/),a=n&&o[n[1]],r=e.querySelector(".advanced-slider__caption__inner__content");if(a&&r){e.dataset.kcap="1";var i=r.querySelector(".advanced-slider__caption__inner__content__heading");if(i){i.textContent=a.t1+" ";var l=document.createElement("em");l.textContent=a.t2,i.appendChild(l)}var s=document.createElement("span");s.className="k-eye",s.textContent=a.eye,r.insertBefore(s,r.firstChild);var c=document.createElement("div");c.className="k-badge",c.setAttribute("aria-hidden","true");var d=document.createElement("span");d.textContent=a.b1;var u=document.createElement("b");u.textContent=a.b2,c.appendChild(d),c.appendChild(u),(e.querySelector(".advanced-slider__slide")||e).appendChild(c)}}}function h(){if(document.body.classList.contains("index"))var o=0,l=setInterval(function(){var s=function(){var e=document.querySelector(".advanced-slider--0")||document.querySelector(".advanced-slider");if(!e)return!1;var t=e.querySelector(".swiper"),n=t&&t.swiper;if(!n)return!1;if([].forEach.call(e.querySelectorAll(".swiper-slide"),p),e.classList.contains("k-peek"))return!0;var a=n.slides.length,r=e.querySelector("salla-slider")||t;r.style.visibility="hidden";var i=function(){requestAnimationFrame(function(){requestAnimationFrame(function(){r.style.visibility=""})})};try{n.params.loop&&n.loopDestroy&&n.loopDestroy();var o=e.querySelector(".swiper-wrapper"),l=[].filter.call(o.children,function(e){return!e.classList.contains("swiper-slide-duplicate")});(a=l.length)>1&&a<6&&l.forEach(function(e){var t=e.cloneNode(!0);t.classList.remove("swiper-slide-active","swiper-slide-next","swiper-slide-prev"),t.classList.add("k-clone"),t.setAttribute("aria-hidden","true"),o.appendChild(t)}),e.classList.add("k-peek"),n.params.slidesPerView="auto",n.params.centeredSlides=!0,n.params.spaceBetween=window.innerWidth<768?12:22,n.update(),n.params.loop&&n.loopCreate&&(n.loopCreate(),n.update()),n.slideToLoop?n.slideToLoop(0,0):n.slideTo(0,0);var s=e.querySelector(".swiper-pagination"),c=function(){if(s){var e=n.realIndex%a;[].forEach.call(s.children,function(t,n){t.style.display=n',"شحن مجاني","للطلبات فوق 299 ر.س"],[t,"قسمها براحتك","تابي وتمارا ومدفوع"],[n,"دفع آمن","مدى، Apple Pay والبطاقات"],['',"نخدمك على الواتساب","رد سريع على استفساراتك"]].map(function(e){return'
'+e[0]+''+e[1]+'
'+e[2]+"
"}).join("")+"";return e.parentNode.insertBefore(u(a),e.nextSibling),!0}(),d=function(){if(document.querySelector(".k-why"))return!0;var t=document.querySelector(".s-block--faq");if(!t)return!1;var n=u('
ليش أرواب RJ؟

راحة تحسها من أول لبسة

روب استحمام بخامة مايكروفايبر ناعمة، مصمم عشان ينشفك بسرعة ويريحك طول اليوم.

'+[[e,"7×","امتصاص عالي","يمتص السوائل حتى 7 أضعاف وزنه، فتطلع من الحمام ناشف بسرعة."],[a,"5×","يجف أسرع","ينشف أسرع من المناشف القطنية التقليدية، وما يحتفظ بالرطوبة."],[r,"","خفيف وعملي","وزنه خفيف وما ياخذ مساحة، يناسب البيت والسفر والنادي."],[i,"12+","ألوان لكل العائلة","مقاسات من S إلى 5XL للكبار، وأرواب للأطفال بألوان مبهجة."]].map(function(e){return'
'+(e[1]?'
'+e[1]+"
":'
'+e[0]+"
")+"

"+e[2]+"

"+e[3]+"

"}).join("")+'
محتار في المقاس؟شوف جدول المقاسات وقارن بطولك قبل ما تطلب.
');return t.parentNode.insertBefore(n,t),n.querySelector(".k-size-btn").addEventListener("click",function(){window.__kaloGuide&&window.__kaloGuide()}),!0}();(s&&c&&d||++o>200)&&clearInterval(l)},50)}}(),function(){if(!window.__kaloRJ3){window.__kaloRJ3=1;var e="https://cdn.files.salla.network/other/1243532851/d28dfbfa-e1ae-4497-b9e7-84712e845878-original.webp",t="https://cdn.files.salla.network/other/1243532851/9c45ff1a-80ba-4eb7-be08-6b936d3b3f6b-original.webp",n="https://cdn.files.salla.network/other/1243532851/2739b0fc-98e6-4b87-a0c2-28f0b7ecfb43-original.webp",a="https://cdn.files.salla.network/other/1243532851/98c07fcb-f0d7-4e91-9548-cc9e363c820c-original.webp",r={truck:u(''),arrow:u(''),wa:'',x:u('')},i={},o=[{x:33.3,y:15,pid:842044144,t:"غطاء رأس مريح",d:"متصل بالروب، تلبسه بعد الشاور وتكمل يومك وانت مرتاح."},{x:29,y:71,pid:842044144,t:"روب الكبار الطويل",d:"تصميم طويل بخامة ويفت، ومقاسات من S إلى 5XL.",price:1},{x:46.9,y:50,pid:1599020076,t:"منشفة الجسم 70×140 سم",d:"نسيج ويفت فائق الامتصاص، خفيفة وتنشف بسرعة.",price:1},{x:39.6,y:58,pid:1982033753,t:"روب الأطفال",d:"نفس الخامة بمقاس صغير وغطاء رأس، بألوان تحبها الصغار.",price:1}];m();var l=0,s={a:0,b:0,l:0,w:0};if(!k())var c=setInterval(function(){k()&&clearInterval(c)},120)}function d(e,t,n){var a=document.createElement(e);return t&&(a.className=t),null!=n&&(a.textContent=n),a}function u(e){return'"}function p(e){var t=document.querySelector('header a[href*="/c'+e+'"]')||document.querySelector('a[href*="/c'+e+'"]');if(t)return t.getAttribute("href");var n=document.querySelector('header a[href*="/c"]'),a=n&&n.getAttribute("href")||"";return/\/c\d+/.test(a)?a.replace(/c\d+(?!.*c\d+)/,"c"+e):"/"}function h(e){var t=e&&(null!=e.amount?e.amount:e);return null==t||""===t?"":(t=Math.round(100*t)/100)+" ر.س"}function f(e){return i[e]||(i[e]=(window.salla&&salla.product&&salla.product.getDetails?salla.product.getDetails(e).then(function(e){return e&&e.data}):Promise.resolve(null)).catch(function(){return null})),i[e]}function v(){return document.body.classList.contains("index")}function m(){var e=document.querySelector("header.store-header");if(!e)return!1;if(document.querySelector(".k-ann"))return!0;var t=d("div","k-ann");t.setAttribute("role","note");var n=d("span","k-ann__ic");n.innerHTML=r.truck,t.appendChild(n);var a=d("span","k-ann__t");a.appendChild(d("b",null,"شحن مجاني")),a.appendChild(document.createTextNode(" للطلبات فوق 299 ر.س داخل المملكة")),t.appendChild(a),t.appendChild(d("span","k-ann__dot"));var i=d("a","k-ann__l","تسوق البكجات");return i.href=p(2034243550),t.appendChild(i),e.insertBefore(t,e.firstChild),!0}function g(e){var t=d("section","k-band k-band--"+e.k),n=d("a","k-band__in");n.href=e.href;var a=d("span","k-band__media"),i=d("img");i.src=e.img,i.alt="",i.loading="lazy",i.decoding="async",a.appendChild(i),n.appendChild(a);var o=d("span","k-band__copy");o.appendChild(d("span","k-band__eye",e.eye)),o.appendChild(d("span","k-band__h",e.h));var l=d("span","k-band__sub");if(e.price){var s=d("span","k-band__price");s.appendChild(d("b",null,e.price[0])),s.appendChild(d("s",null,e.price[1])),l.appendChild(s),e.sub&&l.appendChild(d("span","k-band__note",e.sub))}else l.textContent=e.sub;o.appendChild(l);var c=d("span","k-band__btn");c.appendChild(document.createTextNode(e.btn));var u=d("i");return u.innerHTML=r.arrow,c.appendChild(u),o.appendChild(c),n.appendChild(o),t.appendChild(n),t}function k(){return s.a=s.a||m(),s.b=s.b||function(){if(!v())return!0;var e=document.querySelectorAll("section.s-block--best-offers"),r=document.querySelector("section.s-block--square-links");if(e.length<3||!r)return!1;if(document.querySelector(".k-band"))return!0;var i=g({k:"gift",img:t,href:p(2034243550),eye:"بكجات جاهزة للإهداء",h:"بكج الأزواج: روبين وطقم 4 مناشف",price:["469 ر.س","825 ر.س"],sub:"تغليف جاهز للهدية",btn:"شوف البكجات"}),o=g({k:"size",img:n,href:p(575825615),eye:"مقاسات للكل",h:"من S إلى 5XL.. مقاسك موجود",sub:"روب طويل بغطاء رأس وخامة ويفت ناعمة على الجسم",btn:"اختر روبك"}),l=g({k:"towel",img:a,href:p(1119216084),eye:"للجسم والشعر",h:"مناشف فائقة الامتصاص لكل العائلة",sub:"من منشفة الوجه إلى مقاس 180×90 سم، وتبدأ من 19 ر.س",btn:"تسوق المناشف"});return r.after(i),e[1].after(o),e[2].after(l),!0}(),s.l=s.l||function(){if(!v())return!0;var t=document.querySelectorAll("section.s-block--best-offers");if(t.length<2)return!1;if(document.querySelector(".k-look"))return!0;var n=d("section","k-look"),a=d("div","k-look__wrap"),r=d("div","k-look__media"),i=d("img");i.src=e,i.alt="أب وبنته لابسين أرواب RJ",i.loading="lazy",i.decoding="async",r.appendChild(i);var l=d("div","k-look__card");l.appendChild(d("span","k-look__eye","اللوك الكامل")),l.appendChild(d("h2","k-look__h","راحة العائلة كلها بعد الشاور")),l.appendChild(d("p","k-look__p","كل قطعة في الصورة من متجر RJ. اضغط على الرقم وشوف تفاصيلها."));var s=d("ol","k-look__list");l.appendChild(s);var c=[],u=[];function m(e){c.forEach(function(t,n){t.classList.toggle("is-on",n===e)}),u.forEach(function(t,n){t.classList.toggle("is-on",n===e)})}o.forEach(function(e,t){var n=d("button","k-look__dot",String(t+1));n.type="button",n.setAttribute("aria-label",e.t),n.addEventListener("mouseenter",function(){m(t)}),n.addEventListener("click",function(){m(t)}),r.appendChild(n),c.push(n);var a=d("li","k-look__row");a.appendChild(d("span","k-look__n",String(t+1)));var i=d("a","k-look__tx");i.appendChild(d("b",null,e.t)),i.appendChild(d("span",null,e.d));var o=d("span","k-look__pr");e.price&&i.appendChild(o),a.appendChild(i),s.appendChild(a),u.push(a),a.addEventListener("mouseenter",function(){m(t)}),f(e.pid).then(function(t){if(t&&(t.url&&(i.href=t.url),e.price)){o.textContent=h(t.price);var n=t.regular_price&&(t.regular_price.amount||t.regular_price),a=t.price&&(t.price.amount||t.price);n&&a&&n>a&&o.appendChild(d("s",null,h(t.regular_price)))}})}),m(0);var g=d("div","k-look__chips");["خامة ويفت","مقاسات حتى 5XL","لون ثابت بعد الغسيل"].forEach(function(e){g.appendChild(d("span",null,e))}),l.appendChild(g);var k=d("div","k-look__ctas"),_=d("a","k-look__btn","تسوق روب الكبار");_.href=p(575825615),f(842044144).then(function(e){e&&e.url&&(_.href=e.url)});var b=d("a","k-look__btn k-look__btn--ghost","أرواب الأطفال");function y(){var e=r.clientWidth,t=r.clientHeight,n=i.naturalWidth||2752,a=i.naturalHeight||1536,l=Math.max(e/n,t/a),s=n*l,d=a*l,u=getComputedStyle(i).objectPosition.split(" "),p=parseFloat(u[0])/100,h=parseFloat(u[1]||"50%")/100,f=(e-s)*(isNaN(p)?.5:p),v=(t-d)*(isNaN(h)?.5:h);o.forEach(function(e,t){c[t].style.left=f+s*e.x/100+"px",c[t].style.top=v+d*e.y/100+"px"})}return b.href=p(1638857781),k.appendChild(_),k.appendChild(b),l.appendChild(k),a.appendChild(r),a.appendChild(l),n.appendChild(a),t[0].after(n),i.addEventListener("load",y),window.addEventListener("resize",y),y(),window.ResizeObserver&&new ResizeObserver(y).observe(r),!0}(),s.w=s.w||function(){if(document.querySelector(".k-wa"))return!0;var e=document.querySelector(".store-footer__logo-link img, header .navbar-brand img"),t=d("div","k-wa"),n=d("div","k-wa__card");n.setAttribute("role","dialog"),n.setAttribute("aria-label","تواصل عبر واتساب");var a=d("div","k-wa__hd"),i=d("span","k-wa__av");if(e){var o=d("img");o.src=e.currentSrc||e.src,o.alt="",i.appendChild(o)}a.appendChild(i);var l=d("span","k-wa__nm");l.appendChild(d("b",null,"متجر RJ"));var s=d("small");s.appendChild(d("i")),s.appendChild(document.createTextNode("نرد عليك على واتساب")),l.appendChild(s),a.appendChild(l);var c=d("button","k-wa__x");c.type="button",c.setAttribute("aria-label","إغلاق"),c.innerHTML=r.x,a.appendChild(c),n.appendChild(a);var u=d("div","k-wa__body");u.appendChild(d("p","k-wa__bub","هلا فيك! محتار في المقاس أو اللون؟ كلمنا ونساعدك تختار.")),n.appendChild(u);var p=d("a","k-wa__go");p.href="https://wa.me/966566499058?text="+encodeURIComponent("هلا، عندي استفسار عن منتجات RJ"),p.target="_blank",p.rel="noopener";var h=d("span");h.innerHTML=r.wa,p.appendChild(h),p.appendChild(document.createTextNode("ابدأ المحادثة")),n.appendChild(p);var f=d("button","k-wa__fab");function v(e){t.classList.toggle("is-open",e);try{sessionStorage.setItem("k_wa_seen","1")}catch(e){}}f.type="button",f.setAttribute("aria-label","تواصل معنا على واتساب"),f.innerHTML=r.wa,f.appendChild(d("span","k-wa__ping")),t.appendChild(n),t.appendChild(f),document.body.appendChild(t),f.addEventListener("click",function(){v(!t.classList.contains("is-open"))}),c.addEventListener("click",function(){v(!1)}),document.addEventListener("keydown",function(e){"Escape"===e.key&&v(!1)});var m=!1;try{m=!!sessionStorage.getItem("k_wa_seen")}catch(e){}return m||setTimeout(function(){t.classList.contains("is-open")||v(!0)},7e3),!0}(),s.a&&s.b&&s.l&&s.w||++l>80}}(),function(){if(!window.__kaloRJ3b){window.__kaloRJ3b=1;var e="https://cdn.files.salla.network/other/1243532851/dc413d20-c875-491a-98ae-2ee4fb25dc2e-original.webp",t="https://cdn.salla.sa/form-builder/JpVOpF3jRDdXprWY9F2tSuQTHcYETSpMw6Rd9NfC.webp",n="https://cdn.salla.sa/form-builder/btXYNRRrY53PA7BCYQ7GadkZyzE86buvcENAhaWn.webp",a={ship:l(''),ret:l(''),priv:l(''),terms:l(''),about:l(''),page:l(''),wa:''},r=0;if(!c())var i=setInterval(function(){c()&&clearInterval(i)},120)}function o(e,t,n){var a=document.createElement(e);return t&&(a.className=t),null!=n&&(a.textContent=n),a}function l(e){return'"}function s(e){return/شحن|توصيل/.test(e)?["ship","نوصل طلبك لين باب بيتك"]:/استبدال|استرجاع|إرجاع/.test(e)?["ret","تسوق وانت مطمن"]:/خصوصية/.test(e)?["priv","بياناتك في أمان"]:/شروط|أحكام/.test(e)?["terms","كل شي واضح من البداية"]:/من نحن|عن/.test(e)?["about","قصة RJ"]:["page","معلومات تهمك"]}function c(){var i=function(){if(!document.body.classList.contains("page-single"))return!0;var e=document.querySelector(".content--single-page"),r=e&&e.querySelector("h1"),i=e&&e.querySelector(".content-entry");if(!e||!r||!i)return!1;if(document.querySelector(".k-pg"))return!0;var l=(r.textContent||"").trim(),c=s(l),d="about"===c[0];document.body.classList.add("k-page","k-page--"+c[0]);var u=o("div","k-pg"),p=o("div","k-pg__hero");p.style.setProperty("--k-tex",'url("'+(d?t:n)+'")');var h=o("div","k-pg__hc"),f=o("span","k-pg__ic");f.innerHTML=a[c[0]],h.appendChild(f),h.appendChild(o("span","k-pg__eye",d?"متجر RJ":"سياسات المتجر")),h.appendChild(o("h1","k-pg__h",l)),h.appendChild(o("p","k-pg__sub",c[1])),p.appendChild(h),u.appendChild(p);var v=o("div","k-pg__body"),m=o("article","k-pg__main");m.appendChild(i),v.appendChild(m),[].forEach.call(i.querySelectorAll("p"),function(e){var t=e.querySelector("strong"),n=(e.textContent||"").trim();n?t&&(t.textContent||"").trim().length>=n.length-2&&e.classList.add("k-pg__sec"):e.classList.add("k-pg__empty")});var g=o("aside","k-pg__side"),k=o("nav","k-pg__nav");k.appendChild(o("b","k-pg__navh","صفحات تهمك"));var _={};[].forEach.call(document.querySelectorAll(".store-footer__menu-link, .k-ft__col a"),function(e){var t=e.getAttribute("href")||"",n=(e.textContent||"").trim();if(/page-|\/p\d|blog|مدونة/i.test(t+n)&&!_[n]&&n){_[n]=1;var r=o("a",null);r.href=t;var i=o("span","k-pg__navic");i.innerHTML=a[s(n)[0]],r.appendChild(i),r.appendChild(o("span",null,n)),n===l&&(r.className="is-on"),k.appendChild(r)}}),g.appendChild(k);var b=o("a","k-pg__help");b.href="https://wa.me/966566499058",b.target="_blank",b.rel="noopener";var y=o("span","k-pg__helpic");y.innerHTML=a.wa,b.appendChild(y);var w=o("span");return w.appendChild(o("b",null,"عندك سؤال؟")),w.appendChild(o("small",null,"كلمنا على واتساب ونرد عليك بسرعة")),b.appendChild(w),g.appendChild(b),v.appendChild(g),u.appendChild(v),r.remove(),e.classList.add("k-pg-host"),e.appendChild(u),!0}(),l=function(){if(!document.body.classList.contains("index"))return!0;var t=document.querySelector(".k-why"),n=t&&t.querySelector(".k-why__in");if(!n)return!1;if(t.classList.contains("k-why--v3"))return!0;t.classList.add("k-why--v3");var a=o("div","k-why__media"),r=o("img");r.src=e,r.alt="خامة روب RJ عن قرب",r.loading="lazy",r.decoding="async",a.appendChild(r);var i=o("div","k-why__tag");i.appendChild(o("b",null,"7×")),i.appendChild(o("span",null,"يمتص حتى 7 أضعاف وزنه")),a.appendChild(i);var l=o("div","k-why__tag k-why__tag--b");l.appendChild(o("b",null,"S–5XL")),l.appendChild(o("span",null,"مقاسات لكل العائلة")),a.appendChild(l);for(var s=o("div","k-why__copy");n.firstChild;)s.appendChild(n.firstChild);return n.appendChild(a),n.appendChild(s),!0}();return i&&l||++r>80}}(),function(){if(!window.__kaloRJpdp){window.__kaloRJpdp=1;var e="https://cdn.salla.network/cdn-cgi/image/fit=scale-down,width=58,height=58,onerror=redirect,format=auto/images/payment/",t={tabby:"https://cdn.assets.salla.network/cdn-cgi/image/fit=scale-down,width=58,height=58,onerror=redirect,format=auto/static/images/payment/tabby_installment_mini.png",tamara:e+"tamara_installment_mini.png",mispay:e+"mispay_installment_mini.png",madfu:e+"madfu_installment_mini.png"},n={tabby:"تابي",tamara:"تمارا",mispay:"MISpay",madfu:"مدفوع"},a={"ابيض":"#F4F2EE","أبيض":"#F4F2EE","سماوي":"#8EC9E8","سماوي فاتح":"#BCD9EE","وردي":"#EFA8C0","بنفسجي":"#9B7BC0","ازرق":"#2E5BC0","أزرق":"#2E5BC0","كحلي":"#26264A","اصفر":"#F2D35B","أصفر":"#F2D35B","رمادي":"#7E7F86","رصاصي":"#B9BABF","بيج فاتح":"#EDE4D3","بيج غامق":"#B79E7E","بيج":"#D9C7A8","تركواز":"#3FB8C8","اسود":"#1E1E22","أسود":"#1E1E22","احمر":"#C8393B","أحمر":"#C8393B","اخضر":"#3E8E5A","أخضر":"#3E8E5A","عنابي":"#7A2434","زيتي":"#6B6B3A","برتقالي":"#F08A3C","موف":"#B49BC8"},r=0;if(!l())var i=setInterval(function(){l()&&clearInterval(i)},150)}function o(e,t,n){var a=document.createElement(e);return t&&(a.className=t),null!=n&&(a.textContent=n),a}function l(){var e,i,l=function(){var e=document.querySelector("salla-installment");if(!e)return!document.body.classList.contains("product-single");if(e.classList.contains("k-inst-host"))return!0;if(!e.children.length)return!1;var a={tamara:!!e.querySelector("tamara-widget"),tabby:!!e.querySelector("#tabbyPromoWrapper"),mispay:!!e.querySelector("mispay-widget"),madfu:!!e.querySelector(".s-installment-madfu-wrapper")},r=o("div","k-inst"),i=o("button","k-inst__head");i.type="button",i.setAttribute("aria-expanded","false");var l=o("span","k-inst__tx");l.appendChild(o("b",null,"قسّمها براحتك"));var s=parseFloat(e.getAttribute("price")||"0");l.appendChild(o("small",null,s?"أو 4 دفعات بقيمة "+(s/4).toFixed(2).replace(/\.00$/,"")+" ر.س مع شركاء التقسيط":"ادفع على دفعات مع شركاء التقسيط")),i.appendChild(l);var c=o("span","k-inst__logos");["tabby","tamara","madfu","mispay"].forEach(function(e){if(a[e]){var r=o("span","k-inst__logo"),i=o("img");i.src=t[e],i.alt=n[e],i.loading="lazy",r.appendChild(i),c.appendChild(r)}}),i.appendChild(c);var d=o("span","k-inst__chev");d.innerHTML='',i.appendChild(d);for(var u=o("div","k-inst__body");e.firstChild;)u.appendChild(e.firstChild);return i.addEventListener("click",function(){var e=r.classList.toggle("is-open");i.setAttribute("aria-expanded",e?"true":"false")}),r.appendChild(i),r.appendChild(u),e.appendChild(r),e.classList.add("k-inst-host"),!0}(),s=(i=document.querySelectorAll(".s-product-options-option[data-option-type=thumbnail]")).length?([].forEach.call(i,function(e){if(!e.classList.contains("k-sw")){var t=e.querySelector(".s-product-options-option-label b");if(/لون|اللون|color/i.test(t&&t.textContent||"")){var n=e.querySelectorAll(".s-product-options-thumbnails-wrapper > div");if(n.length){e.classList.add("k-sw");var r=o("span","k-sw__cur");t&&t.parentNode.appendChild(r),[].forEach.call(n,function(e){var t=e.querySelector("p"),n=e.querySelector("label img"),r=e.querySelector("label"),i=(t&&t.textContent||n&&n.alt||"").trim();e.classList.add("k-sw__it");var l=o("span","k-sw__dot"),s=i.replace(/\s*\(.*\)\s*/,"").trim(),c=a[i]||a[s]||a[s.replace(/^ال/,"")];c?l.style.background=c:n&&(l.style.backgroundImage='url("'+(n.getAttribute("src")||n.getAttribute("data-src"))+'")',l.classList.add("k-sw__dot--img")),r&&r.setAttribute("aria-label",i),e.insertBefore(l,t||null)}),e.addEventListener("change",i),i()}}}function i(){var t=e.querySelector("input:checked"),n=t&&t.parentNode.querySelector("p");r.textContent=n?(n.textContent||"").trim():""}}),!0):!document.body.classList.contains("product-single")||!!document.querySelector("salla-product-options")&&document.querySelector("salla-product-options").children.length>0,c=(e=document.querySelector("#details_table"))?([].forEach.call(e.querySelectorAll("table"),function(e){if(e.querySelector("thead")&&!e.parentNode.classList.contains("k-dt-scroll")){var t=o("div","k-dt-scroll");e.parentNode.insertBefore(t,e),t.appendChild(e)}}),!0):!document.body.classList.contains("product-single");return l&&s&&c||++r>100}}(),function(){if(!window.__kaloRJdsc){window.__kaloRJdsc=1;var e=[[/امتصاص|جفاف|تجفيف/,a('')],[/راحة|نعومة|ملمس/,a('')],[/نظاف|روائح/,a('')],[/عملي|سفر/,a('')],[/جودة|RJ/,a('')]];window.__kaloRJdscRun=r;var t=0;if(!r())var n=setInterval(function(){(r()||++t>100)&&clearInterval(n)},150)}function a(e){return'"}function r(){var t=document.querySelector("#details_table");if(!t)return!document.body.classList.contains("product-single");if(!t.children.length)return!1;if(t.classList.contains("k-dsc"))return!0;t.classList.add("k-dsc");var n=t.querySelector(":scope > ul");n&&n.children.length>=3&&[].every.call(n.children,function(e){var t=e.firstElementChild;return t&&"STRONG"===t.tagName&&(t.textContent||"").trim().length<=5&&e.firstChild===t})&&n.classList.add("k-dsc__stats");var a=[].slice.call(t.querySelectorAll(":scope > h4")),r=null;a.forEach(function(t){var n=t.nextElementSibling;if(n&&"UL"===n.tagName){var a=document.createElement("div");a.className="k-dsc__card";var i=document.createElement("span");i.className="k-dsc__ic";var o=t.textContent||"";i.innerHTML=(e.filter(function(e){return e[0].test(o)})[0]||e[4])[1];var l=t.previousElementSibling;r&&l===r||((r=document.createElement("div")).className="k-dsc__cards",t.parentNode.insertBefore(r,t)),a.appendChild(i),a.appendChild(t),a.appendChild(n),r.appendChild(a)}});var i=[].filter.call(t.querySelectorAll(":scope > h3"),function(e){return/أسئلة/.test(e.textContent||"")})[0];if(i){for(var o=i.nextElementSibling,l=[];o&&"P"===o.tagName&&o.firstElementChild&&"STRONG"===o.firstElementChild.tagName;)l.push(o),o=o.nextElementSibling;if(l.length){var s=document.createElement("div");s.className="k-dsc__faq",i.parentNode.insertBefore(s,l[0]),l.forEach(function(e,t){var n=e.firstElementChild,a=document.createElement("details"),r=document.createElement("summary");r.textContent=(n.textContent||"").trim(),n.remove();var i=e.firstElementChild;i&&"BR"===i.tagName&&e.firstChild===i&&i.remove(),a.appendChild(r),a.appendChild(e),t||(a.open=!0),s.appendChild(a)})}}return!0}}(),function(){if(!window.__kaloRJgal){window.__kaloRJgal=1;var e=0;if(!a())var t=setInterval(function(){(a()||++e>100)&&clearInterval(t)},150)}function n(e){return'"}function a(){var e=document.querySelector("salla-slider.details-slider");if(!e)return!document.body.classList.contains("product-single");var t=e.querySelector(".s-slider-container");if(!t||!t.swiper)return!1;if(t.querySelector(".k-gal"))return!0;var a=t.swiper,r=t.querySelectorAll(":scope > .swiper-wrapper > .swiper-slide:not(.swiper-slide-duplicate)").length;e.classList.add("k-gal-host");var i=document.createElement("div");i.className="k-gal";var o=document.createElement("span");o.className="k-gal__cnt",o.dir="ltr";var l=document.createElement("span");if(l.className="k-gal__zoom",l.innerHTML=n(''),r>1){var s=document.createElement("button");s.type="button",s.className="k-gal__btn k-gal__btn--prev",s.setAttribute("aria-label","الصورة السابقة"),s.innerHTML=n('');var c=document.createElement("button");c.type="button",c.className="k-gal__btn k-gal__btn--next",c.setAttribute("aria-label","الصورة التالية"),c.innerHTML=n(''),s.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),a.slidePrev()}),c.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),a.slideNext()}),i.appendChild(s),i.appendChild(c),i.appendChild(o)}function d(){o.textContent=a.realIndex+1+" / "+r,s&&(s.disabled=a.isBeginning&&!a.params.loop,c.disabled=a.isEnd&&!a.params.loop)}return i.appendChild(l),a.on("slideChange",d),d(),t.appendChild(i),!0}}(),function(){function e(e){return String(e).replace(/[&<>"]/g,function(e){return{"&":"&","<":"<",">":">",'"':"""}[e]})}function t(e,t,n){if(!e())var a=0,r=setInterval(function(){(e()||++a>n)&&clearInterval(r)},t)}t(function(){var e=document.querySelector(".advanced-slider.k-peek"),t=e&&e.querySelector(".swiper"),n=t&&t.swiper;if(!n)return!1;if(e.classList.contains("k-v5"))return!0;n.params.speed=900;var a=n.params.autoplay&&n.params.autoplay.delay||6e3;function r(){n.autoplay&&n.autoplay.paused&&"visible"===document.visibilityState&&n.autoplay.resume()}return e.style.setProperty("--k-hd",a+"ms"),[].forEach.call(t.querySelectorAll(".swiper-slide"),function(e){if(!e.querySelector(".k-hbar")){var t=document.createElement("span");t.className="k-hbar",t.innerHTML="",e.appendChild(t)}}),n.params.autoplay&&(n.params.autoplay.pauseOnMouseEnter=!1),t.addEventListener("click",function(e){var t=e.target.closest(".swiper-slide");t&&!t.classList.contains("swiper-slide-active")&&(e.preventDefault(),e.stopPropagation(),t.classList.contains("swiper-slide-next")?n.slideNext():t.classList.contains("swiper-slide-prev")&&n.slidePrev())},!0),e.classList.add("k-v5"),setTimeout(r,800),document.addEventListener("visibilitychange",r),!0},50,240);var n=[[/الاستبدال/,"الاستبدال والاسترجاع"],[/الشحن/,"الشحن والتوصيل"],[/الخصوصية/,"سياسة الخصوصية"],[/الشروط/,"الشروط والأحكام"],[/توثيق/,"توثيق التجارة الإلكترونية"]],a=0;function r(e){for(var t="",n=0;n