PageSourceSearch

https://app.fractory.com/static/javascripts/741.ed664bca948c0ee603d8.js

js fractory.com collected 2026-10-02 03:26:40 UTC 33,853 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkfractory_client_new=globalThis.webpackChunkfractory_client_new||[]).push([[741],{72741(e,t,s){s.r(t),s.d(t,{default:()=>Ge});var a=s(62540),i=s(63696),r=s(55940),n=s(51798),o=s(23224),l=s(93905),c=s(75785),d=s(53180),p=s(80155),m=s(24491),h=s(57384),u=s(26426),g=s(68372),x=s(60380),f=s(10330),y=s(99160),b=s(53014),v=s(75844),j=s(13965);const k={data:void 0,pagination:{per_page:9},getOrdersAbortController:void 0,sortDirection:"desc",sortBasis:"relevance",userId:void 0,isLoading:!1},{GET_CALL:N,SET_GET_ABORT_CONTROLLER:w,SET_FILTERS:C,REMOVE_ORDER:A}=j.gK,[_,S,P]=(0,v.ev)({reducer:(e,{type:t,payload:s={}})=>{switch(t){case N.REQUEST:return void(e.isLoading=!0);case N.SUCCESS:return e.data=s.data,void(e.pagination=s.meta.pagination);case N.FINALLY:return void(e.isLoading=!1);case w:return void(e.getOrdersAbortController=s.controller);case C:{const t=(0,m.A)(s);return t.includes("sortBasis")&&(e.sortBasis=s.sortBasis),t.includes("sortDirection")&&(e.sortDirection=s.sortDirection),t.includes("page")&&(e.pagination.current_page=s.page),t.includes("perPage")&&(e.pagination.per_page=s.perPage),void(t.includes("userId")&&(e.userId=s.userId,e.pagination=k.pagination))}case A:{const t=e.data?.findIndex((e=>e.id===s.id))??-1;return t>-1&&e.data.splice(t,1),e}case"GLOBAL/RESET":return{...e,...k}}},defaultState:k,actions:j.Ay,debugName:"useDashboard"}),R=_;var W=s(6882),I=s(13862);const B=(...e)=>{const[t]=R();return(0,I.P)(t,...e)},E=()=>{const[,e]=R();return e};(0,W.nT)(B);var T=s(17126),O=s(68386),L=s(74907),D=s(32362),F=s(58774),G=s(7301),$=s(44708),M=s(47747),Q=s(45729);const H=(0,r.n9)()((({palette:e,tokens:t})=>({root:{borderRadius:t.radius.sm,border:`1px solid ${e.grey[300]}`,backgroundColor:"white",padding:"24px"}}))),q=()=>{const{t:e}=(0,o.Bd)(["payment"]),{classes:t}=H(),[s,i]=(0,D.xS)((e=>[e?.factoring,e?.factoring_payment_scheme])),r=s?.status;return i&&r?(0,a.jsx)("div",{className:t.root,children:(0,a.jsx)(Q.TM,{title:e("payment:paymentTerms.credit"),factoring:s,factoringPaymentScheme:i})}):null},z=(0,r.n9)()((()=>({root:{"&.ApplyBox":{padding:24}}}))),U=()=>{const{classes:e}=z(),{getOrdersCall:t}=(0,O.Mv)(),{getOrdersCall:s}=E(),r=(0,i.useCallback)((()=>{s(),t()}),[t,s]);return(0,a.jsx)(Q.cI,{onCompanyCreated:r,children:({handleSubmit:t,isSubmitting:s,provider:i})=>(0,a.jsx)(Q.Ah,{className:e.root,disabled:s,provider:i,onSubmit:t})})};var K=s(79463),Y=s(32642);const V=(0,r.n9)()((({palette:e,tokens:t})=>({flex:{display:"flex",minWidth:0,flexGrow:1},quoteHolder:{display:"flex",flexDirection:"column",gap:16,flexGrow:1,justifyContent:"space-between",padding:24,position:"relative",borderRadius:t.radius.sm,border:`1px solid ${e.grey[300]}`,backgroundColor:"white","& > .content":{display:"flex",minWidth:0,flexDirection:"column",gap:8,"& > .top":{display:"flex",alignItems:"center",minWidth:0,paddingBottom:11,...t.type.h2}},"& > .bottom":{display:"flex",alignItems:"flex-end",justifyContent:"space-between",paddingTop:6,flexWrap:"wrap",gap:8,"& > .typeholder":{display:"flex",flexDirection:"column",flexWrap:"wrap",gap:8,paddingTop:0,"& > .types":{display:"flex",gap:8,justifyContent:"flex-start",flexWrap:"wrap","& > .type":{background:e.grey[300],minWidth:0,flexGrow:0,flexShrink:0,alignItems:"center",...t.type.bodyXS,fontWeight:t.weight.semibold,color:"black",textTransform:"uppercase",padding:"4px 8px ",borderRadius:t.radius.sm}}}},"& .buttonHolder":{flexGrow:0,flexShrink:0}},bold:{fontWeight:t.weight.bold}}))),J=({onClick:e,onFiles:t})=>{const{t:s}=(0,o.Bd)(["dashboard"]),{classes:i}=V();return(0,a.jsx)(Y.A,{className:i.flex,DropAreaProps:{className:i.flex},disableAreaClick:!0,onFiles:t,accept:K.Bo,children:(0,a.jsxs)("div",{className:i.quoteHolder,children:[(0,a.jsxs)("div",{className:"content",children:[(0,a.jsx)("div",{className:"top",children:s("dashboard:instantQuote.label")}),(0,a.jsxs)("div",{className:"text",children:[(0,a.jsx)("div",{children:s("dashboard:instantQuote.text1")}),(0,a.jsx)("div",{className:i.bold,children:s("dashboard:instantQuote.text2")})]})]}),(0,a.jsxs)("div",{className:"bottom",children:[(0,a.jsxs)("div",{className:"typeholder",children:[(0,a.jsxs)("div",{className:"types",children:[(0,a.jsx)("div",{className:"type",children:s("dashboard:instantQuote.types.prototyping")}),(0,a.jsx)("div",{className:"type",children:s("dashboard:instantQuote.types.smallProjects")}),(0,a.jsxs)("div",{className:"type",children:[s("dashboard:instantQuote.types.assemblies")," "]})]}),(0,a.jsxs)("div",{className:"types",children:[(0,a.jsx)("div",{className:"type",children:s("dashboard:instantQuote.types.mediumOrders")}),(0,a.jsx)("div",{className:"type",children:s("dashboard:instantQuote.types.instantPricing")})]})]}),(0,a.jsx)("div",{className:"buttonHolder",children:(0,a.jsx)(p.A,{onClick:e,variant:"contained",color:"primary",children:s("dashboard:instantQuote.button")})})]})]})})};var X=s(21180),Z=s(94504),ee=s(68582);const te=(0,r.n9)()((({palette:e,tokens:t})=>({paginationRoot:{display:"flex",minWidth:0,flexGrow:0,flexShrink:0,alignItems:"center",justifyContent:"center",gap:4,"& > .sep":{marginLeft:9,marginRight:9,"&, &:before, &:after":{display:"block",width:3,height:3,borderRadius:3,position:"relative",backgroundColor:e.grey[300]},"&:before, &:after":{content:'""',position:"absolute",top:0,left:-6},"&:after":{left:6}}},button:{height:32,width:32,borderRadius:t.radius.full,minWidth:0,minHeight:0,padding:0,display:"flex",...t.type.button,fontWeight:t.weight.medium,backgroundColor:e.grey[200],transition:"all .2s","&.active":{backgroundColor:e.primary.main,color:"white",transition:"none"},"&:hover":{backgroundColor:e.primary.main,color:"white"}}}))),se=({page:e,total:t,maxPages:s,className:i,onChange:r})=>{const{classes:o}=te();return e&&t&&t>1?(0,a.jsxs)("div",{className:(0,n.A)([o.paginationRoot,i]),children:[(0,a.jsx)(ee.A,{disabled:1===e,onClick:()=>r(e-1),children:(0,a.jsx)(Z.Ay$,{icon:Z.YJP,size:20,strokeWidth:1.5})}),s&&s>5&&t>s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.A,{color:"grey",className:(0,n.A)([o.button,{active:1===e}]),onClick:()=>r(1),children:"1"}),e>3&&(0,a.jsx)("div",{className:"sep"}),Array.from(Array(3),((s,a)=>{let i=e-1;return e<=3?i=2:e+2>=t&&(i=t-3),i+a})).map((t=>(0,a.jsx)(p.A,{color:"grey",className:(0,n.A)([o.button,{active:e===t}]),onClick:()=>r(t),children:t},t))),e<t-2&&(0,a.jsx)("div",{className:"sep"}),(0,a.jsx)(p.A,{color:"grey",className:(0,n.A)([o.button,{active:e===t}]),onClick:()=>r(t),children:t})]}):Array.from(Array(t),((e,t)=>t+1)).map((t=>(0,a.jsx)(p.A,{color:"grey",className:(0,n.A)([o.button,{active:e===t}]),onClick:()=>r(t),children:t},t))),(0,a.jsx)(ee.A,{disabled:e>t-1,onClick:()=>r(e+1),children:(0,a.jsx)(Z.Ay$,{icon:Z.vKP,size:20,strokeWidth:1.5})})]}):null};var ae=s(82799),ie=s(41183),re=s(58004),ne=s(38662),oe=s(80859),le=s(73822),ce=s(11427),de=s(79495),pe=s(59004),me=s(45642),he=s(900),ue=s(93068),ge=s(83351),xe=s(87042),fe=s(71477),ye=s(71636),be=s(44838),ve=s(58693);
1const je=({id:e,project_name:t,version_name:s,transaction_status:r,status:n,currency:l,taxed_total:c,total_cost_taxed_pending:d,is_cancelled:p,post_pay:m,days_overdue:h,expires_in_days:x,expected_delivery:y,issued_invoice_count:b,downloadable_customer_invoice_count:v,parts_count:j,articles_count:k,shipping_cost:N,is_pending_with_price:w,paid_sum:C,split_group:A,processes:_,user:S,company:P,service_level:R,versions:W,survey:I})=>{const{t:B}=(0,o.Bd)(["dashboard","orders","order","errors","translation"]),F=(0,u.W6)(),{openModal:G}=(0,ye.QR)(),{toast:$}=(0,be.EM)(),[M,Q]=(0,i.useState)(!0),[H,q]=(0,i.useState)(!1),[z,U]=(0,i.useState)(!1),[K,Y]=(0,i.useState)(null),V=(0,L.JE)(),J=(W??[]).length>1,[X,Z]=(0,i.useState)(!1),ee=(0,i.useMemo)((()=>ce.Je(B)),[B]),te=I?.id,[se]=(0,fe.CU)((e=>[e.lastAnsweredSurveys])),je=I?.id?se.get(I.id)??null:null,ke=(0,re.A)(!1),{getOrdersCall:Ne,deleteOrderCall:we}=(0,O.Mv)(),{acceptQuoteCall:Ce,refuseQuoteCall:Ae,removeOrder:_e,getOrdersCall:Se}=E(),{getOrderVersionsCall:Pe}=(0,T.T0)(),{submitSurveyCall:Re}=(0,fe.w0)(),[We,Ie]=(0,i.useState)({rating:I?.rating??null,isOpen:!1}),Be=(0,le.A)(V,{user:S}),Ee=(0,le._)(Be),[Te,Oe]=(0,ue.A)({rating:We.rating,orderId:e,projectName:t}),Le=(0,i.useCallback)((t=>t.map((t=>{const s=t.id===e;return{...t,isCurrent:s}}))),[e]),De=(0,i.useCallback)((()=>{e&&(null!==N?(Q(!1),Ce({id:e,currency:l,parts_count:j,articles_count:k,total_cost_taxed:c},{useableErrors:{CREDIT_LIMIT_EXCEEDED:{attachMessage:!0}},onSuccess:()=>{F.push(m?(0,f.ND)(e):(0,f.oU)(e))},onError:()=>{$(B("errors:GENERIC_ERROR"),"error"),Q(!0)}})):F.push((0,f.Lz)(e),{openAcceptModal:!0}))}),[Ce,k,l,F,e,j,m,N,B,c,$]),Fe=(0,i.useCallback)((()=>{e&&M&&(ve.A.dashboardAction("acceptButtonClick"),Q(!1),J?new Promise(((t,s)=>{Pe(e,{useableErrors:!0,onSuccess:({data:e})=>{e.length>1?t(e):s()},onError:()=>{s()}})})).then((e=>{q(!0),Y(Le(e))})).catch((()=>{Q(!0)})):De())}),[M,Pe,De,J,e,Le]),Ge=(0,D.xS)((e=>e?.memberships??[])),$e=(0,i.useCallback)((()=>{q(!1),De()}),[De]),Me=(0,i.useCallback)((()=>{Q(!0),q(!1)}),[]),Qe=(0,i.useCallback)((e=>{te&&(Re(te,{answers:e},{onError:()=>{}}),e&&!ke.current&&(ke.current=!0,ve.A.surveyAnswered()))}),[ke,Re,te]),He=(0,oe.YQ)(Qe,2e3),qe=(0,i.useCallback)((e=>{Ie((0,ne.jM)((t=>{t.rating=e,t.isOpen=!0})));const t=[];t.push({key:Te.key,question:Te.question,answer:e}),Oe.forEach((e=>{t.push({key:e.key,question:e.question,answer:e.answers})})),Qe(t)}),[Qe,Oe,Te.key,Te.question]),ze=(0,i.useCallback)((()=>{Ie((0,ne.jM)((e=>{e.isOpen=!1}))),He.flush()}),[He]);return(0,ie.A)((()=>{Ie((0,ne.jM)((e=>{e.rating=je})))}),[je]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(xe.A,{id:e,projectName:t,versionName:s,versions:W,status:n,issuedInvoiceCount:b,downloadableInvoiceCount:v,isPostPay:m,isCancelled:p,totalCostTaxed:c,totalCostTaxedPending:d,currency:l,daysOverdue:h,expectedDelivery:y,expiresInDays:x,paidSum:C,transactionStatus:r,isPendingWithPrice:w,splitGroup:A,processes:_,restrictions:Ee,isExpedited:(0,ae.c_)(R),...!!P&&{ownerName:S?.name},onClick:()=>{F.push((0,g.hy)(e,n))},onAcceptOrder:Be.ASK_QUOTE_APPROVAL?()=>U(!0):Fe,onRefuseOrder:Be.ASK_QUOTE_APPROVAL?void 0:()=>{e&&M&&(ve.A.dashboardAction("rejectButtonClick"),Z(!0))},onDiscardDraft:()=>{e&&G((0,a.jsx)(de.A,{title:B("dashboard:confirm.deleteTitle",{id:e}),text:B("dashboard:confirm.deleteText"),buttonText:B("dashboard:confirm.deleteButton"),confirm:()=>we(e,{onSuccess:Ne})}))},...!!I&&(We.rating||!I.answered_at)&&{survey:{questionText:B("translation:ratingSurvey.orderCardQuestion"),submittedText:B("translation:ratingSurvey.thankYou"),score:We.rating,disabled:!!We.rating,onChange:qe}}}),J&&(0,a.jsx)(ge.A,{open:H,versions:K,onClose:Me,onConfirm:$e}),We.rating&&(0,a.jsx)(he.A,{open:We.isOpen,onClose:ze,rating:Te,questions:Oe,onChange:He}),z&&(0,a.jsx)(me.A,{open:!0,onDismiss:()=>U(!1),memberships:Ge,orderId:e}),X&&e&&(0,a.jsx)(pe.A,{open:!0,size:"wide",title:B("orders:modals.refuse.title",{id:e}),options:ee,onClose:()=>Z(!1),onConfirm:(t,s)=>{_e(e),Ae({order:{id:e,currency:l,parts_count:j,articles_count:k,total_cost_taxed:c},payload:{reason:t.value,...t.desc&&{feedback:t.desc}}},{onSuccess:()=>{Z(!1),Se()},onError:()=>{$(B("errors:GENERIC_ERROR"),"error")},onFinally:()=>s.setSubmitting(!1)})}})]})};var ke=s(99670);const Ne=(0,r.n9)()({ownerFilterRoot:{width:180,paddingBottom:20}}),we=()=>{const{t:e}=(0,o.Bd)("dashboard"),{classes:t}=Ne(),s=(0,L.R3)(),i=(0,D.xS)((e=>
1e?.memberships)),r=B((e=>e.userId??null)),{getOrdersCall:n,setFilters:l,abortOrdersCall:c}=E(),{getOrdersCall:d,setFilters:p,abortOrdersCall:m}=(0,O.Mv)();return s?(0,a.jsx)("div",{className:t.ownerFilterRoot,children:(0,a.jsx)(ke.A,{label:e("dashboard:filterByMember"),memberships:i,value:r,onChange:e=>{const t=e??void 0;c(),m(),l({userId:t}),p({userId:t}),n(),d()}})}):null},Ce=(0,i.memo)(we),Ae=(0,r.n9)()((({palette:e,tokens:t})=>({placeholderRoot:{borderRadius:t.radius.md,border:`2px dotted ${e.grey[300]}`,minHeight:180,width:"100%",display:"flex",flexDirection:"column","& .block-el":{height:16,width:60,borderRadius:t.radius.sm,backgroundColor:e.grey[200]},"& > .container":{flexGrow:1,padding:16,minWidth:0,display:"flex",flexDirection:"column",justifyContent:"space-between","& > .content":{"& > .header":{paddingBottom:8,display:"flex",minWidth:0,justifyContent:"space-between"}},"& > .status":{paddingBottom:2,"& > .steps":{display:"flex",minWidth:0,marginLeft:-3,marginRight:-3,paddingTop:16,"& > div":{height:2,width:"25%",position:"relative","&:before":{display:"block",content:'""',top:0,bottom:0,left:3,right:3,position:"absolute",backgroundColor:e.grey[200]}}}}},"& > .footer":{flexGrow:0,flexShrink:0,borderTop:`1px solid ${e.grey[200]}`,minHeight:52,padding:"8px 16px",display:"flex",minWidth:0,alignItems:"center",justifyContent:"center"}}}))),_e=()=>{const{classes:e}=Ae();return(0,a.jsxs)("div",{className:e.placeholderRoot,children:[(0,a.jsxs)("div",{className:"container",children:[(0,a.jsxs)("div",{className:"content",children:[(0,a.jsxs)("div",{className:"header",children:[(0,a.jsx)("div",{className:"block-el"}),(0,a.jsx)("div",{className:"block-el"})]}),(0,a.jsx)("div",{className:"block-el",style:{height:8}})]}),(0,a.jsxs)("div",{className:"status",children:[(0,a.jsx)("div",{className:"block-el"}),(0,a.jsxs)("div",{className:"steps",children:[(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{})]})]})]}),(0,a.jsx)("div",{className:"footer",children:(0,a.jsx)("div",{className:"block-el",style:{width:"50%"}})})]})},Se=(0,r.n9)()((({palette:e,breakpoints:t,tokens:s})=>({root:{display:"flex",minWidth:0,flexDirection:"column",gap:18,[t.down(830)]:{marginTop:28},"& > .section":{"& > .header":{display:"flex",minWidth:0,paddingBottom:12,justifyContent:"space-between",flexWrap:"wrap","& > .sort":{flexGrow:0,flexShrink:0,display:"flex",minWidth:0,alignItems:"center","& > .label":{paddingRight:20,paddingBottom:10},"& > .buttons":{display:"flex",minWidth:0,"& > .button":{...s.type.button,minHeight:0,minWidth:0,padding:"0px 0 10px",borderRadius:s.radius.none,"& + .button":{marginLeft:20},"&:hover":{backgroundColor:"transparent",color:e.primary.main},"&.active":{"&:after":{display:"block",content:'""',height:1,position:"absolute",left:0,right:0,bottom:0,background:e.primary.main}}}}}},"& > .cards":{display:"flex",flexWrap:"wrap",minWidth:0,marginLeft:-6,marginRight:-6,[t.between(830,900)]:{display:"block"},[t.down("md")]:{display:"block"},"& > .card":{display:"flex",minWidth:0,width:"33.33%",padding:6,[t.down("xl")]:{width:"50%"},[t.between(830,900)]:{width:"100%"},[t.down("md")]:{width:"100%"}}}}},pagination:{paddingTop:20}}))),Pe=()=>{const{t:e}=(0,o.Bd)("dashboard"),{classes:t}=Se(),[s,r]=(0,O.ef)((e=>[e.data,e.pagination])),{getOrdersCall:l,setFilters:c}=(0,O.Mv)(),d=(0,L.Yj)(),[m,h,u]=B((e=>[e.data,e.pagination,e.sortBasis])),{getOrdersCall:g,setFilters:x}=E(),f=(0,i.useCallback)((e=>{x({page:1,sortBasis:e}),g()}),[g,x]);return(0,a.jsxs)("div",{className:t.root,children:[(0,a.jsxs)("div",{className:"section",children:[(0,a.jsxs)("div",{className:"header",children:[(0,a.jsx)(X.A,{component:"h2",variant:"h2",children:e("yourRecentOrders")}),(0,a.jsxs)("div",{className:"sort",children:[(0,a.jsxs)("div",{className:"label",children:[e("sortBy"),":"]}),(0,a.jsxs)("div",{className:"buttons",children:[(0,a.jsx)(p.A,{color:"grey",disableRipple:!0,variant:"text",className:(0,n.A)(["button",{active:"relevance"===u}]),..."relevance"!==u&&{onClick:()=>f("relevance")},children:e("relevance")}),(0,a.jsx)(p.A,{color:"grey",disableRipple:!0,variant:"text",className:(0,n.A)(["button",{active:"created_at"===u}
1]),..."created_at"!==u&&{onClick:()=>f("created_at")},children:e("dateCreated")})]})]})]}),!d&&(0,a.jsx)(Ce,{}),(0,a.jsx)("div",{className:"cards",children:m?.length?m.map((e=>(0,a.jsx)("div",{className:"card",children:(0,a.jsx)(je,{...e})},e.id))):(0,a.jsx)("div",{className:"card",children:(0,a.jsx)(_e,{})})}),(h.total_pages??0)>1&&(0,a.jsx)(se,{maxPages:15,className:t.pagination,onChange:e=>{x({page:e}),g()},page:h.current_page,total:h.total_pages},h.current_page)]}),(0,a.jsx)(U,{}),(0,a.jsxs)("div",{className:"section",children:[(0,a.jsx)("div",{className:"header",children:(0,a.jsx)(X.A,{component:"h2",variant:"h2",children:e("yourDrafts")})}),(0,a.jsx)("div",{className:"cards",children:s?.length?s.map((e=>(0,a.jsx)("div",{className:"card",children:(0,a.jsx)(je,{id:e.id,status:e.status,total_cost:e.total_cost,currency:e.currency,project_name:e.project_name,user:e.user,company:e.company})},e.id))):(0,a.jsx)("div",{className:"card",children:(0,a.jsx)(_e,{})})}),(r.total_pages??0)>1&&(0,a.jsx)(se,{maxPages:5,className:t.pagination,onChange:e=>{c({page:e}),l()},page:r.current_page,total:r.total_pages},r.current_page)]})]})},Re=(0,r.n9)()((({palette:e,tokens:t})=>({root:{borderRadius:t.radius.sm,border:`1px solid ${e.grey[200]}`,backgroundColor:e.grey[100],padding:24,display:"flex",minWidth:0,gap:16,flexDirection:"column","& > .title":{fontWeight:t.weight.semibold},"& > .container":{display:"flex",minWidth:0,gap:16,alignItems:"center","& > .content":{...t.type.bodyS,flexGrow:1,display:"flex",minWidth:0,gap:16,alignItems:"center","& > .image":{width:56,height:56,borderRadius:t.radius.full,flexGrow:0,flexShrink:0,backgroundRepeat:"no-repeat",backgroundSize:"100%"},"& > .info":{display:"flex",minWidth:0,flexDirection:"column",gap:8,"& > .item":{display:"flex",minWidth:0,alignItems:"center",gap:4,"& > .icon":{color:e.grey[500]}}}}},"& > .buttonHolder":{flexShrink:0}}}))),We=({appointmentUrl:e,id:t,name:s,phone:i,email:r})=>{const{t:n}=(0,o.Bd)(["dashboard"]),{classes:l}=Re();return void 0!==t&&e?(0,a.jsxs)("div",{className:l.root,children:[(0,a.jsx)("div",{className:"title",children:n("dashboard:personalAccountManager.title")}),(0,a.jsx)("div",{className:"container",children:(0,a.jsx)("div",{className:"content",children:(0,a.jsxs)("div",{className:"info",children:[!!s&&(0,a.jsxs)("div",{className:"item",children:[(0,a.jsx)(Z.Ay$,{icon:Z.z4y,className:"icon"}),(0,a.jsx)("div",{className:"value",children:s})]}),!!i&&(0,a.jsxs)("div",{className:"item",children:[(0,a.jsx)(Z.Ay$,{icon:Z.EsG,className:"icon"}),(0,a.jsx)("div",{className:"value",children:i})]}),!!r&&(0,a.jsxs)("div",{className:"item",children:[(0,a.jsx)(Z.Ay$,{icon:Z.r4D,className:"icon"}),(0,a.jsx)("div",{className:"value",children:r})]})]})})}),!!e&&(0,a.jsx)("div",{className:"buttonHolder",children:(0,a.jsx)(p.A,{variant:"outlined",color:"grey",component:d.A,nativeButton:!1,href:e,children:n("dashboard:personalAccountManager.scheduleCall")})})]}):null},Ie=(0,r.n9)()((({palette:e,breakpoints:t,tokens:s},{hasImage:a})=>({root:{borderRadius:s.radius.sm,backgroundColor:"white",border:`1px solid ${e.grey[300]}`,display:"flex",minWidth:0,[t.down(1150)]:{display:"block"},"& > .section":{padding:24,flexGrow:1,minWidth:0,"& + .section":{width:"42%",flexGrow:0,flexShrink:0,borderLeft:`1px solid ${e.grey[300]}`,[t.down(1150)]:{width:"auto",borderLeft:"none"}}}},title:{paddingBottom:40},orderedList:{"& > .item":{minHeight:90,position:"relative","&:before":{display:"block",content:'""',borderLeft:`2px dotted ${(0,r.B3)(e.primary.light,.6)}`,position:"absolute",top:24,left:9,bottom:4,width:0},"&:last-of-type":{...!a&&{minHeight:0},"&:before":{display:"none"}},"& > .counter":{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,borderRadius:s.radius.full,flexGrow:0,flexShrink:0,position:"absolute",top:0,left:0,backgroundColor:e.primary.light,color:"white",textTransform:"uppercase",...s.type.bodyS,fontWeight:s.weight.medium},"& > .content":{paddingLeft:32,fontWeight:s.weight.medium,"& > .title":{...s.type.h3,paddingBottom:8},"& > .text":{...s.type.bodyS}}}},processes:{"& > .item":{display:"flex",minWidth:0,alignItems:"flex-start",padding:"20px 0px","&:first-of-type":{paddingTop:0},"&:last-of-type":{paddingBottom:0},"& + .item":{borderTop:`2px dotted ${(0,r.B3)(e.grey[300],.9)}`},"& > .icon":{width:84,flexGrow:0,flexShrink:0,marginRight:12,display:"flex",minWidth:0,justifyContent:"center",[t.down("xl")]:{width:58}},"& > .content":{flexGrow:1,minWidth:0,"& > .title":{...s.type.h4,paddingBottom:8,"& > .label":{display:"inline-block",color:e.primary.light,border:`1px solid ${e.primary.light}`,...s.type.bodyXS,textTransform:"uppercase",padding:"2px 4px 2px 5px",borderRadius:s.radius.sm,marginLeft:8,verticalAlign:1}},"& > .text":{...s.type.bodyS},"& > .linkHolder":{paddingTop:4,"& .link":{...s.type.linkS,display:"inline-block",paddingTop:8,paddingBottom:8}}}}},sideImage:{display:"flex",alignItems:"flex-start",minWidth:0,"& > .content":{minWidth:0,flexGrow:1},"& > .image":{marginTop:12,marginLeft:20,color:e.primary.light,width:114,height:398}}}))),Be=({title:e,titleProcesses:t,pricing:s,processes:i,hasImage:r})=>{const{t:n}=(0,o.Bd)("dashboard"),{classes:l}=Ie({hasImage:r});return(0,a.jsxs)("div",{className:l.root,children:[(0,a.jsx)("div",{className:"section",children:(0,a.jsxs)("div",{className:l.sideImage,children:[(0,a.jsxs)("div",{className:"content",children:[(0,a.jsx)(G.A,{className:l.title,children:e}),(0,a.jsx)("div",{className:l.orderedList,children:s.map((({title:e,text:t},s)=>(0,a.jsxs)("div",{className:"item",children:[(0,a.jsx)("div",{className:"counter",children:s+1}),(0,a.jsxs)("div",{className:"content",children:[(0,a.jsx)("div",{className:"title",children:e}),(0,a.jsx)("div",{className:"text",children:t})]})]},s)))})]}),r&&(0,a.jsx)($.A,{variant:"icon_pricing_flow",className:"image"})]})}),(0,a.jsxs)("div",{className:"section",children:[(0,a.jsx)(G.A,{className:l.title,children:t}),(0,a.jsx)("div",{className:l.processes,children:i.map((({title:e,text:t,icon:s,link:i,isNew:r},o)=>(0,a.jsxs)("div",{className:"item",children:[!!s&&(0,a.jsx)("div",{className:"icon",children:s}),(0,a.jsxs)("div",{className:"content",children:[(0,a.jsxs)("div",{className:"title",children:[e," ",r&&(0,a.jsx)("span",{className:"label",children:n("new")})]}),(0,a.jsx)("div",{className:"text",children:t}),!!i&&(0,a.jsx)("div",{className:"linkHolder",children:(0,a.jsx)(d.A,{className:"link",href:i,target:"_blank",rel:"noopener",children:n("readMore")})})]})]},o)))})]})]})},Ee=(0,r.n9)()((({palette:e,tokens:t})=>({processesListRoot:{borderRadius:t.radius.sm,border:`1px solid ${e.grey[300]}`,backgroundColor:"white",padding:24,display:"flex",minWidth:0,flexDirection:"column",gap:24,"& > .group":{"& > .h2":{...t.type.h4,paddingBottom:8}}},processItem:{...t.type.linkS}}))),Te=({title:e,link:t})=>{const{classes:s}=Ee();return(0,a.jsx)(d.A,{href:t,target:"_blank",rel:"noopener",className:s.processItem,children:e})},Oe=({links:e})=>{const{t}=(0,o.Bd)("dashboard"),{classes:s}=Ee(),i=[{title:t("automaticPricing.processes.1.title"),link:e.laser},{title:t("automaticPricing.processes.0.title"),link:e.cnc},{title:t("automaticPricing.processes.2.title"),link:e.tube},{title:t("automaticPricing.processes.3.title"),link:e.bending},{title:t("automaticPricing.processes.4.title"),link:e.surfaceFinish}
1],r=[{title:t("manualPricing.processes.1.title"),link:e.waterjet},{title:t("manualPricing.processes.2.title"),link:e.flame},{title:t("manualPricing.processes.0.title"),link:e.plasma},...e.welding?[{title:t("manualPricing.processes.3.title"),link:e.welding}]:[],...e.punching?[{title:t("manualPricing.processes.4.title"),link:e.punching}]:[]];return(0,a.jsxs)("div",{className:s.processesListRoot,children:[(0,a.jsxs)("div",{className:"group",children:[(0,a.jsx)(G.A,{className:"h2",children:t("dashboard:sidebarProcessLinks.readMoreOfferedProcesses")}),(0,a.jsx)("div",{className:"list",children:i.map((e=>(0,a.jsx)("div",{children:(0,a.jsx)(Te,{...e})},e.title)))})]}),(0,a.jsxs)("div",{className:"group",children:[(0,a.jsx)(G.A,{className:"h2",children:t("dashboard:sidebarProcessLinks.readMoreAdditionalProcesses")}),(0,a.jsx)("div",{className:"list",children:r.map((e=>(0,a.jsx)("div",{children:(0,a.jsx)(Te,{...e})},e.title)))})]})]})},Le=({isLoading:e})=>{const t=!!(0,u.W5)(f.QD),s=(0,L.K6)(),a=(0,L.Yj)(),[i,r]=B((e=>[e.data,e.userId])),[n]=(0,O.ef)((e=>[e.data]));return!s&&(!r||a)&&!e&&(!i?.length&&!n?.length)||t},De=830,Fe=(0,r.n9)()((({palette:e,breakpoints:t,tokens:s})=>({servicesRoot:{paddingTop:48,paddingBottom:48,"& > .header":{textAlign:"center",paddingBottom:56,"& > h1":{paddingBottom:16}},"& > .container":{display:"flex",minWidth:0,[t.down(De)]:{flexDirection:"column"},"& > .sidebar":{width:"35%",minWidth:380,flexGrow:0,flexShrink:0,display:"flex",flexDirection:"column",gap:16,[t.down(De)]:{width:"auto",order:2,marginTop:16}},"& > .main":{marginLeft:40,flexGrow:1,minWidth:0,display:"flex",flexDirection:"column",gap:24,[t.down("xl")]:{marginLeft:24},[t.down(De)]:{marginLeft:0,order:1},"& > .columns":{display:"flex",minWidth:0,marginLeft:-12,marginRight:-12,[t.down("lg")]:{display:"block",margin:0},"& > .col":{display:"flex",minWidth:0,width:"50%",flexGrow:0,flexShrink:0,paddingLeft:12,paddingRight:12,[t.down("lg")]:{padding:0,width:"auto","& + .col":{marginTop:16}}}}}}},buttonbox:{display:"flex",minWidth:0,flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",flexGrow:1,borderRadius:s.radius.sm,border:`1px solid ${e.grey[300]}`,backgroundColor:"white",padding:24,"& > .h2":{fontWeight:s.weight.medium,paddingBottom:20,"& .bold":{fontWeight:s.weight.bold}},"&.gradient":{backgroundImage:"linear-gradient(#DBEDFF 0%, #FFFFFF 60%)",backgroundRepeat:"repeat-x"}},processIcon:{fontSize:44,[t.down("xl")]:{fontSize:38}},linkHolder:{display:"flex",minWidth:0,justifyContent:"center"}}))),Ge=S((0,O.Ng)((()=>{const{t:e,i18n:t}=(0,o.Bd)(["dashboard","translation"]),s=(0,u.W6)(),{classes:r}=Fe(),v=(0,l.A)(),j=(0,c.A)(v.breakpoints.down(De)),k=h.A.parse(s.location.search);(0,b.rN)(e("translation:navigation.dashboard"));const[N,w,C,A,_]=(0,L.tG)((e=>[e?.name,e?.customer_type,e?.sales_user,e?.language,e?.id])),S=(0,L.R3)(),P=(0,i.useRef)(!0),{createOrderCall:R}=(0,T.T0)(),[W,I]=(0,i.useState)(!0),{getOrdersCall:Q,setFilters:H,createDemoOrderCall:z}=(0,O.Mv)(),[K,Y]=(0,O.ef)((e=>[e.data,e.pagination.current_page])),[V,X]=(0,i.useState)(!1),Z=(0,L.Yj)(),{getOrdersCall:ee,setFilters:te}=E(),[se,ae,ie]=B((e=>[e.data,e.pagination.current_page,e.sortBasis,e.sortDirection])),[re,ne]=(0,i.useState)(!1),oe=(0,D.xS)((e=>e?.id)),le=Le({isLoading:!V||!re||S&&!oe}),ce=(0,i.useMemo)((()=>{let e="https://fractory.com/cnc-machining-services/",t="https://fractory.com/laser-cutting-service-uk/",s="https://fractory.com/tube-laser-cutting-services-uk/",a="https://fractory.com/plasma-cutting-service/",i="https://fractory.com/waterjet-cutt
1ing-service/",r="https://fractory.com/flame-cutting/",n="https://fractory.com/metal-bending-service/",o="https://fractory.com/surface-treatment/",l="https://fractory.com/welding-services/",c="https://fractory.com/sheet-metal-punching-service/";switch(A){case"et":e="https://fractory.com/et/cnc-treimine-freesimine/",t="https://fractory.com/et/laserloikus/",s="https://fractory.com/et/toru-laserloikus/",a="https://fractory.com/et/plasmaloikus/",i="https://fractory.com/et/vesiloikus/",r="https://fractory.com/et/gaasiloikus/",n="https://fractory.com/et/metalli-painutamine/",o="https://fractory.com/et/metalli-pinnatootlus-pulbervarvimine/",l="https://fractory.com/et/keevitus-teenus/",c="https://fractory.com/et/metalli-stantsimine/";break;case"fi":e="https://fractory.com/fi/cnc-sorvaus-jyrsinta/",t="https://fractory.com/fi/metallin-laserleikkaus/",s="https://fractory.com/fi/putkilaser/",a="https://fractory.com/fi/plasmaleikkaus/",i="https://fractory.com/fi/vesileikkaus/",r="https://fractory.com/fi/polttoleikkaus/",n="https://fractory.com/fi/metallin-sarmays/",o="https://fractory.com/fi/metallin-pintakasittely-ja-jauhemaalaus/",l="https://fractory.com/fi/hitsaus/",c="https://fractory.com/fi/metallin-lavistys/";break;case"sv":e="https://fractory.com/sv/cnc-frasning/",t="https://fractory.com/sv/laserskarning/",s="https://fractory.com/sv/rorlaserskarning/",a="https://fractory.com/sv/plasmaskarning/",i="https://fractory.com/sv/vattenskarning/",r="https://fractory.com/sv/gasskarning/",n="https://fractory.com/sv/platbockning/",o="https://fractory.com/sv/ytbehandling/",l="https://fractory.com/sv/svetsning/",c="https://fractory.com/sv/stansning-metall/";break;case"fr":e="https://fractory.com/fr/usinage-cnc/",t="https://fractory.com/fr/decoupe-laser/",s="https://fractory.com/fr/decoupe-laser-tube/",a="https://fractory.com/fr/decoupe-plasma/",i="https://fractory.com/fr/decoupe-jet-d-eau/",r="https://fractory.com/fr/oxycoupage/",n="https://fractory.com/fr/pliage-tole/",o="https://fractory.com/fr/traitement-de-surface/",l=null,c=null;break;case"it":e="https://fractory.com/it/lavorazione-cnc/",t="https://fractory.com/it/taglio-laser/",s="https://fractory.com/it/taglio-laser-tubi/",a="https://fractory.com/it/taglio-plasma/",i="https://fractory.com/it/taglio-ad-acqua/",r="https://fractory.com/it/ossitaglio/",n="https://fractory.com/it/piegatura-lamiera/",o="https://fractory.com/it/trattamento-superficiale/",l=null,c=null;break;case"de":e="https://fractory.com/de/cnc-bearbeitung/",t="https://fractory.com/de/laserschneiden/",s="https://fractory.com/de/rohrlaserschneiden/",a="https://fractory.com/de/plasmaschneiden/",i="https://fractory.com/de/wasserstrahlschneiden/",r="https://fractory.com/de/brennschneiden/",n="https://fractory.com/de/biegen/",o="https://fractory.com/de/oberflaechenbehandlung/",l="https://fractory.com/de/schweissen-montage/",c="https://fractory.com/de/stanzen/"}return{cnc:e,laser:t,tube:s,plasma:a,waterjet:i,flame:r,bending:n,surfaceFinish:o,welding:l,punching:c}}),[A]);(0,i.useEffect)((()=>{if(P.current){const e=isNaN(parseInt(k.p??"1"))?1:parseInt(k.p??"1"),t="c"===k.sb?"created_at":"relevance",s=isNaN(parseInt(k.dp??"1"))?1:parseInt(k.dp??"1");te({page:e,sortBasis:t,...Z?{userId:_}:{}}),H({page:s,...Z?{userId:_}:{}}),P.current=!1}}),[Z,k,H,te,_]),(0,i.useEffect)((()=>{re||ee({onFinally:()=>ne(!0)})}),[ee,re,Z]),(0,i.useEffect)((()=>{V||(H({filteredStatuses:[x.eG],sortBasis:"updated_at",perPage:9}),Q({onFinally:()=>X(!0)}))}),[Q,V,H]),(0,i.useEffect)((()=>{const e={...void 0!==ae&&{p:`${ae}`},...void 0!==Y&&{dp:`${Y}`},..."created_at"===ie&&{sb:"c"}};(0,m.A)(e).length&&s.replace({search:h.A.stringify(e)})}),[Y,s,ae,ie]);const de=(0,i.useCallback)((()=>{z({onSuccess:e=>{s.push((0,f.jA)(e.data?.id))}})}),[z,s]);return K&&se?(0,a.jsx)(y.Ay,{children:(0,a.jsxs)("div",{className:r.servicesRoot,children:[le&&(0,a.jsxs)("div",{className:"header",children:[(0,a.jsx)(F.A,{className:"h1",children:`${e("dashboard:welcome")}, ${(0,g.W0)(N).firstName}!`}),(0,a.jsx)(G.A,{className:"h2",children:e("dashboard:letGetBoarded")})]}),(0,a.jsxs)("div",{className:"container",children:[(0,a.jsxs)("div",{className:"sidebar",children:[("BUSINESS"===w||S)&&(0,a.jsx)(We,{appointmentUrl:C?.appointment_url,id:C?.id,name:C?.name,phone:C?.ph
1one,email:C?.email}),(0,a.jsx)(q,{}),(0,a.jsx)(Oe,{links:ce}),(0,a.jsx)("div",{className:r.linkHolder,children:(0,a.jsx)(d.A,{onClick:e=>{e.stopPropagation()},href:(0,f.AH)(t.language),target:"_blank",rel:"noopener",className:"link",children:e("quote.tips")})})]}),(0,a.jsxs)("div",{className:"main",children:[!le&&(0,a.jsx)(J,{onClick:()=>s.push(f.kS),onFiles:e=>{W&&e?.length&&(I(!1),R(true,{onSuccess:({data:{id:t}})=>{s.push((0,f.jA)(t),{files:e})}}))}}),le?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"columns",children:[!j&&(0,a.jsx)("div",{className:"col",children:(0,a.jsxs)("div",{className:r.buttonbox,children:[(0,a.jsx)(G.A,{className:"h2",children:(0,a.jsx)(o.x6,{i18nKey:"dashboard:getStarted",children:(0,a.jsx)("span",{className:"bold"})})}),(0,a.jsx)(M.A,{onClick:()=>s.push(f.kS),children:e("dashboard:getFirstQuote")})]})}),(0,a.jsx)("div",{className:"col",children:(0,a.jsxs)("div",{className:(0,n.A)([r.buttonbox,"gradient"]),children:[(0,a.jsx)(G.A,{className:"h2",children:(0,a.jsx)(o.x6,{i18nKey:"dashboard:takeTour",children:(0,a.jsx)("span",{className:"bold"})})}),(0,a.jsx)(p.A,{variant:"outlined",color:"grey",onClick:de,children:e("dashboard:createDemoOrder")})]})})]}),(0,a.jsx)(U,{}),(0,a.jsx)(Be,{title:(0,a.jsx)(o.x6,{i18nKey:"dashboard:automaticPricing.title",children:(0,a.jsx)("span",{className:"bold"})}),titleProcesses:e("dashboard:automaticPricing.titleProcesses"),pricing:Array.from(Array(4),((e,t)=>t)).map((t=>({title:e(`dashboard:automaticPricing.pricing.${t}.title`),text:e(`dashboard:automaticPricing.pricing.${t}.text`)}))),processes:[{title:e("dashboard:automaticPricing.processes.0.title"),text:e("dashboard:automaticPricing.processes.0.text"),icon:(0,a.jsx)($.A,{variant:"icon_process_cnc",className:r.processIcon}),link:ce.cnc},{title:e("dashboard:automaticPricing.processes.1.title"),text:e("dashboard:automaticPricing.processes.1.text"),icon:(0,a.jsx)($.A,{variant:"icon_process_laser",className:r.processIcon}),link:ce.laser},{title:e("dashboard:automaticPricing.processes.2.title"),text:e("dashboard:automaticPricing.processes.2.text"),icon:(0,a.jsx)($.A,{variant:"icon_process_tube",className:r.processIcon}),link:ce.tube}],hasImage:!0}),"BUSINESS"===w&&(0,a.jsx)(Be,{title:(0,a.jsx)(o.x6,{i18nKey:"dashboard:manualPricing.title",children:(0,a.jsx)("span",{className:"bold"})}),titleProcesses:e("dashboard:manualPricing.titleProcesses"),pricing:Array.from(Array(3),((e,t)=>t)).map((t=>({title:e(`dashboard:manualPricing.pricing.${t}.title`),text:e(`dashboard:manualPricing.pricing.${t}.text`)}))),processes:[{title:e("dashboard:manualPricing.processes.0.title"),text:e("dashboard:manualPricing.processes.0.text"),link:ce.plasma},{title:e("dashboard:manualPricing.processes.1.title"),text:e("dashboard:manualPricing.processes.1.text"),link:ce.waterjet},{title:e("dashboard:manualPricing.processes.2.title"),text:e("dashboard:manualPricing.processes.2.text"),link:ce.flame}]})]}):(0,a.jsx)(Pe,{})]})]})]})}):null})))}}]);

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.