PageSourceSearch

https://untype.ai/static/js/2426.7b949ee4.chunk.js

js untype.ai collected 2026-10-05 13:10:09 UTC 24,895 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkuntype_exams_demo_app=self.webpackChunkuntype_exams_demo_app||[]).push([[2426],{74714:function(e,t,n){n.d(t,{Z:function(){return p}});n(47313);var i=n(99881),o=n(33249),r=n(61113),a=n(69099),s=n(57829),l=n(2135),d=n(85554),c=n(59905),u=n(46417);function p(){var e=(0,d.v9)((function(e){return e.usage.usageInfo})),t=(0,c.TV)(e);return t?(0,u.jsxs)(i.Z,{severity:"warning",sx:{fontFamily:"Inter","& .MuiAlert-message":{width:"100%"}},children:[(0,u.jsx)(o.Z,{sx:{fontFamily:"Inter",fontWeight:600},children:t.title}),(0,u.jsx)(s.Z,{component:"ul",sx:{m:0,mb:1,pl:2.5},children:t.bullets.map((function(e){return(0,u.jsx)(r.Z,{component:"li",variant:"body2",sx:{fontFamily:"Inter",lineHeight:1.55,mb:.5},children:e},e)}))}),(0,u.jsx)(a.Z,{component:l.rU,to:"/app/starter-plan-update",size:"small",variant:"outlined",color:"inherit",sx:{textTransform:"none",fontFamily:"Inter",borderColor:"rgba(0,0,0,0.23)"},children:"Learn more"})]}):null}},96226:function(e,t,n){n.d(t,{Z:function(){return Z}});var i=n(4942),o=n(1413),r=n(29439),a=n(47313),s=n(69099),l=n(31427),d=n(94469),c=n(4117),u=n(96467),p=n(97762),x=n(33604),h=n(90891),v=n(57829),m=n(91219),f=n(99881),g=(n(85554),n(58467)),b=n(2638),y=n(5888),j=n(46417);function Z(e){var t=(0,g.s0)(),n=a.useState(!1),Z=(0,r.Z)(n,2),w=Z[0],C=Z[1],k=(0,a.useContext)(y.yP),Y=(0,g.TH)().search,M={name:"",code:e.projectCode,path:null!==e&&void 0!==e&&e.path?null===e||void 0===e?void 0:e.path:"ROOT",extractContentType:e.extractContentType||"",extractMethod:e.extractMethod||""};(0,a.useEffect)((function(){var e=(0,b.D)(Y,"showTour");w&&k&&"true"===e&&k.isActive()&&k.show("question_paper_name")}),[w,Y]);var A=function(){C(!0),U({name:"",code:e.projectCode,path:null!==e&&void 0!==e&&e.path?null===e||void 0===e?void 0:e.path:"ROOT",extractContentType:e.extractContentType||"",extractMethod:e.extractMethod||""})},I=function(){C(!1)},T=a.useState(""),P=(0,r.Z)(T,2),D=P[0],E=P[1],_=(0,a.useState)(M),F=(0,r.Z)(_,2),N=F[0],U=F[1];return(0,j.jsxs)(j.Fragment,{children:["button"===e.component?(0,j.jsx)(s.Z,{type:"button",variant:"contained",onClick:A,sx:(0,o.Z)({mx:1},null===e||void 0===e?void 0:e.sx),className:null===e||void 0===e?void 0:e.projectClass,size:null===e||void 0===e?void 0:e.size,children:e.linkText?e.linkText:"Create Project"}):(0,j.jsx)(h.Z,{component:"button",variant:"body2",onClick:A,sx:{mx:1},className:null===e||void 0===e?void 0:e.projectClass,children:e.linkText?e.linkText:"Create Project"}),(0,j.jsxs)(d.Z,{open:w,onClose:I,children:[(0,j.jsx)(x.Z,{children:"New "+e.projectType}),(0,j.jsxs)(u.Z,{sx:{pb:0,width:"min-content",maxWidth:"100%"},children:[(0,j.jsxs)(p.Z,{children:["Create a new project and organize all relevant files and content easily",(e.extractContentType||e.extractMethod)&&(0,j.jsxs)(j.Fragment,{children:[" ","(","select_region"===e.extractMethod?"Select regions":"Advanced AI",e.extractContentType?" \xb7 "+(e.projectType||"extract"):"",")"]})]}),"select_region"===e.extractMethod&&(0,j.jsx)(f.Z,{severity:"info",sx:{mt:1.5,fontFamily:"Inter"},children:"Boxes are not auto-detected like in the previous version. After you upload a file, open it and draw the boxes yourself, then extract."}),(0,j.jsxs)(v.Z,{component:"form",sx:{mt:2},noValidate:!0,autoComplete:"off",children:[D&&(0,j.jsx)(f.Z,{severity:"error",sx:{m:1},children:D}),(0,j.jsx)(l.Z,{autoFocus:!0,id:"name",label:e.projectType+" Name",variant:"outlined",sx:{width:"40ch",my:1,maxWidth:"100%"},value:N.name,required:!0,onChange:function(e){var t,n;e.persist(),U((function(t){return(0,o.Z)((0,o.Z)({},t),{},(0,i.Z)({},e.target.id,e.target.value))})),k&&k.isActive()&&(null===e||void 0===e||null===(t=e.target)||void 0===t||null===(n=t.value)||void 0===n?void 0:n.length)>3&&k.show("create_qp_project")},className:"shepherd_question_paper_name"})]})]}),(0,j.jsxs)(c.Z,{sx:{m:1,mx:2},children:[(0,j.jsx)(s.Z,{onClick:I,children:"Cancel"}),(0,j.jsx)(s.Z,{onClick:function(n){var i;n.preventDefault();var o=!1;k&&k.isActive()&&(o=!0,k.hide()),N.name?(null===N||void 0===N||null===(i=N.name)||void 0===i?void 0:i.length)<3?E("Name should have atleast 3 characters"):N.code?N.path?(E(""),m.Z.post("/v1/project",N,{headers:{"Content-Type":"application/json"}}).then((function(n){var i;if(E(""),console.log(n.data),null!==n&&void 0!==n&&null!==(i=n.data)&&void 0!==i&&i.id){var r,a;if(null!==e&&void 0!==e&&e.successCallback)null===e||void 0===e||e.successCallback(null===n||void 0===n||null===(r=n.data)||void 0===r?void 0:r.id);if(null!==e&&void 0!==e&&e.noNavigation)I();else t("/app/project/home?id="+(null===n||void 0===n||null===(a=n.data)||void 0===a?void 0:a.id)+(o?"&showTour=true":""))}})).catch((function(e){E(e.message),console.log(e)}))):E("Please provide appropriate project path"):E("Please select appropriate project code"):E("Please enter the Name")},className:"shepherd_create_project_button",children:"Create"})]})]})]})}},12426:function(e,t,n){n.r(t),n.d(t,{default:function(){return Q}});var i=n(29439),o=n(47313),r=n(9019),a=n(8955),s=n(47825),l=n(61113),d=n(73428),c=n(44183),u=n(93405),p=n(57829),x=n(84e3),h=n(16450),v=n(96226),m=n(63319),f=n(46417),g=[{id:"questions",code:"QP",title:"Questions",features:"MCQ, numerical, worksheets",description:"Exam-style questions from PDFs, scans, and photos."},{id:"document",code:"DOC",title:"Document",features:"Notes, theory, lessons",de
1scription:"Paragraphs, notes, and general document text \u2014 not only exam questions."}],b={questions:[{id:"advanced_ai",title:"Advanced AI",features:"Whole page, one step",description:"Best when you want everything on the page. Each page is billed at 4, 8, or 12 credits based on how much content is on the page.",summary:"each page billed 4 / 8 / 12 credits \xb7 unreadable pages are free"},{id:"select_region",title:"Select regions",features:"Draw boxes yourself",description:"Use this when you only need part of a page. You draw the boxes, then extract. Each box starts at 1 credit and may use up to 12 credits based on the content in that box.",summary:"1 credit per box \xb7 up to 12 for denser boxes"}],document:[{id:"advanced_ai",title:"Advanced AI",features:"Whole page, one step",description:"Best when you want everything on the page. Each page is billed at 4, 8, or 12 credits based on how much content is on the page.",summary:"each page billed 4 / 8 / 12 credits \xb7 unreadable pages are free"},{id:"select_region",title:"Select regions",features:"Draw boxes yourself",description:"Use this when you only need part of a page. You draw the boxes, then extract. Each box starts at 2 credits and may use up to 12 credits based on the content in that box.",summary:"2 credits per box \xb7 up to 12 for denser boxes"}]};function y(){var e=(0,o.useState)("questions"),t=(0,i.Z)(e,2),n=t[0],a=t[1],d=(0,o.useState)("advanced_ai"),c=(0,i.Z)(d,2),u=c[0],x=c[1],h=g.find((function(e){return e.id===n}))||g[0],y=b[n]||b.questions,w=y.find((function(e){return e.id===u}))||y[0],C="document"===n?"Notes":"Question Paper";return(0,f.jsxs)(s.Z,{disableGutters:!0,sx:{py:0},children:[(0,f.jsx)(l.Z,{variant:"subtitle1",sx:{mb:.5,fontWeight:600},children:"Extract"}),(0,f.jsx)(l.Z,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Pick what is on your pages and how we should read them. Credits are charged only for pages we can read."}),(0,f.jsx)(j,{children:"1 \xb7 What do you want to extract?"}),(0,f.jsx)(r.ZP,{container:!0,spacing:2,sx:{mt:0,mb:2.5},children:g.map((function(e){return(0,f.jsx)(r.ZP,{item:!0,xs:12,md:6,children:(0,f.jsx)(Z,{selected:n===e.id,title:e.title,features:e.features,description:e.description,onClick:function(){return a(e.id)}})},e.id)}))}),(0,f.jsx)(j,{children:"2 \xb7 How should we read the pages?"}),(0,f.jsx)(r.ZP,{container:!0,spacing:2,sx:{mt:0,mb:2.5},children:y.map((function(e){return(0,f.jsx)(r.ZP,{item:!0,xs:12,md:6,children:(0,f.jsx)(Z,{selected:u===e.id,title:e.title,features:e.features,description:e.description,onClick:function(){return x(e.id)}})},e.id)}))}),(0,f.jsxs)(p.Z,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",gap:1.5,p:2,borderRadius:"10px",border:"1px solid #e8e8e8",background:"#fafafa"},children:[(0,f.jsxs)(p.Z,{sx:{minWidth:"16ch"},children:[(0,f.jsxs)(l.Z,{variant:"subtitle2",sx:{mb:.25},children:[h.title," \xb7 ",w.title]}),(0,f.jsx)(l.Z,{variant:"body2",color:"text.secondary",children:w.summary}),"select_region"===u&&(0,f.jsx)(l.Z,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:.75},children:"Boxes will not be auto-detected. You draw them on the page after upload."})]}),(0,f.jsxs)(p.Z,{children:[(0,f.jsx)(v.Z,{linkText:"Create "+C+" project",component:"button",projectCode:h.code,projectType:C,projectClass:"shepherd_home_create_qp_button",extractContentType:n,extractMethod:u,sx:{mx:0}}),(0,f.jsxs)(l.Z,{variant:"caption",color:"text.secondary",component:"div",sx:{mt:.75},children:["You will name it, then upload your files."," ",(0,f.jsx)(m.Z,{code:"DOC"===h.code?"NOTES_INTRO":"QP_INTRO",linkText:"Watch tutorial",sx:{mx:0,fontSize:"inherit",color:"text.secondary"}})]})]})]})]})}function j(e){var t=e.children;return(0,f.jsx)(l.Z,{variant:"subtitle2",sx:{color:"#4f4f4f",mb:1},children:t})}function Z(e){var t=e.selected,n=e.title,i=e.features,o=e.description,r=e.onClick;return(0,f.jsx)(d.Z,{sx:{height:"100%",display:"flex",flexDirection:"column",borderRadius:"10px",boxShadow:"none",border:t?"1px solid #1976d2":"1px solid #e8e8e8",outline:t?"1px solid #1976d2":"none",background:t?"#1976d226":"#1976d21a",transition:"background 120ms ease, border-color 120ms ease","&:hover":{background:"#1976d226"}},children:(0,f.jsx)(c.Z,{onClick:r,"aria-pressed":t,sx:{height:"100%",alignItems:"stretch"},children:(0,f.jsx)(u.Z,{sx:{py:2},children:(0,f.jsxs)(p.Z,{sx:{display:"flex",alignItems:"flex-start",ga
1p:1},children:[t?(0,f.jsx)(h.Z,{color:"primary",sx:{fontSize:20,mt:.35}}):(0,f.jsx)(x.Z,{sx:{fontSize:20,mt:.35,color:"#9e9e9e"}}),(0,f.jsxs)(p.Z,{children:[(0,f.jsx)(l.Z,{variant:"subtitle1",sx:{mb:.25},children:n}),(0,f.jsx)(l.Z,{variant:"body2",sx:{color:"#4f4f4f",mb:.5},children:i}),(0,f.jsx)(l.Z,{variant:"body2",children:o})]})]})})})})}var w=n(91219),C=n(99881),k=n(21422),Y=n(19536),M=n(90891),A=n(66212),I=n(58467),T=n(70816),P=n.n(T),D=n(83266),E=n(61689),_="DD/MM/YYYY, HH:mm:ss";function F(e){var t=(0,I.s0)(),n=(0,o.useState)({message:"",type:""}),a=(0,i.Z)(n,2),s=a[0],x=a[1],h=(0,o.useState)([]),v=(0,i.Z)(h,2),m=v[0],g=v[1];(0,o.useEffect)((function(){w.Z.get("/v1/projects",{headers:{"Content-Type":"application/json"}}).then((function(e){x({}),g(null===e||void 0===e?void 0:e.data)})).catch((function(e){x({message:null!==e&&void 0!==e&&e.message?null===e||void 0===e?void 0:e.message:"Unable to fetch projects",type:"error"}),console.log(e)}))}),[]);var b=(null===m||void 0===m?void 0:m.length)>0?m.slice(0,6):[];return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(r.ZP,{container:!0,direction:"column",children:[(0,f.jsxs)(r.ZP,{item:!0,xs:12,children:[(0,f.jsxs)(p.Z,{sx:{display:"flex",flexWrap:"wrap",alignItems:"baseline",justifyContent:"space-between",gap:1},children:[(0,f.jsx)(l.Z,{component:"h2",variant:"h6",color:"black",children:"Recent activity"}),(null===m||void 0===m?void 0:m.length)>0&&(0,f.jsx)(M.Z,{component:"button",variant:"body2",onClick:function(){return t("/app/projects")},children:"View all projects ("+m.length+")"})]}),(0,f.jsx)(Y.Z,{sx:{my:1,mb:2.5}})]}),(0,f.jsx)(r.ZP,{item:!0,xs:12,children:(0,f.jsxs)(p.Z,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, minmax(0, 1fr))",md:"repeat(3, minmax(0, 1fr))"},gap:2,background:"#1976d21a",borderRadius:"10px",p:{xs:1.5,sm:2}},children:[b.map((function(e,n){var i=P()(null===e||void 0===e?void 0:e.createdAt,_);return(0,f.jsx)(p.Z,{children:(0,f.jsx)(d.Z,{sx:{height:"100%",borderRadius:"8px",boxShadow:"none",border:"1px solid #e8e8e8"},children:(0,f.jsx)(c.Z,{onClick:function(){return t("/app/project/home?id="+(null===e||void 0===e?void 0:e.id))},sx:{height:"100%",alignItems:"stretch"},children:(0,f.jsxs)(u.Z,{sx:{py:1.75},children:[(0,f.jsx)(A.Z,{label:(0,D.Ek)(null===e||void 0===e?void 0:e.code),size:"small",sx:{mb:1,height:22,background:"#1976d21a",color:"#1976d2","& .MuiChip-label":{px:1,fontSize:"0.7rem"}}}),(0,f.jsx)(E.Z,{title:null===e||void 0===e?void 0:e.name,children:(0,f.jsx)(l.Z,{variant:"subtitle1",component:"p",sx:{width:"100%",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",mb:.25},children:null===e||void 0===e?void 0:e.name})}),(0,f.jsx)(E.Z,{title:i.isValid()?i.format("hh:mm A, DD MMM YYYY"):(null===e||void 0===e?void 0:e.createdAt)||"",children:(0,f.jsx)(l.Z,{variant:"caption",color:"text.secondary",component:"div",children:i.isValid()?"Created "+i.fromNow():"Created "+(null===e||void 0===e?void 0:e.createdAt)})})]})})})},n)})),b.length<1&&(0,f.jsx)(p.Z,{sx:{gridColumn:"1 / -1"},children:(0,f.jsx)(l.Z,{variant:"body2",color:"text.secondary",sx:{my:2,textAlign:"center"},children:"Nothing here yet. Create a project above, upload a PDF or photo, and your work will show up here."})})]})})]}),(0,f.jsx)(k.Z,{open:Boolean(null===s||void 0===s?void 0:s.message),autoHideDuration:6e3,onClose:function(){return x({})},anchorOrigin:{vertical:"top",horizontal:"right"},children:(0,f.jsx)(C.Z,{elevation:6,variant:"filled",onClose:function(){return x({})},severity:null!==s&&void 0!==s&&s.type?null===s||void 0===s?void 0:s.type:"info",sx:{width:"100%"},children:null===s||void 0===s?void 0:s.message})})]})}var N=n(33249),U=n(69099),H=n(42832),S=n(74714),W=n(85554),R=n(59905);function q(e){var t,n,i=(0,W.v9)((function(e){return e.usage.usageInfo})),o=(0,I.s0)(),a=(0,R.TV)(i),c=a&&!1===a.canRenew&&"free"!==(null===i||void 0===i?void 0:i.plan);return i&&(0,f.jsx)(s.Z,{disableGutters:!0,sx:{py:0},children:(0,f.jsx)(d.Z,{sx:{height:"100%",display:"flex",flexDirection:"column",py:2.5,px:1.5,borderRadius:"10px",background:"expired"==(null===i||void 0===i?void 0:i.plan)?"red":"linear-gradient(115deg, rgb(27, 58, 186), rgb(49, 130, 187))"},children:(0,f.jsx)(u.Z,{sx:{py:"0 !important"},children:(0,f.jsxs)(r.ZP,{container:!0,spacing:2,justifyContent:"space-between",alignItems:"center",children:[(0,f.jsxs)(r.ZP,{item:!0,sm:12,md:7,children:[(0,f.jsx)(l.Z,{gutterBottom:!0,variant:"h6",component:"h2",sx:{fontWeight:"500",color:"white"},children:"expired"===(null===i||void 0===i?void 0:i.plan)?"Your Plan has Ended. Renew Now!":(0,f.jsxs)(f.Fragment,{children:["Your ","paid"==(null===i||void 0===i?void 0:i.plan)?null!==i&&void 0!==i&&i.term?(null===i||void 0===i||null===(t=i.term[0])||void 0===t?void 0:t.toUpperCase())+(null===i||void 0===i||null===(n=i.term)||void 0===n?void 0:n.substring(1))+"ly":"Monthly":"Trial"," Plan is Active"]})}),(0,f.jsxs)(l.Z,{gutterBottom:!0,variant:"body2",sx:{color:"white"},children:["free"==(null===i||void 0===i?void 0:i.plan)?"You have "+(null===i||void 0===i?void 0:i.credits)+" free credits left to explore UnType AI capabilities":"","paid"==(null===i||void 0===i?void 0:i.plan)&&(null===i||void 0===i?void 0:i.paidUpcomingCycles)>0?"Your monthly cycle will renew on "+P()(null===i||void 0===i?void 0:i.expiresAt,"DD/MM/YYYY, HH:mm:ss").format("Do MMM YYYY, h:mm A"):"","paid"==(null===i||void 0===i?void 0:i.plan)&&0==(null===i||void 0===i?void 0:i.paidUpcomingCycles)?"Your subscription will expire on "+P()(null!==i&&void 0!==i&&i.termExpiresAt?null===i||void 0===i?void 0:i.termExpiresAt:null===i||void 0===i?void 0:i.expiresAt,"DD/MM/YYYY, HH:mm:ss").format("Do MMM YYYY, h:mm A"):"","expired"==(null===i||void 0===i?void 0:i.plan)&&"Renew your plan immediately to continue using UnType"]}),(0,f.jsxs)(l.Z,{variant:"body2",sx:{color:"white"},children:["paid"==(null===i||void 0===i?void 0:i.plan)&&(null===i||void 0===i?void 0:i.paidUpcomingCycles)>0&&"The subscription plan is valid till "+P()(null!==i&&void 0!==i&&i.termExpiresAt?null===i||void 0===i?void 0:i.termExpiresAt:null===i||void 0===i?void 0:i.expiresAt,"DD/MM/YYYY, HH:mm:ss").format("Do MMM YYYY"),"paid"==(null===i||void 0===i?void 0:i.plan)&&0==(null===i||void 0===i?void 0:i.paidUpcomingCycles)&&"Renew your subscription before it ends to ensure uninterrupted usage","free"==(null===i||void 0===i?void 0:i.plan)?"Explore paid plans and unlock even more potential with UnType":"","expired"==(null===i||void 0===i?void 0:i.plan)&&"Without an active subscription, your content and credits could be permanently deleted"]})]}),(0,f.jsxs)(r.ZP,{item:!0,sm:12,md:5,sx:{textAlign:"center"},children:["free"==(null===i||void 0===i?void 0:i.plan)&&(0,f.jsxs)(f.Fragment,{children:[(null===i||void 0===i?void 0:i.expiresAt)&&(0,f.jsxs)(l.Z,{variant:"body2",sx:{color:"white",display:"block",mb:1},children:["Your free trial ends in"," ",P()(null!==i&&void 0!==i&&i.termExpiresAt?null===i||void 0===i?void 0:i.termExpiresAt:null===i||void 0===i?void 0:i.expiresAt,"DD/MM/YYYY, HH:mm:ss").diff(P()(),"days")," ","days!"]}),(0,f.jsx)(U.Z,{type:"button",variant:"contained",color:"warning",onClick:function(){return o("/app/pricing")},sx:{mx:1},children:"Upgrade Now"})]}),"paid"==(null===i||void 0===i?void 0:i.plan)&&0==(null===i||void 0===i?void 0:i.paidUpcomingCycles)&&!c&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(l.Z,{variant:"caption",sx:{color:"white",display:"block",mb:.5},children:["Your subscription ends in"," ",P()(null!==i&&void 0!==i&&i.termExpiresAt?null===i||void 0===i?void 0:i.termExpiresAt:null===i||void 0===i?void 0:i.expiresAt,"DD/MM/YYYY, HH:mm:ss").diff(P()(),"days")," ","days"]}),(0,f.jsx)(U.Z,{type:"button",variant:"contained",color:"warning",onClick:function(){return o("/app/pricing")},sx:{mx:1},children:"Renew Now"})]}),"expired"==(null===i||void 0===i?void 0:i.plan)&&!c&&(0,f.jsxs)(f.Fragment,{children:[(null===i||void 0===i?void 0:i.expiresAt)&&(0,f.jsxs)(l.Z,{variant:"caption",sx:{color:"white",display:"block",mb:1},children:["Your plan expired"," ",P()().diff(P()(null!==i&&void 0!==i&&i.termExpiresAt?null===i||void 0===i?void 0:i.termExpiresAt:null===i||void 0===i?void 0:i.expiresAt,"DD/MM/YYYY, HH:mm:ss"),"days")," ","days ago"]}),(0,f.jsx)(U.Z,{type:"button",variant:"contained",onClick:function(){return o("/app/pricing")},sx:{mx:1,backgroundColor:"#fef4e5",color:"rgba(0, 0, 0, 0.87)","&:hover":{backgroundColor:"#ffd9a1"}},children:"Renew Now"})]})]})]})})})})}var O=n(2135),z=n(84488),B=n(81594);function Q(e){var t,n=(0,I.s0)(),s=(0,o.useState)(!0),d=(0,i.Z)(s,2),c=d[0],u=d[1];return(0,o.useEffect)((function(){null!==e&&void 0!==e&&e.user&&(0,B.ej)(null===e||void 0===e?void 0:e.user)&&n("/app/questions/repo",{replace:!0}),u(!1)}),[null===e||void 0===e||null===(t=e.user)||void 0===t?void 0:t.attributes]),(0,f.jsxs)(f.Fragment,{children:[c&&(0,f.jsx)(p.Z,{sx:{width:"75%",my:8,mx:"auto"},children:(0,f.jsx)(z.Z,{height:200})}),!c&&(0,f.jsxs)(r.ZP,{container:!0,component:"main",justifyContent:"center",sx:{px:{xs:1.5,md:2},pb:3},children:[(0,f.jsx)(r.ZP,{item:!0,xs:12,md:8,sx:{pt:{xs:2,md:2.5}},children:(0,f.jsxs)(H.Z,{spacing:1.5,children:[(0,f.jsx)(S.Z,{}),(0,f.jsxs)(C.Z,{severity:"info",sx:{fontFamily:"Inter","& .MuiAlert-message":{width:"100%"}},children:[(0,f.jsx)(N.Z,{sx:{fontFamily:"Inter",fontWeight:600},children:"Upgrading to Advanced AI"}),(0,f.jsx)(l.Z,{variant:"body2",sx:{fontFamily:"Inter",lineHeight:1.55,mb:1},children:"We are upgrading UnType to Advanced AI to make extraction simpler and deliver stronger results. Extraction is moving from a question-by-question flow to a single-step, page-based extract."}),(0,f.jsxs)(p.Z,{component:"ul",sx:{m:0,mb:1,pl:2.5},children:[(0,f.jsxs)(l.Z,{component:"li",variant:"body2",sx:{fontFamily:"Inter",lineHeight:1.55,mb:.5},children:[(0,f.jsx)("strong",{children:"Credits have changed."})," Advanced AI is billed at 4, 8, or 12 credits per page based on how much content is on the page. Select regions: 1 credit per question box (2 for document boxes), up to 12 for denser boxes."]}),(0,f.jsxs)(l.Z,{component:"li",variant:"body2",sx:{fontFamily:"Inter",lineHeight:1.55},children:[(0,f.jsx)("strong",{children:"Select regions"})," is available if you only want a few questions or part of a page. Boxes are"," ",(0,f.jsx)("strong",{children:"not auto-detected"})," like in the previous version \u2014 you draw them yourself, then extract."]})]}),(0,f.jsx)(U.Z,{component:O.rU,to:"/app/advanced-ai-update",size:"small",variant:"outlined",sx:{textTransform:"none",fontFamily:"Inter"},children:"Learn more"})]})]})}),(0,f.jsx)(r.ZP,{item:!0,xs:12,md:8,sx:{mt:3},children:(0,f.jsx)(q,{})}),(0,f.jsxs)(r.ZP,{item:!0,xs:12,md:8,sx:{mt:3.5},children:[(0,f.jsx)(l.Z,{component:"h1",variant:"h6",sx:{fontFamily:"Inter",fontWeight:600,mb:.5},children:"Welcome to UnType AI Workspace"}),(0,f.jsx)(l.Z,{variant:"body2",color:"text.secondary",sx:{fontFamily:"Inter",mb:2,maxWidth:560},children:"Choose what to extract and how \u2014 then upload your file to get started."}),(0,f.jsx)(y,{})]}),(0,f.jsx)(r.ZP,{item:!0,xs:12,md:8,sx:{mt:3.5},children:(0,f.jsx)(F,{})}),(0,f.jsx)(r.ZP,{item:!0,xs:12,sx:{pt:3,pb:1},children:(0,f.jsx)(a.Z,{})})]})]})}},83266:function(e,t,n){n.d(t,{CI:function(){return c},Ek:function(){return a},KF:function(){return h},OF:function(){return l},V0:function(){return p},rs:function(){return s}});var i=n(1413),o=n(74165),r=n(15861);function a(e){switch(e){case"QP":return"Question Paper";case"DOC":return"Notes";case"REPO":return"Word Upload";default:return"Project"}}function s(e){switch(e){case"QP":default:return"/v1/capture";
1case"DOC":return"/v1/notes/capture"}}function l(e,t,n){return d.apply(this,arguments)}function d(){return d=(0,r.Z)((0,o.Z)().mark((function e(t,n,i){var r,a,s,l,d,c,u,p,x,h,v,m,f,g,b,y=arguments;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=null!==(r=(d=y.length>3&&void 0!==y[3]?y[3]:{}).pollIntervalMs)&&void 0!==r?r:1500,u=null!==(a=d.maxWaitMs)&&void 0!==a?a:6e5,e.next=5,t.post(n,i,{headers:{"Content-Type":"multipart/form-data"}});case 5:if(202===(p=e.sent).status){e.next=8;break}return e.abrupt("return",p);case 8:if(x=null===(s=p.data)||void 0===s?void 0:s.jobId,h=(null===(l=p.data)||void 0===l?void 0:l.pollUrl)||(x?"/v1/capture/jobs/".concat(x):null)){e.next=12;break}throw new Error("Capture accepted async but no pollUrl/jobId was returned");case 12:v=Date.now();case 13:if(!(Date.now()-v<u)){e.next=26;break}return e.next=16,new Promise((function(e){return setTimeout(e,c)}));case 16:return e.next=18,t.get(h);case 18:if(f=e.sent,"completed"!==(g=null===(m=f.data)||void 0===m?void 0:m.status)){e.next=22;break}return e.abrupt("return",f);case 22:if("failed"!==g){e.next=24;break}throw new Error((null===(b=f.data)||void 0===b?void 0:b.error)||"Capture job failed");case 24:e.next=13;break;case 26:throw new Error("Capture timed out while waiting for extraction");case 27:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function c(e){return u.apply(this,arguments)}function u(){return u=(0,r.Z)((0,o.Z)().mark((function e(t){var n,i,r,a,s,l=arguments;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(n=l.length>1&&void 0!==l[1]?l[1]:{}).projectId,r=n.fileId,a={},i&&(a.projectId=i),r&&(a.fileId=r),e.next=6,t.get("/v1/capture/routing",{params:a});case 6:return s=e.sent,e.abrupt("return",s.data||{});case 8:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}function p(e,t){return x.apply(this,arguments)}function x(){return x=(0,r.Z)((0,o.Z)().mark((function e(t,n){var a,s,d,c,u,p,x,h,v,m,f,g,b,y,j,Z,w;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.fileId,s=n.projectId,d=n.pages,c=n.captureUrl,u=n.onProgress,p=n.concurrency,x=void 0===p?3:p,h=n.batchId,v=d.length,m=Date.now(),f=new Array(v),g=0,b=0,y=0,j=Math.max(1,Math.min(x,v)),Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(u){var t=(Date.now()-m)/1e3,n=g>0?t/g:20/Math.max(1,j),o=v-g,r=Math.round(n*o/Math.max(1,j));u((0,i.Z)({running:!0,done:g,total:v,batchId:h,creditsChargedTotal:b,label:g>=v?"Finishing up\u2026 (".concat(b," credits used)"):"Extracting pages (".concat(g,"/").concat(v," done, ").concat(b," credits)\u2026"),etaMin:Math.max(1,Math.ceil(r/60))},e))}},Z(),w=Array.from({length:j},(0,r.Z)((0,o.Z)().mark((function e(){var n,r,u,p,x;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=y,y+=1,!(r>=v)){e.next=5;break}return e.abrupt("return");case 5:return u=d[r],e.next=8,l(t,c,(0,i.Z)({fileId:a,page:u,projectId:s},h?{batchId:h}:{}));case 8:p=e.sent,f[r]=p.data,x=Number(null===(n=p.data)||void 0===n?void 0:n.creditsCharged),!Number.isNaN(x)&&x>0&&(b+=x),g+=1,Z({page:u,lastCreditsCharged:x||0}),e.next=0;break;case 16:case"end":return e.stop()}}),e)})))),e.next=13,Promise.all(w);case 13:return Z({done:v,etaMin:0}),e.abrupt("return",f);case 15:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function h(e){return"heading"===e?"h6":"subtitle2"}}}]);

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.