PageSourceSearch

https://salamsakhteman.com/_next/static/chunks/pages/profile/invitation-2f02e87101954d2c.js

js salamsakhteman.com collected 2026-10-02 06:49:11 UTC 17,806 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8e260046-8a26-47da-a5fe-1589937bed2b",e._sentryDebugIdIdentifier="sentry-dbid-8e260046-8a26-47da-a5fe-1589937bed2b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[231,1320],{34402:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/invitation",function(){return a(98546)}])},62761:(e,t,a)=>{"use strict";a.d(t,{$5:()=>d,MX:()=>u,TK:()=>c,VN:()=>m,iD:()=>l,kg:()=>r,qp:()=>_});var n=a(7766),o=a(86631),i=a(80006),s=a(52535);let r=async e=>await (0,s.bD)(()=>o.KJ.post(n.wV,{...e},{timeout:15e3})).then(e=>e.data),c=async e=>{let{id:t,data:a}=e;return await o.KJ.put(n.wV+"/"+t,{...a,headers:{authorization:"Token ".concat(i.A.getLocalAccessToken())}}).then(e=>e.data)},l=async e=>{let{data:t}=e;return await o.KJ.post(n.wV+"/login",{...t}).then(e=>e.data)},d=async e=>{let{data:t}=e;return await o.KJ.post(n.wV+"/signup",{...t}).then(e=>e.data)},u=async e=>{let{data:t}=e,a=await o.KJ.post(n.wV+"/verify",{...t});return await a.data},_=async e=>{let{data:t}=e;return await o.KJ.post(n.wV+"/resend-verify-code",{...t}).then(e=>e.data)},m=async e=>{let{id:t}=e;return await o.no.post(n.dd+"/"+t,{headers:{authorization:""}}).then(e=>e.data)}},43221:(e,t,a)=>{"use strict";a.d(t,{w:()=>s});var n=a(7766),o=a(86631),i=a(80006);let s=async e=>{let{id:t}=e;return await o.xU.get(n.wV+"/"+t,{headers:{authorization:"Token ".concat(i.A.getLocalAccessToken())}}).then(e=>e.data)}},7766:(e,t,a)=>{"use strict";a.d(t,{Ai:()=>g,BQ:()=>M,BS:()=>P,CS:()=>V,Dn:()=>o,Fv:()=>O,HY:()=>f,IS:()=>d,J:()=>y,Jc:()=>x,MP:()=>u,N_:()=>k,OC:()=>c,Q$:()=>L,Ti:()=>j,V:()=>N,VI:()=>K,_q:()=>S,dT:()=>v,dd:()=>s,gE:()=>C,hx:()=>w,i4:()=>m,iV:()=>R,ie:()=>l,j9:()=>J,jY:()=>h,lo:()=>z,mU:()=>p,nU:()=>U,oe:()=>A,oh:()=>r,pg:()=>b,rq:()=>I,w5:()=>n,wV:()=>i,xZ:()=>D,xf:()=>T,z8:()=>_});let n="projects",o="customer",i="users",s="users/Disposable-auth",r="call-time-options",c="provinces",l="cities",d="cities/by-provinces",u="service-type?is-active=true",_="service-type",m="models",h="models/get-by-bookmarked-model-filters",p="model-label-template",v="material",g="material/get-by-name",f="client/contractors/profiles",b="projects/selected-contractors",w="comments",k="contractors/login",y="member-ship-plan?limit=100",x="contractors/request-package",A="https://upload.salamsakhteman.com",j="/static-content/upload",C=A,T="comments/nps",N="contractor",S="project",I="customer-journey/customer",L="design-sample/customer",U="comments",M="comments/reply",V="comments/like",J="comments/remove-like",O="client/workshopers/profiles",P="/client/workshopers/select",K="contractors/select-as-designer",z="client/assemblers/profiles",D="assembler/select",R="contractors/signup"},17494:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(74848),o=a(31320),i=a(96540),s=a(68308),r=a.n(s);let c=(0,i.memo)(e=>{let{children:t,loading:a,className:i,btnType:s,deactive:c,animation:l,...d}=e;return(0,n.jsxs)("button",{disabled:a||(null==d?void 0:d.disabled),className:r().button+" flex flex-row jcc align-i-center gap-5 btn ".concat(s?r()[s]:""," ").concat(l?r().animation:""," ").concat(c?r().deactive:""," ").concat(null!=i?i:""),...d,children:[a&&(0,n.jsx)(o.default,{color:"#fff",size:15}),t]})})},31320:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>c});var n=a(74848),o=a(96540),i=a(70380),s=a.n(i);let r=e=>{var t;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))return 3==(t=e.substring(1).split("")).length&&(t=[t[0],t[0],t[1],t[1],t[2],t[2]]),[(t="0x"+t.join(""))>>16&255,t>>8&255,255&t].join(",")},c=(0,o.memo)(e=>{let{size:t=24,color:a="#1d3f72",className:o}=e;return(0,n.jsx)("div",{className:s().donut+" ".concat(null!=o?o:""),style:{width:t,height:t,border:"0.3rem solid rgba(".concat(r(a),", .3)"),borderTopColor:"rgba(".concat(r(a),", 1)")}})})},86631:(e,t,a)=>{"use strict";a.d(t,{DJ:()=>m,KJ:()=>l,OI:()=>v,TG:()=>d,XX:()=>u,mc:()=>p,no:()=>_,xU:()=>h});var n,o,i=a(52769),s=a(55e3),r=a(22125),c=a(80006);let l=i.A.create({baseURL:"https://api.salamsakhteman.com/api/",timeout:3e4,headers:{...(null===c.A||void 0===c.A?void 0:c.A.getLocalAccessToken())&&{authorization:"Token ".concat(null===c.A||void 0===c.A?void 0:c.A.getLocalAccessToken())},"accept-language":"fa","Cache-Control":"no-cache",Pragma:"no-cache"}}),d=i.A.create({baseURL:"https://general.salamsakhteman.com/api/",timeout:3e5,headers:{"accept-language":"fa","Cache-Control":"no-cache",Pragma:"no-cache"}});d.interceptors.request.use(e=>{var t;return e.headers.authorization="Bearer ".concat(null===(t=r.A.getFirstToken())||void 0===t?void 0:t.token),e});let u=i.A.create({baseURL:"https://salamsakhteman.com/blog/wp-json",timeout:3e4,headers:{"Cache-Control":"no-cache",Pragma:"no-cache"}}),_=i.A.create({baseURL:"https://api.salamsakhteman.com/api/",timeout:3e4,headers:{"accept-language":"fa","Cache-Control":"no-cache",Pragma:"no-cache"}}),m=i.A.create({baseURL:"https://behsa.salamsakhteman.com/behsa/",t
1imeout:3e4,headers:{authorization:"Token ".concat(null===s.A||void 0===s.A?void 0:s.A.getLocalAccessToken()),"accept-language":"fa","Cache-Control":"no-cache",Pragma:"no-cache"}}),h=i.A.create({baseURL:"https://api.salamsakhteman.com/api/",timeout:3e4,headers:{authorization:"Token ".concat(null===c.A||void 0===c.A?void 0:c.A.getLocalAccessToken()),"accept-language":"fa","Cache-Control":"no-cache",Pragma:"no-cache"}}),p=i.A.create({baseURL:"https://model.salamsakhteman.com/",timeout:3e4,headers:{authorization:(null===(n=localStorage)||void 0===n?void 0:n.getItem("token"))&&"Token ".concat(null===(o=localStorage)||void 0===o?void 0:o.getItem("token")),"accept-language":"fa","Cache-Control":"no-cache",Pragma:"no-cache"}}),v=i.A.create({timeout:12e4,baseURL:"https://upload.salamsakhteman.com",headers:{authorization:"Token ".concat(null===c.A||void 0===c.A?void 0:c.A.getLocalAccessToken()),"accept-language":"fa","Cache-Control":"no-cache",Pragma:"no-cache"}})},55391:(e,t,a)=>{"use strict";a.d(t,{HI:()=>_,Qc:()=>c,So:()=>d,Tk:()=>r,VI:()=>u,be:()=>s,vz:()=>l,yO:()=>m});var n=a(62761),o=a(43221),i=a(75942);function s(e){var t;return(0,i.useQuery)(["user",e],()=>(0,o.w)(e),{enabled:!!(null===(t=null==e?void 0:e.enabled)||void 0===t||t)&&!!e.id})}let r=()=>(0,i.useMutation)(e=>(0,n.kg)(e)),c=()=>(0,i.useMutation)(e=>(0,n.TK)(e));function l(){return(0,i.useMutation)(e=>(0,n.iD)(e))}function d(){return(0,i.useMutation)(e=>(0,n.$5)(e))}function u(){return(0,i.useMutation)(e=>(0,n.MX)(e))}function _(){return(0,i.useMutation)(e=>(0,n.qp)(e))}function m(){return(0,i.useMutation)(e=>(0,n.VN)(e))}},1903:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=a(96540);function o(e,t){let a=(0,n.useRef)(()=>{}),o=(0,n.useRef)(()=>{});return(0,n.useMemo)(()=>e&&t?n=>{null===n?(a.current(),o.current()):(a.current=i(e,n),o.current=i(t,n))}:e||t,[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let a=e(t);return"function"==typeof a?a:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98546:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>I});var n=a(74848),o=a(17494),i=a(31320),s=a(96540),r=a(69913),c=a.n(r);let l=e=>{let{children:t,multiOpened:a=!1}=e,[o,i]=(0,s.useState)(a?[]:""),r=(0,s.useCallback)(e=>{a?i(t=>Array.isArray(t)?t.includes(e)?t.filter(t=>t!==e):[...t,e]:t):i(t=>t===e?"":e)},[a]);return(0,n.jsx)("ul",{className:c().accordion+" flex flex-column gap-15",children:s.Children.map(t,e=>(0,s.isValidElement)(e)?(0,s.cloneElement)(e,{activeItem:o,onClick:r}):e)})};l.Item=e=>{let{children:t,title:a,icon:o,value:i,onClick:s,activeItem:r}=e,l=Array.isArray(r)?r.includes(i):r===i;return(0,n.jsxs)("li",{onClick:()=>s(i),className:c().item__accordion+" flex flex-column gap-15\n                ".concat(l?c().active__item:"","\n                "),children:[(0,n.jsxs)("div",{className:c().header__item+" flex jcb align-i-center cursor-pointer",children:[(0,n.jsx)("h4",{children:a}),(0,n.jsx)("i",{children:o||(0,n.jsx)("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M6.62703 6.95954L11.3354 2.24288C11.4135 2.16541 11.4755 2.07324 11.5178 1.97169C11.5601 1.87014 11.5819 1.76122 11.5819 1.65121C11.5819 1.5412 11.5601 1.43228 11.5178 1.33073C11.4755 1.22918 11.4135 1.13701 11.3354 1.05954C11.1792 0.904333 10.968 0.817215 10.7479 0.817215C10.5277 0.817215 10.3165 0.904333 10.1604 1.05954L5.9937 5.18454L1.8687 1.05954C1.71256 0.904332 1.50135 0.817215 1.2812 0.817215C1.06104 0.817215 0.849833 0.904332 0.693698 1.05954C0.614958 1.13672 0.552316 1.22876 0.509402 1.33032C0.466488 1.43188 0.444157 1.54095 0.443699 1.65121C0.444157 1.76146 0.466488 1.87053 0.509402 1.9721C0.552316 2.07366 0.614958 2.1657 0.693698 2.24287L5.40203 6.95954C5.48007 7.04413 5.57478 7.11164 5.68019 7.15781C5.78561 7.20398 5.89945 7.22782 6.01453 7.22782C6.12962 7.22782 6.24345 7.20398 6.34887 7.15781C6.45429 7.11164 6.549 7.04413 6.62703 6.95954Z",fill:"#F57F22"})})})]}),t&&(0,n.jsx)("div",{className:c().content__item,children:t})]})};var d=a(96986),u=a.n(d);let _=e=>{let{children:t}=e;return(0,n.jsx)("div",{className:u().steps,children:t})};_.Item=e=>{let{step:t,title:a,description:o}=e;return(0,n.jsxs)("div",{className:u().item__steps,children:[(0,n.jsxs)("div",{className:u().header__item+" flex align-i-center gap-5",children:[(0,n.jsx)("span",{className:u().counter__header,children:t}),(0,n.jsx)("p",{className:u().title__header,children:a})]}),o&&(0,n.jsx)("div",{className:u().description__item,dangerouslySetInnerHTML:{__html:o}})]})};let m=[{title:"معرفی سلام ساختمان",description:'\n        سلام‌ساختمان را از طریق دکمه "<b>ارسال لینک دعوت</b>" به دوستان خود معرفی کنید. با زدن ارسال لینک دعوت، می‌توانید کد معرف خود را از طریق شبکه‌های اجتماعی یا پیامک برای دیگران ارسال کنید.\n        '},{title:"ثبت درخواست توسط دوست شما",description:"دوست شما از طریق لینکی که برای او ارسال کردید ثبت درخواست می‌کند، و نام شما به عنوان <b>معرف</b> ثبت می‌شود."},{title:"قرارداد و پرداخت هدیه شما",description:"\n            <p>\n            در صورتی که دوست شما پروژه‌ی کابینت یا کمد خود را توسط سلام‌ساختمان انجام دهد، به میزان <b>3درصد از مبلغ قرارداد ایشان</b> به عنوان هدیه به شما تعلق می‌گیرد.\n            </p>\n            <p>\n            به عنوان مثال اگر مبلغ پروژه ایشان <b>65 میلیون</b> باشد، سلام‌ساختمان به شما <b>2 میلیون</b> تومان هدیه می‌دهد.\n            </p>\n        "}],h=[{title:"آیا مقدار هدیه سقف مشخصی دارد؟",description:"خیر، سلام‌ساختمان 3 درصد از مبلغ قرارداد را به شما پرداخت می‌کند "},{title:"آیا تعداد معرفی‌ها سقف مشخصی دارد؟",description:"خیر، به هر تعدادی که دوستان شما در سلام‌ساختمان قرارداد عقد کنند، به شما هدیه پرداخت می‌شود. "},{title:"اگر خودم با سلام ساختمان قرارداد نبستم چه میشود؟",description:"حتی اگر خودتان با سلام‌ساختمان قرارداد عقد نکردید، باز هم می‌توانید این هدیه‌ی میلیونی را دریافت کنید."}];var p=a(55391),v=a(99571),g=a(64047),f=a(80006);let b=async e=>{try{await navigator.clipboard.writeText(e)}catch(e){}};var w=a(61840),k=a.n(w),y=a(29965),x=a.n(y),A=a(26574),j=a.n(A);let C=()=>(0,n.jsx)("div",{className:j().poster,children:(0,n.jsx)(x(),{width:400,height:200,objectFit:"contain",alt:"poster",src:"/images/profile/invitation-poster.png"})}),T=()=>{let e=f.A.getUser(),{data:t,isSuccess:a}=(0,p.be)({id:null==e?void 0:e.id}),s=e=>{if(g.A.event({category:"lead-profile",action:"send-invitation-link",label:"referral-invitation-link"}),e){let t="".concat("https://salamsakhteman.com","/product?invitedBy=").concat(e);try{navigator.share({title:"دعوت از دوستان خود",text:"برای اجرای پروژه‌ی کمد و کابینت در سلام‌ساختمان، وارد لینک زیر شوید:",url:t})}catch(e){b(t).then(()=>v.oR.dark("کد شما کپی شد"))}}else v.oR.dark("کد برای شما ساخته نشده است، لطفا دوباره ثبت پروژه کنید")};return(0,n.jsxs)("article",{className:k().invitation+" flex flex-column mt-xl gap-20",children:[(0,n.jsx)("h4",{className:"app-text-md fw-700",children:"دعوت از دوستان"}),(0,n.jsx)(C,{}),(0,n.jsx)("h4",{className:k().step_title__invitation+" app-text-md fw-700",children:"چطور هدیه ام را دریافت کنم؟"}),(0,n.jsx)(_,{children:m.map((e,t)=>(0,n.jsx)(_.Item,{step:t+1,...e},t))}),(0,n.jsx)(l,{children:h.map((e,t)=>(0,n.jsx)(l.Item,{value:t.toString(),title:e.title,children:e.description},t))}),(0,n.jsx)("div",{className:k().action__invitation+" flex align-i-center jcc",children:a?(0,n.jsx)(o.A,{onClick:()=>{var e;return s(null===(e=t.data)||void 0===e?void 0:e.referrerCode)},className:k().btn__action,id:"referral-invitation-link",children:"ارسال لینک دعوت"}):(0,n.jsx)(i.default,{})})]})};var N=a(88083);let S=()=>(0,n.jsx)(T,{});S.config=N.H_;let I=S},55e3:(e,t,a)=>{"use strict";a.d(t,{A:()=>
1o});class n{getLocalAccessToken(){if("undefined"!==window.localStorage.getItem("behsaUser")){let e=JSON.parse(window.localStorage.getItem("behsaUser"));return null==e?void 0:e.token}}updateLocalAccessToken(e){let t=JSON.parse(localStorage.getItem("behsaUser"));t.token=e,localStorage.setItem("behsaUser",JSON.stringify(t))}getUser(){return JSON.parse(localStorage.getItem("behsaUser"))}setUser(e){localStorage.setItem("behsaUser",JSON.stringify(e))}removeUser(){localStorage.removeItem("behsaUser"),localStorage.removeItem("behsaToken")}}let o=new n},64047:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(36157);class o{event(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Click",{category:a,action:o,label:i,...s}=e,r=a||"General",c=o||t,l=i||"";n.Ay.trackGaEvent({category:r,action:c,label:l||void 0,value:"number"==typeof s.value?s.value:void 0}),window.gtag?window.gtag("event",c,{event_category:r,event_label:l,non_interaction:!1,...s}):(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"custom_event",event_action:c,event_category:r,event_label:l,...s}))}}let i=new o},22125:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});
1class n{getTokens(){if("undefined"!==window.localStorage.getItem("technician")){var e;let t=JSON.parse(window.localStorage.getItem("technician"));return null!==(e=null==t?void 0:t.token)&&void 0!==e?e:[]}}getToken(e){var t,a;return null!==(a=null===(t=this.getTokens())||void 0===t?void 0:t.find(t=>t.type===e))&&void 0!==a?a:void 0}getFirstToken(){var e,t;return null!==(t=null===(e=this.getTokens())||void 0===e?void 0:e[0])&&void 0!==t?t:void 0}setTechnician(e){localStorage.setItem("technician",JSON.stringify(e))}removeUser(){localStorage.removeItem("technician")}}let o=new n},52535:(e,t,a)=>{"use strict";a.d(t,{$d:()=>n,SU:()=>s,bD:()=>i});let n=e=>null==e||!e.response||e.response.status>=500||429===e.response.status,o=e=>!(null==e?void 0:e.response);async function i(e){let t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,1e3,3e3];for(let o of a){o&&await new Promise(e=>setTimeout(e,o));try{return await e()}catch(e){if(t=e,!n(e))break}}throw t}let s=function(e){var t;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"خطایی رخ داد، دوباره تلاش کنید";if(o(e))return"اتصال اینترنت ضعیف است. اطلاعات شما حفظ شده، دوباره تلاش کنید";let n=null===(t=e.response)||void 0===t?void 0:t.data,i="object"==typeof n&&null!==n?n.message:void 0;return"string"==typeof i&&i?i:a}},68308:e=>{e.exports={button:"submit_button__0rgyN",primary:"submit_primary__ubNUc",ghost:"submit_ghost__CNKVW",bordered:"submit_bordered__sShga",deactive:"submit_deactive__xXE57",animation:"submit_animation__dLQs5",slide:"submit_slide__rtB96"}},70380:e=>{e.exports={donut:"_spin_donut___yv4A",donutSpin:"_spin_donutSpin__UKVaX"}},69913:e=>{e.exports={accordion:"accordion_accordion__CbPu2",item__accordion:"accordion_item__accordion__VD0Sb",active__item:"accordion_active__item__qSgda",header__item:"accordion_header__item__ec8_I",content__item:"accordion_content__item__9KDGM"}},61840:e=>{e.exports={invitation:"invitation_invitation__q_sLy",step_title__invitation:"invitation_step_title__invitation__AA7Q8",action__invitation:"invitation_action__invitation__MhCn3",btn__action:"invitation_btn__action__BgrB5"}},26574:e=>{e.exports={poster:"poster_poster__wra2o"}},96986:e=>{e.exports={steps:"steps_steps__fKgZ4",item__steps:"steps_item__steps___18nW",header__item:"steps_header__item__CBfxk",counter__header:"steps_counter__header__hkW0e",title__header:"steps_title__header___5T4K",description__item:"steps_description__item__QOvze"}}},e=>{var t=t=>e(e.s=t);e.O(0,[9965,2769,464,636,6593,8792],()=>t(34402)),_N_E=e.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.