vendor: 15,347 bytes, line 1
1import{r as l,j as e}from"./vendor-trpc-BNJGOXGz.js";import{D as Ge,P as we,e as Ne,f as Ce}from"./DashboardLayout-BvLdCgUs.js";import{C as ce,c as oe,a as me,b as fe,d as ge}from"./card-BDajpTwT.js";import{i as H,j as $,J as se,g as re,t as X,c as ie,B as Y}from"./index-2QFcfS8K.js";import{I as Z}from"./input-BN2EXvzm.js";import{L as ee}from"./label-N6NopUtw.js";import{S as He}from"./switch-D5G9TdHk.js";import{B as Je}from"./badge-DFJnj6FU.js";import{R as Qe,P as Ue,O as _e,C as Xe}from"./dialog-JbEtAZdc.js";import{g as ve,aE as Ye,J as Ze,aF as et,a0 as tt,a2 as st,bq as ke}from"./vendor-ui-CO8Y4Ef_.js";import"./vendor-react-BN0qJr-I.js";import"./index-BldL7dXw.js";import"./Combination-DjkEoW3C.js";import"./index-IFwrAkbB.js";import"./useComposition-DsKjXeZD.js";import"./index-ChBGO05s.js";var Ee=1,rt=.9,lt=.8,at=.17,xe=.1,pe=.999,nt=.9999,ct=.99,ot=/[\\\/_+.#"@\[\(\{&]/,it=/[\\\/_+.#"@\[\(\{&]/g,dt=/[\s-]/,Le=/[\s-]/g;function Se(t,a,r,f,n,d,m){if(d===a.length)return n===t.length?Ee:ct;var g=`${n},${d}`;if(m[g]!==void 0)return m[g];for(var b=f.charAt(d),i=r.indexOf(b,n),p=0,h,y,O,E;i>=0;)h=Se(t,a,r,f,i+1,d+1,m),h>p&&(i===n?h*=Ee:ot.test(t.charAt(i-1))?(h*=lt,O=t.slice(n,i-1).match(it),O&&n>0&&(h*=Math.pow(pe,O.length))):dt.test(t.charAt(i-1))?(h*=rt,E=t.slice(n,i-1).match(Le),E&&n>0&&(h*=Math.pow(pe,E.length))):(h*=at,n>0&&(h*=Math.pow(pe,i-n))),t.charAt(i)!==a.charAt(d)&&(h*=nt)),(h<xe&&r.charAt(i-1)===f.charAt(d+1)||f.charAt(d+1)===f.charAt(d)&&r.charAt(i-1)!==f.charAt(d))&&(y=Se(t,a,r,f,i+1,d+2,m),y*xe>h&&(h=y*xe)),h>p&&(p=h),i=r.indexOf(b,i+1);return m[g]=p,p}function Ie(t){return t.toLowerCase().replace(Le," ")}function ut(t,a,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,Se(t,a,Ie(t),Ie(a),0,0,{})}var te='[cmdk-group=""]',he='[cmdk-group-items=""]',mt='[cmdk-group-heading=""]',Be='[cmdk-item=""]',Re=`${Be}:not([aria-disabled="true"])`,be="cmdk-item-select",T="data-value",ft=(t,a,r)=>ut(t,a,r),Fe=l.createContext(void 0),le=()=>l.useContext(Fe),Ke=l.createContext(void 0),je=()=>l.useContext(Ke),qe=l.createContext(void 0),ze=l.forwardRef((t,a)=>{let r=G(()=>{var s,u;return{search:"",value:(u=(s=t.value)!=null?s:t.defaultValue)!=null?u:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=G(()=>new Set),n=G(()=>new Map),d=G(()=>new Map),m=G(()=>new Set),g=Ve(t),{label:b,children:i,value:p,onValueChange:h,filter:y,shouldFilter:O,loop:E,disablePointerSelection:P=!1,vimBindings:k=!0,...R}=t,A=H(),K=H(),L=H(),I=l.useRef(null),j=yt();F(()=>{if(p!==void 0){let s=p.trim();r.current.value=s,W.emit()}},[p]),F(()=>{j(6,ae)},[]);let W=l.useMemo(()=>({subscribe:s=>(m.current.add(s),()=>m.current.delete(s)),snapshot:()=>r.current,setState:(s,u,x)=>{var c,v,S,N;if(!Object.is(r.current[s],u)){if(r.current[s]=u,s==="search")U(),z(),j(1,D);else if(s==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let w=document.getElementById(L);w?w.focus():(c=document.getElementById(A))==null||c.focus()}if(j(7,()=>{var w;r.current.selectedItemId=(w=C())==null?void 0:w.id,W.emit()}),x||j(5,ae),((v=g.current)==null?void 0:v.value)!==void 0){let w=u??"";(N=(S=g.current).onValueChange)==null||N.call(S,w);return}}W.emit()}},emit:()=>{m.current.forEach(s=>s())}}),[]),Q=l.useMemo(()=>({value:(s,u,x)=>{var c;u!==((c=d.current.get(s))==null?void 0:c.value)&&(d.current.set(s,{value:u,keywords:x}),r.current.filtered.items.set(s,q(u,x)),j(2,()=>{z(),W.emit()}))},item:(s,u)=>(f.current.add(s),u&&(n.current.has(u)?n.current.get(u).add(s):n.current.set(u,new Set([s]))),j(3,()=>{U(),z(),r.current.value||D(),W.emit()}),()=>{d.current.delete(s),f.current.delete(s),r.current.filtered.items.delete(s);let x=C();j(4,()=>{U(),x?.getAttribute("id")===s&&D(),W.emit()})}),group:s=>(n.current.has(s)||n.current.set(s,new Set),()=>{d.current.delete(s),n.current.delete(s)}),filter:()=>g.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>g.current.disablePointerSelection,listId:A,inputId:L,labelId:K,listInnerRef:I}),[]);function q(s,u){var x,c;let v=(c=(x=g.current)==null?void 0:x.filter)!=null?c:ft;return s?v(s,r.current.search,u):0}function z(){if(!r.current.search||g.current.shouldFilter===!1)return;let s=r.current.filtered.items,u=[];r.current.filtered.groups.forEach(c=>{let v=n.current.get(c),S=0;v.forEach(N=>{let w=s.get(N);S=Math.max(w,S)}),u.push([c,S])});let x=I.current;B().sort((c,v)=>{var S,N;let w=c.getAttribute("id"),ne=v.getAttribute("id");return((S=s.get(ne))!=null?S:0)-((N=s.get(w))!=null?N:0)}).forEach(c=>{let v=c.closest(he);v?v.appendChild(c.parentElement===v?c:c.closest(`${he} > *`)):x.appendChild(c.parentElement===x?c:c.closest(`${he} > *`))}),u.sort((c,v)=>v[1]-c[1]).forEach(c=>{var v;let S=(v=I.current)==null?void 0:v.querySelector(`${te}[${T}="${encodeURIComponent(c[0])}"]`);S?.parentElement.appendChild(S)})}function D(){let s=B().find(x=>x.getAttribute("aria-disabled")!=="true"),u=s?.getAttribute(T);W.setState("value",u||void 0)}function U(){var s,u,x,c;if(!r.current.search||g.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let v=0;for(let S of f.current){let N=(u=(s=d.current.get(S))==null?void 0:s.value)!=null?u:"",w=(c=(x=d.current.get(S))==null?void 0:x.keywords)!=null?c:[],ne=q(N,w);r.current.filtered.items.set(S,ne),ne>0&&v++}for(let[S,N]of n.current)for(let w of N)if(r.current.filtered.items.get(w)>0){r.current.filtered.groups.add(S);break}r.current.filtered.count=v}function ae(){var s,u,x;let c=C();c&&(((s=c.parentElement)==null?void 0:s.firstChild)===c&&((x=(u=c.closest(te))==null?void 0:u.querySelector(mt))==null||x.scrollIntoView({block:"nearest"})),c.scrollIntoView({block:"nearest"}))}function C(){var s;return(s=I.current)==null?void 0:s.querySelector(`${Be}[aria-selected="true"]`)}function B(){var s;return Array.from(((s=I.current)==null?void 0:s.querySelectorAll(Re))||[])}function _(s){let u=B()[s];u&&W.setState("value",u.getAttribute(T))}function V(s){var u;let x=C(),c=B(),v=c.findIndex(N=>N===x),S=c[v+s];(u=g.current)!=null&&u.loop&&(S=v+s<0?c[c.length-1]:v+s===c.length?c[0]:c[v+s]),S&&W.setState("value",S.getAttribute(T))}function o(s){let u=C(),x=u?.closest(te),c;for(;x&&!c;)x=s>0?Ot(x,te):Wt(x,te),c=x?.querySelector(Re);c?W.setState("value",c.getAttribute(T)):V(s)}let Oe=()=>_(B().length-1),We=s=>{s.preventDefault(),s.metaKey?Oe():s.altKey?o(1):V(1)},ye=s=>{s.preventDefault(),s.metaKey?_(0):s.altKey?o(-1):V(-1)};return l.createElement($.div,{ref:a,tabIndex:-1,...R,"cmdk-root":"",onKeyDown:s=>{var u;(u=R.onKeyDown)==null||u.call(R,s);let x=s.nativeEvent.isComposing||s.keyCode===229;if(!(s.defaultPrevented||x))switch(s.key){case"n":case"j":{k&&s.ctrlKey&&We(s);break}case"ArrowDown":{We(s);break}case"p":case"k":{k&&s.ctrlKey&&ye(s);break}case"ArrowUp":{ye(s);break}case"Home":{s.preventDefault(),_(0);break}case"End":{s.preventDefault(),Oe();break}case"Enter":{s.preventDefault();let c=C();if(c){let v=new Event(be);c.dispatchEvent(v)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:Q.inputId,id:Q.labelId,style:Nt},b),ue(t,s=>l.createElement(Ke.Provider,{value:W},l.createElement(Fe.Provider,{value:Q},s))))}),gt=l.forwardRef((t,a)=>{var r,f;let n=H(),d=l.useRef(null),m=l.useContext(qe),g=le(),b=Ve(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:m?.forceMount;F(()=>{if(!i)return g.item(n,m?.id)},[i]);let p=Te(n,d,[t.value,t.children,d],t.keywords),h=je(),y=M(j=>j.value&&j.value===p.current),O=M(j=>i||g.filter()===!1?!0:j.search?j.filtered.items.get(n)>0:!0);l.useEffect(()=>{let j=d.current;if(!(!j||t.disabled))return j.addEventListener(be,E),()=>j.removeEventListener(be,E)},[O,t.onSelect,t.disabled]);function E(){var j,W;P(),(W=(j=b.current).onSelect)==null||W.call(j,p.current)}function P(){h.setState("value",p.current,!0)}if(!O)return null;let{disabled:k,value:R,onSelect:A,forceMount:K,keywords:L,...I}=t;return l.createElement($.div,{ref:se(d,a),...I,id:n,"cmdk-item":"",role:"option","aria-disabled":!!k,"aria-selected":!!y,"data-disabled":!!k,"data-selected":!!y,onPointerMove:k||g.getDisablePointerSelection()?void 0:P,onClick:k?void 0:E},t.children)}),xt=l.forwardRef((t,a)=>{let{heading:r,children:f,forceMount:n,...d}=t,m=H(),g=l.useRef(null),b=l.useRef(null),i=H(),p=le(),h=M(O=>n||p.filter()===!1?!0:O.search?O.filtered.groups.has(m):!0);F(()=>p.group(m),[]),Te(m,g,[t.value,t.heading,b]);let y=l.useMemo(()=>({id:m,forceMount:n}),[n]);return l.createElement($.div,{ref:se(g,a),...d,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&l.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),ue(t,O=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},l.createElement(qe.Provider,{value:y},O))))}),pt=l.forwardRef((t,a)=>{let{alwaysRender:r,...f}=t,n=l.useRef(null),d=M(m=>!m.search);return!r&&!d?null:l.createElement($.div,{ref:se(n,a),...f,"cmdk-separator":"",role:"separator"})}),ht=l.forwardRef((t,a)=>{let{onValueChange:r,...f}=t,n=t.value!=null,d=je(),m=M(i=>i.search),g=M(i=>i.selectedItemId),b=le();return l.useEffect(()=>{t.value!=null&&d.setState("search",t.value)},[t.value]),l.createElement($.input,{ref:a,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":g,id:b.inputId,type:"text",value:n?t.value:m,onChange:i=>{n||d.setState("search",i.target.value),r?.(i.target.value)}})}),vt=l.forwardRef((t,a)=>{let{children:r,label:f="Suggestions",...n}=t,d=l.useRef(null),m=l.useRef(null),g=M(i=>i.selectedItemId),b=le();return l.useEffect(()=>{if(m.current&&d.current){let i=m.current,p=d.current,h,y=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let O=i.offsetHeight;p.style.setProperty("--cmdk-list-height",O.toFixed(1)+"px")})});return y.observe(i),()=>{cancelAnimationFrame(h),y.unobserve(i)}}},[]),l.createElement($.div,{ref:se(d,a),...n,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":g,"aria-label":f,id:b.listId},ue(t,i=>l.createElement("div",{ref:se(m,b.listInnerRef),"cmdk-list-sizer":""},i)))}),St=l.forwardRef((t,a)=>{let{open:r,onOpenChange:f,overlayClassName:n,contentClassName:d,container:m,...g}=t;return l.createElement(Qe,{open:r,onOpenChange:f},l.createElement(Ue,{container:m},l.createElement(_e,{"cmdk-overlay":"",className:n}),l.createElement(Xe,{"aria-label":t.label,"cmdk-dialog":"",className:d},l.createElement(ze,{ref:a,...g}))))}),bt=l.forwardRef((t,a)=>M(r=>r.filtered.count===0)?l.createElement($.div,{ref:a,...t,"cmdk-empty":"",role:"presentation"}):null),jt=l.forwardRef((t,a)=>{let{progress:r,children:f,label:n="Loading...",...d}=t;return l.createElement($.div,{ref:a,...d,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n},ue(t,m=>l.createElement("div",{"aria-hidden":!0},m)))}),J=Object.assign(ze,{List:vt,Item:gt,Input:ht,Group:xt,Separator:pt,Dialog:St,Empty:bt,Loading:jt});function Ot(t,a){let r=t.nextElementSibling;for(;r;){if(r.matches(a))return r;r=r.nextElementSibling}}function Wt(t,a){let r=t.previousElementSibling;for(;r;){if(r.matches(a))return r;r=r.previousElementSibling}}function Ve(t){let a=l.useRef(t);return F(()=>{a.current=t}),a}var F=typeof window>"u"?l.useEffect:l.useLayoutEffect;function G(t){let a=l.useRef();return a.current===void 0&&(a.current=t()),a}function M(t){let a=je(),r=()=>t(a.snapshot());return l.useSyncExternalStore(a.subscribe,r,r)}function Te(t,a,r,f=[]){let n=l.useRef(),d=le();return F(()=>{var m;let g=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():n.current}})(),b=f.map(i=>i.trim());d.value(t,g,b),(m=a.current)==null||m.setAttribute(T,g),n.current=g}),n}var yt=()=>{let[t,a]=l.useState(),r=G(()=>new Map);return F(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,n)=>{r.current.set(f,n),a({})}};function wt(t){let a=t.type;return typeof a=="function"?a(t.props):"render"in a?a.render(t.props):t}function ue({asChild:t,children:a},r){return t&&l.isValidElement(a)?l.cloneElement(wt(a),{ref:a.ref},r(a.props.children)):r(a)}var Nt={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Ae({className:t,...a}){return e.jsx(J,{"data-loc":"client/src/components/ui/command.tsx:21","data-slot":"command",className:re("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...a})}function De({className:t,...a}){return e.jsxs("div",{"data-loc":"client/src/components/ui/command.tsx:68","data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[e.jsx(ve,{"data-loc":"client/src/components/ui/command.tsx:72",className:"size-4 shrink-0 opacity-50"}),e.jsx(J.Input,{"data-loc":"client/src/components/ui/command.tsx:73","data-slot":"command-input",className:re("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),...a})]})}function Me({className:t,...a}){return e.jsx(J.List,{"data-loc":"client/src/components/ui/command.tsx:90","data-slot":"command-list",className:re("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...a})}function $e({...t}){return e.jsx(J.Empty,{"data-loc":"client/src/components/ui/command.tsx:105","data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}function Pe({className:t,...a}){return e.jsx(J.Group,{"data-loc":"client/src/components/ui/command.tsx:118","data-slot":"command-group",className:re("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...a})}function de({className:t,...a}){return e.jsx(J.Item,{"data-loc":"client/src/components/ui/command.tsx:147","data-slot":"command-item",className:re("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...a})}function Vt(){const{data:t,refetch:a}=X.welcomeOffer.getAdmin.useQuery(),{data:r}=X.courses.list.useQuery(),{data:f}=X.recordedCourses.public.listPublished.useQuery(),n=X.welcomeOffer.update.useMutation({onSuccess:()=>{ie.success("تÙ
ØªØØ¯ÙØ« إعدادات Ø§ÙØ¹Ø±Ø¶ Ø§ÙØªØ±ØÙØ¨Ù Ø¨ÙØ¬Ø§Ø"),a()},onError:o=>ie.error(o.message)}),d=X.welcomeOffer.triggerWelcomeReminders.useMutation({onSuccess:o=>{ie.success(`تÙ
إرسا٠${o.sent} تذÙÙØ± Ø¨ÙØ¬Ø§Ø${o.failed>0?` (${o.failed} ÙØ´Ù)`:""}`)},onError:o=>ie.error(o.message)}),[m,g]=l.useState(!0),[b,i]=l.useState(null),[p,h]=l.useState(""),[y,O]=l.useState(""),[E,P]=l.useState(null),[k,R]=l.useState(""),[A,K]=l.useState(""),[L,I]=l.useState(5),[j,W]=l.useState(!1),[Q,q]=l.useState(!1);l.useEffect(()=>
1{t&&(g(t.isActive??!0),i(t.course1Id??null),h(t.course1Name??""),O(t.course1Slug??""),P(t.course2Id??null),R(t.course2Name??""),K(t.course2Slug??""),I(t.offerDurationDays??5))},[t]);const z=(o=!1)=>{n.mutate({isActive:m,course1Id:b,course1Name:p||null,course1Slug:y||null,course2Id:E,course2Name:k||null,course2Slug:A||null,offerDurationDays:L,resetExpiry:o})},D=t?.offerExpiresAt?new Date(t.offerExpiresAt):null,U=new Date,ae=D?D.getTime()-U.getTime():0,C=Math.max(0,Math.ceil(ae/(1e3*60*60*24))),B=r??[],_=f??[],V=[...B.map(o=>({id:o.id,name:o.name,type:"live"})),..._.map(o=>({id:-o.id,name:o.title,slug:o.slug??void 0,type:"recorded"}))];return e.jsx(Ge,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:86",children:e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:87",className:"space-y-6 max-w-3xl",children:[e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:89",className:"flex items-center gap-3",children:[e.jsx("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:90",className:"w-10 h-10 bg-amber-100 rounded-xl flex items-center justify-center",children:e.jsx(Ye,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:91",className:"h-5 w-5 text-amber-600"})}),e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:93",children:[e.jsx("h1",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:94",className:"text-2xl font-black",children:"Ø§ÙØ¹Ø±Ø¶ Ø§ÙØªØ±ØÙبÙ"}),e.jsx("p",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:95",className:"text-muted-foreground text-sm",children:"إدارة Ø§ÙØ¯ÙرتÙ٠اÙÙ
جاÙÙØªÙÙ ÙØ§Ùعداد Ø§ÙØªÙازÙÙ ÙÙØ£Ø¹Ø¶Ø§Ø¡ Ø§ÙØ¬Ø¯Ø¯"})]})]}),e.jsx(ce,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:100",children:e.jsx(oe,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:101",className:"pt-6",children:e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:102",className:"flex items-center justify-between",children:[e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:103",className:"flex items-center gap-3",children:[m?e.jsx(Ze,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:105",className:"h-5 w-5 text-green-500"}):e.jsx(et,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:107",className:"h-5 w-5 text-gray-400"}),e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:109",children:[e.jsx("p",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:110",className:"font-semibold",children:m?"Ø§ÙØ¹Ø±Ø¶ Ù
ÙØ¹ÙÙ":"Ø§ÙØ¹Ø±Ø¶ Ù
عطÙÙ"}),e.jsx("p",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:111",className:"text-sm text-muted-foreground",children:m?"ÙØ¸Ùر Ø§ÙØ¨Ø§Ùر ÙÙØ²Ùار ÙÙ Ø§ÙØµÙØØ© Ø§ÙØ±Ø¦ÙØ³ÙØ©":"Ø§ÙØ¨Ø§Ùر Ù
Ø®ÙÙ Ø¹Ù Ø§ÙØ²Ùار"})]})]}),e.jsx(He,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:116",checked:m,onCheckedChange:g})]})})}),e.jsxs(ce,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:122",children:[e.jsxs(me,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:123",children:[e.jsxs(fe,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:124",className:"flex items-center gap-2 text-base",children:[e.jsx(tt,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:125",className:"h-4 w-4"}),"Ø§ÙØ¹Ø¯Ø§Ø¯ Ø§ÙØªÙازÙÙ"]}),e.jsxs(ge,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:128",children:["Ø§ÙØ¹Ø±Ø¶ ÙØªØ¬Ø¯Ø¯ تÙÙØ§Ø¦Ùا٠ÙÙ ",L," Ø£ÙØ§Ù
Ø¹ÙØ¯ Ø§ÙØªÙائÙ"]})]}),e.jsxs(oe,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:132",className:"space-y-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:133",className:"flex items-center gap-4 p-4 bg-muted rounded-xl",children:[e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:134",className:"text-center",children:[e.jsx("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:135",className:"text-3xl font-black text-amber-600",children:C}),e.jsx("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:136",className:"text-xs text-muted-foreground",children:"ÙÙÙ
Ù
تبÙÙ"})]}),e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:138",className:"flex-1",children:[e.jsx("p",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:139",className:"text-sm font-medium",children:"ÙÙØªÙÙ Ø§ÙØ¹Ø±Ø¶ Ø§ÙØØ§ÙÙ ÙÙ:"}),e.jsx("p",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:140",className:"text-sm text-muted-foreground",children:D?D.toLocaleDateString("ar-SA",{weekday:"long",year:"numeric",month:"long",day:"numeric"}):"â"})]}),e.jsx(Je,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:144",variant:C<=1?"destructive":C<=2?"secondary":"default",children:C<=1?"ÙÙØªÙÙ ÙØ±ÙباÙ":C<=2?"ÙØ±ÙباÙ":"ÙØ´Ø·"})]}),e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:149",className:"flex items-center gap-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:150",className:"flex-1",children:[e.jsx(ee,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:151",children:"Ù
دة ÙÙ Ø¯ÙØ±Ø© (Ø¨Ø§ÙØ£ÙاÙ
)"}),e.jsx(Z,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:152",type:"number",min:1,max:365,value:L,onChange:o=>I(Number(o.target.value)),className:"mt-1 w-32"})]}),e.jsxs(Y,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:161",variant:"outline",className:"mt-6",onClick:()=>z(!0),disabled:n.isPending,children:[e.jsx(st,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:167",className:"h-4 w-4 ml-2"}
1),"إعادة ضبط Ø§ÙØ¹Ø¯Ø§Ø¯ Ù
Ù Ø§ÙØ¢Ù"]})]})]})]}),e.jsxs(ce,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:175",children:[e.jsxs(me,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:176",children:[e.jsx(fe,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:177",className:"text-base",children:"Ø§ÙØ¯Ùرتا٠اÙÙ
جاÙÙØªØ§Ù"}),e.jsx(ge,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:178",children:"اختر Ø§ÙØ¯ÙرتÙ٠اÙÙØªÙ٠تÙÙ
ÙØØ§Ù Ù
Ø¬Ø§ÙØ§Ù ÙÙÙ Ø¹Ø¶Ù Ø¬Ø¯ÙØ¯ â ÙØ¸Ùر اسÙ
ÙÙ
ا ÙÙ Ø±Ø³Ø§ÙØ© Ø§ÙØªØ±ØÙب ÙØ±Ø³Ø§ÙØ© Ø§ÙØªØ°ÙÙØ±"})]}),e.jsxs(oe,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:182",className:"space-y-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:184",className:"space-y-2 p-4 border rounded-xl",children:[e.jsx("p",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:185",className:"font-semibold text-sm text-amber-700",children:"Ø§ÙØ¯Ùرة اÙÙ
جاÙÙØ© Ø§ÙØ£ÙÙÙ"}),e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:186",className:"space-y-2",children:[e.jsx(ee,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:187",children:"اسÙ
Ø§ÙØ¯Ùرة"}),e.jsxs(we,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:188",open:j,onOpenChange:W,children:[e.jsx(Ne,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:189",asChild:!0,children:e.jsxs(Y,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:190",variant:"outline",className:"w-full justify-start text-right",role:"combobox",children:[e.jsx(ve,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:191",className:"h-4 w-4 ml-2 shrink-0 text-muted-foreground"}),p||"اختر Ø¯ÙØ±Ø© أ٠أدخ٠اسÙ
اÙ..."]})}),e.jsx(Ce,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:195",className:"w-full p-0",align:"start",children:e.jsxs(Ae,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:196",children:[e.jsx(De,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:197",placeholder:"Ø§Ø¨ØØ« Ø¹Ù Ø¯ÙØ±Ø©..."}),e.jsxs(Me,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:198",children:[e.jsx($e,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:199",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¯ÙØ±Ø§Øª Ù
Ø·Ø§Ø¨ÙØ©"}),e.jsxs(Pe,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:200",children:[e.jsx(de,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:201",value:"none",onSelect:()=>{i(null),h(""),W(!1)},children:"â Ø¨Ø¯ÙÙ ØªØØ¯Ùد â"}),V.map(o=>e.jsxs(de,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:208",value:o.name,onSelect:()=>{i(o.id),h(o.name),o.type==="recorded"&&o.slug&&O(o.slug),W(!1)},children:[e.jsx("span",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:219",className:"flex-1",children:o.name}),o.type==="recorded"&&e.jsx("span",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:221",className:"text-xs bg-blue-100 text-blue-700 px-1.5 py-0.5 rounded mr-2",children:"Ù
Ø³Ø¬ÙØ©"})]},o.id))]})]})]})})]}),e.jsx(Z,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:230",placeholder:"اسÙ
Ù
خصص ÙÙØ¯Ùرة (Ø§Ø®ØªÙØ§Ø±Ù)",value:p,onChange:o=>h(o.target.value)})]}),e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:236",className:"space-y-1",children:[e.jsx(ee,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:237",className:"text-xs text-muted-foreground",children:"رابط Ø§ÙØ¯Ùرة (Slug) â ÙÙØ³ØªØ®Ø¯Ù
Ù٠زر Ø§ÙØªØ³Ø¬ÙÙ Ø¨Ø§ÙØ¥ÙÙ
ÙÙ"}),e.jsx(Z,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:238",placeholder:"Ù
ثاÙ: professional-resume",value:y,onChange:o=>O(o.target.value),dir:"ltr",className:"font-mono text-sm"}),y&&e.jsxs("p",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:246",className:"text-xs text-muted-foreground",children:["Ø§ÙØ±Ø§Ø¨Ø·: /public/recorded-courses/",y]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:254",className:"space-y-2 p-4 border rounded-xl",children:[e.jsx("p",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:255",className:"font-semibold text-sm text-amber-700",children:"Ø§ÙØ¯Ùرة اÙÙ
جاÙÙØ© Ø§ÙØ«Ø§ÙÙØ©"}),e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:256",className:"space-y-2",children:[e.jsx(ee,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:257",children:"اسÙ
Ø§ÙØ¯Ùرة"}),e.jsxs(we,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:258",open:Q,onOpenChange:q,children:[e.jsx(Ne,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:259",asChild:!0,children:e.jsxs(Y,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:260",variant:"outline",className:"w-full justify-start text-right",role:"combobox",children:[e.jsx(ve,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:261",className:"h-4 w-4 ml-2 shrink-0 text-muted-foreground"}
1),k||"اختر Ø¯ÙØ±Ø© أ٠أدخ٠اسÙ
اÙ..."]})}),e.jsx(Ce,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:265",className:"w-full p-0",align:"start",children:e.jsxs(Ae,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:266",children:[e.jsx(De,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:267",placeholder:"Ø§Ø¨ØØ« Ø¹Ù Ø¯ÙØ±Ø©..."}),e.jsxs(Me,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:268",children:[e.jsx($e,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:269",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¯ÙØ±Ø§Øª Ù
Ø·Ø§Ø¨ÙØ©"}),e.jsxs(Pe,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:270",children:[e.jsx(de,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:271",value:"none",onSelect:()=>{P(null),R(""),q(!1)},children:"â Ø¨Ø¯ÙÙ ØªØØ¯Ùد â"}),V.map(o=>e.jsxs(de,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:278",value:o.name,onSelect:()=>{P(o.id),R(o.name),o.type==="recorded"&&o.slug&&K(o.slug),q(!1)},children:[e.jsx("span",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:289",className:"flex-1",children:o.name}),o.type==="recorded"&&e.jsx("span",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:291",className:"text-xs bg-blue-100 text-blue-700 px-1.5 py-0.5 rounded mr-2",children:"Ù
Ø³Ø¬ÙØ©"})]},o.id))]})]})]})})]}),e.jsx(Z,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:300",placeholder:"اسÙ
Ù
خصص ÙÙØ¯Ùرة (Ø§Ø®ØªÙØ§Ø±Ù)",value:k,onChange:o=>R(o.target.value)})]}),e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:306",className:"space-y-1",children:[e.jsx(ee,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:307",className:"text-xs text-muted-foreground",children:"رابط Ø§ÙØ¯Ùرة (Slug) â ÙÙØ³ØªØ®Ø¯Ù
Ù٠زر Ø§ÙØªØ³Ø¬ÙÙ Ø¨Ø§ÙØ¥ÙÙ
ÙÙ"}),e.jsx(Z,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:308",placeholder:"Ù
ثاÙ: job-interview-success",value:A,onChange:o=>K(o.target.value),dir:"ltr",className:"font-mono text-sm"}),A&&e.jsxs("p",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:316",className:"text-xs text-muted-foreground",children:["Ø§ÙØ±Ø§Ø¨Ø·: /public/recorded-courses/",A]})]})]})]})]}),e.jsxs(ce,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:326",children:[e.jsxs(me,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:327",children:[e.jsxs(fe,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:328",className:"flex items-center gap-2 text-base",children:[e.jsx(ke,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:329",className:"h-4 w-4 text-blue-500"}),"Ø±Ø³Ø§ÙØ© Ø§ÙØªØ°ÙÙØ± Ø§ÙØªÙÙØ§Ø¦ÙØ©"]}),e.jsx(ge,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:332",children:"ÙÙØ±Ø³Ù اÙÙØ¸Ø§Ù
تÙÙØ§Ø¦ÙØ§Ù Ø±Ø³Ø§ÙØ© تذÙÙØ± ÙÙÙ Ø¹Ø¶Ù Ø¬Ø¯ÙØ¯ بعد 3 Ø£ÙØ§Ù
Ù
٠تسجÙÙ٠إذا ÙÙ
ÙØ¨Ø¯Ø£ Ø§ÙØ¯Ùرة اÙÙ
جاÙÙØ© بعد. ÙÙ
ÙÙ٠تشغÙÙ Ø§ÙØªØ°ÙÙØ±Ø§Øª ÙØ¯ÙÙØ§Ù Ø§ÙØ¢Ù."})]}),e.jsx(oe,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:337",children:e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:338",className:"flex items-center justify-between p-4 bg-blue-50 dark:bg-blue-950/20 rounded-xl border border-blue-200 dark:border-blue-800",children:[e.jsxs("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:339",children:[e.jsx("p",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:340",className:"font-medium text-sm",children:"تشغÙÙ Ø§ÙØªØ°ÙÙØ±Ø§Øª ÙØ¯ÙÙØ§Ù"}),e.jsx("p",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:341",className:"text-xs text-muted-foreground mt-1",children:"سÙÙØ±Ø³Ù تذÙÙØ± ÙÙ٠عض٠Ù
سج٠Ù
ÙØ° 3+ Ø£ÙØ§Ù
ÙÙÙ
ÙØªÙÙÙ٠تذÙÙØ±Ø§Ù بعد"})]}),e.jsxs(Y,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:343",variant:"outline",size:"sm",onClick:()=>d.mutate(),disabled:d.isPending,className:"border-blue-300 hover:bg-blue-100 dark:hover:bg-blue-900",children:[e.jsx(ke,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:350",className:"h-4 w-4 ml-2"}),d.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø±Ø³Ø§Ù...":"Ø¥Ø±Ø³Ø§Ù Ø§ÙØªØ°ÙÙØ±Ø§Øª Ø§ÙØ¢Ù"]})]})})]}),e.jsx("div",{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:358",className:"flex justify-end",children:e.jsx(Y,{"data-loc":"client/src/pages/WelcomeOfferSettings.tsx:359",onClick:()=>z(!1),disabled:n.isPending,className:"bg-amber-600 hover:bg-amber-700 text-white px-8",children:n.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØÙØ¸...":"ØÙظ Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§Øª"})})]})})}export{Vt 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.