1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3361],{21028:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/support/[...args]",function(){return n(34952)}])},34952:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>ek,default:()=>eS});var i=n(18153),s=n(27084),a=n(14232),r=n(77328),o=n.n(r),l=n(57396),c=n(18242),p=n(18872),u=n(48011),d=n(95233),h=n(48230),g=n.n(h);function f(e){return e.isExternalLink?(0,i.Y)("a",{...e}):(0,i.Y)(g(),{...e})}var m=n(85639),x={name:"0",styles:""},v={name:"3367dg",styles:"margin-top:16px;display:flex;align-items:center;border-radius:8px;background-color:#FFFFFF1A;padding:16px 20px;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;:first-of-type{margin-top:32px;}:hover{background-color:#FFFFFF3D;}"},y={name:"1djz3cj",styles:"flex-grow:1;font-size:16px;line-height:150%;font-weight:500"},P={name:"1qyayf",styles:"margin-top:16px;height:1px;background-color:#FFFFFF1A"},b={name:"1o4bvu6",styles:"margin-top:16px;display:flex;align-items:center;border-radius:8px;background-color:#FFFFFF1A;padding:16px 20px;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;:hover{background-color:#FFFFFF3D;}"},k={name:"1djz3cj",styles:"flex-grow:1;font-size:16px;line-height:150%;font-weight:500"},S={name:"1lk4f9x",styles:"margin-top:16px;font-size:14px;line-height:20px;font-weight:500"};let F=(0,u.Ng)(e=>({}),{})(function(e){var t,n,s,a,r;let{serverSideProps:o,...l}=e;return(0,i.FD)("div",{css:x,children:[null==(n=o.supportPage)||null==(t=n.content)?void 0:t.links.map(e=>(0,i.FD)(f,{className:"link-button",css:v,href:e.link,target:e.openInNewTab?"_blank":void 0,isExternalLink:e.isExternalLink,children:[(0,i.Y)("p",{css:y,children:e.name}),(0,i.Y)(m.A,{size:20})]})),(null==(a=o.supportPage)||null==(s=a.content)?void 0:s.showPrevRequests)&&(0,i.FD)(i.FK,{children:[(0,i.Y)("div",{css:P}),(null==(r=o.auth)?void 0:r.isAuth)?(0,i.Y)(i.FK,{children:(0,i.FD)(g(),{className:"link-button",css:b,href:"/support/requests/list",children:[(0,i.Y)("p",{css:k,children:"Open my previous requests"}),(0,i.Y)(m.A,{size:20})]})}):(0,i.Y)(i.FK,{children:(0,i.FD)("p",{css:S,children:[(0,i.Y)("a",{href:"/",children:"Log in"})," to view your support request history and access more helpful information."]})})]})]})});var A=n(38993),Y=n(8593);function w(e){let t=[];return e.map(e=>{switch(e){case d.fs.b1:t.push({fontSize:"16px",lineHeight:"150%",fontWeight:"500"});break;case d.fs.b2:t.push({fontSize:"14px",lineHeight:"20px",fontWeight:"500"});break;case d.fs.b3:t.push({fontSize:"12px",lineHeight:"150%",fontWeight:"500"});break;case d.fs.h1:t.push({fontSize:"56px",lineHeight:"120%",fontWeight:"700"});break;case d.fs.h2:t.push({fontSize:"42px",lineHeight:"120%",fontWeight:"700"});break;case d.fs.h3:t.push({fontSize:"32px",lineHeight:"120%",fontWeight:"700"});break;case d.fs.h4:t.push({fontSize:"24px",lineHeight:"120%",fontWeight:"700"});break;case d.fs.h5:t.push({fontSize:"19px",lineHeight:"120%",fontWeight:"700"});break;case d.fs.h6:t.push({fontSize:"16px",lineHeight:"150%",fontWeight:"700"});break;case d.fs.xl:t.push({fontSize:"72px",lineHeight:"120%",fontWeight:"700"});break;case d.fs.l:t.push({fontSize:"13px",lineHeight:"21px",letterSpacing:"0.52px",fontWeight:"600",textTransform:"uppercase"});break;case d.fs.textSecondary:t.push({color:"#ffffffb3"});break;case d.fs.underlined:t.push({textDecorationLine:"underline"});break;case d.fs.bold:t.push({fontWeight:"700"});break;case d.fs.bullet:t.push([{position:"relative",paddingLeft:"20px"},(0,A.AH)("&:before{position:absolute;content:'';width:8px;left:0;top:calc(50% - 4px);height:8px;border-radius:100%;background-color:",Y.A.textPrimary,";}","")])}}),t.push({lineHeight:"175%"}),t}var _=n(54587),T=n.n(_),z={name:"1infa4c",styles:"margin-left:auto;margin-right:auto"};function I(e){let{block:t}=e;switch(t.type){case d.Z0.Block:return(0,i.Y)("div",{css:w(t.content.style),children:t.content.children.map(e=>(0,i.Y)(I,{block:e}))});case d.Z0.Image:return(0,i.Y)(T(),{width:t.content.maxWidth,height:t.content.maxHeight,src:t.content.link,alt:"_"});case d.Z0.Link:return(0,i.Y)("a",{href:t.content.link,css:w(t.content.style),children:t.content.text});case d.Z0.Text:return(0,i.Y)(i.FK,{children:t.content.text.split("\n").map(e=>e?(0,i.Y)("span",{css:[w(t.content.style),"",""],children:e}):(0,i.Y)("br",{}))});case d.Z0.Br:return(0,i.Y)("br",{});case d.Z0.Video:var n,s,a;return(0,i.Y)("video",{css:z,muted:!0,loop:!0,autoPlay:!0,width:null==(n=t.content)?void 0:n.maxWidth,height:null==(s=t.content)?void 0:s.maxHeight,children:(0,i.Y)("source",{src:null==(a=t.content)?void 0:a.link,type:"video/mp4"})})}}function E(e){let{blocks:t,...n}=e;return(0,i.Y)("div",{...n,children:t.map(e=>(0,i.Y)(I,{block:e}))})}var R=n(79144),L=n(17597),U=n(22377),H=n(99045),O=n(12834),q=n(50195),C=n(34827);async function D(e){let{userId:t}=e;try{return await (0,C.A)({url:"c/sup/req-list/".concat(t),method:"DELETE",isApi:!0})}catch(e){return e}}var N=n(83415),B=n(70503),W=n(89099),j=n(29579),X=n(46197),K=n(96641),Z=n(29977),M=n(19537),G=n(76551),V=n(99742),J={name:"1lw3ul3",styles:"margin-top:40px"},Q={name:"0",styles:""},$={name:"1iifxo1",styles:"font-size:13px;line-height:21px;letter-spacing:0.52px;font-weight:600;text-transform:uppercase"},ee={name:"hkh81z",styles:"margin-top:8px"},et={name:"3hgi0y",styles:"margin-top:32px"},en={name:"10t03rk",styles:"margin-top:32px;font-size:13px;line-height:21px;letter-spacing:0.52px;font-weight:600;text-transform:uppercase"},ei={name:"1kkl3c",styles:"margin-top:8px;max-height:300px;border-radius:8px;background-color:#FFFFFF1A"},es={name:"gugw0k",styles:"position:relative;display:flex;align-items:center;overflow:hidden;padding-left:12px;padding-right:12px"},ea={name:"1y3l4vj",styles:"position:relative;height:30px;width:30px;flex-shrink:0"},er={name:"ojznio",styles:"margin-left:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:150%;font-weight:500"},eo={name:"xgfq9c",styles:"position:absolute;right:8px;top:0px"},el={name:"1qgt5sl",styles:"margin-top:8px;display:flex;width:100%;align-items:center;justify-content:center"},ec={name:"3rex1q",styles:"margin-left:6px;color:inherit"},ep={name:"1rn38di",styles:"margin-top:15px;font-size:14px;line-height:20px;font-weight:500;--tw-text-opacity:1;color:rgb(209 58 58 / var(--tw-text-opacity))"},eu={name:"1mc3rfj",styles:"margin-top:42px;width:100%;text-align:center"},ed={name:"eivff4",styles:"display:none"};let eh={openPopup:H.P,callAlertAction:M.H},eg=(0,u.Ng)(e=>({}),eh)(function(e){var t,n,s,r,o,l,c,p,u;let{serverSideProps:d,openPopup:h,callAlertAction:g,...f}=e,[m,x]=(0,a.useState)(""),[v,y]=(0,a.useState)([]),[P,b]=(0,a.useState)(""),[k,S]=(0,a.useState)(null==(n=d.supportPage)||null==(t=n.content)?void 0:t.isHidden),[F,A]=(0,a.useState)(!1),[Y,w]=(0,a.useState)(""),[_,T]=(0,a.useState)(""),[z,I]=(0,a.useState)(""),E=(0,a.useRef)(null),H=(0,a.useRef)(null),M=(0,W.useRouter)(),eh=async()=>
1{if(P.trim().length>20){var e,t,n,i,s,a,r,o,l,c,p,u;if(A(!0),w(""),null==(e=d.auth)?void 0:e.isAuth)try{let e=await (0,U.A)({idToken:null==(t=d.auth)?void 0:t.accessToken,url:"".concat(V.env.NEXT_PUBLIC_SHAPES_SUPPORT_API_URL,"/user/create-request"),isOutside:!0,method:"POST",data:{title:null==(i=d.supportPage)||null==(n=i.content)?void 0:n.titleForRequest,breadcrumbs:null==(s=d.supportPage)?void 0:s.breadcrumbs.map(e=>e.title).join(" > "),message:P.trim()}}),c=e.data.messageId,p=e.data.requestId,u=[];_&&"000"!==_&&u.push((0,U.A)({idToken:null==(o=d.auth)?void 0:o.accessToken,url:"".concat(V.env.NEXT_PUBLIC_SHAPES_SUPPORT_API_URL,"/user/add-attachment"),headers:{attachmenttype:"spaceId",messageid:c},isOutside:!0,method:"POST",data:{spaceId:_}})),z&&u.push((0,U.A)({idToken:null==(l=d.auth)?void 0:l.accessToken,url:"".concat(V.env.NEXT_PUBLIC_SHAPES_SUPPORT_API_URL,"/user/add-attachment"),headers:{attachmenttype:"resourceId",messageid:c},isOutside:!0,method:"POST",data:{resourceId:z}})),v.forEach(e=>{var t;let n=new FormData;n.append("file",e),u.push((0,U.A)({idToken:null==(t=d.auth)?void 0:t.accessToken,url:"".concat(V.env.NEXT_PUBLIC_SHAPES_SUPPORT_API_URL,"/user/add-attachment"),headers:{attachmenttype:"file",messageid:c},isOutside:!0,noContentType:!0,method:"POST",stringifyBody:!1,data:n}))}),await Promise.all(u),await D({userId:null==(r=d.user)||null==(a=r.data)?void 0:a.userId}),await M.push("/support/requests/".concat(p))}catch(e){w("Unable to send a request")}else if((0,X.B9)(m))try{let e=await (0,C.A)({url:"".concat(V.env.NEXT_PUBLIC_SHAPES_SUPPORT_API_URL,"/user/create-request-ua"),isOutside:!0,method:"POST",data:{email:m,title:null==(p=d.supportPage)||null==(c=p.content)?void 0:c.titleForRequest,breadcrumbs:null==(u=d.supportPage)?void 0:u.breadcrumbs.map(e=>e.title).join(" > "),message:P.trim()}}),t=e.data.requestId,n=e.data.messageId,i=e.data.userId,s=[];v.forEach(e=>{var t;let a=new FormData;a.append("file",e),s.push((0,U.A)({idToken:null==(t=d.auth)?void 0:t.accessToken,url:"".concat(V.env.NEXT_PUBLIC_SHAPES_SUPPORT_API_URL,"/user/add-attachment-ua"),headers:{attachmenttype:"file",messageid:n,userid:i},isOutside:!0,noContentType:!0,method:"POST",stringifyBody:!1,data:a}))}),await Promise.all(s),await M.push("/support/requests/".concat(t,"?as=").concat(i))}catch(e){w("Unable to send a request")}else w("Please enter valid email")}else w("Tell us more about your problem (more then 20 symbols)");A(!1)};return(0,i.FD)("div",{css:J,...f,children:[k&&(0,i.Y)(L.A,{onClick:()=>{S(!1)},type:"secondary",size:"m",children:"Get help from support"}),!k&&(0,i.Y)(i.FK,{children:(0,i.FD)("div",{css:Q,children:[!(null==(s=d.auth)?void 0:s.isAuth)&&(0,i.FD)(i.FK,{children:[(0,i.Y)("p",{css:$,children:"Your email used in ShapesXR (or contact email)"}),(0,i.Y)(j.A,{css:ee,value:m,onChange:e=>{x(e),w("")}})]}),(null==(o=d.supportPage)||null==(r=o.content)?void 0:r.isSpaceId)&&(null==(l=d.auth)?void 0:l.isAuth)&&(0,i.Y)(N.A,{serverSideProps:d,openPopup:h,onSpaceIdChange:T}),(null==(p=d.supportPage)||null==(c=p.content)?void 0:c.isResourceId)&&(null==(u=d.auth)?void 0:u.isAuth)&&(0,i.Y)(B.A,{css:et,serverSideProps:d,onResourceIdChanged:I}),(0,i.Y)("p",{css:en,children:"DESCRIBE YOUR PROBLEM"}),(0,i.Y)(R.A,{css:["margin-top:8px;",(0,G.A)(["@media (min-height: 780px)"])({height:[54,200]}),"",""],resize:"none",value:P,onChange:e=>{b(e),w("")}}),v.length>0&&(0,i.Y)("div",{css:ei,children:v.map((e,t)=>(0,i.FD)("div",{css:es,children:[(0,i.Y)("div",{css:ea,children:(0,i.Y)(O.Ay,{format:(e=>{let t=e.split(".");return t.length>1?t[t.length-1]:""})(e.name)})}),(0,i.Y)("p",{css:er,children:e.name}),(0,i.Y)(L.A,{css:eo,round:!0,onClick:()=>{y(v.filter((e,n)=>n!==t))},type:"secondary_text",children:(0,i.Y)(K.A,{size:18})})]}))}),(0,i.FD)(L.A,{css:el,onClick:()=>{E.current.click()},type:"secondary",size:"m",children:[(0,i.Y)(q.A,{size:20}),(0,i.Y)("p",{css:ec,children:"Attach files"})]}),Y&&(0,i.Y)("p",{css:ep,children:Y}),(0,i.Y)(L.A,{loading:F,onClick:eh,css:eu,size:"l",children:"Send a request"})]})}),(0,i.Y)("form",{css:ed,ref:H,onChange:()=>{let e=[],t=!1;for(let n=0;n<E.current.files.length;n++)1024*Z.wx*1024<E.current.files[n].size?t=!0:e.push(E.current.files[n]);t&&g({type:"red",title:"Maximum size of file is ".concat(Z.wx,"MB")}),y([...v,...e]),E.current.files=new DataTransfer().files},children:(0,i.Y)("input",{type:"file",multiple:!0,ref:E})})]})});var ef=n(8774),em={name:"1hu2dfx",styles:"margin-top:16px;font-size:32px;line-height:120%;font-weight:700"},ex={name:"yz1nei",styles:"margin-top:16px"},ev={name:"yz1nei",styles:"margin-top:16px"},ey={name:"1lw3ul3",styles:"margin-top:40px"};let eP=(0,u.Ng)(e=>({}),{})(function(e){var t,n,s,a,r,o,l,c,p,u;let{serverSideProps:h,...g}=e;return(0,i.FD)("div",{...g,children:[(0,i.Y)("h1",{css:em,children:null==(t=h.supportPage)?void 0:t.t
1itle}),(null==(s=h.supportPage)||null==(n=s.breadcrumbs)?void 0:n.length)>1&&(0,i.Y)(ef.A,{breadcrumbs:null==(a=h.supportPage)?void 0:a.breadcrumbs,css:ex}),(null==(r=h.supportPage)?void 0:r.description)&&(0,i.Y)(E,{css:ev,blocks:null==(o=h.supportPage)?void 0:o.description}),(null==(l=h.supportPage)?void 0:l.pageType)===d.fA.ListOfLinks&&(0,i.Y)(F,{serverSideProps:h}),(null==(c=h.supportPage)?void 0:c.pageType)===d.fA.Info&&(null==(p=h.supportPage.content)?void 0:p.blocks)&&(0,i.Y)(E,{css:ey,blocks:h.supportPage.content.blocks}),(null==(u=h.supportPage)?void 0:u.pageType)===d.fA.SupportRequest&&(0,i.Y)(eg,{serverSideProps:h})]})});var eb=n(87494),ek=!0;function eS(e){var t,n;let{serverSideProps:r}=e;return((0,a.useEffect)(()=>{console.info(r.supportPage)}),r.supportPage)?(0,i.FD)(i.FK,{children:[(0,i.Y)(o(),{children:(0,i.Y)("title",{children:"".concat(r.supportPage.title," - ShapesXR support")})}),(0,i.Y)(l.A,{allowUnauth:!0,serverSideProps:r,children:(0,i.Y)(eb.A,{children:(0,i.Y)(c.A,{serverSideProps:r,isSupportMenu:!0,children:(0,i.Y)(p.A,{children:(0,i.Y)(eP,{serverSideProps:r})})})})})]}):(0,i.Y)(s.A,{provideEmail:!1,title:"Error 404: Page Not Found",text:"Unfortunately, the page you are looking for does not exist. It might have been moved, deleted, or the URL could be incorrect. Please check the URL and try again.",goHome:null==(t=r.auth)?void 0:t.isAuth,goLogin:!(null==(n=r.auth)?void 0:n.isAuth)})}}},e=>{e.O(0,[7396,6548,5683,636,6593,8792],()=>e(e.s=21028)),_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.