1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7652],{46861:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lang]/app/faq",function(){return s(539)}])},539:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return _}});var i=s(47568),a=s(51438),n=s(52951),c=s(88029),l=s(5950),r=s(97582),o=s(85893),d=s(67294),h=s(9008),u=s.n(h),m=(s(41664),s(14364)),g=s(29473),f=s(37742),v=s(30381),k=s.n(v),p=s(57279),j=s.n(p),x=s(47565),w=s(21876).Buffer,_=function(e){(0,c.Z)(s,e);var t=(0,l.Z)(s);function s(e){var i;return(0,a.Z)(this,s),(i=t.call(this,e)).state={typeAcc:null,loading:!1,loadingImg:!1,showClose:!1,showDelete:!1,sureDelete:null,idImg:null,tmp_answer:{},ticket:[],panel:null,ticketsLoaded:!1},i.djsConfig={addRemoveLinks:!0,autoProcessQueue:!1,acceptedFiles:"image/jpeg, image/png",dictDefaultMessage:"Add an image"},i.componentConfig={postUrl:"no-url"},i.callbackArray=[function(){return console.log("")},function(){return console.log("")}],i.success=function(e){return console.log("uploaded")},i.removedfile=function(e){return console.log("removing...")},i.callback=function(e){return i.uploadImage(e)},i}return(0,n.Z)(s,[{key:"componentDidMount",value:function(){var e=this;return(0,i.Z)((function(){var t;return(0,r.__generator)(this,(function(s){switch(s.label){case 0:return e.mountPage=!0,[4,(0,m.ih)(e.props.lang)];case 1:return t=s.sent(),e.mountPage&&(document.addEventListener("mousedown",e.handleClickOutside.bind(e)),e.setState({typeAcc:t.type}),(0,f.S)("visit_faq_page",{type:"overview",account:t.type}),"tickets"===(window&&window.location?window.location.hash.replace("#",""):null)&&e.setState({panel:2}),e.getTicket()),[2]}}))}))()}},{key:"componentWillUnmount",value:function(){this.mountPage=!1,document.removeEventListener("mousedown",this.handleClickOutside.bind(this))}},{key:"handleClickOutside",value:function(e){"modal-filtre-open-multi-id"!==e.srcElement.id&&null!==this.state.showType&&this.setState({showType:null})}},{key:"uploadImage",value:function(e){this.setState({loadingImg:!0});var t=function(e){var t=new FileReader;t.onload=function(){var e=this,s=t.result;new w(s.replace(/^data:image\/\w+;base64,/,""),"base64");console.log("sending raw img"),g.h.post("/upload_img_ticket",{image64:s},{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token")}}).then((function(t){e.handleAnswer(e.state.idImg,"img",t.data.data),e.setState({loadingImg:!1})})).catch((function(t){e.setState({loadingImg:!1})}))}.bind(this),t.readAsDataURL(e)}.bind(this);t(e)}},{key:"getTicket",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this;g.h.get("/get_user_ticket",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token"),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone}}).then((function(s){var i=t.state.ticket;i=s.data.data,null!==e&&i.forEach((function(t,s){t.id_===e&&(i[s].show=!0)})),t.setState({ticket:i,ticketsLoaded:!0});var a=document.getElementById("content-right");a&&a.scrollTo(0,0)})).catch((function(e){console.log(e)}))}},{key:"createTicket",value:function(){var e=this;g.h.get("/create_new_ticket",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token"),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone}}).then((function(t){var s=e.state.ticket;s.push(t.data.data),e.setState({ticket:s})})).catch((function(e){console.log(e)}))}},{key:"deleteTicket",value:function(e){var t=this;null===this.state.sureDelete||this.state.sureDelete!==e?this.setState({sureDelete:e}):e===this.state.sureDelete&&g.h.get("/delete_user_ticket",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token"),id:e}}).then((function(e){t.setState({sureDelete:null}),t.getTicket()})).catch((function(e){console.log(e)}))}},{key:"sawTicket",value:function(e){g.h.get("/msg_saw_user_ticket",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token"),id:e}}).then((function(e){})).catch((function(e){console.log(e)}))}},{key:"sendAnswer",value:function(e){var t=this,s=this.state.tmp_answer;s[e].content.length<2?(0,x.Z)("ticket_message_required","error",this.props.lang,1e3):g.h.post("/add_answer_user_ticket",{rep:s[e],id:e},{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token")}}).then((function(i){delete s[e],t.setState({tmp_answer:s}),t.getTicket(e)})).catch((function(e){console.log(e)}))}},{key:"dateF",value:function(e){return k()(e,"YYYY-MM-DD HH:mm").format("MMMM Do YYYY, HH:mm")}},{key:"handleAnswer",value:function(e,t,s){var i=this.state.tmp_answer;void 0===i[e]&&(i[e]={date:"",img:[],content:"",user:!0}),"content"===t&&(i[e].content=s),"img"===t&&i[e].img.push(s),"imagedel"===t&&i[e].img.splice(s,1),this.setState({tmp_answer:i})}},{key:"handleTicket",value:function(e,t){var s=this,i=this.state.ticket;
1i.forEach((function(i){i.id_===e&&(i.show=t,t&&!1===i.user_saw_last&&(i.user_saw_last=!0,s.sawTicket(e)))})),this.setState({ticket:i})}},{key:"render",value:function(){var e=this,t=this.state.ticket,s=this.state.tmp_answer,i=this.componentConfig,a=this.djsConfig,n={init:function(t){return e.dropzone=t},drop:this.callbackArray,addedfile:this.callback,success:this.success,removedfile:this.removedfile},c=t.filter((function(e){return!e.closed&&!e.deleted&&!1===e.user_saw_last})).length;return(0,o.jsxs)("div",{className:"container-withbg-list",style:{overflowX:"hidden"},children:[(0,o.jsx)(u(),{children:(0,o.jsx)("title",{children:"Omniscent FAQ"})}),(0,o.jsx)("div",{className:"title-top-list",style:{marginBottom:20},children:"FAQ & Support"}),(0,o.jsxs)("div",{className:"faq-cta-cards",children:[(0,o.jsxs)("a",{href:"https://www.notion.so/FAQ-Omniscent-27d37764a4cb4b078cae89c2e71181e6",target:"_blank",rel:"noreferrer",className:"faq-cta-card clean-a",children:[(0,o.jsx)("div",{className:"faq-cta-card-icon-wrap",children:(0,o.jsxs)("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none",stroke:"#4184FC",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("circle",{cx:"12",cy:"12",r:"9"}
1),(0,o.jsx)("path",{d:"M9.879 8.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.25"}),(0,o.jsx)("path",{d:"M12 17.25h.008v.008H12v-.008Z"})]})}),(0,o.jsx)("div",{className:"faq-cta-card-title",children:"FAQ"}),(0,o.jsx)("div",{className:"faq-cta-card-desc",children:"Browse answers to common questions"}),(0,o.jsxs)("div",{className:"faq-cta-card-link",children:["Open FAQ",(0,o.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4184FC",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,o.jsx)("path",{d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})})]})]}),(0,o.jsxs)("div",{className:"faq-cta-card transition-200"+(2===this.state.panel?" faq-cta-card-active":""),onClick:function(){e.setState({panel:2}),setTimeout(function(){this.setState({r:1})}.bind(e),20)},children:[c>0?(0,o.jsx)("span",{className:"faq-unseen-badge faq-cta-card-badge",children:c}):null,(0,o.jsx)("div",{className:"faq-cta-card-icon-wrap",children:(0,o.jsx)("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none",stroke:"#4184FC",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,o.jsx)("path",{d:"M9.35 14.65a3.75 3.75 0 0 1 0-5.3m5.3 0a3.75 3.75 0 0 1 0 5.3m-7.43 2.12a6.75 6.75 0 0 1 0-9.54m9.54 0a6.75 6.75 0 0 1 0 9.54M5.1 18.9c-3.8-3.81-3.8-9.98 0-13.79 3.81-3.8 9.98-3.8 13.79 0 3.8 3.81 3.8 9.98 0 13.79-3.81 3.8-9.98 3.8-13.79 0Z"})})}),(0,o.jsx)("div",{className:"faq-cta-card-title",children:"Report an issue"}),(0,o.jsx)("div",{className:"faq-cta-card-desc",children:"Get help directly from the Omniscent team"}),(0,o.jsx)("div",{className:"faq-cta-card-link",children:"Open tickets \u2192"})]})]}),2===this.state.panel?(0,o.jsx)("div",{className:"faq-panel",children:this.state.ticketsLoaded?(0,o.jsxs)("div",{children:[0===t.length?(0,o.jsxs)("div",{className:"faq-issue-empty",children:[(0,o.jsx)("img",{alt:"",src:"/icn_feedback.png",style:{height:34,opacity:.22}}),(0,o.jsx)("div",{className:"faq-issue-empty-title",children:"No issues reported yet"}),(0,o.jsx)("div",{className:"faq-issue-empty-desc",children:"Open a ticket if you need help from the Omniscent team."}),(0,o.jsx)("div",{className:"faq-issue-new-btn transition-200",onClick:function(){return e.createTicket()},children:"Open new issue"})]}):(0,o.jsx)("div",{children:t.map((function(t,c){return t.closed&&!e.state.showClose||t.deleted&&!e.state.showDelete?null:(0,o.jsxs)("div",{className:"white-area-content faq-accordion-item",style:{paddingBottom:t.show?20:15},children:[(0,o.jsxs)("div",{className:"faq-ticket-header",onClick:function(){return e.handleTicket(t.id_,!t.show)},children:[(0,o.jsxs)("div",{className:"faq-ticket-header-left",children:[(0,o.jsxs)("div",{className:"faq-ticket-title",children:["Issue #",parseInt(t.id_)+1]}),(0,o.jsxs)("div",{className:"faq-ticket-date",children:["Opened ",e.dateF(t.date)]})]}),(0,o.jsxs)("div",{className:"faq-ticket-header-right",children:[!0===t.user_saw_last?null:(0,o.jsx)("span",{className:"ticket-faq-unseen",children:"New message"}),t.messages.length>0?(0,o.jsxs)("div",{className:"ticket-faq-info noselect",children:["Last msg. ",t.messages[t.messages.length-1].date]}):null,t.deleted?(0,o.jsx)("div",{className:"ticket-faq-deleted noselect",children:"Archive"}):(0,o.jsx)("div",{className:t.closed?"ticket-faq-closed noselect":"ticket-faq-open noselect",children:t.closed?"closed":"open"}),(0,o.jsx)("div",{className:"faq-ticket-chevron transition-300"+(t.show?" faq-ticket-chevron-open":""),children:(0,o.jsx)("img",{alt:"",src:"/arrow.png",style:{height:20}})})]})]}),t.show?(0,o.jsxs)("div",{children:[t.messages.length>0?(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:"white-area-content-splitter"}),(0,o.jsx)("div",{className:"faq-message-thread",children:t.messages.map((function(t,s){return(0,o.jsxs)("div",{className:t.user?"msg-tickets-user":"msg-tickets-admin",children:[(0,o.jsx)("div",{className:"faq-msg-sender",children:t.user?"You":"Omniscent team"}),(0,o.jsxs)("div",{className:t.user?"msg-tickets-user-unique faq-bubble":"msg-tickets-admin-unique faq-bubble",children:[t.content,t.img.length>0?(0,o.jsx)("div",{className:"list-img-message-tickets",children:t.img.map((function(e,t){return(0,o.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",className:"clean-a",children:(0,o.jsx)("div",{className:"list-img-message-tickets-u",children:(0,o.jsx)("img",{alt:"",className:"list-img-message-tickets-img",src:e})})},t+"-img")}))}):null]}),(0,o.jsx)("div",{className:"message-info-date",children:e.dateF(t.date)})]},s+"-msg-"+c)}))})]}):null,(0,o.jsxs)("div",{className:"faq-reply-section",children:[(0,o.jsx)("textarea",{className:"faq-reply-input",placeholder:0===t.messages.length?"Describe your issue...":"Write a reply...",rows:"3",value:s[t.id_]?s[t.id_].content:"",onChange:function(s){return e.handleAnswer(t.id_,"content",s.target.value)}}),(0,o.jsxs)("div",{className:"faq-reply-footer",children:[(0,o.jsxs)("div",{className:"faq-reply-attach",children:[(0,o.jsxs)("div",{onClick:function(){return e.setState({idImg:t.id_})},style:{position:"relative"},children:[(0,o.jsx)(j(),{config:i,eventHandlers:n,djsConfig:a}),e.state.loadingImg?(0,o.jsx)("div",{style:{position:"absolute",top:5,left
1:88,color:"green",fontFamily:"SPLight",fontSize:12},children:"Uploading..."}):null]}),s[t.id_]&&s[t.id_].img.length>0?(0,o.jsx)("div",{className:"list-img-message-tickets",style:{marginTop:8},children:s[t.id_].img.map((function(s,i){return(0,o.jsxs)("div",{className:"list-img-message-tickets-u",children:[(0,o.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",className:"clean-a",children:(0,o.jsx)("img",{alt:"",className:"list-img-message-tickets-img",src:s})}),(0,o.jsx)("div",{className:"list-img-message-tickets-u-hover",onClick:function(){return e.handleAnswer(t.id_,"imagedel",i)},children:(0,o.jsx)("img",{alt:"",src:"/close_w.svg",className:"center-absolute",style:{height:12}})})]},"tmp-img-"+i)}))}):null]}),(0,o.jsxs)("div",{className:"faq-reply-send transition-200",onClick:function(){return e.sendAnswer(t.id_)},children:[(0,o.jsx)("img",{alt:"",src:"/send.png",style:{height:14,marginRight:6,filter:"brightness(0) invert(1)"}}),"Send"]})]}),(0,o.jsx)("div",{className:"faq-reply-archive",children:(0,o.jsxs)("div",{className:"faq-archive-btn transition-200"+(e.state.sureDelete===t.id_?" faq-archive-btn-confirm":""),onClick:function(){return e.deleteTicket(t.id_)},children:[(0,o.jsx)("img",{alt:"",src:"/archive.png",style:{height:13,marginRight:5,marginTop:-1,opacity:.5}}),e.state.sureDelete===t.id_?"Confirm archive":"Archive issue"]})})]})]}):null]},"ticket"+c)}))}),(0,o.jsxs)("div",{className:"faq-issue-footer",children:[t.length>0?(0,o.jsx)("div",{className:"faq-issue-new-btn transition-200",onClick:function(){return e.createTicket()},children:"+ Open new issue"}):null,(0,o.jsxs)("div",{className:"faq-show-closed transition-100",onClick:function(){return e.setState({showClose:!e.state.showClose,showDelete:!e.state.showDelete})},children:[this.state.showClose?"Hide":"Show"," closed & archived"]})]})]}):(0,o.jsx)("div",{children:[0,1].map((function(e){return(0,o.jsx)("div",{className:"white-area-content faq-accordion-item",children:(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:"skeleton-block",style:{height:15,width:120,borderRadius:4}}),(0,o.jsx)("div",{className:"skeleton-block",style:{height:13,width:200,borderRadius:4,marginTop:7}})]}),(0,o.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,o.jsx)("div",{className:"skeleton-block",style:{height:20,width:44,borderRadius:3}}),(0,o.jsx)("div",{className:"skeleton-block",style:{height:18,width:18,borderRadius:3}})]})]})},e)}))})}):null]})}}]),s}(d.Component)}},function(e){e.O(0,[4885,7279,9774,2888,179],(function(){return t=46861,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.