PageSourceSearch

https://www.redesignai.co.il/_next/static/chunks/7178-65780d33a9fd7c35.js

js redesignai.co.il collected 2026-10-02 01:55:32 UTC 11,845 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7178],{37178:function(e,a,t){t.d(a,{default:function(){return z}});var r=t(57437),n=t(2265),l=t(27648),s=t(99376),i=t(79205);let c=(0,i.Z)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),o=(0,i.Z)("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);var d=t(55900);let u=(0,i.Z)("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);var f=t(33245),h=t(89345),m=t(74767),x=t(37760),p=t(79219),y=t(58293),b=t(32489),j=e=>{let{children:a}=e;return(0,r.jsx)("div",{className:"max-w-[1280px] mx-auto px-4",children:a})},k=t(33145),v=e=>{let{hideOnMobile:a=!1}=e;return(0,r.jsx)(l.default,{href:"/",className:"flex items-center ".concat(a?"hidden sm:flex":""),children:(0,r.jsx)(k.default,{alt:"לוגו",src:"/eDesignIL.png",width:150,height:150,className:"rounded-lg",priority:!0})})},g=t(80605),w=t(18930),N=t(2822),Z=t(51817),L=t(69064),C=t(77064),M=()=>{let[e,a]=(0,n.useState)(!1),{data:t}=(0,g.useSession)(),[s,i]=(0,n.useState)(null),[c,o]=(0,n.useState)(!1),[d,u]=(0,n.use
1State)(!1),[f,h]=(0,n.useState)(null),m=(0,n.useRef)(null);(0,n.useEffect)(()=>{(async()=>{let e=sessionStorage.getItem("authProviders");if(e){i(JSON.parse(e));return}let a=await (0,g.getProviders)();i(a),a&&sessionStorage.setItem("authProviders",JSON.stringify(a))})()},[]),(0,n.useEffect)(()=>{let e=e=>{m.current&&!m.current.contains(e.target)&&a(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let x=async()=>{o(!0);try{let e=await fetch("/api/delete-account",{method:"DELETE",headers:{"Content-Type":"application/json"}});if(e.ok){let a=await e.json().catch(()=>({}));L.Am.success(a.subscriptionCancelled?"החשבון נמחק והמנוי בוטל":"החשבון נמחק בהצלחה"),u(!1),await (0,g.signOut)({callbackUrl:"/"})}else{let a=await e.json().catch(()=>({}));L.Am.error(a.error||"שגיאה במחיקת החשבון")}}catch(e){console.error("Error deleting account:",e),L.Am.error("שגיאה במחיקת החשבון")}finally{o(!1)}},p=async()=>{a(!1);try{let e=await fetch("/api/subscription");if(e.ok){let a=await e.json();h(a)}}catch(e){}u(!0)};return(0,r.jsxs)("div",{className:"z-50",children:[(null==t?void 0:t.user)?(0,r.jsxs)("div",{className:"flex justify-center items-center gap-1.5",children:[(0,r.jsxs)("div",{className:"text-base font-medium py-3 rounded cursor-pointer",children:[t.user.credits," מטבעות"]}),(0,r.jsxs)("div",{className:"relative",ref:m,children:[(0,r.jsx)(k.default,{width:35,height:35,className:"rounded-full cursor-pointer",alt:"avatar",src:t.user.image,onClick:()=>a(e=>!e)}),e&&(0,r.jsxs)("div",{className:"dropdown",children:["admin"==t.user.role&&(0,r.jsx)(l.default,{href:"/dashboard",className:"dropdown_link",onClick:()=>a(!1),children:"פאנל"}),(0,r.jsx)(l.default,{href:"/my-rooms",className:"dropdown_link",onClick:()=>a(!1),children:"העיצובים שלי"}),(0,r.jsx)(l.default,{href:"/features",className:"dropdown_link",onClick:()=>a(!1),children:"סביבת עבודה"}),(0,r.jsx)("button",{type:"button",className:"mt-2 w-full black_btn",onClick:()=>{a(!1),(0,g.signOut)({callbackUrl:"/"})},children:"יציאה"}),(0,r.jsxs)("button",{type:"button",className:"mt-2 w-full flex items-center justify-center gap-2 bg-red-600 hover:bg-red-700 text-white font-bold py-2 px-4 rounded transition-colors duration-200",onClick:p,disabled:c,children:[(0,r.jsx)(w.Z,{className:"h-4 w-4"}),"מחק חשבון"]})]})]})]}):(0,r.jsx)(r.Fragment,{children:s?Object.values(s).map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>(0,g.signIn)(e.id,{callbackUrl:"/chat-assistant"}),className:"flex items-center justify-center gap-2.5 rounded-lg bg-[#127bbf] px-5 py-2.5 text-base font-semibold text-white transition-colors hover:bg-[#0866a5]",children:["מתחילים לעצב",(0,r.jsx)(N.Z,{"aria-hidden":"true",className:"h-4 w-4"})]},e.name)):(0,r.jsx)(Z.Z,{className:"animate-spin h-10 w-10 text-gray-700"})}),(0,r.jsx)(C.Z,{isOpen:d,onClose:()=>u(!1),onConfirm:x,isDeleting:c,subscription:f})]})};let P=[{key:"כלי AI",href:"/features",ariaLabel:"כלי AI",label:"כלי AI",icon:c},{key:"מחירים",href:"/pricing",ariaLabel:"מחירים",label:"מחירים",icon:o},{key:"מדריך",href:"/guide",ariaLabel:"מדריך",label:"מדריך",icon:d.Z},{key:"בלוג",href:"/blog",ariaLabel:"בלוג",label:"בלוג",icon:u},{key:"about",href:"/about",ariaLabel:"אודות",label:"אודות",icon:f.Z},{key:"צור קשר",href:"mailto:[email protected]",ariaLabel:"צור קשר",label:"צור קשר",icon:h.Z}],S=[{key:"youtube",href:"https://www.youtube.com/channel/UCq9nPj60-FAkP9-E2L3tsbg?sub_confirmation=1",ariaLabel:"יוטיוב",icon:m.Z},{key:"instagram",href:"https://www.instagram.com/redesignil/",ariaLabel:"אינסטגרם",icon:x.Z},{key:"facebook",href:"https://www.facebook.com/profile.php?id=61567416613762",ariaLabel:"פייסבוק",icon:p.Z}];var z=()=>{let[e,a]=(0,n.useState)(!1),t=(0,s.usePathname)(),i=e=>{switch(e){case"facebook":return"#1877F2";case"youtube":return"#FF0000";case"instagram":return"#000000";default:return"#111827"}},c=e=>{let{link:a}
1=e,[t,s]=(0,n.useState)(!1),c=i(a.key);return(0,r.jsx)(l.default,{href:a.href,target:"_blank",rel:"noopener noreferrer","aria-label":a.ariaLabel,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),className:"inline-flex items-center justify-center h-8 w-8 rounded-md border transition",style:{borderColor:c,backgroundColor:t?c:"transparent",color:t?"#ffffff":c},children:n.createElement(a.icon,{className:"h-4 w-4"})},a.key)},o=null==t?void 0:t.includes("generate-empty-space-multiple"),d=()=>{a(!e)};return(0,r.jsx)("div",{className:"w-full bg-white shadow-sm",children:(0,r.jsx)("div",{className:"py-4 border-b-[1px]",children:(0,r.jsxs)(j,{children:[(0,r.jsxs)("div",{className:"hidden lg:flex items-center justify-between",children:[(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsx)(v,{})}),(0,r.jsx)("nav",{className:"flex items-center justify-center flex-1",children:P.map(e=>(0,r.jsx)(l.default,{href:e.href,className:"mx-4 text-lg text-gray-600 hover:text-gray-900","aria-label":e.ariaLabel,children:e.label},e.key))}),(0,r.jsxs)("div",{className:"flex items-center space-x-1 gap-2",children:[S.map(e=>(0,r.jsx)(c,{link:e},e.key)),(0,r.jsx)(M,{})]})]}),(0,r.jsxs)("div",{className:"lg:hidden flex flex-col items-center justify-between w-full",children:[(0,r.jsx)(v,{hideOnMobile:o}),(0,r.jsx)("div",{className:"w-full border-t-[1px] border-b-[1px] mt-4",children:(0,r.jsxs)("div",{className:"flex items-center justify-between w-full py-2",children:[(0,r.jsx)("div",{onClick:d,className:"cursor-pointer",children:(0,r.jsx)(y.Z,{className:"h-9 w-9 text-zinc-900"})}),(0,r.jsx)(M,{})]})})]}),(0,r.jsxs)("div",{className:e?"fixed left-0 top-0 w-[70%] lg:hidden h-screen bg-[#ecf0f3] p-10 ease-in duration-500 z-[100]":"fixed left-[-100%] top-0 p-10 ease-in duration-500",children:[(0,r.jsx)("div",{className:"flex w-full items-center justify-end",children:(0,r.jsx)("div",{onClick:d,className:"cursor-pointer",children:(0,r.jsx)(b.Z,{className:"h-6 w-6"})})}),(0,r.jsx)("div",{className:"flex-col py-4",children:(0,r.jsx)("ul",{dir:"rtl",className:"list-none text-[21px]",children:P.map(e=>(0,r.jsx)("li",{onClick:()=>a(!1),className:"py-2 cursor-pointer",children:(0,r.jsxs)(l.default,{href:e.href,"aria-label":e.ariaLabel,className:"flex items-center hover:text-cyan-600",children:[n.createElement(e.icon,{className:"ml-2 h-5 w-5"}),e.label]})},e.key))})}),(0,r.jsxs)("div",{className:"mt-8",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold mb-4 text-gray-800",children:"עוקבים ונהנים"}),(0,r.jsx)("div",{className:"flex space-x-1 items-center mb-6",children:S.map(e=>(0,r.jsx)(l.default,{href:e.href,target:"_blank",rel:"noopener noreferrer","aria-label":e.ariaLabel,className:"text-gray-600 hover:text-cyan-600 ml-2",children:n.createElement(e.icon,{className:"h-6 w-6"})},e.key))})]})]})]})})})}},2822:function(e,a,t){t.d(a,{Z:function(){return r}});let r=(0,t(79205).Z)("ArrowUpLeft",[["path",{d:"M7 17V7h10",key:"11bw93"}],["path",{d:"M17 17 7 7",key:"2786uv"}]])},79219:function(e,a,t){t.d(a,{Z:function(){return r}});let r=(0,t(79205).Z)("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]])},55900:function(e,a,t){t.d(a,{Z:function(){return r}});let r=(0,t(79205).Z)("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]])},33245:function(e,a,t){t.d(a,{Z:function(){return r}});let r=(0,t(79205).Z)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},37760:function(e,a,t){t.d(a,{Z:function(){return r}});let r=(0,t(79205).Z)("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]])},51817:function(e,a,t){t.d(a,{Z:function(){return r}});let r=(0,t(79205).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},58293:function(e,a,t){t.d(a,{Z:function(){return r}});let r=(0,t(79205).Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},74767:function(e,a,t){t.d(a,{Z:function(){return r}});let r=(0,t(79205).Z)("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.5
15 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])},33145:function(e,a,t){t.d(a,{default:function(){return n.a}});var r=t(48461),n=t.n(r)},99376:function(e,a,t){var r=t(35475);t.o(r,"useParams")&&t.d(a,{useParams:function(){return r.useParams}}),t.o(r,"usePathname")&&t.d(a,{usePathname:function(){return r.usePathname}}),t.o(r,"useRouter")&&t.d(a,{useRouter:function(){return r.useRouter}}),t.o(r,"useSearchParams")&&t.d(a,{useSearchParams:function(){return r.useSearchParams}})},48461:function(e,a,t){Object.defineProperty(a,"__esModule",{value:!0}),function(e,a){for(var t in a)Object.defineProperty(e,t,{enumerable:!0,get:a[t]})}(a,{default:function(){return c},getImageProps:function(){return i}});let r=t(47043),n=t(55346),l=t(65878),s=r._(t(5084));function i(e){let{props:a}=(0,n.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,t]of Object.entries(a))void 0===t&&delete a[e];return{props:a}}let c=l.Image}}]);

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.