PageSourceSearch

https://bith.ai/_next/static/chunks/pages/salla/login-41274d5d7a747ff7.js

js bith.ai collected 2026-10-05 11:53:35 UTC 15,389 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[55647],{89775:function(t,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/salla/login",function(){return i(42759)}])},15458:function(t,e,i){"use strict";var s=i(85893),o=i(67294),a=i(5405),n=i(78138),r=i(11163),l=i(47713),d=i(46321),g=i(82821),p=i(46933);let c=a.ZP.div.withConfig({componentId:"sc-aa9a7275-0"})(["position:absolute;left:calc(20.83% + 64px);top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:24px;max-width:420px;width:100%;@media (max-width:768px){left:50%;transform:translate(-50%,-50%);padding:0 16px;}"]),m=a.ZP.button.withConfig({componentId:"sc-aa9a7275-1"})(['background:#6681d3;display:flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:8px;width:100%;border:none;cursor:pointer;transition:opacity 0.2s;max-width:420px;font-weight:500;&:hover:not(:disabled){opacity:0.9;}&:disabled{cursor:not-allowed;opacity:0.6;}p{font-family:"Cairo",sans-serif;font-weight:500;font-size:16px;line-height:normal;color:white;text-align:right;direction:rtl;margin:0;}']),h=a.ZP.div.withConfig({componentId:"sc-aa9a7275-2"})(['background:rgba(239,68,68,0.1);border:1px solid rgba(239,68,68,0.3);border-radius:8px;padding:12px 16px;width:420px;margin-top:12px;p{font-family:"Cairo",sans-serif;font-weight:400;font-size:14px;line-height:normal;color:#fca5a5;text-align:right;direction:rtl;margin:0;}']),u=(0,o.memo)(t=>{let{onSallaButtonClick:e,loading:i,popupError:o,icon:a,formContent:u}=t,x=(0,r.useRouter)(),f=(0,l.kM)(x.pathname,"login");return(0,s.jsxs)(c,{children:[a?(0,s.jsx)(d.Z,{src:a,width:"114px",height:"48px"}):(0,s.jsx)(n.Z,{width:"24px",height:"40px",className:"w-[49px] h-[56px]",redirectTo:f}),u||(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m,{onClick:e,disabled:i,children:i?(0,s.jsx)(p.Z,{children:(0,s.jsx)(g.Z,{className:"loader",size:"small"})}):(0,s.jsx)("p",{children:"المتابعة بإستخدام سلة"})}),o&&(0,s.jsx)(h,{children:(0,s.jsx)("p",{children:o})})]})]})});u.displayName="LoginLeftPanel",e.Z=u},95392:function(t,e,i){"use strict";i.d(e,{Z:function(){return Z}});var s=i(85893),o=i(67294),a=i(5405);let n=(0,a.F4)(["0%{transform:translateX(0);}50%{transform:translateX(-10%);}100%{transform:translateX(0);}"]),r=(0,a.F4)(["0%{transform:translateX(0);}50%{transform:translateX(10%);}100%{transform:translateX(0);}"]),l=a.ZP.div.withConfig({componentId:"sc-2c2d8718-0"})(["display:flex;flex-direction:column;gap:clamp(12px,2vw,24px);overflow:hidden;"]),d=a.ZP.div.withConfig({componentId:"sc-2c2d8718-1"})(["display:flex;gap:clamp(12px,2vw,24px);animation:"," ","s ease-in-out infinite;will-change:transform;"],t=>{let{direction:e}=t;return"left"===e?n:r},t=>{let{duration:e}=t;return e}),g=a.ZP.div.withConfig({componentId:"sc-2c2d8718-2"})(["width:clamp(160px,18vw,220px);aspect-ratio:1 / 1;border-radius:16px;background:",";flex-shrink:0;box-shadow:0 10px 30px rgba(0,0,0,0.35),inset 0 0 0 1px rgba(255,255,255,0.05);transition:transform 0.4s ease;&:hover{transform:translateY(-6px) scale(1.03);}"],t=>{let{image:e}=t;return e?"url(".concat(e,") center / cover no-repeat"):"linear-gradient(135deg, #2a2a2a, #111)"}),p=t=>{let{images:e=[],rows:i=4}=t,o=Math.ceil(e.length/i),a=Array.from({length:i},(t,i)=>e.slice(i*o,(i+1)*o));return(0,s.jsx)(l,{children:a.map((t,e)=>(0,s.jsx)(d,{direction:e%2==0?"left":"right",duration:18+4*e,children:t.map((t,e)=>(0,s.jsx)(g,{image:t},e))},e))})};var c=i(20333);let m=a.ZP.div.withConfig({componentId:"sc-a9828471-0"})(["position:absolute;background:var(--accent-color);display:flex;gap:12px;height:100%;align-items:flex-start;overflow:hidden;right:24px;border-radius:24px;top:50%;transform:translateY(-50%);width:50%;height:calc(100% - 48px);--box-gap:min(16px,2.5%);--box-size:calc((100% - (5 * var(--box-gap))) / 6);--gradient-height:min(260px,30%);--info-card-width:min(337px,52%);--info-card-height:min(160px,19%);@media (max-width:768px){display:none;}"]),h=a.ZP.div.withConfig({componentId:"sc-a9828471-1"})(["position:absolute;width:100%;height:100%;overflow:hidden;"]),u=a.ZP.div.withConfig({componentId:"sc-a9828471-2"})(["position:absolute;background:linear-gradient( to bottom,rgba(0,0,0,0) 0%,var(--primary-color) 74.5%,var(--primary-color) 100% );bottom:0;height:var(--gradient-height,260px);left:0;opacity:0.8;width:100%;"]),x=a.ZP.div.withConfig({componentId:"sc-a9828471-3"})(["position:absolute;background:linear-gradient( to bottom,rgba(0,0,0,0) 0%,var(--primary-color) 74.5%,var(--primary-color) 100% );top:0;height:var(--gradient-height,260px);left:0;opacity:0.8;width:100%;transform:scaleY(-1);"]),f=a.ZP.div.withConfig({componentId:"sc-a9828471-4"})(["position:absolute;bottom:min(84px,10%);left:calc(50% + 0.5px);transform:translateX(-50%);width:var(--info-card-width,337px);border-radius:12px;border:1px solid transparent;background:linear-gradient( 0deg,rgba(146,146,146,0.1),rgba(146,146,146,0.1) ) padding-box,linear-gradient(0deg,rgba(139,192,223,0.2),rgba(139,192,223,0.2)) border-box,linear-gradient( 141.89deg,rgba(0,0,0,0) -27.97%,rgba(139,192,223,0.5) 82.62% ) border-box;"]),v=a.ZP.div.withConfig({componentId:"sc-a9828471-5"})(["background:var(--accent-color);display:flex;flex-direction:column;height:var(--info-card-height,160px);align-items:flex-end;justify-content:center;padding:min(32px,3.8%) min(24px,3.7%);border-radius:11px;"]),w=a.ZP.p.withConfig({componentId:"sc-a9828471-6"})(['font-family:"Cairo",sans-serif;font-weight:600;font-size:24px;line-height:36px;color:#8bc0df;text-align:right;direction:rtl;margin:0 0 8px 0;text-transform:capitalize;']),b=a.ZP.p.withConfig({componentId:"sc-a9828471-7"})(['font-family:"Cairo",sans-serif;font-weight:400;font-size:14px;line-height:24px;color:#cfd2d5;text-align:right;direction:rtl;margin:0;']),C=a.ZP.div.withConfig({componentId:"sc-a9828471-8"})(["position:absolute;bottom:0;left:0;right:0;min-height:144px;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,#0C0C0C 74.5%,#0C0C0C 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;border-radius:12px;"]),j=(0,o.memo)(t=>{let{type:e="image",videoSrc:i}=t;if("video"===e)return(0,s.jsxs)(m,{children:[(0,s.jsx)(c.Z,{src:i||"",width:"100%",height:"100%",autoPlay:!0,loop:!0,muted:!0,className:"w-full h-full object-cover"}),(0,s.jsxs)(C,{children:[(0,s.jsx)(w,{children:"غيّر خلفية صور منتجك بخلفية استوديو بيضاء"}),(0,s.jsx)(b,{children:"قم بتسجيل الدخول لتغيير خلفية صور منتجك إلى خلفية استوديو بيضاء باستخدام الذكاء الاصطناعي."})]})]});let a=(0,o.useMemo)(()=>["https://storage.googleapis.com/bith-stg-assets/templates/images/01KA8V5KBND3RTH52PDDMYY3BF.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01KA8V6QTYMH2QXDN2HNG59S3A.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01K9W0H0RHTEY5W0YWKA3AEJ02.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01K9W0H2RHY38EPEC15C3P8D46.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01KAX9KWS5Z9T7N6J69C8VNBEP.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01K9W0E9CV4FSJ750GMK5P8KPA.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01K9W0E6XSN7R28Y1VF36M5HAA.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01KAX8W44V3FHRP29AKRGJ49M6.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01K9W0E502FKT4269FWXV5TT
1VT.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01K9W0BZNBD0D7FTQCN2XDNV1Z.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01K9W0BVFX01G81AW8HJ80ZB2B.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01KAX9D8R980XP31XXBAXWDZRV.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01KAX9B3V8W4EPAZZDV6SA74WP.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01K9W09FSCQ5X2Q0B0GCP8BHJ6.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01K9W074GQM5JA06W079HJ8KET.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01KAX98EVCCENB6R6M1KRQV632.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01KA8V9162M6ZSB91X8JYEP6ZC.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01KAX915ZPY7BWG36YTN97PH0J.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01K9W04GV0HW1NJN0DZPRYKB3D.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01K9W04D3C88R6K03V72QDY83A.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01KAX8YFTT1HC7TAH0EAGQ5B2D.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01K9W0C1EBB764810WV2VF3G9V.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01K9W09BBGRWW8FBT6ZYFCSFV9.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01KAX9NZM3FY1S5KQQ0KBYQ1KS.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01KAX9HTDECY4S3FE9XWCCG8XF.png","https://storage.googleapis.com/bith-stg-assets/templates/images/01K9W0H52NN91GQ7GX5WTQ6KZW.png"],[]);return(0,s.jsxs)(m,{children:[(0,s.jsxs)(h,{children:[(0,s.jsx)(p,{images:a,rows:6}),(0,s.jsx)(u,{}),(0,s.jsx)(x,{})]}),(0,s.jsx)(f,{children:(0,s.jsxs)(v,{children:[(0,s.jsx)(w,{children:"أنشئ صورًا أفضل لمنتجك باستخدام الذكاء الاصطناعي"}),(0,s.jsx)(b,{children:"قم بتسجيل الدخول لتحويل صور منتجك إلى صور جذابة و عالية الجودة باستخدام الذكاء الاصطناعي."})]})})]})});j.displayName="LoginRightPanel";var Z=j},96997:function(t,e,i){"use strict";i.d(e,{V:function(){return d}});var s=i(67294),o=i(11163),a=i(36808),n=i.n(a),r=i(87959),l=i(47713);let d=()=>{let t=(0,o.useRouter)(),{userState:e}=(0,r.Z)();(0,s.useEffect)(()=>{let i=(0,l.PI)(t.pathname),s=n().get(i),o=t.pathname.replace(/^\/(en|ar|es|fr|it|tr)\//,"/").includes("/change-password");if(s&&(null==e?void 0:e.id)&&!o){var a;if(null==e?void 0:e.user_should_change_password){let e=(0,l.kM)(t.pathname,"change-password");window.location.href=e;return}let i=null==t?void 0:null===(a=t.query)||void 0===a?void 0:a.redirectTo;if(i)window.location.href=i;else{let e=(0,l.kM)(t.pathname,"app");window.location.href=e}}},[null==e?void 0:e.id,null==e?void 0:e.user_should_change_password,t])}},42759:function(t,e,i){"use strict";i.r(e),i.d(e,{__N_SSP:function(){return W},default:function(){return X}});var s=i(85893),o=i(67294),a=i(11163),n=i(87536),r=i(5405),l=i(25617),d=i(21745),g=i(96997),p=i(15458),c=i(95392),m=i(242),h=i(50384),u=i(96946),x=i(91167),f=i(82821),v=i(10397),w=i(47713),b=i(87251),C=i(98029),j=i(23117);let Z=async t=>new Promise((e,i)=>{j.N.login(t,e,i)}),P=t=>(0,C.D)({mutationFn:Z,retry:!1,...t}),y=r.ZP.div.withConfig({componentId:"sc-8c17ab33-0"})(["background:var(--primary-color);position:relative;width:100%;height:100vh;overflow:hidden;"]),K=r.ZP.div.withConfig({componentId:"sc-8c17ab33-1"})(["display:flex;flex-direction:column;gap:24px;width:100%;max-width:420px;"]),N=r.ZP.div.withConfig({componentId:"sc-8c17ab33-2"})(['background:rgba(239,68,68,0.1);border:1px solid rgba(239,68,68,0.3);border-radius:8px;padding:12px 16px;width:100%;p{font-family:"Cairo",sans-serif;font-weight:400;font-size:14px;line-height:normal;color:#fca5a5;text-align:right;direction:rtl;margin:0;}']);var W=!0,X=()=>{var t,e,i,r,C,j,Z,W,X,k,A,T,_,E,B,F;let V=(0,a.useRouter)(),I=(0,b.Z)(),S=(0,l.I0)(),M=o.useContext(v.pm),R=(0,l.v9)(t=>{var e;return null==t?void 0:null===(e=t.SallaAuth)||void 0===e?void 0:e.user}
1),[Y,D]=(0,o.useState)(null),[H,G]=(0,o.useState)(null),{register:Q,handleSubmit:J,formState:{errors:z},setError:q}=(0,n.cI)(),L=P({onSuccess:t=>{let e=null==t?void 0:t.data;if(null==e?void 0:e.access_token){let t=(null==e?void 0:e.user)||e,i=null==t?void 0:t.user_should_change_password;t&&t.id&&S((0,d.kg)(t)),null==M||M.loginRegisterSuccess(e,()=>{if(!0===i){let t=(0,w.kM)(V.pathname,"change-password");setTimeout(()=>{V.push(t).catch(()=>{window.location.href="".concat(window.location.origin).concat(t)})},100)}else if(!1===i){let t=V.query.redirectTo,e=(0,w.kM)(V.pathname,"app"),i=t||e;setTimeout(()=>{V.push(i).catch(()=>{window.location.href="".concat(window.location.origin).concat(i)})},100)}else{let t=V.query.redirectTo,e=(0,w.kM)(V.pathname,"app");G(t||e)}})}else D("Invalid response from server")},onError:t=>{var e;(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.message)||null==t||t.message,D("فشل تسجيل الدخول. يرجى المحاولة مرة أخرى."),G(null)}});(0,g.V)(),(0,o.useEffect)(()=>{if(H&&(null==R?void 0:R.id)){if(null==R?void 0:R.user_should_change_password){let t=(0,w.kM)(V.pathname,"change-password");V.push(t).catch(()=>{window.location.href="".concat(window.location.origin).concat(t)})}else{let t=(0,w.kM)(V.pathname,"app"),e=H||t;V.push(e).catch(()=>{window.location.href="".concat(window.location.origin).concat(e)})}G(null)}},[R,H,V]);let O=(0,o.useCallback)(t=>{D(null),L.mutate({email:t.email,password:t.password})},[L]);return(0,s.jsxs)(y,{children:[(0,s.jsx)(p.Z,{onSallaButtonClick:()=>{},loading:L.isPending,popupError:Y,formContent:(0,s.jsx)(K,{children:(0,s.jsxs)("form",{onSubmit:J(O),autoComplete:"off",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-custom-white text-sm md:text-base mb-2",htmlFor:"email",children:(null===(i=I.login)||void 0===i?void 0:null===(e=i.fields)||void 0===e?void 0:null===(t=e.email)||void 0===t?void 0:t.label)||"Email"}),(0,s.jsx)(m.Z,{id:"email",type:"text",autoFocus:!0,error:(null==z?void 0:z.email)&&(null==z?void 0:null===(r=z.email)||void 0===r?void 0:r.message),...Q("email",{required:(null===(j=I.global)||void 0===j?void 0:null===(C=j.validations)||void 0===C?void 0:C.required)||"Required"})}),(null==z?void 0:null===(Z=z.email)||void 0===Z?void 0:Z.message)&&(0,s.jsx)(u.Z,{rootClassName:"mt-2",errorMessage:z.email.message})]}),(0,s.jsxs)("div",{style:{marginTop:"24px"},children:[(0,s.jsx)("label",{className:"block text-custom-white text-sm md:text-base mb-2",htmlFor:"password",children:(null===(k=I.login)||void 0===k?void 0:null===(X=k.fields)||void 0===X?void 0:null===(W=X.password)||void 0===W?void 0:W.label)||"Password"}),(0,s.jsx)(m.Z,{id:"password",type:"password",error:(null==z?void 0:z.password)&&(null==z?void 0:null===(A=z.password)||void 0===A?void 0:A.message),icon:(0,s.jsx)(h.Z,{inputRef:"password"}),...Q("password",{required:(null===(_=I.global)||void 0===_?void 0:null===(T=_.validations)||void 0===T?void 0:T.required)||"Required"})}),(null==z?void 0:null===(E=z.password)||void 0===E?void 0:E.message)&&(0,s.jsx)(u.Z,{rootClassName:"mt-2",errorMessage:z.password.message})]}),Y&&(0,s.jsx)(N,{style:{marginTop:"12px"},children:(0,s.jsx)("p",{children:Y})}),(0,s.jsx)("div",{style:{marginTop:"24px"},children:(0,s.jsx)(x.Z,{type:"secondary",size:"medium",className:"w-full",disabled:L.isPending,children:L.isPending?(0,s.jsx)(f.Z,{size:"small"}):(0,s.jsx)("p",{className:"medium-text",children:(null===(F=I.login)||void 0===F?void 0:null===(B=F.actions)||void 0===B?void 0:B.submit)||"Login"})})})]})})}),(0,s.jsx)(c.Z,{})]})}}},function(t){t.O(0,[92888,49774,40179],function(){return t(t.s=89775)}),_N_E=t.O()}]);

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.