1import{j as t,Y as te,q as ae,d as o}from"./index-DG18vOvd.js";import{v as le,r as se,c as re,A as ie,l as ne,M as oe}from"./MainLayout-DelEPgDN.js";import{R as K,Q as X}from"./InputComponent-wG7KpT_6.js";import{B as k}from"./Button-B0W-Zvui.js";import"./main-DqDkiUif.js";import"./SEO-Y814nAdi.js";function ce({image:e,title:i,link:c}){return t.jsxs(te,{href:c,className:"relative sm:rounded-4xl rounded-2xl overflow-hidden cursor-pointer group hover:shadow-2xl transition-all duration-300 ease-in-out",children:[t.jsx("img",{src:e,alt:i,className:"w-full object-cover aspect-[16/8] group-hover:scale-110 transition-transform duration-2000 ease-in-out"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent to-black/90 flex items-end group-hover:bg-gradient-to-b group-hover:from-transparent transition-all duration-300 ease-in-out",children:t.jsxs("div",{className:"w-full md:p-6 p-4",children:[t.jsx("div",{className:"border-t-3 w-[140px] mx-auto",style:{borderImage:"linear-gradient(to right, var(--color-qad-red) 50%, var(--color-qad-yellow) 50%) 1"}}),t.jsx("p",{className:"text-white md:text-3xl text-2xl leading-tight text-center mt-2 transition-colors duration-300 line-clamp-2",children:i})]})})]})}const de=({slides:e,loop:i=!1})=>{var l,d;const n=((d=(l=ae().props)==null?void 0:l.locale)==null?void 0:d.current)==="ar",[h,s]=le({align:"start",slidesToScroll:1,loop:i,direction:n?"rtl":"ltr",containScroll:"trimSnaps"}),[u,f]=o.useState(!1),[g,w]=o.useState(!1),b=o.useCallback(()=>{s&&(f(s.canScrollPrev()),w(s.canScrollNext()))},[s]),C=o.useCallback(()=>s==null?void 0:s.scrollPrev(),[s]),j=o.useCallback(()=>s==null?void 0:s.scrollNext(),[s]);o.useEffect(()=>{s&&(b(),s.on("select",b))},[s,b]);const S=` 2 min-w-[100%] 3 sm:min-w-[calc((100%-20px)/2)] 4 md:min-w-[calc((100%-40px)/3)] 5 lg:min-w-[calc((100%-60px)/4)] 6 flex-shrink-0 7 `;return t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:"overflow-hidden",ref:h,children:t.jsx("div",{className:"flex gap-5",children:e==null?void 0:e.map((y,v)=>t.jsx("div",{className:S,children:y},v))})}),u&&t.jsx("button",{onClick:C,className:`group absolute ${n?"right-0":"left-0"} top-1/2 -translate-y-1/2 bg-qad-yellow p-1.5 md:p-2 hover:bg-qad-red transition-colors duration-300 cursor-pointer z-10`,children:n?t.jsx(K,{className:"transition-colors duration-300 text-qad-red group-hover:text-qad-yellow",size:32}):t.jsx(X,{className:"transition-colors duration-300 text-qad-red group-hover:text-qad-yellow",size:32})}),g&&t.jsx("button",{onClick:j,className:`group absolute ${n?"left-0":"right-0"} top-1/2 -translate-y-1/2 bg-qad-yellow p-1.5 md:p-2 hover:bg-qad-red transition-colors duration-300 cursor-pointer z-10`,children:n?t.jsx(X,{className:"transition-colors duration-300 text-qad-red group-hover:text-qad-yellow",size:32}):t.jsx(K,{className:"transition-colors duration-300 text-qad-red group-hover:text-qad-yellow",size:32})})]})},xe=({image:e,index:i,onClick:c})=>t.jsxs("div",{className:"relative overflow-hidden h-full group aspect-[16/10] cursor-pointer",onClick:()=>c(i),children:[t.jsx("div",{className:"absolute top-0 w-full bg-qad-yellow transition-all duration-600 z-50 group-hover:h-1"}),t.jsx(se,{src:e,alt:`Gallery image ${i+1}`,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-2000 group-hover:scale-110"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-black/70"})]}),me="/build/assets/lockred-BoDfQ0Ip.png";function ge({itemData:e,onRegister:i,onLogin:c}){const{restrictedTitle:n,restrictedDescription:h,registerBtn:s,alreadyRegistered:u,loginBtn:f,registerText:g}=e;return t.jsxs("div",{className:"relative bg-white p-4 lg:p-9 shadow-[0px_0px_12px_0px_rgba(0,0,0,0.25)] border-t-5 border-qad-yellow max-w-[500px] mx-auto text-center -mt-5 z-10",children:[t.jsx("h2",{className:"md:text-[30px] text-[24px]",children:n}),t.jsx("p",{className:"md:text-[18px] text-[16px] font-montserrat montserrat-400 mt-5",children:h}),t.jsxs("div",{className:"w-fit flex items-center bg-black/10 py-2 px-4 gap-4 mx-auto mt-5",children:[t.jsx("img",{src:me}),t.jsx("p",{className:"text-qad-red text-xl ",children:g})]}),t.jsx(k,{onClick:i,className:"md:text-[20px] text-[18px] md:!py-3.5 !py-2.5 md:!px-5 !px-4 block mt-5 w-fit mx-auto",children:s}),t.jsxs("p",{className:"mt-4 font-montserrat montserrat-400 md:text-[16
7px] text-[14px]",children:[u," ",t.jsx("button",{className:"text-qad-red cursor-pointer font-montserrat montserrat-400 underline hover:text-qad-dark-red transition-all duration-300 ease-in-out md:text-[16px] text-[14px]",onClick:c,children:f})]})]})}const he="/build/assets/lockyellow-BwmOVJeC.png";function ue(e){var L,T,I,R,E,B,M,_,z,D,O,G,P,U,$,V,F,Q,Y,Z,A,H,J;const i=((L=e==null?void 0:e.locale)==null?void 0:L.current)||"ar",[c,n]=o.useState(!1),[h,s]=o.useState([]),[u,f]=o.useState(0),[g,w]=o.useState(!1),{openLoginModal:b,openSignupModal:C}=re(),j=e==null?void 0:e.ads,l={en:{shopNow:"Shop Now!",recommended:"Recommended",gallery:"Gallery",share:"Share",shareSuccess:"Link copied to clipboard!",shareError:"Failed to share. Please try again.",register:"Register",login:"Login",alreadyRegistered:"Already Registered?",restrictedTitle:"Want to read the full article?",restrictedDescription:"Register and get access to exclusive content",restrictedText1:"Exlusive",restrictedText2:"video content",registerUnlockBtn:"Register to unlock"},ar:{shopNow:"تسÙÙ Ø§ÙØ£Ù!",recommended:"Ù
ÙØªØ±Ø",gallery:"Ù
عرض Ø§ÙØµÙر",share:"شارÙ",shareSuccess:"تÙ
ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø· Ø¥ÙÙ Ø§ÙØØ§ÙØ¸Ø©!",shareError:"ÙØ´Ù Ù٠اÙÙ
Ø´Ø§Ø±ÙØ©. ÙØ±Ø¬Ù اÙÙ
ØØ§ÙÙØ© Ù
رة أخرÙ.",register:"تسجÙÙ ØØ³Ø§Ø¨",login:"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ",alreadyRegistered:"ÙØ¯ÙÙ ØØ³Ø§Ø¨Ø",restrictedTitle:"Ù٠ترغب ÙÙ ÙØ±Ø§Ø¡Ø© اÙÙ
ÙØ§Ù ÙØ§Ù
ÙØ§ÙØ",restrictedDescription:"Ø³Ø¬Ù Ø§ÙØ¢Ù ÙØ§ØØµÙ عÙÙ Ù
ØØªÙÙ ØØµØ±Ù",restrictedText1:"ØØµØ±Ù",restrictedText2:"Ù
ØØªÙÙ ÙÙØ¯ÙÙ",registerUnlockBtn:"سجÙÙ ÙÙÙØµÙÙ"}}[i],d=e.recommended.map(a=>{var r;
7return{id:a.id,image:(r=a.featured_image)==null?void 0:r.url,title:a.title,link:a.link}}),y=((R=(I=(T=e==null?void 0:e.fields)==null?void 0:T.gallery)==null?void 0:I.images)==null?void 0:R.map(a=>{var r,x;return{id:(r=a==null?void 0:a.image)==null?void 0:r.id,url:(x=a==null?void 0:a.image)==null?void 0:x.url}}))||[],v=y.map((a,r)=>t.jsx(xe,{image:a.url,index:r,onClick:()=>{f(r),s(y),n(!0)}},a.id||r)),q=async()=>{const a=window.location.href;C(a)},p=async()=>{const a=window.location.href;b(a)},ee=async()=>{var a,r,x;w(!0);try{const m={title:((a=e==null?void 0:e.post)==null?void 0:a.title)||"Check out this article",text:((r=e==null?void 0:e.post)==null?void 0:r.excerpt)||((x=e==null?void 0:e.post)==null?void 0:x.title)||"Check out this article",url:window.location.href};navigator.share&&navigator.canShare&&navigator.canShare(m)?await navigator.share(m):(await navigator.clipboard.writeText(window.location.href),alert(l.shareSuccess))}catch(m){console.error("Error sharing:",m);try{await navigator.clipboard.writeText(window.location.href),alert(l.shareSuccess)}catch(N){console.error("Clipboard error:",N),alert(l.shareError)}}finally{w(!1)}};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex-1 px-5 ",children:[t.jsxs("div",{className:"relative",children:[t.jsx("img",{src:(B=(E=e==null?void 0:e.post)==null?void 0:E.featured_image)==null?void 0:B.url,alt:(_=(M=e==null?void 0:e.post)==null?void 0:M.featured_image)==null?void 0:_.alt,className:" inset-0 w-full object-cover h-[70vh]"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-black/40 to-black/90"}),t.jsxs("div",{className:"absolute bottom-0 left-0 lg:py-10 lg:px-28 py-5 sm:px-14 px-5 ",children:[!!((z=e==null?void 0:e.post)!=null&&z.restricted)&&!(e!=null&&e.isLoggedIn)&&t.jsxs("div",{className:"flex flex-row items-center bg-black/40 py-2 px-4 gap-4 w-fit",children:[t.jsx("img",{src:he,className:"w-16 h-16 lg:w-20 lg:h-20 object-contain",alt:"lock icon"}),t.jsxs("p",{className:"text-qad-yellow whitespace-nowrap text-base lg:text-4xl text-start",children:[l.restrictedText1," ",t.jsx("br",{}),l.restrictedText2]}),t.jsx(k,{onClick:q,className:"w-26 !text-sm lg:!text-xl text-center",children:l.registerUnlockBtn})]}),t.jsx("p",{className:"w-full text-white text-[40px] lg:text-[80px] leading-[52px] lg:leading-[92px]",children:(D=e==null?void 0:e.post)==null?void 0:D.title})]})]}),j.length>0&&t.jsx("div",{className:" bg-white px-6 pt-4 lg:px-24 mx-0 sm:mx-5 lg:mx-14",children:t.jsx(ie,{ad:j[0],className:"justify-start"})}),t.jsxs("div",{className:" bg-white p-6 lg:py-12 lg:px-24 mx-0 sm:mx-5 lg:mx-14 border-b-10 ",style:{borderImage:"linear-gradient(to right, var(--color-qad-red) 50%, var(--color-qad-yellow) 50%) 1"},children:[t.jsxs("div",{className:"flex justify-between pb-6 lg:pb-12 flex-wrap gap-2",children:[t.jsxs("p",{className:"text-[18px] sm:text-[18px] lg:text-[18px] text-qad-red font-montserrat montserrat-bold flex items-center gap-2",children:[t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("rect",{width:"20",height:"20",rx:"10",fill:"var(--color-qad-yellow)"}),t.jsx("path",{d:"M15 1.34001C16.5083 2.21087 17.7629 3.46054 18.6398 4.96531C19.5167 6.47009 19.9854 8.17779 19.9994 9.91935C20.0135 11.6609 19.5725 13.376 18.72 14.8947C17.8676 16.4135 16.6332 17.6832 15.1392 18.5783C13.6452 19.4734 11.9434 19.9628 10.2021 19.9981C8.46083 20.0333 6.74055 19.6132 5.21155 18.7793C3.68256 17.9453 2.39787 16.7265 1.48467 15.2435C0.571462 13.7605 0.0614093 12.0647 0.00500011 10.324L0 10L0.00500011 9.67601C0.0610032 7.949 0.563548 6.26598 1.46364 4.79101C2.36373 3.31604 3.63065 2.09947 5.14089 1.2599C6.65113 0.420327 8.35315 -0.0135887 10.081 0.000452316C11.8089 0.0144933 13.5036 0.476012 15 1.34001ZM10 4.00001C9.75507 4.00005 9.51866 4.08997 9.33563 4.25273C9.15259 4.41549 9.03566 4.63976 9.007 4.88301L9 5.00001V10L9.009 10.131C9.0318 10.3045 9.09973 10.469 9.206 10.608L9.293 10.708L12.293 13.708L12.387 13.79C12.5624 13.9261 12.778 13.9999 13 13.9999C13.222 13.9999 13.4376 13.9261 13.613 13.79L13.707 13.707L13.79 13.613C13.9261 13.4376 13.9999 13.222 13.9999 13C13.9999 12.778 13.9261 12.5624 13.79 12.387L13.707 12.293L11 9.58501V5.00001L10.993 4.88301C10.9643 4.63976 10.8474 4.41549 10.6644 4.25273C10.4813 4.08997 10.2449 4.00005 10 4.00001Z",fill:"var(--color-qad-red)"})]}),(O=e==null?void 0:e.post)==null?void 0:O.formatted_date]}),t.jsx(k,{onClick:ee,disabled:g,className:"text-[18px] !px-8 !py-2",children:g?"...":l.share})]}),t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:`singleContent text-[18px] sm:text-[18px] lg:text-[18px] sm:leading-10 leading-8 ${i==="ar"?" text-ju
7stify":""}`,dangerouslySetInnerHTML:{__html:e.post.content}}),!!((G=e==null?void 0:e.post)!=null&&G.restricted)&&!(e!=null&&e.isLoggedIn)&&t.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-full bg-gradient-to-t from-white to-transparent pointer-events-none"})]}),!!((P=e==null?void 0:e.post)!=null&&P.restricted)&&!(e!=null&&e.isLoggedIn)&&t.jsx(ge,{itemData:{restrictedTitle:l.restrictedTitle,restrictedDescription:l.restrictedDescription,registerBtn:l.register,alreadyRegistered:l.alreadyRegistered,loginBtn:l.login,registerText:l.restrictedText1+" "+l.restrictedText2},onRegister:q,onLogin:p}),v&&v.length>0&&t.jsxs("div",{className:"mt-4 sm:mb-10 mb-16",children:[t.jsx("h1",{className:"md:text-[60px] text-[32px] text-black mb-4",children:l.gallery}),t.jsx("div",{className:"mt-5",children:t.jsx(de,{slides:v})})]}),((F=(V=($=(U=e==null?void 0:e.mainOptions)==null?void 0:U.posts)==null?void 0:$.bodyimage)==null?void 0:V.url)==null?void 0:F.length)>0&&t.jsxs("div",{className:"mx-auto lg:w-[75%] w-full flex flex-col items-center cursor-pointer sm:mb-14 mb-8 sm:pt-10 pt-16",onClick:()=>{var a,r,x,m,N,W;return window.open((x=(r=(a=e==null?void 0:e.mainOptions)==null?void 0:a.posts)==null?void 0:r.bodyimagelink)==null?void 0:x.url,(W=(N=(m=e==null?void 0:e.mainOptions)==null?void 0:m.posts)==null?void 0:N.bodyimagelink)==null?void 0:W.target)},children:[t.jsx("img",{src:(Z=(Y=(Q=e==null?void 0:e.mainOptions)==null?void 0:Q.posts)==null?void 0:Y.bodyimage)==null?void 0:Z.url,className:" sm:rounded-4xl rounded-2xl object-cover w-full "}),t.jsx("button",{className:"bg-gradient-to-b from-[#b00f0f] to-[#ff1e0e] text-qad-yellow sm:px-10 px-5 py-1.5 rounded-[8px] sm:mt-[-28px] mt-[-20px] sm:text-[28px] text-[16px] hover:scale-105 hover:shadow-lg transition-all duration-500 ease-in-out cursor-pointer",children:((J=(H=(A=e==null?void 0:e.mainOptions)==null?void 0:A.posts)==null?void 0:H.bodyimagelink)==null?void 0:J.title)||l.shopNow})]}),(d==null?void 0:d.length)>0&&t.jsxs("div",{className:"xl:mt-10 mt-5",children:[t.jsx("h1",{className:"md:text-[60px] text-[32px] text-black mb-4",children:l.recommended}),t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-y-6 gap-x-8",children:d==null?void 0:d.map(a=>t.jsx(ce,{image:a.image,title:a.title,link:a.link},a.id))})]})]})]}),c&&t.jsx(ne,{images:h,isOpen:c,onClose:()=>n(!1),initialIndex:u})]})}ue.layout=e=>t.jsx(oe,{children:e});export{ue as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.