PageSourceSearch

https://www.enterpriseaigroup.com/_next/static/chunks/6833.db8f0a2d777f5a86.js

js enterpriseaigroup.com collected 2026-10-07 19:47:36 UTC 44,937 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6833],{3022:e=>{e.exports={sub:"AIFeatureTabsBlock_sub__kDGpU",feat:"AIFeatureTabsBlock_feat__2iKjZ",list:"AIFeatureTabsBlock_list__ngvyi",item:"AIFeatureTabsBlock_item__fzNuU",on:"AIFeatureTabsBlock_on__pg6_V",txt:"AIFeatureTabsBlock_txt__URYM8",more:"AIFeatureTabsBlock_more__KQFNB",bar:"AIFeatureTabsBlock_bar__EQMdd",playing:"AIFeatureTabsBlock_playing__HQyZ6",featFill:"AIFeatureTabsBlock_featFill__gu0e4",held:"AIFeatureTabsBlock_held__NK_RJ",still:"AIFeatureTabsBlock_still__jQyW5",demo:"AIFeatureTabsBlock_demo__5zltu",plate:"AIFeatureTabsBlock_plate__ZZGNV",label:"AIFeatureTabsBlock_label__rhrat",appWrap:"AIFeatureTabsBlock_appWrap__Vo2SJ",ob:"AIFeatureTabsBlock_ob__UU4aS",obWithHelper:"AIFeatureTabsBlock_obWithHelper__DUkhB",obMain:"AIFeatureTabsBlock_obMain__WQsLC",obBehind:"AIFeatureTabsBlock_obBehind__z6SU4",obTop:"AIFeatureTabsBlock_obTop__9jMlO",obTagline:"AIFeatureTabsBlock_obTagline__7AryA",obLogo:"AIFeatureTabsBlock_obLogo__mT0W2",obSteps:"AIFeatureTabsBlock_obSteps__K7I3Y",done:"AIFeatureTabsBlock_done__hr3h0",obCard:"AIFeatureTabsBlock_obCard__HI6HS",obFields:"AIFeatureTabsBlock_obFields___uV8u",obList:"AIFeatureTabsBlock_obList__ftSST",obOk:"AIFeatureTabsBlock_obOk__BzQY2",obWarn:"AIFeatureTabsBlock_obWarn__A2Fnv",obBtn:"AIFeatureTabsBlock_obBtn__bLVEk",obPrimary:"AIFeatureTabsBlock_obPrimary__pKefW",obNav:"AIFeatureTabsBlock_obNav__uzMoE",obDocs:"AIFeatureTabsBlock_obDocs___hWGk",obDocsName:"AIFeatureTabsBlock_obDocsName__vok8d",obRules:"AIFeatureTabsBlock_obRules__6o8eE",bad:"AIFeatureTabsBlock_bad__PKr8o",obModalBack:"AIFeatureTabsBlock_obModalBack__74WmB",obFade:"AIFeatureTabsBlock_obFade__f0J1O",obModal:"AIFeatureTabsBlock_obModal__HMR3n",obRise:"AIFeatureTabsBlock_obRise__O_6uw",obModalHd:"AIFeatureTabsBlock_obModalHd__c4sN4",obX:"AIFeatureTabsBlock_obX__4SG17",obModalBody:"AIFeatureTabsBlock_obModalBody__sqzIx",obModalDoc:"AIFeatureTabsBlock_obModalDoc__wQl0e",obId:"AIFeatureTabsBlock_obId__Nxutf",obIdPhoto:"AIFeatureTabsBlock_obIdPhoto__AXvfu",obIdMrz:"AIFeatureTabsBlock_obIdMrz__C9Pzz",obPaper:"AIFeatureTabsBlock_obPaper__kjYjc",obChecks:"AIFeatureTabsBlock_obChecks__pi3fk",wait:"AIFeatureTabsBlock_wait__SdoQr",run:"AIFeatureTabsBlock_run__NVVN5",obSpin:"AIFeatureTabsBlock_obSpin__ZVhul",ok:"AIFeatureTabsBlock_ok__cjjLN",obPop:"AIFeatureTabsBlock_obPop__1DGFf",obForm:"AIFeatureTabsBlock_obForm__uWAfy",obField:"AIFeatureTabsBlock_obField__w7QS4",obInput:"AIFeatureTabsBlock_obInput__aRoXK",obSignWrap:"AIFeatureTabsBlock_obSignWrap__TdmTa",obSign:"AIFeatureTabsBlock_obSign__IVmFo",signed:"AIFeatureTabsBlock_signed__WaMxo",obDone:"AIFeatureTabsBlock_obDone__2i_K9",obHelper:"AIFeatureTabsBlock_obHelper__pMigv",obMsg:"AIFeatureTabsBlock_obMsg__YKjlL",obSideHd:"AIFeatureTabsBlock_obSideHd__Eypfe",obChip:"AIFeatureTabsBlock_obChip__vPDrr",obChat:"AIFeatureTabsBlock_obChat__hmyg0",obMe:"AIFeatureTabsBlock_obMe__3ZZqw",obSrc:"AIFeatureTabsBlock_obSrc__8i1c1",obAsks:"AIFeatureTabsBlock_obAsks__pLz4E",obBubble:"AIFeatureTabsBlock_obBubble__48GPO",obEnter:"AIFeatureTabsBlock_obEnter__oNkjL",obIn:"AIFeatureTabsBlock_obIn__aUthN",obSlide:"AIFeatureTabsBlock_obSlide__dyLxE",obFill:"AIFeatureTabsBlock_obFill__UYunx",obPing:"AIFeatureTabsBlock_obPing__lKCVY",ucCta:"AIFeatureTabsBlock_ucCta__vT7H0",ucOpen:"AIFeatureTabsBlock_ucOpen__C3Len",dialog:"AIFeatureTabsBlock_dialog__TBEYH",ucHd:"AIFeatureTabsBlock_ucHd___U0qj",ucHdCopy:"AIFeatureTabsBlock_ucHdCopy__ZewtT",ucX:"AIFeatureTabsBlock_ucX__ov6zv",ucBd:"AIFeatureTabsBlock_ucBd__oG5R4",ucFt:"AIFeatureTabsBlock_ucFt__B7_tn",ucBack:"AIFeatureTabsBlock_ucBack__OwLWs",ucTag:"AIFeatureTabsBlock_ucTag__nNYcK",ucTabs:"AIFeatureTabsBlock_ucTabs__GLYPH",ucGrid:"AIFeatureTabsBlock_ucGrid__m39WF",ucCard:"AIFeatureTabsBlock_ucCard__gtiW_",ucCardCopy:"AIFeatureTabsBlock_ucCardCopy__VHnlH",ucFix:"AIFeatureTabsBlock_ucFix___gKpa",ucSec:"AIFeatureTabsBlock_ucSec__DO6o_",ucSecSub:"AIFeatureTabsBlock_ucSecSub__TJqlH",ucBa:"AIFeatureTabsBlock_ucBa__MNtpX",ucBaArrow:"AIFeatureTabsBlock_ucBaArrow__fvszH",art:"AIFeatureTabsBlock_art__oY5Gr",artAfter:"AIFeatureTabs
1Block_artAfter__Dc5ak",ucConfig:"AIFeatureTabsBlock_ucConfig__eFP1c",isText:"AIFeatureTabsBlock_isText__7yEw0",ucGo:"AIFeatureTabsBlock_ucGo__0jkIl","ca-card":"AIFeatureTabsBlock_ca-card__m3pAK","ca-card-on":"AIFeatureTabsBlock_ca-card-on___BNXK","ca-soft":"AIFeatureTabsBlock_ca-soft__tpeV7","ca-face":"AIFeatureTabsBlock_ca-face__kRsLy","ca-bar":"AIFeatureTabsBlock_ca-bar__VpqL6","ca-ink":"AIFeatureTabsBlock_ca-ink___qEfy","ca-white":"AIFeatureTabsBlock_ca-white__nYq_d","ca-ok":"AIFeatureTabsBlock_ca-ok__QdLBW","ca-warn":"AIFeatureTabsBlock_ca-warn__8QKGj","ca-bad":"AIFeatureTabsBlock_ca-bad__vQr96","ca-ok-wash":"AIFeatureTabsBlock_ca-ok-wash__H2yZV","ca-warn-wash":"AIFeatureTabsBlock_ca-warn-wash__EK8xm","ca-bad-wash":"AIFeatureTabsBlock_ca-bad-wash__q49BT","ca-blue-wash":"AIFeatureTabsBlock_ca-blue-wash__o8ykN","ca-mark":"AIFeatureTabsBlock_ca-mark__SxNE2","ca-line":"AIFeatureTabsBlock_ca-line__3mKtY","ca-line-soft":"AIFeatureTabsBlock_ca-line-soft__rlqXR","ca-hand":"AIFeatureTabsBlock_ca-hand__sCE7e","ca-dash":"AIFeatureTabsBlock_ca-dash__G3no_","ca-lens":"AIFeatureTabsBlock_ca-lens__7P2Ac","ca-handle":"AIFeatureTabsBlock_ca-handle__Gq9bu","ca-cursor":"AIFeatureTabsBlock_ca-cursor__zVcSL","ca-stamp":"AIFeatureTabsBlock_ca-stamp__a5y_G","ca-t":"AIFeatureTabsBlock_ca-t__QGNpu","ca-t-mute":"AIFeatureTabsBlock_ca-t-mute__uOBkd","ca-t-white":"AIFeatureTabsBlock_ca-t-white__M_Mjn","ca-t-ok":"AIFeatureTabsBlock_ca-t-ok__D1M9t","ca-t-warn":"AIFeatureTabsBlock_ca-t-warn__j7cMN","ca-t-bad":"AIFeatureTabsBlock_ca-t-bad__vP7KT","ca-t-blue":"AIFeatureTabsBlock_ca-t-blue__1qNG_"}},6833:(e,a,l)=>{"use strict";l.r(a),l.d(a,{AIFeatureTabsBlock:()=>Z});var t=l(95155),c=l(12115),s=l(28601),n=l(36829),r=l(75374),i=l(70588),o=l(7010),d=l(3022),u=l.n(d);function x(e,a,l){if(0===l)return null;switch(e){case"ArrowDown":case"ArrowRight":return(a+1)%l;case"ArrowUp":case"ArrowLeft":return(a-1+l)%l;case"Home":return 0;case"End":return l-1;default:return null}}let h=(e,a)=>"".concat(e,"-tab-").concat(a);function b(e){let{features:a,active:l,run:s,playing:n,held:r,still:i,idPrefix:o,panelId:d,labelledBy:b,onSelect:m}=e,j=(0,c.useRef)(null),_=(0,c.useRef)([]);(0,c.useEffect)(()=>{var e,a;let t=j.current,c=_.current[l];if(!t||!c||"function"!=typeof t.scrollTo||t.scrollWidth<=t.clientWidth+4)return;let s=null==(e=(a=window).matchMedia)?void 0:e.call(a,"(prefers-reduced-motion: reduce)").matches;t.scrollTo({left:c.offsetLeft-t.offsetLeft,behavior:s?"auto":"smooth"})},[l]);let p=e=>{var t;let c=x(e.key,l,a.length);null!==c&&(e.preventDefault(),m(c),null==(t=_.current[c])||t.focus())},y=e=>{e.target===e.currentTarget&&n&&m((l+1)%a.length)},g=[u().list,n?u().playing:"",r?u().held:"",i?u().still:""].filter(Boolean).join(" ");return(0,t.jsx)("div",{ref:j,className:g,role:"tablist","aria-labelledby":b,children:a.map((e,a)=>{var c;let n=a===l;return(0,t.jsxs)("button",{ref:e=>{_.current[a]=e},type:"button",role:"tab",id:h(o,a),"aria-selected":n,"aria-controls":d,tabIndex:n?0:-1,className:"".concat(u().item," ").concat(n?u().on:""),onClick:()=>m(a),onKeyDown:p,children:[(0,t.jsxs)("span",{className:u().txt,children:[(0,t.jsx)("b",{children:e.title}),e.summary?(0,t.jsx)("small",{children:e.summary}):null,e.detail?(0,t.jsx)("span",{className:u().more,children:(0,t.jsx)("span",{children:e.detail})}):null]}),(0,t.jsx)("span",{className:u().bar,"aria-hidden":"true",children:(0,t.jsx)("i",{onAnimationEnd:n?y:void 0},s)})]},null!=(c=e.id)?c:e.key)})})}let m={chatbot:0,checklist:1,validation:2,creation:3},j=e=>Math.max(0,Math.min(3,e));function _(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p({active:a,scene:e,mode:"idle",run:0,entering:!1,step:0,chatOpen:!1,asked:[],uploaded:[],openDoc:null,checked:0,signed:!1,submitted:!1},a,e,"idle")}function p(e,a,l,t){let c="end"===t;return{active:a,scene:l,mode:t,run:e.run+1,entering:"play"===t,step:m[l],chatOpen:"chatbot"===l,asked:"chatbot"===l&&0===e.asked.length?[0]:e.asked,uploaded:[],openDoc:"validation"===l&&c?0:null,checked:"validation"===l&&c?1/0:0,signed:"creation"===l&&c,submitted:"creation"===l&&c}}function y(e,a){if("show"===a.type)return p(e,a.index,a.scene,a.mode);if("replay"===a.type)return p(e,e.active,e.scene,a.mode);let l={...e,entering:!1};switch(a.type){case"step":return{...l,step:j(a.step),chatOpen:!1,openDoc:null};case"go":return{...l,step:j(e.step+a.delta),chatOpen:!1,openDoc:null};case"toggleChat":return{...l,chatOpen:!e.chatOpen};case"ask":return{...l,asked:[...e.asked,a.question].slice(-2)};case"upload":return e.uploaded.includes(a.doc)?l:{...l,uploaded:[...e.uploaded,a.doc]};case"openDoc":return{...l,openDoc:a.doc,checked:0};case"tick":return null===e.openDoc?l:{...l,checked:e.checked+1};case"closeDoc":return{...l,openDoc:null,checked:0};case"sign":return{...l,signed:!0};case"submit":return{...l,signed:!0,submitted:!0}}}function g(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.from({length:Math.max(0,e)},(e,l)=>({at:a+700*(l+1),action:{type:"tick"}}))}let k=function(){for(var e=arguments.length,a=Array(e),l=0;l<e;l++)a[l]=arguments[l];
1return a.filter(Boolean).join(" ")},f=e=>(null!=e?e:[]).filter(e=>(null==e?void 0:e.label)||(null==e?void 0:e.value));function v(e){var a,l;let{content:s,state:n,act:r,idPrefix:i}=e,{details:o,assistant:d,documents:x,contract:h}=s,b=(null!=(l=null==x?void 0:x.items)?l:[]).filter(e=>null==e?void 0:e.name),m=[null==o?void 0:o.stepName,null==x?void 0:x.checklistStepName,null==x?void 0:x.checkStepName,null==h?void 0:h.stepName],j=3===n.step,_=null===n.openDoc?void 0:b[n.openDoc],p=(0,c.useRef)(null);return(0,c.useEffect)(()=>{let e=p.current;e&&(e.scrollTop=e.scrollHeight)},[n.asked,n.chatOpen]),(0,t.jsxs)("div",{className:k(u().ob,j&&u().obWithHelper,n.entering&&u().obEnter),onKeyDown:e=>{"Escape"===e.key&&_&&(e.stopPropagation(),r({type:"closeDoc"}))},children:[(0,t.jsxs)("div",{className:k(u().obMain,"chatbot"===n.scene&&n.chatOpen&&u().obBehind),children:[(0,t.jsxs)("div",{className:u().obTop,children:[s.appName?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:u().obLogo,"aria-hidden":"true",children:Array.from(s.appName.trim())[0]}),(0,t.jsx)("b",{children:s.appName})]}):null,s.appTagline?(0,t.jsx)("span",{className:u().obTagline,children:s.appTagline}):null]}),(0,t.jsx)("ol",{className:u().obSteps,children:m.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:k(a===n.step&&u().on,a<n.step&&u().done),"aria-current":a===n.step?"step":void 0,onClick:()=>r({type:"step",step:a}),children:[(0,t.jsx)("span",{"aria-hidden":"true",children:a+1}),e]})},a))}),(0,t.jsxs)("div",{className:u().obCard,children:[m[n.step]?(0,t.jsx)("h3",{children:m[n.step]}):null,0===n.step?(0,t.jsx)("dl",{className:u().obFields,children:f(null==o?void 0:o.answers).map((e,a)=>{var l;return(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{children:e.label}),(0,t.jsx)("dd",{children:e.value})]},null!=(l=e.id)?l:a)})}):null,1===n.step?(0,t.jsx)("ul",{className:u().obList,children:b.map((e,a)=>{var l;return(0,t.jsxs)("li",{children:[(0,t.jsx)("span",{children:e.name}),!1!==e.uploaded||n.uploaded.includes(a)?(0,t.jsx)("i",{className:u().obOk,role:"img","aria-label":(null==x?void 0:x.uploadedLabel)||void 0,"aria-hidden":null==x||!x.uploadedLabel||void 0,children:"✓"}):(0,t.jsxs)(t.Fragment,{children:[(null==x?void 0:x.missingLabel)?(0,t.jsx)("i",{className:u().obWarn,children:x.missingLabel}):null,(null==x?void 0:x.uploadLabel)?(0,t.jsx)("button",{type:"button",className:u().obBtn,onClick:()=>r({type:"upload",doc:a}),children:x.uploadLabel}):null]})]},null!=(l=e.id)?l:a)})}):null,2===n.step?(0,t.jsx)("ul",{className:u().obDocs,children:b.map((e,a)=>{var l,c;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>r({type:"openDoc",doc:a}),children:[(0,t.jsxs)("span",{className:u().obDocsName,children:[(0,t.jsx)("b",{children:e.name}),e.fileName?(0,t.jsx)("small",{children:e.fileName}):null]}),(0,t.jsx)("span",{className:u().obRules,children:(null!=(l=e.rules)?l:[]).map((e,a)=>{var l;return(0,t.jsxs)("span",{className:!1===e.passes?u().bad:void 0,children:[!1===e.passes?"!":"✓"," ",e.label]},null!=(l=e.id)?l:a)})})]})},null!=(c=e.id)?c:a)})}):null,j?n.submitted?(0,t.jsxs)("div",{className:u().obDone,children:[(0,t.jsx)("i",{className:u().obOk,"aria-hidden":"true",children:"✓"}),(null==h?void 0:h.submittedTitle)?(0,t.jsx)("b",{children:h.submittedTitle}):null,(null==h?void 0:h.submittedNote)?(0,t.jsx)("small",{children:h.submittedNote}):null]}):(0,t.jsxs)("div",{className:u().obForm,children:[f(null==h?void 0:h.answers).map((e,a)=>{var l;return(0,t.jsxs)("div",{className:u().obField,children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)("span",{className:u().obInput,children:e.value})]},null!=(l=e.id)?l:a)}),(null==h?void 0:h.signPrompt)&&h.signature?(0,t.jsxs)("div",{className:k(u().obField,u().obSignWrap),children:[h.signatureLabel?(0,t.jsx)("span",{children:h.signatureLabel}):null,(0,t.jsx)("button",{type:"button",className:k(u().obSign,n.signed&&u().signed),onClick:()=>r({type:"sign"}),children:n.signed?h.signature:h.signPrompt})]}):null]}):null,(0,t.jsxs)("div",{className:u().obNav,children:[n.step>0&&s.backLabel?(0,t.jsx)("button",{type:"button",className:u().obBtn,onClick:()=>r({type:"go",delta:-1}),children:s.backLabel}):(0,t.jsx)("span",{}),n.step<3&&s.nextLabel?(0,t.jsx)("button",{type:"button",className:k(u().obBtn,u().obPrimary),onClick:()=>r({type:"go",delta:1}),children:s.nextLabel}):null]})]})]}),j&&(null==h?void 0:h.assistantTitle)?(0,t.jsxs)("div",{className:u().obHelper,role:"group","aria-labelledby":"".concat(i,"-helper"),children:[(0,t.jsxs)("div",{className:u().obSideHd,children:[(0,t.jsx)("b",{id:"".concat(i,"-helper"),children:h.assistantTitle}),h.assistantChip?(0,t.jsx)("span",{className:u().obChip,children:h.assistantChip}):null]}),(0,t.jsxs)("div",{className:u().obChat,children:[h.filledMessage?(0,t.jsx)("div",{className:u().obMsg,children:h.filledMessage}):null,!n.signed&&h.signMessage?(0,t.jsx)("div",{className:u().obMsg,children:h.signMessage}):null,n.signed&&!n.submitted&&(h.signedMessage||h.submitLabel)?(0,t.jsxs)("div",{className:u().obMsg,children:[h.signedMessage,h.submitLabel?(0,t.jsx)("button",{type:"button",className:k(u().obBtn,u().obPrimary),onClick:()=>r({type:"submit"}),children:h.submitLabel}):null]}):null,n.submitted&&h.doneMessage?(0,t.jsx)("div",{className:u().obMsg,children:h.doneMessage}):null]})]}):null,_?(0,t.jsx)(F,{doc:_,checked:n.checked,closeLabel:null==x?void 0:x.closeLabel,titleId:"".concat(i,"-doc"),onClose:()=>r({type:"closeDoc"})}):null,!j&&(null==d?void 0:d.title)?(0,t.jsxs)(t.Fragment,{children:[d.openLabel&&d.closeLabel?(0,t.jsx)("button",{type:"button",className:u().obBubble,"aria-label":n.chatOpen?d.closeLabel:d.openLabel,"aria-expanded":n.chatOpen,onClick:()=>r({type:"toggleChat"}),children:n.chatOpen?"\xd7":(0,t.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,t.jsx)("path",{d:"M4 5h16v11H9l-5 4z"})})}):null,n.chatOpen?(0,t.jsxs)("div",{className:u().obPop,role:"group","aria-labelledby":"".concat(i,"-assistant"),children:[(0,t.jsxs)("div",{className:u().obSideHd,children:[(0,t.jsx)("b",{id:"".concat(i,"-assistant"),children:d.title}),d.sourceChip?(0,t.jsx)("span",{className:u().obChip,children:d.sourceChip}):null]}),(0,t.jsxs)("div",{ref:p,className:u().obChat,"aria-live":"polite",children:[d.greeting?(0,t.jsx)("div",{className:u().obMsg,children:d.greeting}):null,n.asked.map((e,a)=>{var l;let s=null==(l=d.questions)?void 0:l[e];return s?(0,t.jsxs)(c.Fragment,{children:[(0,t.jsx)("div",{className:k(u().obMsg,u().obMe),children:s.question}),(0,t.jsxs)("div",{className:u().obMsg,children:[s.answer,s.source?(0,t.jsx)("span",{className:u().obSrc,children:s.source}):null]})]},"".concat(a,"-").concat(e)):null})]}),(null==(a=d.questions)?void 0:a.length)?(0,t.jsx)("div",{className:u().obAsks,children:d.questions.map((e,a)=>{var l;return(0,t.jsx)("button",{type:"button",onClick:()=>r({type:"ask",question:a}),children:e.question},null!=(l=e.id)?l:a)})}):null]}):null]}):null]},n.run)}function F(e){var a;let{doc:l,checked:c,closeLabel:s,titleId:n,onClose:r}=e,i=f(l.previewLines);return(0,t.jsx)("div",{className:u().obModalBack,onClick:e=>{e.target===e.currentTarget&&r()},children:(0,t.jsxs)("div",{className:u().obModal,role:"group","aria-labelledby":n,children:[(0,t.jsxs)("div",{className:u().obModalHd,children:[(0,t.jsx)("b",{id:n,children:l.name}),s?(0,t.jsx)("button",{type:"button",className:u().obX,"aria-label":s,onClick:r,children:"\xd7"}):null]}),(0,t.jsxs)("div",{className:u().obModalBody,children:[(0,t.jsx)("div",{className:u().obModalDoc,children:"idCard"===l.previewStyle?(0,t.jsxs)("div",{className:u().obId,children:[(0,t.jsx)("div",{className:u().obIdPhoto,"aria-hidden":"true"}),(0,t.jsx)("dl",{children:i.map((e,a)=>{var l;return(0,t.jsxs)("div",{children:[e.label?(0,t.jsx)("dt",{children:e.label}):null,(0,t.jsx)("dd",{children:e.value})]},null!=(l=e.id)?l:a)})}),l.previewCode?(0,t.jsx)("span",{className:u().obIdMrz,children:l.previewCode}):null]}):(0,t.jsxs)("div",{className:u().obPaper,children:[l.previewTitle?(0,t.jsx)("b",{children:l.previewTitle}):null,i.map((e,a)=>{var l;
1return(0,t.jsx)("p",{children:[e.label,e.value].filter(Boolean).join(" ")},null!=(l=e.id)?l:a)})]})}),(0,t.jsx)("ul",{className:u().obChecks,children:(null!=(a=l.rules)?a:[]).map((e,a)=>{var l,s;let n=(s=!1!==e.passes,a<c?s?"ok":"bad":a===c?"run":"wait");return(0,t.jsxs)("li",{className:u()[n],children:[(0,t.jsx)("i",{"aria-hidden":"true",children:"ok"===n?"✓":"bad"===n?"!":""}),(0,t.jsx)("span",{children:e.label})]},null!=(l=e.id)?l:a)})})]})]})})}let N=["chatbot","checklist","validation","creation"];function w(e,a){return e?e.replace(/\{(\w+)\}/g,(e,l)=>l in a?String(a[l]):e):""}function B(e,a){var l,t;return null!=(t=null==(l=e.find(e=>e.key===a))?void 0:l.title)?t:""}let T=e=>e.split(" ").map(e=>u()[e]).join(" ");function I(e){let{x:a,y:l,children:c,c:s="ca-t",size:n=9,anchor:r}=e;return(0,t.jsx)("text",{x:a,y:l,className:T(s),fontSize:n,textAnchor:r,children:c})}function A(e){let{x:a,y:l,w:c,n:s,gap:n=9}=e;return(0,t.jsx)(t.Fragment,{children:Array.from({length:s},(e,s)=>(0,t.jsx)("rect",{x:a,y:l+s*n,width:Math.max(12,c-s%3*10),height:4,rx:2,className:T("ca-bar")},s))})}function C(e){let{deg:a,cx:l,cy:c,children:s}=e;return a?(0,t.jsx)("g",{transform:"rotate(".concat(a," ").concat(l," ").concat(c,")"),children:s}):(0,t.jsx)(t.Fragment,{children:s})}function M(e){let{x:a,y:l,w:c,h:s,n=4,deg:r=0}=e;return(0,t.jsxs)(C,{deg:r,cx:a+c/2,cy:l+s/2,children:[(0,t.jsx)("rect",{x:a,y:l,width:c,height:s,rx:4,className:T("ca-card")}),(0,t.jsx)(A,{x:a+8,y:l+10,w:c-16,n:n})]})}function L(e){let{x:a,y:l,w:c=92,h:s=58,deg:n=0}=e;return(0,t.jsxs)(C,{deg:n,cx:a+c/2,cy:l+s/2,children:[(0,t.jsx)("rect",{x:a,y:l,width:c,height:s,rx:6,className:T("ca-card")}),(0,t.jsx)("rect",{x:a,y:l,width:c,height:12,rx:6,className:T("ca-soft")}),(0,t.jsx)("rect",{x:a,y:l+6,width:c,height:6,className:T("ca-soft")}),(0,t.jsx)("circle",{cx:a+20,cy:l+28,r:7,className:T("ca-face")}),(0,t.jsx)("path",{d:"M".concat(a+9," ").concat(l+48,"c0-7 5-11 11-11s11 4 11 11z"),className:T("ca-face")}),(0,t.jsx)(A,{x:a+38,y:l+22,w:c-48,n:3,gap:8})]})}function S(e){let{cx:a,cy:l,kind:c="ok",r:s=7}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:a,cy:l,r:s,className:T("ask"===c?"ca-ink":"ca-".concat(c))}),"ok"===c?(0,t.jsx)("path",{d:"M".concat(a-3.2," ").concat(l,"l2.2 2.2 4.2-4.4"),className:T("ca-mark")}):null,"bad"===c?(0,t.jsx)("path",{d:"M".concat(a-2.6," ").concat(l-2.6,"l5.2 5.2M").concat(a+2.6," ").concat(l-2.6,"l-5.2 5.2"),className:T("ca-mark")}):null,"ask"===c?(0,t.jsx)(I,{x:a,y:l+3.2,c:"ca-t ca-t-white",anchor:"middle",children:"?"}):null,"warn"===c?(0,t.jsx)("path",{d:"M".concat(a," ").concat(l-3.4,"v3.6M").concat(a," ").concat(l+2.6,"v.4"),className:T("ca-mark")}):null]})}function E(e){let{x:a,y:l,text:c,kind:s="ok"}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:a,y:l,width:Math.round(4.6*c.length+26),height:18,rx:9,className:T("ca-".concat(s,"-wash"))}),(0,t.jsx)(S,{cx:a+10,cy:l+9,kind:s,r:5.5}),(0,t.jsx)(I,{x:a+20,y:l+12.5,c:"ca-t ca-t-".concat(s),size:8.5,children:c})]})}function D(e){let{cx:a,cy:l,r:c=14}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:a,cy:l,r:c,className:T("ca-card")}),(0,t.jsx)("path",{d:"M".concat(a," ").concat(l,"V").concat(l-c+5,"M").concat(a," ").concat(l,"h").concat(c-6),className:T("ca-hand")})]})}function P(e){let{x1:a,y:l,x2:c}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M".concat(a," ").concat(l,"H").concat(c),className:T("ca-line")}),(0,t.jsx)("path",{d:"M".concat(c-5," ").concat(l-4,"l5 4-5 4"),className:T("ca-line")})]})}function H(e){let{cx:a,cy:l,r:c=14}=e,s=.14*c,n=.34*c;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:a,cy:l,r:c,className:T("ca-ink")}),(0,t.jsx)("path",{d:"M".concat(a," ").concat(l-.5*c,"l").concat(s," ").concat(n," ").concat(n," ").concat(s,"-").concat(n," ").concat(s,"-").concat(s," ").concat(n,"-").concat(s,"-").concat(n,"-").concat(n,"-").concat(s," ").concat(n,"-").concat(s,"z"),className:T("ca-white")})]})}function R(e){let{x:a,y:l,w:c=52,h:s=34}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:a,y:l,width:c,height:s,rx:4,className:T("ca-card")}),(0,t.jsx)("path",{d:"M".concat(a+2," ").concat(l+3,"l").concat(c/2-2," ").concat(s/2-2," ").concat(c/2-2,"-").concat(s/2-2),className:T("ca-line-soft")})]})}function O(e){let{x:a,y:l,w:c,h:s}=e;return(0,t.jsx)("rect",{x:a,y:l,width:c,height:s,rx:4,className:T("ca-dash")})}function W(e){let{x:a,y:l,w:c,text:s,dark:n=!1}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:a,y:l,width:c,height:22,rx:11,className:T(n?"ca-ink":"ca-card")}),(0,t.jsx)(I,{x:a+11,y:l+14.5,c:n?"ca-t ca-t-white":"ca-t",children:s})]})}function z(e){let{x:a,y:l,text:c}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:a,y:l,width:Math.round(4.6*c.length+18),height:16,rx:8,className:T("ca-blue-wash")}),(0,t.jsx)(I,{x:a+9,y:l+11,c:"ca-t ca-t-blue",size:8.5,children:c})]})}function G(e){let{x:a,y:l,label:c,w:s=70}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I,{x:a,y:l+9,c:"ca-t ca-t-mute",size:8,children:c}),(0,t.jsx)("path",{d:"M".concat(a+40," ").concat(l+11,"h").concat(s),className:T("ca-dash")})]})}function K(e){let{cx:a,cy:l,r:c=14}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:a,cy:l,r:c,className:T("ca-lens")}),(0,t.jsx)("path",{d:"M".concat(a+.7*c," ").concat(l+.7*c,"l").concat(.6*c," ").concat(.6*c),className:T("ca-handle")}
1)]})}function q(e){let{x:a,y:l,w:c,text:s}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:a,y:l,width:c,height:13,rx:3,className:T("ca-blue-wash")}),s?(0,t.jsx)(I,{x:a+5,y:l+9.5,c:"ca-t ca-t-blue",size:8,children:s}):null]})}function V(e){let{x:a,y:l,w:c,text:s}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:a,y:l,width:c,height:14,rx:3,className:T("ca-warn-wash")}),(0,t.jsx)(I,{x:a+5,y:l+10,c:"ca-t ca-t-warn",size:8,children:s})]})}let U={"kyc-identity":{before:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(L,{x:18,y:50,deg:-10}),(0,t.jsx)(L,{x:30,y:40,deg:6}),(0,t.jsx)(L,{x:44,y:30,deg:-3}),(0,t.jsx)(D,{cx:176,cy:42}),(0,t.jsx)(I,{x:176,y:72,c:"ca-t ca-t-mute",anchor:"middle",children:"12 min each"}),(0,t.jsx)(E,{x:146,y:90,text:"214 waiting",kind:"warn"})]}),after:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(L,{x:14,y:36,w:100,h:64}),(0,t.jsx)(E,{x:126,y:26,text:"Name matches"}),(0,t.jsx)(E,{x:126,y:56,text:"Not expired"}),(0,t.jsx)(E,{x:126,y:86,text:"Photo present"})]})},"insurance-compliance":{before:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:30,y:10,width:96,height:116,rx:4,className:T("ca-card")}),(0,t.jsx)(I,{x:40,y:26,children:"Certificate"}),(0,t.jsx)(A,{x:40,y:36,w:76,n:9}),(0,t.jsx)(K,{cx:124,cy:78,r:18}),(0,t.jsx)(E,{x:150,y:22,text:"Expired?",kind:"warn"}),(0,t.jsx)(E,{x:150,y:46,text:"Cover?",kind:"warn"})]}),after:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:16,y:10,width:72,height:116,rx:4,className:T("ca-card")}),(0,t.jsx)(I,{x:26,y:26,children:"Certificate"}),(0,t.jsx)(A,{x:26,y:36,w:52,n:8,gap:10}),(0,t.jsx)(E,{x:100,y:22,text:"Cover $20m"}),(0,t.jsx)(E,{x:100,y:50,text:"Named insured"}),(0,t.jsx)(E,{x:100,y:78,text:"Expires in 12 days",kind:"warn"})]})},"permit-credentials":{before:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(L,{x:10,y:38,w:88}),(0,t.jsx)(I,{x:54,y:112,anchor:"middle",children:"LIC 48213"}),(0,t.jsx)("rect",{x:142,y:30,width:88,height:74,rx:6,className:T("ca-card")}),(0,t.jsx)(I,{x:152,y:46,children:"User record"}),(0,t.jsx)(A,{x:152,y:56,w:66,n:3}),(0,t.jsx)(I,{x:186,y:118,anchor:"middle",children:"LIC 48231"}),(0,t.jsx)("path",{d:"M100 67h40",className:T("ca-dash")}),(0,t.jsx)(S,{cx:120,cy:67,kind:"ask",r:9})]}),after:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(L,{x:10,y:30,w:88}),(0,t.jsx)("rect",{x:142,y:30,width:88,height:58,rx:6,className:T("ca-card")}),(0,t.jsx)(I,{x:152,y:46,children:"User record"}),(0,t.jsx)(A,{x:152,y:56,w:66,n:3}),(0,t.jsx)(P,{x1:102,y:59,x2:138}),(0,t.jsx)(E,{x:36,y:102,text:"Licence number doesn’t match",kind:"bad"})]})},"complete-first-time":{before:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:16,y:18,width:104,height:100,rx:6,className:T("ca-card")}),(0,t.jsx)(I,{x:26,y:34,children:"Application"}),(0,t.jsx)(M,{x:26,y:44,w:26,h:32,n:2}),(0,t.jsx)(O,{x:58,y:44,w:26,h:32}),(0,t.jsx)(O,{x:90,y:44,w:22,h:32}),(0,t.jsx)(R,{x:150,y:20,w:48,h:30}),(0,t.jsx)(R,{x:158,y:42,w:48,h:30}),(0,t.jsx)(R,{x:166,y:64,w:48,h:30}),(0,t.jsx)(E,{x:140,y:104,text:"3 follow-up emails",kind:"warn"})]}),after:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:36,y:10,width:168,height:116,rx:6,className:T("ca-card")}),["Photo ID","Proof of address","Signed form"].map((e,a)=>(0,t.jsxs)(c.Fragment,{children:[(0,t.jsx)(S,{cx:54,cy:32+24*a}),(0,t.jsx)(I,{x:68,y:35+24*a,children:e})]},e)),(0,t.jsx)("rect",{x:130,y:98,width:62,height:20,rx:6,className:T("ca-ink")}),(0,t.jsx)(I,{x:161,y:111,c:"ca-t ca-t-white",anchor:"middle",children:"Submit"})]})},"kyc-by-segment":{before:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:24,y:8,width:112,height:120,rx:6,className:T("ca-card")}),Array.from({length:8},(e,a)=>(0,t.jsxs)(c.Fragment,{children:[(0,t.jsx)("rect",{x:34,y:18+13*a,width:7,height:7,rx:2,className:T("ca-dash")}),(0,t.jsx)("rect",{x:46,y:19+13*a,width:70-a%3*12,height:4,rx:2,className:T("ca-bar")})]},a)),(0,t.jsx)(S,{cx:168,cy:40,kind:"ask",r:12}),(0,t.jsx)(I,{x:168,y:74,c:"ca-t ca-t-mute",anchor:"middle",children:"Which apply"}),(0,t.jsx)(I,{x:168,y:86,c:"ca-t ca-t-mute",anchor:"middle",children:"to me?"})]}),after:(0,t.jsx)(t.Fragment,{children:["Individual","Company","Trust"].map((e,a)=>(0,t.jsxs)(c.Fragment,{children:[(0,t.jsx)("rect",{x:10+76*a,y:18,width:68,height:100,rx:6,className:T(1===a?"ca-card-on":"ca-card")}),(0,t.jsx)(I,{x:44+76*a,y:36,anchor:"middle",children:e}),Array.from({length:2+a},(e,l)=>(0,t.jsxs)(c.Fragment,{children:[(0,t.jsx)("rect",{x:20+76*a,y:48+16*l,width:7,height:7,rx:2,className:T("ca-card")}),(0,t.jsx)("rect",{x:31+76*a,y:49.5+16*l,width:30-l%2*8,height:4,rx:2,className:T("ca-bar")})]},l))]},e))})},"grants-programs":{before:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M,{x:22,y:30,w:64,h:84,n:6,deg:-8}),(0,t.jsx)(M,{x:34,y:24,w:64,h:84,n:6,deg:4}),(0,t.jsx)(M,{x:46,y:20,w:64,h:84,n:6}),(0,t.jsx)(O,{x:140,y:26,w:60,h:76}),(0,t.jsx)(I,{x:170,y:68,c:"ca-t ca-t-mute",anchor:"middle",children:"Annex B"}),(0,t.jsx)(E,{x:128,y:108,text:"Annex B missing",kind:"bad"})]}),after:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M,{x:16,y:20,w:72,h:96,n:7}),(0,t.jsx)(P,{x1:96,y:68,x2:124}),["Budget","Letters of support","Annex B"].map((e,a)=>(0,t.jsx)(E,{x:132,y:34+26*a,text:e},e))]})},"applicant-guidance":{before:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:34,y:16,width:56,height:104,rx:10,className:T("ca-card")}),(0,t.jsx)("rect",{x:42,y:28,width:40,height:72,rx:4,className:T("ca-soft")}),(0,t.jsx)("circle",{cx:62,cy:110,r:4,className:T("ca-soft")}),(0,t.jsx)("path",{d:"M98 44c8 6 8 18 0 24M106 36c14 10 14 30 0 40",className:T("ca-line")}),(0,t.jsx)(E,{x:128,y:40,text:"On hold \xb7 24 min",kind:"warn"}),(0,t.jsx)(E,{x:128,y:68,text:"Form abandoned",kind:"bad"})]}),after:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(W,{x:84,y:14,w:140,text:"Do I need a site plan?",dark:!0}),(0,t.jsx)(H,{cx:26,cy:64,r:12}),(0,t.jsx)("rect",{x:46,y:46,width:164,height:36,rx:10,className:T("ca-card")}),(0,t.jsx)(I,{x:58,y:61,children:"Yes, for new builds over 20m\xb2."}),(0,t.jsx)(I,{x:58,y:73,children:"Upload it at step 3."}),(0,t.jsx)(z,{x:46,y:90,text:"User guide \xb7 section 2"})]})},"internal-policy":{before:(0,t.jsxs)(t.Fragment,{children:[[0,1,2].map(e=>[0,1,2].map(a=>(0,t.jsx)(M,{x:20+38*a,y:12+40*e,w:30,h:34,n:2},"".concat(e,"-").concat(a)))),(0,t.jsx)(K,{cx:160,cy:60,r:20}),(0,t.jsx)(I,{x:160,y:64,size:16,anchor:"middle",children:"?"}),(0,t.jsx)(E,{x:132,y:102,text:"Which version?",kind:"warn"})]}),after:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(W,{x:96,y:14,w:128,text:"How much carer’s leave?",dark:!0}),(0,t.jsx)(H,{cx:26,cy:64,r:12}),(0,t.jsx)("rect",{x:46,y:46,width:150,height:26,rx:10,className:T("ca-card")}),(0,t.jsx)(I,{x:58,y:63,children:"10 days a year, paid."}),(0,t.jsx)(z,{x:46,y:80,text:"HR leave policy \xb7 p.4"})]})},"supplier-onboarding":{before:(0,t.jsx)(t.Fragment,{children:["Re: insurance?","Re: Re: which cert?","Re: Re: Re: still need…"].map((e,a)=>(0,t.jsxs)(c.Fragment,{children:[(0,t.jsx)(R,{x:18+10*a,y:14+34*a,w:44,h:28}),(0,t.jsx)(I,{x:74+10*a,y:32+34*a,c:"ca-t ca-t-mute",children:e})]},e))}),after:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:12,y:14,width:96,height:108,rx:6,className:T("ca-card")}),["Company","Insurance","Bank"].map((e,a)=>(0,t.jsxs)(c.Fragment,{children:[0===a?(0,t.jsx)(S,{cx:28,cy:34}):(0,t.jsx)("circle",{cx:28,cy:34+26*a,r:7,className:T(1===a?"ca-blue-wash":"ca-card")}),(0,t.jsx)(I,{x:42,y:37+26*a,c:1===a?"ca-t":"ca-t ca-t-mute",children:e})]},e)),(0,t.jsx)(H,{cx:128,cy:40,r:11}),(0,t.jsx)("rect",{x:116,y:58,width:114,height:36,rx:10,className:T("ca-card")}),(0,t.jsx)(I,{x:126,y:73,children:"Public liability"}),(0,t.jsx)(I,{x:126,y:85,children:"of at least $10m."}),(0,t.jsx)(z,{x:116,y:102,text:"Supplier policy"})]})},"decision-letters":{before:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:44,y:8,width:96,height:120,rx:4,className:T("ca-card")}),(0,t.jsx)(I,{x:56,y:30,children:"Dear"}),(0,t.jsx)("path",{d:"M80 22v11",className:T("ca-cursor")}),(0,t.jsx)(A,{x:56,y:44,w:64,n:1}),(0,t.jsx)(O,{x:56,y:56,w:72,h:40}),(0,t.jsx)(D,{cx:182,cy:44}),(0,t.jsx)(I,{x:182,y:74,c:"ca-t ca-t-mute",anchor:"middle",children:"40 min each"})]}),after:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:44,y:8,width:112,height:120,rx:4,className:T("ca-card")}),(0,t.jsx)(I,{x:56,y:28,children:"Dear"}),(0,t.jsx)(q,{x:80,y:19,w:58,text:"Jane Citizen"}),(0,t.jsx)(A,{x:56,y:42,w:88,n:3}),(0,t.jsx)(q,{x:56,y:72,w:40,text:"PA-2291"}),(0,t.jsx)(A,{x:56,y:92,w:70,n:2}),(0,t.jsx)("circle",{cx:178,cy:92,r:24,className:T("ca-stamp")}),(0,t.jsx)(I,{x:178,y:95,c:"ca-t ca-t-ok",anchor:"middle",children:"Approved"})]})},"regulator-forms":{before:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:12,y:16,width:80,height:104,rx:4,className:T("ca-card")}),(0,t.jsx)(I,{x:22,y:32,children:"Your app"}),(0,t.jsx)(A,{x:22,y:42,w:60,n:6,gap:11}),(0,t.jsx)(P,{x1:98,y:68,x2:136}),(0,t.jsx)(I,{x:117,y:58,c:"ca-t ca-t-mute",size:8,anchor:"middle",children:"retype"}),(0,t.jsx)("rect",{x:144,y:16,width:84,height:104,rx:4,className:T("ca-card")}),(0,t.jsx)(I,{x:154,y:32,children:"Agency form"}),[0,1,2,3].map(e=>(0,t.jsx)(G,{x:154,y:42+18*e,label:"Field",w:30},e))]}),after:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:12,y:30,width:60,height:76,rx:4,className:T("ca-card")}),(0,t.jsx)(A,{x:20,y:42,w:44,n:5,gap:11}),(0,t.jsx)(P,{x1:78,y:68,x2:96}),(0,t.jsx)(H,{cx:112,cy:68,r:12}),(0,t.jsx)(P,{x1:128,y:68,x2:142}),(0,t.jsx)("rect",{x:146,y:12,width:84,height:112,rx:4,className:T("ca-card")}),(0,t.jsx)(I,{x:154,y:28,children:"Agency form"}),["ABN","Name","Date","Total"].map((e,a)=>(0,t.jsxs)(c.Fragment,{children:[(0,t.jsx)(I,{x:154,y:48+20*a,c:"ca-t ca-t-mute",size:8,children:e}),(0,t.jsx)(q,{x:178,y:39+20*a,w:44-a%2*10})]},e))]})},"agreement-drafts":{before:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M,{x:14,y:22,w:54,h:72,n:5,deg:-6}),(0,t.jsx)(M,{x:40,y:16,w:54,h:72,n:5,deg:4}),(0,t.jsx)(P,{x1:100,y:58,x2:128}),(0,t.jsx)("rect",{x:136,y:12,width:88,height:112,rx:4,className:T("ca-card")}),(0,t.jsx)(A,{x:146,y:24,w:68,n:2}),(0,t.jsx)(V,{x:146,y:44,w:68,text:"Old clause 7.2"}),(0,t.jsx)(A,{x:146,y:66,w:68,n:2}),(0,t.jsx)(V,{x:146,y:86,w:60,text:"Wrong party"})]}),after:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:52,y:8,width:112,height:120,rx:4,className:T("ca-card")}),(0,t.jsx)(I,{x:62,y:24,children:"Services agreement"}),(0,t.jsx)(A,{x:62,y:34,w:92,n:2}),(0,t.jsx)(q,{x:62,y:54,w:64,text:"Acme Pty Ltd"}),(0,t.jsx)(A,{x:62,y:74,w:92,n:2}),(0,t.jsx)(q,{x:62,y:94,w:48,text:"12 months"}),(0,t.jsx)(E,{x:128,y:108,text:"Ready for legal"})]})}};function Y(e){let{illustration:a,side:l}=e,c=a?U[a]:void 0;return c?(0,t.jsx)("div",{className:"".concat(u().art," ").concat("after"===l?u().artAfter:""),children:(0,t.jsx)("svg",{viewBox:"0 0 240 136","aria-hidden":"true",focusable:"false",children:c[l]})}):null}function Q(e){let{open:a,onClose:l,onBuild:s,features:n,useCases:r,labels:i,selected:o,idPrefix:d}=e,x=(0,c.useRef)(null);(0,c.useEffect)(()=>{let e=x.current;e&&e.open!==a&&(a?"function"==typeof e.showModal?e.showModal():e.setAttribute("open",""):"function"==typeof e.close?e.close():e.removeAttribute("open"))},[a]);let h=()=>{let e=x.current;(null==e?void 0:e.open)&&"function"==typeof e.close?e.close():l()};return(0,t.jsx)("dialog",{ref:x,className:u().dialog,"aria-labelledby":"".concat(d,"-title"),onClose:l,onClick:e=>{e.target===e.currentTarget&&h()},children:a?(0,t.jsx)(X,{features:n,useCases:r,labels:i,selected:o,idPrefix:d,onClose:h,onBuild:e=>{h(),s(e)}}):null})}function X(e){var a,l,s,n;let{features:r,useCases:i,labels:o,selected:d,idPrefix:h,onClose:b,onBuild:m}=e,j=function(e,a){let l=new Set(a.map(e=>e.feature));return e.filter((a,t)=>l.has(a.key)&&e.findIndex(e=>e.key===a.key)===t)}(r,i),[_,p]=(0,c.useState)(()=>d&&j.some(e=>e.key===d)?d:"all"),[y,g]=(0,c.useState)(null),k=(0,c.useRef)(null),f=(0,c.useRef)(null),v=(0,c.useRef)(null),F=(0,c.useRef)([]),N="".concat(h,"-title"),T="".concat(h,"-cases"),I=e=>"".concat(h,"-case-").concat(i.indexOf(e)),A=[...o.allTabLabel?[{key:"all",label:o.allTabLabel}]:[],...j.map(e=>({key:e.key,label:e.title}))],C=Math.max(0,A.findIndex(e=>e.key===_)),M="all"===(n=null!=(l=null==(a=A[C])?void 0:a.key)?l:"all")?i:i.filter(e=>e.feature===n);(0,c.useEffect)(()=>{var e,a;y?(v.current&&(v.current.scrollTop=0),null==(e=f.current)||e.focus()):k.current&&(null==(a=document.getElementById(k.current))||a.focus(),k.current=null)},[y]);let L=e=>{var a;
1let l=x(e.key,C,A.length),t=null===l?void 0:A[l];t&&null!==l&&(e.preventDefault(),p(t.key),null==(a=F.current[l])||a.focus())},S=y?B(r,y.feature):"",E=(null==y?void 0:y.buildPrompt)?w(o.buildLabel,{feature:S}):"",D=(null!=(s=null==y?void 0:y.setup)?s:[]).filter(e=>null==e?void 0:e.label);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("header",{className:u().ucHd,children:[(0,t.jsx)("div",{className:u().ucHdCopy,children:y?(0,t.jsxs)(t.Fragment,{children:[o.backLabel?(0,t.jsxs)("button",{type:"button",className:u().ucBack,onClick:()=>g(null),children:[(0,t.jsx)("span",{"aria-hidden":"true",children:"‹ "}),o.backLabel]}):null,S?(0,t.jsx)("span",{className:u().ucTag,children:S}):null,(0,t.jsx)("h2",{ref:f,id:N,tabIndex:-1,children:y.title})]}):(0,t.jsxs)(t.Fragment,{children:[o.heading?(0,t.jsx)("h2",{id:N,children:o.heading}):null,o.intro?(0,t.jsx)("p",{children:o.intro}):null]})}),o.closeLabel?(0,t.jsx)("button",{type:"button",className:u().ucX,"aria-label":o.closeLabel,onClick:b,children:"\xd7"}):null]}),(0,t.jsx)("div",{ref:v,className:u().ucBd,children:y?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{className:u().ucSec,children:[o.beforeAfterHeading?(0,t.jsx)("h3",{children:o.beforeAfterHeading}):null,(0,t.jsxs)("div",{className:u().ucBa,children:[(0,t.jsxs)("figure",{children:[(0,t.jsx)(Y,{illustration:y.illustration,side:"before"}),(0,t.jsxs)("figcaption",{children:[o.beforeLabel?(0,t.jsx)("b",{children:o.beforeLabel}):null,y.before]})]}),(0,t.jsx)("span",{className:u().ucBaArrow,"aria-hidden":"true",children:"→"}),(0,t.jsxs)("figure",{children:[(0,t.jsx)(Y,{illustration:y.illustration,side:"after"}),(0,t.jsxs)("figcaption",{children:[o.afterLabel?(0,t.jsx)("b",{children:o.afterLabel}):null,y.after]})]})]})]}),D.length>0||y.whereItRuns?(0,t.jsxs)("section",{className:u().ucSec,children:[o.setupHeading?(0,t.jsx)("h3",{children:o.setupHeading}):null,y.setupSummary?(0,t.jsx)("p",{className:u().ucSecSub,children:y.setupSummary}):null,(0,t.jsxs)("dl",{className:u().ucConfig,children:[D.map((e,a)=>{var l,c;return(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{children:e.label}),(0,t.jsx)("dd",{children:(null!=(l=e.items)?l:[]).map((e,a)=>{var l;return(0,t.jsx)("span",{children:e.text},null!=(l=e.id)?l:a)})})]},null!=(c=e.id)?c:a)}),y.whereItRuns?(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{children:o.whereItRunsLabel}),(0,t.jsx)("dd",{className:u().isText,children:y.whereItRuns})]}):null]})]}):null]}):(0,t.jsxs)(t.Fragment,{children:[A.length>1?(0,t.jsx)("div",{className:u().ucTabs,role:"tablist","aria-labelledby":N,children:A.map((e,a)=>(0,t.jsx)("button",{ref:e=>{F.current[a]=e},type:"button",role:"tab",id:"".concat(h,"-filter-").concat(a),"aria-selected":a===C,"aria-controls":T,tabIndex:a===C?0:-1,onClick:()=>p(e.key),onKeyDown:L,children:e.label},e.key))}):null,(0,t.jsx)("div",{id:T,role:A.length>1?"tabpanel":void 0,"aria-labelledby":A.length>1?"".concat(h,"-filter-").concat(C):void 0,children:(0,t.jsx)("ul",{className:u().ucGrid,children:M.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",id:I(e),className:u().ucCard,onClick:()=>{k.current=I(e),g(e)},children:[(0,t.jsx)(Y,{illustration:e.illustration,side:"after"}),(0,t.jsxs)("span",{className:u().ucCardCopy,children:[B(r,e.feature)?(0,t.jsx)("span",{className:u().ucTag,children:B(r,e.feature)}):null,(0,t.jsx)("b",{children:e.title}),e.after?(0,t.jsx)("span",{className:u().ucFix,children:e.after}):null]})]})},I(e)))})})]})}),y&&E?(0,t.jsx)("footer",{className:u().ucFt,children:(0,t.jsx)("button",{type:"button",className:u().ucGo,onClick:()=>y.buildPrompt&&m(y),children:E})}):null]})}function Z(e){var a,l,d;let{heading:x,highlight:m,subheading:j,anchorId:p,features:k,demo:f,useCasesBand:F,useCasesDialog:B,builderAnchorId:T,useCases:I,id:A,blockIndex:C}=e,M=(0,s.P)("ai-features",A,C),L="".concat(M,"-heading"),S="".concat(M,"-panel"),E=(0,c.useMemo)(()=>(null!=k?k:[]).filter(e=>(null==e?void 0:e.title)&&N.includes(e.key)),[k]),D=(0,c.useMemo)(()=>(null!=I?I:[]).filter(e=>(null==e?void 0:e.title)&&N.includes(e.feature)),[I]),P=(0,c.useMemo)(()=>{var e,a;return(null!=(a=null==f||null==(e=f.documents)?void 0:e.items)?a:[]).filter(e=>null==e?void 0:e.name).map(e=>{var a,l;return null!=(l=null==(a=e.rules)?void 0:a.length)?l:0})},[null==f||null==(a=f.documents)?void 0:a.items]),H=(0,o.I)(),[R,O]=(0,i.W)({threshold:.35}),{state:W,select:z,act:G}=function(e){var a,l,t;let{features:s,ruleCounts:n,inView:r,reducedMotion:i}=e,[o,d]=(0,c.useReducer)(y,null!=(l=null==(a=s[0])?void 0:a.key)?l:"
1chatbot",_),u=(0,c.useRef)([]),x=(0,c.useCallback)(()=>{u.current.forEach(e=>window.clearTimeout(e)),u.current=[]},[]),h=(0,c.useCallback)(e=>{e.forEach(e=>{let{at:a,action:l}=e;u.current.push(window.setTimeout(()=>d(l),a))})},[]),b=(0,c.useCallback)(e=>{let a=s[e];a&&d({type:"show",index:e,scene:a.key,mode:i?"end":"play"})},[s,i]);(0,c.useEffect)(()=>{r&&!i&&d({type:"replay",mode:"play"})},[r,i]),(0,c.useEffect)(()=>{i&&d({type:"replay",mode:"end"})},[i]);let m=null!=(t=n[0])?t:0;return(0,c.useEffect)(()=>{var e;return x(),"play"===o.mode&&h((e=o.scene,"validation"===e?[{at:2e3,action:{type:"openDoc",doc:0}},...g(m,2e3)]:"creation"===e?[{at:2600,action:{type:"sign"}},{at:5e3,action:{type:"submit"}}]:[])),x},[o.run,o.mode,o.scene,m,x,h]),{state:o,select:b,act:(0,c.useCallback)(e=>{var a;if(x(),d(e),"openDoc"!==e.type)return;let l=g(null!=(a=n[e.doc])?a:0);i?l.forEach(e=>d(e.action)):h(l)},[x,i,n,h])}}({features:E,ruleCounts:P,inView:O,reducedMotion:H}),[K,q]=(0,c.useState)(!1),[V,U]=(0,c.useState)(!1),[Y,X]=(0,c.useState)(!1),Z=Math.min(W.active,Math.max(0,E.length-1)),J=!!((null==F?void 0:F.buttonLabel)&&D.length>0);return(0,t.jsx)("section",{"data-block-type":"aiFeatureTabs",id:p||void 0,className:"v3-section","aria-labelledby":L,children:(0,t.jsxs)("div",{className:"v3-container",children:[(0,t.jsx)(r.w,{id:L,heading:x,highlight:m,subheading:j,subheadingClassName:null!=(d=u().sub)?d:""}),E.length>0?(0,t.jsxs)("div",{ref:R,className:u().feat,onPointerEnter:()=>q(!0),onPointerLeave:()=>q(!1),onFocus:e=>{(function(e){try{return e.target.matches(":focus-visible")}catch(e){return!0}})(e)&&U(!0)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||U(!1)},children:[(0,t.jsx)(b,{features:E,active:Z,run:W.run,playing:O&&!H&&E.length>1,held:K||V||Y,still:H,idPrefix:M,panelId:S,labelledBy:L,onSelect:z}),(0,t.jsx)("div",{className:u().demo,id:S,role:"tabpanel","aria-labelledby":h(M,Z),children:(0,t.jsxs)("div",{className:u().plate,children:[(null==f?void 0:f.label)?(0,t.jsxs)("div",{className:u().label,children:[(0,t.jsx)("i",{"aria-hidden":"true"}),f.label]}):null,(0,t.jsx)("div",{className:u().appWrap,children:(0,t.jsx)(v,{content:null!=f?f:{},state:W,act:G,idPrefix:M})})]})})]}):null,J?(0,t.jsxs)("div",{className:u().ucCta,children:[(0,t.jsxs)("div",{children:[(null==F?void 0:F.heading)?(0,t.jsx)("h3",{children:F.heading}):null,(null==F?void 0:F.body)?(0,t.jsx)("p",{children:w(F.body,{count:D.length})}):null]}),(0,t.jsx)("button",{type:"button",className:"v3-btn ".concat(u().ucOpen),"aria-haspopup":"dialog",onClick:()=>X(!0),children:null==F?void 0:F.buttonLabel})]}):null,J?(0,t.jsx)(Q,{open:Y,onClose:()=>X(!1),onBuild:e=>{e.buildPrompt&&(0,n.av)(e.buildPrompt,T)},features:E,useCases:D,labels:null!=B?B:{},selected:null==(l=E[Z])?void 0:l.key,idPrefix:"".concat(M,"-uc")}):null]})})}Object.keys(U)},7010:(e,a,l)=>{"use strict";l.d(a,{I:()=>c});var t=l(12115);function c(){let[e,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{var e,l;let t=null==(e=(l=window).matchMedia)?void 0:e.call(l,"(prefers-reduced-motion: reduce)");if(!t)return;a(t.matches);let c=e=>a(e.matches);return t.addEventListener("change",c),()=>t.removeEventListener("change",c)},[]),e}},28601:(e,a,l)=>{"use strict";function t(e,a,l){return"".concat(e,"-").concat(a||"block-".concat(null!=l?l:0))}l.d(a,{P:()=>t})},36829:(e,a,l)=>{"use strict";l.d(a,{Ll:()=>d,av:()=>r,kg:()=>u,pc:()=>i});var t=l(12115);let c="v3:build-request",s="v3:prompt-prefill";function n(e){var a,l,t;if(!e)return;let c=null==(a=(l=window).matchMedia)?void 0:a.call(l,"(prefers-reduced-motion: reduce)").matches;null==(t=document.getElementById(e))||t.scrollIntoView({behavior:c?"auto":"smooth",block:"start"})}function r(e,a){n(a),window.dispatchEvent(new CustomEvent(c,{detail:{prompt:e}}))}function i(e,a){n(a),window.dispatchEvent(new CustomEvent(s,{detail:{prompt:e}}))}function o(e,a){let l=(0,t.useRef)(a);l.current=a,(0,t.useEffect)(()=>{let a=e=>{var a;let t=null==(a=e.detail)?void 0:a.prompt;"string"==typeof t&&t.trim()&&l.current(t.trim())};return window.addEventListener(e,a),()=>window.removeEventListener(e,a)},[e])}function d(e){o(c,e)}function u(e){o(s,e)}},70588:(e,a,l)=>{"use strict";l.d(a,{W:()=>c});var t=l(12115);function c(){let{threshold:e=.35,once:a=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=(0,t.useRef)(null),[c,s]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let t=l.current;if(!t||"undefined"==typeof IntersectionObserver)return;let c=new IntersectionObserver(e=>{let l=e.some(e=>e.isIntersecting);s(e=>a&&e||l)},{threshold:e});return c.observe(t),()=>c.disconnect()},[a,e]),[l,c]}},75374:(e,a,l)=>{"use strict";l.d(a,{w:()=>n});var t=l(95155),c=l(72504);let s={sm:"v3-h2-sm",md:"v3-h2",lg:"v3-h2-lg"};
1function n(e){let{heading:a,highlight:l,subheading:n,kicker:r,size:i="md",as:o="h2",id:d,className:u="",subheadingClassName:x=""}=e;return(0,t.jsxs)("div",{className:u,children:[r?(0,t.jsx)("p",{className:"v3-kicker mb-4",children:r}):null,(0,t.jsx)(o,{id:d,className:"v3-heading ".concat(s[i]),children:(0,t.jsx)(c.z,{text:a,highlight:l})}),n?(0,t.jsx)("p",{className:"v3-sub ".concat(x),children:n}):null]})}}}]);

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.