PageSourceSearch

https://standardworks.ai/_next/static/chunks/5193.6b145565e432bd2c.js

js standardworks.ai collected 2026-10-05 14:34:00 UTC 10,486 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5193],{23264:(e,t,a)=>{a.d(t,{Ky:()=>h,dC:()=>m,hK:()=>f});var r=a(95155),n=a(12115),o=a(65380),l=a(22334),i=a(24612);let s=new WeakMap,c=new WeakMap,d=new WeakSet;function u(e){let t=e.querySelector("[data-check-stroke]");return t&&d.has(e)?getComputedStyle(t).strokeDashoffset:"checked"===e.dataset.checkState?"0":String(1.12)}function h(e){if(!e)return;let t=Array.from(e.querySelectorAll("[data-check-art]")),a=new Map,r=new Map,n=t.map(t=>{var n;let o=!!t.closest("thead"),l=t.closest("table"),s=(0,i.M)(null!=(n=t.parentElement)?n:e,a);l&&!r.has(l)&&r.set(l,Math.max(s.top,...Array.from(l.querySelectorAll("thead th"),e=>e.getBoundingClientRect().bottom)));let c=t.getBoundingClientRect(),d=(0,i.c)(c,{...s,top:!o&&l?Math.max(s.top,r.get(l)):s.top}),h=t.dataset.checkState,f=u(t);return{mark:t,rect:c,visible:d,header:o,before:h,dash:f,delay:0}}).sort((e,t)=>e.rect.top-t.rect.top||e.rect.left-t.rect.left),o={marks:n,resolved:!1},l=0;for(let e of n)c.delete(e.mark),e.delay=e.visible&&!e.header?55*l++:0,s.set(e.mark,{batch:o,entry:e}),void 0===e.before&&e.mark.style.setProperty("--check-delay","".concat(e.delay,"ms"));requestAnimationFrame(()=>{var e;for(let a of t)(null==(e=s.get(a))?void 0:e.batch)===o&&s.delete(a)})}function f(e){var t,a,r,n;if(e.closest("thead"))return void h(e.closest("table"));let o=e.querySelector("[data-check-art]")?e:e.parentElement,l=new Set(null==o?void 0:o.querySelectorAll("[data-check-art]"));for(let a of null!=(r=null==(t=e.closest("table"))?void 0:t.querySelectorAll("thead [data-check-art]"))?r:[])l.add(a);for(let t=e.closest("[data-selection-scope]");t;t=null!=(n=null==(a=t.parentElement)?void 0:a.closest("[data-selection-scope]"))?n:null){let e=t.querySelector("[data-check-art]");(null==e?void 0:e.closest("[data-selection-scope]"))===t&&l.add(e)}let d=new Map,f=Array.from(l,e=>({mark:e,snapshot:void 0===e.dataset.checkState?void 0:{visible:!document.hidden&&(0,i.c)(e.getBoundingClientRect(),(0,i.M)(e,d)),dash:u(e)}}));for(let{mark:e,snapshot:t}of f)s.delete(e),e.style.removeProperty("--check-delay"),t&&c.set(e,t);requestAnimationFrame(()=>{for(let{mark:e,snapshot:t}of f)c.get(e)===t&&c.delete(e)})}let m=(0,n.memo)(function(e){let{checked:t,mixed:a=!1,className:u}=e,h=(0,n.useRef)(null),f=(0,n.useRef)({checked:t,mixed:a}),m=(0,n.useRef)([]),{reducedMotion:p,durationScale:g}=(0,o.Yp)();return(0,n.useLayoutEffect)(()=>{var e,r,n;let o=h.current,u=f.current;if(f.current={checked:t,mixed:a},!o)return;let v=u.checked!==t||u.mixed!==a,b=o.querySelector("[data-check-stroke]"),k=s.get(o),x=null!=(e=null==k?void 0:k.entry)?e:c.get(o),y=null!=(r=null==x?void 0:x.dash)?r:m.current.some(e=>"running"===e.playState)?getComputedStyle(b).strokeDashoffset:u.checked&&!u.mixed?"0":String(1.12),w=x?x.visible:v&&!p&&!document.hidden&&(0,i.c)(o.getBoundingClientRect(),(0,i.M)(o));if(m.current.forEach(e=>e.cancel()),m.current=[],d.delete(o),o.removeAttribute("data-check-cascading"),s.delete(o),c.delete(o),!v||p||document.hidden||!w||"function"!=typeof b.animate)return;k&&function(e){if(e.resolved)return;e.resolved=!0;let t=0;for(let a of e.marks)a.visible&&!a.header&&a.before!==a.mark.dataset.checkState&&(a.delay=55*t++)}(k.batch);let j=null!=(n=null==k?void 0:k.entry.delay)?n:0;m.current=[b.animate([{strokeDashoffset:y},{strokeDashoffset:t&&!a?0:1.12}],{duration:.5*l.C.enter*g,delay:j*g,easing:l.C.ease,fill:"backwards"})],d.add(o),k&&o.setAttribute("data-check-cascading","true");let C=()=>{m.current.forEach(e=>e.cancel()),d.delete(o),o.removeAttribute("data-check-cascading"),document.removeEventListener("visibilitychange",S)},S=()=>{document.hidden&&C()};return document.addEventListener("visibilitychange",S),m.current[0].onfinish=C,()=>document.removeEventListener("visibilitychange",S)},[t,a,p,g]),(0,n.useLayoutEffect)(()=>()=>m.current.forEach(e=>e.cancel()),[]),(0,r.jsxs)("svg",{ref:h,"data-check-art":"","data-check-state":a?"mixed":t?"checked":"unchecked",viewBox:"0 0 16 16",className:u,"aria-hidden":"true",focusable:"false",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("path",{"data-check-stroke":"",d:"m3.5 8 3 3 6-6",pathLength:"1",strokeDasharray:"1 2",strokeDashoffset:t&&!a?0:1.12}),(0,r.jsx)("path",{d:"M3.5 8h9",opacity:+!!a})]})})},24612:(e,t,a)=>{a.d(t,{M:()=>function e(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,r=a.get(t);if(r)return r;let n=t.parentElement?{...e(t.parentElement,a)}:{top:0,left:0,right:window.innerWidth,bottom:window.innerHeight},o=getComputedStyle(t),l=/hidden|clip|auto|scroll/.test(o.overflowX),i=/hidden|clip|auto|scroll/.test(o.overflowY);
1if(l||i){let e=t.getBoundingClientRect();l&&(n.left=Math.max(n.left,e.left),n.right=Math.min(n.right,e.right)),i&&(n.top=Math.max(n.top,e.top),n.bottom=Math.min(n.bottom,e.bottom))}return a.set(t,n),n},c:()=>r});function r(e,t){return e.width>0&&e.height>0&&e.bottom>t.top&&e.top<t.bottom&&e.right>t.left&&e.left<t.right}},45193:(e,t,a)=>{a.r(t),a.d(t,{ProductionSetDialog:()=>h});var r=a(95155),n=a(12115),o=a(18720),l=a(51834),i=a(3998),s=a(65142),c=a(59423),d=a(92792),u=a(88981);function h(e){var t,a,h,f,m,p;let{apiBase:g,templates:v,savedSearches:b,onClose:k,onCreated:x}=e,y=b.filter(e=>"ready"===e.status),[w,j]=(0,n.useState)(""),[C,S]=(0,n.useState)(null!=(f=null==(t=v[0])?void 0:t.id)?f:""),[M,N]=(0,n.useState)(null!=(m=null==(a=y[0])?void 0:a.id)?m:""),[E,A]=(0,n.useState)(!1),L=v.find(e=>e.id===C),R=y.find(e=>e.id===M),_=w.trim()?C?M?null:"Choose the saved search to produce.":"Choose a template.":"Give the production a name.";async function D(){if(!_){A(!0);try{let e=await (0,d.Ak)(g,{name:w.trim(),template_id:C,source_saved_search_id:M});o.oR.success("Created ".concat(e.name)),x(e)}catch(e){(0,c.Kf)(e,"Unable to create the production set")}finally{A(!1)}}}return(0,r.jsx)(l.lG,{open:!0,onOpenChange:e=>!e&&!E&&k(),children:(0,r.jsxs)(l.Cf,{className:"sm:max-w-lg",children:[(0,r.jsxs)(l.c7,{children:[(0,r.jsx)(l.L3,{className:"text-neutral-900",children:"New production"}),(0,r.jsx)(l.rr,{className:"text-neutral-600 text-sm",children:"Choose the documents by saved search and the template that decides how they are numbered, imaged and described. Nothing is produced until you run the set."})]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)(u.D0,{label:"Production name",hint:"Shown in the production log and used to name the downloaded volume.",children:(0,r.jsx)(s.pd,{value:w,maxLength:200,placeholder:"Production 001 to opposing counsel",onChange:e=>j(e.target.value),autoFocus:!0})}),(0,r.jsx)(u.D0,{label:"Documents",hint:R?"snapshot"===R.search_type?"A frozen snapshot of ".concat(null!=(p=null==(h=R.document_count)?void 0:h.toLocaleString())?p:"its"," documents."):"A dynamic search: the population is what matches when the run starts.":0===y.length?"Create a saved search on the Documents page first.":void 0,children:(0,r.jsxs)(s.mh,{value:M,onChange:e=>N(e.target.value),disabled:0===y.length,children:[0===y.length&&(0,r.jsx)("option",{value:"",children:"No saved searches are ready"}),y.map(e=>(0,r.jsx)("option",{value:e.id,children:e.name},e.id))]})}),(0,r.jsx)(u.D0,{label:"Template",hint:L?"Bates ".concat((0,d.SA)(L.config.numbering)," \xb7 ").concat(L.config.lanes.image_format.toUpperCase()," \xb7 ").concat(L.config.load_file.formats.map(e=>e.toUpperCase()).join(" + ")):0===v.length?"Create a production template on the Templates tab first.":void 0,children:(0,r.jsxs)(s.mh,{value:C,onChange:e=>S(e.target.value),disabled:0===v.length,children:[0===v.length&&(0,r.jsx)("option",{value:"",children:"No templates yet"}),v.map(e=>(0,r.jsxs)("option",{value:e.id,children:[e.name,"firm"===e.scope?" (firm-wide)":""]},e.id))]})}),L&&!L.config.endorsement_template_id&&(0,r.jsx)("p",{className:"text-xs text-neutral-500",children:"This template has no endorsement template, so the produced pages will carry no printed Bates number. Load files and file names still carry the numbers."})]}),(0,r.jsxs)(l.Es,{className:"gap-2",children:[(0,r.jsx)(i.$,{variant:"secondary",onClick:k,disabled:E,children:"Cancel"}),(0,r.jsx)(i.$,{variant:"primary",onClick:D,disabled:E||!!_,children:E?"Creating…":"Create draft"})]})]})})}},65142:(e,t,a)=>{a.d(t,{Oc:()=>u,RE:()=>i,TM:()=>c,mh:()=>d,pd:()=>s});var r=a(95155),n=a(12115),o=a(23264),l=a(64269);function i(){let{multiline:e=!1,compact:t=!1,className:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.cn)("rounded-control border-[length:var(--border-width)] border-input bg-surface px-2.5 py-1 text-base text-foreground shadow-surface placeholder:text-muted-foreground transition-[border-color,box-shadow] duration-150 focus:border-ring disabled:opacity-45 disabled:cursor-not-allowed disabled:bg-surface-subtle focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring aria-invalid:border-accent-red aria-invalid:focus:border-accent-red aria-invalid:focus-visible:ring-accent-red md:text-sm",e?"min-h-16 py-2":t?"h-[var(--control-height-compact)] rounded-control-sm px-2 py-0 text-xs leading-4 md:text-xs":"h-[var(--control-height)]",a)}let s=n.forwardRef(function(e,t){let{className:a,compact:n=!1,...o}=e;return(0,r.jsx)("input",{ref:t,className:i({compact:n,className:a}),...o})}),c=n.forwardRef(function(e,t){let{className:a,...n}=e;return(0,r.jsx)("textarea",{ref:t,className:i({multiline:!0,className:a}),...n})}),d=n.forwardRef(function(e,t){let{className:a,...n}=e;return(0,r.jsx)("select",{ref:t,className:i({className:a}),...n})}),u=n.forwardRef(function(e,t){let{className:a,onClick:n,customIndicator:i=!1,...s}=e,c=(0,r.jsx)("input",{ref:t,type:"checkbox",onClick:e=>{(0,o.hK)(e.currentTarget),null==n||n(e)},className:(0,l.cn)("size-4 shrink-0 cursor-pointer rounded-[var(--checkbox-radius)] border border-border bg-white text-black disabled:opacity-60 disabled:cursor-not-allowed focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",a),...s});return i?c:(0,r.jsxs)("span",{className:"motion-native-checkbox",children:[c,(0,r.jsxs)("svg",{"data-check-art":"",viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("path",{"data-native-check":"",d:"m3.5 8 3 3 6-6",pathLength:"1",strokeDasharray:"1 2"}),(0,r.jsx)("path",{"data-native-mixed":"",d:"M3.5 8h9"})]})]})})}}]);

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.