1"use strict";(self.webpackChunkmy_gatsby_site=self.webpackChunkmy_gatsby_site||[]).push([[1399],{966:function(e,t,n){var i=n(6540),r=n(8007),a=n(1326);t.A=e=>{let{children:t,currentStepId:n,onBack:o,showProgress:l=!0,currentStepNumber:s=1,totalSteps:c=8,title:u,showBackButton:m=!0}=e;const d=Array.from({length:c},(e,t)=>({number:t+1,isComplete:t+1<s,isCurrent:t+1===s}));return i.createElement(a.A,{native:!0},i.createElement("div",{className:"interview-layout-wrapper"},i.createElement("div",{className:"interview-container"},l&&i.createElement("div",{className:"interview-progress-section"},i.createElement("div",{className:"interview-steps-container"},d.map((e,t)=>i.createElement(i.Fragment,{key:e.number},i.createElement("div",{className:`interview-step-item ${e.isComplete?"interview-step-complete":""} ${e.isCurrent?"interview-step-current":""}`},i.createElement("div",{className:"interview-step-circle"},e.isComplete?"â":e.number),i.createElement("div",{className:"interview-step-label"},"Step ",e.number)),t<d.length-1&&i.createElement("div",{className:"interview-step-line "+(e.isComplete?"interview-step-line-complete":"")}))))),i.createElement("div",{className:"interview-main-content"},i.createElement("div",{className:"interview-content-card"},m&&s>1&&i.createElement("button",{className:"interview-back-button",onClick:()=>{o?o():(0,r.navigate)(-1)},type:"button"},i.createElement("span",{className:"interview-back-icon"},"â"),"Back"),u&&i.createElement("div",{className:"interview-page-header"},i.createElement("h2",{className:"interview-page-title"},u)),i.createElement("div",{className:"interview-page-content"},t))))))}},2852:function(e,t,n){n.d(t,{DA:function(){return r},EY:function(){return s},fp:function(){return o},nL:function(){return l},yX:function(){return a}});const i="patentpc_interview_data",r=(e,t)=>{try{const n=a();return n[e]={...t,timestamp:(new Date).toISOString()},n.lastUpdated=(new Date).toISOString(),localStorage.setItem(i,JSON.stringify(n)),!0}catch(n){return console.error("Error saving interview data:",n),!1}},a=()=>{try{const e=localStorage.getItem(i);if(!e)return{};const t=JSON.parse(e);if(t.lastUpdated){const e=new Date(t.lastUpdated);if(new Date-e>864e5)return l(),{}}return t}catch(e){return console.error("Error reading interview data:",e),{}}},o=e=>a()[e]||{},l=()=>{try{return localStorage.removeItem(i),!0}catch(e){return console.error("Error clearing interview data:",e),!1}},s=e=>{const t=a();t.currentStep=e,t.lastUpdated=(new Date).toISOString(),localStorage.setItem(i,JSON.stringify(t))}},2873:function(e,t,n){n.d(t,{Q:function(){return i},W:function(){return r}});const i=async e=>{const t=new FormData;t.append("files",e);const n=await fetch("https://api.trustyip.com/upload",{method:"POST",body:t});if(!n.ok)throw new Error("File upload failed");return n.json()},r=async e=>{const t=await fetch("https://api.trustyip.com/quiz-questions/intake/add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw new Error("Submitting interview data failed");return t.json()}},3681:function(e,t,n){n.d(t,{Q$:function(){return c},WC:function(){return a},YP:function(){return i},Yk:function(){return l},fq:function(){return s},kR:function(){return r}});const i={INTRO:{id:"intro",path:"/interview",title:"Welcome",stepNumber:1},MATTER_GUIDE:{id:"matter-guide",path:"/interview/matter-guide",title:"Guidance",stepNumber:2},PROVISIONAL_UPSELL:{id:"provisional-upsell",path:"/interview/provisional-upsell",title:"Ap
1plication Type",stepNumber:2},PATENT_INTAKE:{id:"patent-intake",path:"/interview/patent-intake",title:"Patent Information",stepNumber:3},TRADEMARK_INTAKE:{id:"trademark-intake",path:"/interview/trademark-intake",title:"Trademark Information",stepNumber:3},USER_INFO:{id:"user-info",path:"/interview/user-info",title:"Your Information",stepNumber:4},SERVICE_SELECTION:{id:"service-selection",path:"/interview/service-selection",title:"Service Selection",stepNumber:4},SCHEDULE:{id:"schedule",path:"/interview/schedule",title:"Schedule Review",stepNumber:5},CONFIRMATION:{id:"confirmation",path:"/interview/confirmation",title:"Complete",stepNumber:6}},r=(e,t)=>{const n={[i.INTRO.id]:e=>{var t;const n=null===(t=e.intro)||void 0===t?void 0:t.matterType;return"not-sure"===n?i.MATTER_GUIDE:"trademark"===n?i.TRADEMARK_INTAKE:"provisional"===n?i.PROVISIONAL_UPSELL:"non-provisional"===n?i.PATENT_INTAKE:i.INTRO},[i.MATTER_GUIDE.id]:e=>{var t;const n=null===(t=e["matter-guide"])||void 0===t?void 0:t.guidedMatterType;return"trademark"===n?i.TRADEMARK_INTAKE:"provisional"===n?i.PROVISIONAL_UPSELL:i.PATENT_INTAKE},[i.PROVISIONAL_UPSELL.id]:e=>{var t;null===(t=e["provisional-upsell"])||void 0===t||t.upgradeToNonProvisional;return i.PATENT_INTAKE},[i.PATENT_INTAKE.id]:e=>i.USER_INFO,[i.TRADEMARK_INTAKE.id]:e=>i.USER_INFO,[i.USER_INFO.id]:()=>i.SCHEDULE,[i.SERVICE_SELECTION.id]:()=>i.SCHEDULE,[i.SCHEDULE.id]:()=>i.CONFIRMATION}[e];return n?n(t):(console.warn(`No route handler for step: ${e}`),i.INTRO)},a=(e,t)=>{const n={[i.MATTER_GUIDE.id]:i.INTRO,[i.PROVISIONAL_UPSELL.id]:i.INTRO,[i.PATENT_INTAKE.id]:()=>{var e;return"provisional"===(null===(e=t.intro)||void 0===e?void 0:e.matterType)?i.PROVISIONAL_UPSELL:i.INTRO},[i.TRADEMARK_INTAKE.id]:()=>t["matter-guide"]?i.MATTER_GUIDE:i.INTRO,[i.USER_INFO.id]:()=>{var e,n;return"trademark"===((null===(e=t.intro)||void 0===e?void 0:e.matterType)||(null===(n=t["matter-guide"])||void 0===n?void 0:n.guidedMatterType))?i.TRADEMARK_INTAKE:i.PATENT_INTAKE},[i.SERVICE_SELECTION.id]:()=>{var e,n;return"trademark"===((null===(e=t.intro)||void 0===e?void 0:e.matterType)||(null===(n=t["matter-guide"])||void 0===n?void 0:n.guidedMatterType))?i.TRADEMARK_INTAKE:i.PATENT_INTAKE},[i.SCHEDULE.id]:()=>{var e,n;return"trademark"===((null===(e=t.intro)||void 0===e?void 0:e.matterType)||(null===(n=t["matter-guide"])||void 0===n?void 0:n.guidedMatterType))?i.TRADEMARK_INTAKE:i.PATENT_INTAKE},[i.CONFIRMATION.id]:i.SCHEDULE}[e];return n?"function"==typeof n?n():n:null},o=e=>{var t,n,r;const a=(null===(t=e.intro)||void 0===t?void 0:t.matterType)||(null===(n=e["matter-guide"])||void 0===n?void 0:n.guidedMatterType),o=Boolean(e["service-selection"]),l=[i.INTRO];"not-sure"===a&&l.push(i.MATTER_GUIDE);const s="not-sure"===a?null===(r=e["matter-guide"])||void 0===r?void 0:r.guidedMatterType:a;return"provisional"===s&&l.push(i.PROVISIONAL_UPSELL),"trademark"===s?l.push(i.TRADEMARK_INTAKE):l.push(i.PATENT_INTAKE),l.push(i.USER_INFO),o&&l.push(i.SERVICE_SELECTION),l.push(i.SCHEDULE,i.CONFIRMATION),l},l=e=>o(e).length,s=(e,t)=>{const n=o(t).findIndex(t=>t.id===e);return n>=0?n+1:1},c=e=>{var t,n,i;const r=(null===(t=e.intro)||void 0===t?void 0:t.matterType)||(null===(n=e["matter-guide"])||void 0===n?void 0:n.guidedMatterType),a=null===(i=e["provisional-upsell"])||void 0===i?void 0:i.upgradeToNonProvisional;return"trademark"===r?"Trademark Application":"non-provisional"===r||a?"Non-Provisional Patent Application":"provisional"===r?"Provisional Patent Application":"Patent or Trademark Application"}},5180:function(e,t,n){n.r(t),n.d(t,{Head:function(){return u}});var i=n(6540),r=n(8007),a=n(3413),o=n(966),l=n(2852),s=n(3681),c=n(2873);t.default=()=>{const e=(0,i.useRef)(null),{0:t,1:n}=(0,i.useState)({fullName:"",email:"",phone:""}),{0:u,1:m}=(0,i.useState)({}),{0:d,1:p}=(0,i.useState)(!1),{0:v,1:E}=(0,i.useState)(4),{0:N,1:T}=(0,i.useState)(3);(0,i.useEffect)(()=>{if("undefined"!=typeof window)try{const e=localStorage.getItem("lawChatAIVisitorData");if(e){const t=JSON.parse(e);t&&n(e=>({...e,fullName:t.name||e.fullName,email:t.email||e.email,phone:t.phone||e.phone}))}}catch(t){console.error("Error reading lawChatAIVisitorData from localStorage:",t)}const e=(0,l.fp)(s.YP.USER_INFO.id);if(e&&Object.keys(e).length>0&&n(t=>({...t,...e})),(0,l.EY)(s.YP.USER_INFO.id),"undefined"!=typeof window){const e=(0,l.yX)();
1E((0,s.Yk)(e)),T((0,s.fq)(s.YP.USER_INFO.id,e))}},[]);const I=()=>{const e=(0,l.yX)(),t=(0,s.WC)(s.YP.USER_INFO.id,e);t&&(0,r.navigate)(t.path)},f=e=>{const{name:t,value:i}=e.target;n(e=>({...e,[t]:i})),u[t]&&m(e=>({...e,[t]:""}))};return i.createElement(o.A,{currentStepId:s.YP.USER_INFO.id,currentStepNumber:N,totalSteps:v,onBack:I,title:"Your Information"},i.createElement("div",{className:"user-info"},i.createElement("div",{className:"interview-alert interview-alert-info"},"Please provide your contact information so we can follow up about your application."),i.createElement("form",{onSubmit:async n=>{var i;n.preventDefault();const a=(()=>{const e={};return t.fullName.trim()||(e.fullName="Please enter your full name"),t.email.trim()||(e.email="Please enter your email address"),t.phone.trim()||(e.phone="Please enter your phone number"),m(e),e})();if(Object.keys(a).length>0){const e=Object.keys(a)[0],t=document.getElementsByName(e)[0];return void(t&&t.scrollIntoView({behavior:"smooth",block:"center"}))}const o=null===(i=e.current)||void 0===i?void 0:i.getValue();if(!o)return void window.alert("Please confirm you are not a robot.");p(!0);const u={...t,timestamp:(new Date).toISOString()};(0,l.DA)(s.YP.USER_INFO.id,u);const d=(e=>{const n=(0,l.yX)(),i=n["patent-intake"]?s.YP.PATENT_INTAKE.id:n["trademark-intake"]?s.YP.TRADEMARK_INTAKE.id:null,r=i&&n[i]||{},a=(r.uploadedFiles||r.uploadedSpecimens||[]).filter(e=>e.serverPath).map(e=>e.serverPath);return{recaptchaToken:e,interviewType:i||"unknown",data:r.questionAnswerData||[],uploadedFiles:a,visitor:{name:t.fullName.trim(),email:t.email.trim(),phone:t.phone.trim()}}})(o);try{const e=await(0,c.W)(d);console.log("Interview data saved:",e)}catch(N){console.error("Error saving interview data:",N)}await new Promise(e=>setTimeout(e,500));const v=(0,l.yX)(),E=(0,s.kR)(s.YP.USER_INFO.id,v);(0,r.navigate)(E.path)}},i.createElement("div",{className:"form-section"},i.createElement("p",{className:"interview-question"},"Full name"),i.createElement("div",{className:"interview-form-group"},i.createElement("input",{type:"text",name:"fullName",value:t.fullName,onChange:f,className:u.fullName?"interview-input interview-input-invalid":"interview-input",placeholder:"Example: Jane Doe"}),u.fullName&&i.createElement("span",{className:"interview-input-feedback"},u.fullName))),i.createElement("div",{className:"form-section"},i.createElement("p",{className:"interview-question"},"Email"),i.createElement("div",{className:"interview-form-group"},i.createElement("input",{type:"email",name:"email",value:t.email,onChange:f,className:u.email?"interview-input interview-input-invalid":"interview-input",placeholder:"Example: [email protected]"}),u.email&&i.createElement("span",{className:"interview-input-feedback"},u.email))),i.createElement("div",{className:"form-section"},i.createElement("p",{className:"interview-question"},"Phone"),i.createElement("div",{className:"interview-form-group"},i.createElement("input",{type:"tel",name:"phone",value:t.phone,onChange:f,className:u.phone?"interview-input interview-input-invalid":"interview-input",placeholder:"Example: +1 (555) 123-4567"}),u.phone&&i.createElement("span",{className:"interview-input-feedback"},u.phone))),i.createElement("div",{className:"form-section"},i.createElement(a.A,{sitekey:"6LfbedorAAAAAMnhXau68PJpdDi0HHt_vnCrERZp",ref:e})),i.createElement("div",{className:"interview-actions"},i.createElement("button",{type:"button",onClick:I,className:"interview-button interview-button-secondary",disabled:d},"â Back"),i.createElement("button",{type:"submit",className:"interview-button interview-button-primary",disabled:d},d?"Submitting...":"Continue â")))))};const u=()=>i.createElement(i.Fragment,null,i.createElement("title",null,"Your Information - PatentPC Interview"),i.createElement("meta",{name:"robots",content:"noindex, nofollow"}))}}]);
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.