PageSourceSearch

https://1audit.com/static/js/5015.a85bf55a.chunk.js

js 1audit.com collected 2026-10-08 08:27:03 UTC 59,007 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_1audit_fe=self.webpackChunk_1audit_fe||[]).push([[5015,6718,7155,9536],{10029:(e,l,a)=>{a.d(l,{H:()=>o});var t=a(9449);const i=(e,l,a)=>{if(e&&"reportValidity"in e){const i=(0,t.Jt)(a,l);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},n=(e,l)=>{for(const a in l.fields){const t=l.fields[a];t&&t.ref&&"reportValidity"in t.ref?i(t.ref,a,e):t.refs&&t.refs.forEach(l=>i(l,a,e))}},r=(e,l)=>{l.shouldUseNativeValidation&&n(e,l);const a={};for(const i in e){const n=(0,t.Jt)(l.fields,i),r=Object.assign(e[i]||{},{ref:n&&n.ref});if(s(l.names||Object.keys(e),i)){const e=Object.assign({},(0,t.Jt)(a,i));(0,t.hZ)(e,"root",r),(0,t.hZ)(a,i,e)}else(0,t.hZ)(a,i,r)}return a},s=(e,l)=>e.some(e=>e.startsWith(l+"."));var o=function(e,l,a){return void 0===l&&(l={abortEarly:!1}),void 0===a&&(a={}),function(i,s,o){try{var d=function(){return u.error?{values:{},errors:r((e=u.error,l=!o.shouldUseNativeValidation&&"all"===o.criteriaMode,e.details.length?e.details.reduce(function(e,a){var i=a.path.join(".");if(e[i]||(e[i]={message:a.message,type:a.type}),l){var n=e[i].types,r=n&&n[a.type];e[i]=(0,t.Gb)(i,l,e,a.type,r?[].concat(r,a.message):a.message)}return e},{}):{}),o)}:(o.shouldUseNativeValidation&&n({},o),{errors:{},values:u.value});var e,l},c=Object.assign({},l,{context:s}),u={},m=function(){if("sync"===a.mode)u=e.validate(i,c);else{var l=function(l,a){try{var t=Promise.resolve(e.validateAsync(i,c)).then(function(e){u.value=e})}catch(l){return a(l)}return t&&t.then?t.then(void 0,a):t}(function(){return Promise.resolve(e.validateAsync(i,c)).then(function(e){u.value=e})},function(e){u.error=e});if(l&&l.then)return l.then(function(){})}}();return Promise.resolve(m&&m.then?m.then(d):d())}catch(h){return Promise.reject(h)}}}},23188:(e,l,a)=>{a.d(l,{x:()=>n});var t=a(29018);const i="/audit_files";class n{constructor(){this.abort_controller=new AbortController}async getAuditFileSummary(e){let{search_query:l}=e;const a=`${i}/summary`;return await(0,t.ut)({url:a,search_query:l},{abort_controller:this.abort_controller})}async getAllAuditFiles(e){let{search_query:l}=e;const a=`${i}`;return await(0,t.ut)({url:a,search_query:l},{abort_controller:this.abort_controller})}async getAuditFile(e){let{id:l,search_query:a}=e;const n=`${i}/${l}`;return await(0,t.ut)({url:n,search_query:a},{abort_controller:this.abort_controller})}async createAuditFile(e){let{payload:l}=e;const a=`${i}`;return await(0,t.Uu)({url:a,payload:l})}async updateAuditFile(e){let{id:l,payload:a}=e;const n=`${i}/${l}`;return await(0,t.Dq)({url:n,payload:a})}async deleteAuditFile(e){let{id:l}=e;const a=`${i}/${l}`;return await(0,t.L2)({url:a})}async updateSingleField(e){let{id:l,payload:a}=e;const n=`${i}/${l}/update_single_field`;return await(0,t.YJ)({url:n,payload:a})}async updateMetaData(e){let{id:l,payload:a}=e;const n=`${i}/${l}/update_meta_data`;return await(0,t.YJ)({url:n,payload:a})}async updateProgress(e){let{id:l,payload:a}=e;const n=`${i}/${l}/progress`;return await(0,t.YJ)({url:n,payload:a})}async switchCurrentCOATemplate(e){let{id:l,coa_template_id:a}=e;const n=`${i}/${l}/switch_coa_template`;return await(0,t.YJ)({url:n,payload:{coa_template_id:a}})}async engageStaffToAuditFile(e){let{audit_file_id:l,payload:a}=e;const n=`${i}/${l}/engagement_team`;return await(0,t.Uu)({url:n,payload:a})}async deleteEngageStaffFromAuditFile(e){let{audit_file_id:l,staff_id:a}=e;const n=`${i}/${l}/engagement_team/${a}`;return await(0,t.L2)({url:n})}async engageStaffMarkAsFileManager(e){let{audit_file_id:l,staff_id:a}=e;const n=`${i}/${l}/engagement_team/${a}/file_manager`;return await(0,t.YJ)({url:n})}async addPermissionToStaffOnAuditFile(e){let{audit_file_id:l,staff_id:a,payload:n}=e;const r=`${i}/${l}/engagement_team/${a}/permission`;return await(0,t.YJ)({url:r,payload:n})}async getAllEngageTeamMember(e){let{audit_file_id:l}=e;const a=`${i}/${l}/engagement_team`;return await(0,t.ut)({url:a},{abort_controller:this.abort_controller})}async acceptIndependenceAgreement(e){let{audit_file_id:l,responses:a={}}=e;const n=`${i}/${l}/independence_agreement/accept`;return await(0,t.Uu)({url:n,payload:{agreed:!0,responses:a}})}async getIndependenceAcceptance(e){let{audit_file_id:l,user_id:a}=e;const n=`${i}/${l}/independence_agreement/acceptances/${a}`;return await(0,t.ut)({url:n},{abort_controller:this.abort_controller})}async createAuditFileComment(e){let{id:l,payload:a}=e;const n=`${i}/${l}/comments`;return await(0,t.YN)({url:n,payload:a})}async getAllAuditFileComments(e){let{id:l}=e;const a=`${i}/${l}/comments`;return await(0,t.ut)({url:a},{abort_controller:this.abort_controller})}async deleteAuditFileComment(e){let{id:l,comment_id:a}=e;const n=`${i}/${l}/comments/${a}`;return await(0,t.L2)({url:n})}async updateAuditFileComment(e){let{id:l,comment_id:a,payload:n}=e;const r=`${i}/${l}/comments/${a}`;return await(0,t.YJ)({url:r,payload:n})}async getAllAuditFileStaffReviewConfig(e){let{audit_file_id:l}=e;const a=`${i}/${l}/staff_review_config`;return await(0,t.ut)({url:a},{abort_controller:this.abort_controller})}async updateAuditFileStaffReviewConfig(e){let{audit_file_id:l,staff_review_config_id:a,payload:n}=e;const r=`${i}/${l}/staff_review_config/${a}`;return await(0,t.Dq)({url:r,payload:n})}async getAuditFileTag(e,l){let{audit_file_id:a}=e,{search_query:n}=l;const r=`${i}/${a}/tags`;return await(0,t.ut)({url:r,search_query:n},{abort_controller:this.abort_controller})}async createAuditFileTag(e){let{audit_file_id:l,payload:a,files:n=[]}=e;const r=`${i}/${l}/tags`;return await(0,t.YN)({url:r,payload:a,files:n}
1)}async patchAuditFileTag(e){let{audit_file_id:l,tag_id:a,payload:n}=e;const r=`${i}/${l}/tags/${a}`;return await(0,t.YJ)({url:r,payload:n})}async deleteAuditFileTag(e){let{audit_file_id:l,tag_id:a}=e;const n=`${i}/${l}/tags/${a}`;return await(0,t.L2)({url:n})}async syncAuditFileTags(e){let{audit_file_id:l}=e;const a=`${i}/${l}/tags/sync`;return await(0,t.Dq)({url:a})}async updateDifficulty(e){let{audit_file_id:l,payload:a}=e;const n=`${i}/${l}/difficulty`;return await(0,t.YJ)({url:n,payload:a})}async resyncTaskHours(e){let{audit_file_id:l}=e;const a=`${i}/${l}/resync_task_hours`;return await(0,t.YJ)({url:a,payload:{}})}async previewDifficultyChange(e){let{audit_file_id:l,difficulty_id:a}=e;const n=`${i}/${l}/difficulty/preview`;return await(0,t.ut)({url:n,search_query:{difficulty_id:a}},{abort_controller:this.abort_controller})}async copyWorkingPaper(e){let{audit_file_id:l,payload:a}=e;const n=`${i}/${l}/copy_working_papers`;return await(0,t.Uu)({url:n,payload:a})}async getAllWorkingPaperProcedures(e){let{audit_file_id:l}=e;const a=`${i}/${l}/all_working_paper_procedures`;return await(0,t.ut)({url:a},{abort_controller:this.abort_controller})}async getAllSupportingDocument(e){let{audit_file_id:l,search_query:a}=e;const n=`${i}/${l}/all_documents`;return await(0,t.ut)({url:n,search_query:a},{abort_controller:this.abort_controller})}async syncAuditFileSettingMetadata(e){let{audit_file_id:l,type:a}=e;const n=`${i}/${l}/update_meta_data/sync/${a}`;return await(0,t.YJ)({url:n})}async updateAuditFileMetadata(e){let{audit_file_id:l,id:a,payload:n,type:r}=e;const s=`${i}/${l}/edit_meta_data/${r}/${a}`;return await(0,t.Dq)({url:s,payload:n})}async getAuditFileLockArchived(e){let{audit_file_id:l}=e;const a=`${i}/${l}/lock_archived`;return await(0,t.ut)({url:a},{abort_controller:this.abort_controller})}async markAuditFileCompleteAndArchive(e){let{audit_file_id:l,payload:a}=e;const n=`${i}/${l}/lock_archived`;return await(0,t.Uu)({url:n,payload:a})}async updateArchiveLockStatus(e){let{audit_file_id:l,payload:a}=e;const n=`${i}/${l}/lock_archived/lock-status`;return await(0,t.YJ)({url:n,payload:a})}}},40083:(e,l,a)=>{a.d(l,{A:()=>n});a(9950);var t=a(34911),i=a(44414);const n=e=>{let{count:l=1,...a}=e;return(0,i.jsx)(t.z,{children:(0,i.jsx)(t.A,{count:l,...a})})}},40699:(e,l,a)=>{a.d(l,{A:()=>g});var t=a(58168),i=a(98587),n=a(9950),r=a(24081),s=function(e,l){"function"!==typeof e?e.current=l:e(l)},o={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},d=function(e){Object.keys(o).forEach(function(l){e.style.setProperty(l,o[l],"important")})},c=null,u=function(e,l){var a=e.scrollHeight;return"border-box"===l.sizingStyle.boxSizing?a+l.borderSize:a-l.paddingSize};var m=function(){},h=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],v=!!document.documentElement.currentStyle,p=function(e){var l=window.getComputedStyle(e);if(null===l)return null;var a,t=(a=l,h.reduce(function(e,l){return e[l]=a[l],e},{})),i=t.boxSizing;return""===i?null:(v&&"border-box"===i&&(t.width=parseFloat(t.width)+parseFloat(t.borderRightWidth)+parseFloat(t.borderLeftWidth)+parseFloat(t.paddingRight)+parseFloat(t.paddingLeft)+"px"),{sizingStyle:t,paddingSize:parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),borderSize:parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth)})};function f(e,l,a){var t=function(e){var l=n.useRef(e);return(0,r.A)(function(){l.current=e}),l}(a);n.useLayoutEffect(function(){var a=function(e){return t.current(e)};if(e)return e.addEventListener(l,a),function(){return e.removeEventListener(l,a)}},[])}var _=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],x=function(e,l){var a=e.cacheMeasurements,r=e.maxRows,o=e.minRows,h=e.onChange,v=void 0===h?m:h,x=e.onHeightChange,g=void 0===x?m:x,j=(0,i.A)(e,_),y=void 0!==j.value,b=n.useRef(null),w=function(e,l){var a=n.useRef();return n.useCallback(function(t){e.current=t,a.current&&s(a.current,null),a.current=l,l&&s(l,t)},[l])}(b,l),N=n.useRef(0),$=n.useRef(),k=function(){var e=b.current,l=a&&$.current?$.current:p(e);if(l){$.current=l;var t=function(e,l,a,t){void 0===a&&(a=1),void 0===t&&(t=1/0),c||((c=document.createElement("textarea")).setAttribute("tabindex","-1"),c.setAttribute("aria-hidden","true"),d(c)),null===c.parentNode&&document.body.appendChild(c);var i=e.paddingSize,n=e.borderSize,r=e.sizingStyle,s=r.boxSizing;Object.keys(r).forEach(function(e){var l=e;c.style[l]=r[l]}),d(c),c.value=l;var o=u(c,e);c.value=l,o=u(c,e),c.value="x";var m=c.scrollHeight-i,h=m*a;"border-box"===s&&(h=h+i+n),o=Math.max(h,o);var v=m*t;return"border-box"===s&&(v=v+i+n),[o=Math.min(v,o),m]}(l,e.value||e.placeholder||"x",o,r),i=t[0],n=t[1];N.current!==i&&(N.current=i,e.style.setProperty("height",i+"px","important"),g(i,{rowHeight:n}))}};return n.useLayoutEffect(k),function(e,l){f(document.body,"reset",function(a){e.current.form===a.target&&l(a)})}(b,function(){if(!y){var e=b.current.value;requestAnimationFrame(function(){var l=b.current;l&&e!==l.value&&k()})}}),f(window,"resize",k),function(e){f(document.fonts,"loadingdone",e)}(k),n.createElement("textarea",(0,t.A)({},j,{onChange:function(e){y||k(),v(e)},ref:w}))},g=n.forwardRef(x)},44109:(e,l,a)=>{a.r(l),a.d(l,{UnlockConformationModal:()=>T,default:()=>P});var t=a(9950),i=a(28429),n=a(72555),r=a(93012),s=a(67818),o=a(97686),d=a(6365),c=a(75192),u=a(89081),m=a(38229),h=a.n(m),v=a(9449),p=a(7398),f=a(10029),_=a(10300),x=a(53564),g=a(26815),j=a(35094),y=a(85755),b=a(23188),w=a(19031),N=a(67813),$=a(40699),k=a(40083),A=a(24302),C=a(74184),F=a(52097),S=a(72388),q=(a(4695),a(44414));const R=new b.x,z=new S.t({module_name:"checklist/group"}),I=new S.t({module_name:"checklist"}),P=()=>{var e,l,a,m,b,N,$;const{t:S}=(0,s.Bd)(),P=(0,i.Zp)(),{audit_file_id:D}=(0,i.g)(),L=(0,_.wA)(),M=(0,C.DT)(),U=null!==(e=(0,_.d4)(e=>{var l,a,t;return null===(l=e.settings)||void 0===l||null===(a=l.common_settings)||void 0===a||null===(t=a.date_controller)||void 0===t?void 0:t.date_format}
1))&&void 0!==e?e:x._N,E=(0,y.A)(),O=(0,_.d4)(e=>{var l;return null===e||void 0===e||null===(l=e.auditFile)||void 0===l?void 0:l.audit_file_info}),B=(0,_.d4)(e=>{var l;return null===e||void 0===e||null===(l=e.user)||void 0===l?void 0:l.user_info}),J=null===B||void 0===B?void 0:B.organization_info,W=(null===O||void 0===O?void 0:O.file_manager_id)===(null===B||void 0===B?void 0:B.user_id)||(null===J||void 0===J?void 0:J.super_admin_id)===(null===B||void 0===B?void 0:B.user_id),[Y,H]=(0,t.useState)(!0),[V,Q]=(0,t.useState)(null),[Z,G]=(0,t.useState)(!1),[K,X]=(0,t.useState)(!1),[ee,le]=(0,t.useState)(!1),[ae,te]=(0,t.useState)(!1),[ie,ne]=(0,t.useState)([]),[re,se]=(0,t.useState)([]),[oe,de]=(0,t.useState)(!1),[ce,ue]=(0,t.useState)(null),[me,he]=(0,t.useState)(),ve=[{value:"uo",label:S("Unqualified opinion")},{value:"qo",label:S("Qualified opinion")},{value:"ao",label:S("Adverse of opinion")},{value:"do",label:S("Disclaimer of opinion")}],pe=h().object({conformation_box:h().boolean().valid(!0).required().messages({"boolean.base":S("Confirmation is required"),"any.required":S("Confirmation is required"),"any.only":S("Confirmation is required")}),report_type:h().object({value:h().string().required().messages({"string.empty":S("Report type value is required"),"any.required":S("Report type value is required")}),label:h().string().allow("").optional()}).required().messages({"object.base":S("Report type is required"),"any.required":S("Report type is required")}),group:h().object({value:h().any().required().messages({"any.required":S("Group is required")}),label:h().string().allow("").optional()}).required().messages({"object.base":S("Group is required"),"any.required":S("Group is required")}).unknown(!0),lockdown_period_days:h().number().required().messages({"number.base":S("Lock down period is required"),"any.required":S("Lock down period is required")}),audit_report_date:h().date().required().messages({"date.base":S("Audit report date is required"),"any.required":S("Audit report date is required")}),archive_date:h().date().required().messages({"date.base":S("Archive date is required"),"any.required":S("Archive date is required")})}),{handleSubmit:fe,register:_e,formState:{errors:xe},control:ge,setValue:je,watch:ye}=(0,v.mN)({resolver:(0,f.H)(pe)}),be=ye("group");(0,t.useEffect)(()=>{(async()=>{try{H(!0);const n=await R.getAuditFileLockArchived({audit_file_id:D});if(null!==n&&void 0!==n&&n.success){var e;const{audit_file_lock_archived:r,lock_checklist_details:s}=n.data;if(ue(null!==(e=null===r||void 0===r?void 0:r.checklist_ids)&&void 0!==e?e:[]),(0,p.hj)(r)){var l;const{lock_file:e,report_type:n,lockdown_period_days:s,audit_report_date:o,archive_date:d}=r;Q(r),G(e);const c=ve.find(e=>e.value===n);var a,t,i;(0,p.hj)(c)&&je("report_type",c),(0,p.hj)(s)&&je("lockdown_period_days",s),(0,p.hj)(o)&&je("audit_report_date",o),(0,p.hj)(d)&&je("archive_date",d),(0,p.hj)(null===r||void 0===r||null===(l=r.group)||void 0===l?void 0:l.id)&&je("group",{value:null===r||void 0===r||null===(a=r.group)||void 0===a?void 0:a.id,label:E(null===r||void 0===r||null===(t=r.group)||void 0===t?void 0:t.name,null===r||void 0===r||null===(i=r.group)||void 0===i?void 0:i.name_sl)}),je("conformation_box",!0)}}}catch(n){(0,j.P0)(S(n.message),"error")}finally{H(!1)}})()},[D]);const we=async e=>{let{search_value:l}=e;te(!0);try{const e={select:"id,name,name_sl",limit:10,page:1,search_field:"name,name_sl",search_value:(0,p.hj)(l)?l:null},i=await z.getAll({search_query:e});if(null!==i&&void 0!==i&&i.success){var a,t;return null===i||void 0===i||null===(a=i.data)||void 0===a||null===(t=a.checklist_group)||void 0===t?void 0:t.map(e=>({value:e.id,label:E(e.name,e.name_sl),data:e}))}}catch(i){(0,j.P0)(S(null===i||void 0===i?void 0:i.message),"error")}finally{te(!1)}};(0,t.useEffect)(()=>{we({search_value:""}).then(e=>{ne(e)})},[]);(0,F.YQ)((e,l)=>{we({search_value:e}).then(e=>l(e))},600);const Ne="rounded-lg border bdrc-LD1 bg-blue-gray-50/50 dark:bg-[#0c1215] p-3 relative",$e=async e=>{de(!0);try{const a={limit:100,parent_id:e},t=await I.getAll({search_query:a});var l;if(null!==t&&void 0!==t&&t.success)se(null===t||void 0===t||null===(l=t.data)||void 0===l?void 0:l.checklist)}catch(a){(0,j.P0)(S(a.message),"error")}finally{de(!1)}};(0,t.useEffect)(()=>{var e,l;(0,p.hj)(V)&&(0,p.hj)(null===V||void 0===V||null===(e=V.group)||void 0===e?void 0:e.id)&&$e(null===V||void 0===V||null===(l=V.group)||void 0===l?void 0:l.id)},[V]);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(r.A,{title:S("Completion archive")}),(0,q.jsxs)("div",{className:"mxarea",children:[(0,q.jsx)("header",{className:"prtcnthead flex aIc flex-wrap p-2 gap-2 md:p-4 max-w-[82.5rem]",children:(0,q.jsx)(o.Qp,{type:"completion_archive"})}),(0,q.jsx)("main",{className:"p-2 md:p-4 !pt-0 relative",children:(0,q.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_28.125rem] grid-rows-1 gap-6 max-w-325",children:[(0,q.jsx)("section",{className:"cntbx",children:(0,q.jsxs)("form",{className:"frmstl1",onSubmit:fe(
1async e=>{var l;const a={report_type:null===e||void 0===e?void 0:e.report_type.value,lockdown_period_days:null===e||void 0===e?void 0:e.lockdown_period_days,audit_report_date:(0,p.$T)(null===e||void 0===e?void 0:e.audit_report_date),archive_date:(0,p.$T)(null===e||void 0===e?void 0:e.archive_date),checklist_ids:ce,group_id:null===e||void 0===e||null===(l=e.group)||void 0===l?void 0:l.value};le(!0);try{const e=await R.markAuditFileCompleteAndArchive({audit_file_id:D,payload:a});null!==e&&void 0!==e&&e.success&&(Q(e.data.audit_file_lock_archived),G("locked"===e.data.audit_file_lock_archived.archive_lock_status),(0,j.P0)(S("Archive and lock completed successfully"),"success"),(0,j.KK)(S))}catch(t){(0,j.P0)(S(t.message),"error")}finally{le(!1)}}),children:[(0,q.jsx)("header",{className:"p-3.5 border-b bdrc-LD1",children:(0,q.jsxs)("div",{className:"flex gap-2 aIc",children:[(0,q.jsx)("div",{children:(0,q.jsx)("span",{className:"rounded bg-[rgba(var(--thmclr),.1)] w-10 h-10 thmtxtclr flxMC",children:(0,q.jsx)(d.nXx,{size:20})})}),(0,q.jsxs)("div",{className:"grow",children:[(0,q.jsx)("h4",{className:"text-lg fw6",children:S("Archive & final lock")}),(0,q.jsx)("p",{className:"text-xs grytx1 lh1",children:S("Complete the required details, verify the checklist, then archive and lock the file.")})]}),(0,q.jsx)("aside",{children:W&&(0,p.hj)(V)&&(Z||"not_archived_locked"!==(null===V||void 0===V?void 0:V.archive_lock_status))&&(0,q.jsx)(n.Button,{variant:"outlined",className:`btn !p-2 !rounded lh1 nshw hvrcvr !font-medium light:contrast-[.8] capitalize flxMC gap-1 wsnrp  hover:opacity-100 ${me&&"loading"} ${Z?" border-red-600 text-red-600 hover:bg-red-600 hover:text-white":" outlinethm"}`,type:"button",onClick:async()=>{if(Z)X(!0);else{if(!(await(0,w.dk)(S("Lock audit file"),S("Are you sure you want to lock this file?"),S,{confirm_button_text:S("Yes, lock it!"),cancel_button_text:S("Cancel")})).isConfirmed)return;he(!0);try{const a=await R.updateArchiveLockStatus({audit_file_id:D,payload:{archive_lock_status:"locked"}});var e,l;if(null!==a&&void 0!==a&&a.success)Q(a.data.audit_file_lock_archived),G(!0),(0,j.P0)(S("File locked successfully"),"success"),L((0,A.oR)({archive_lock_status:null===a||void 0===a||null===(e=a.data)||void 0===e||null===(l=e.audit_file_lock_archived)||void 0===l?void 0:l.archive_lock_status,lock_file:!0}))}catch(a){(0,j.P0)(S(a.message),"error")}finally{he(!1)}}},disabled:!V||me,children:Z?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(d.SZx,{})," ",S("Unlock")]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(d.ahf,{})," ",S("Lock")]})})})]})}),(0,q.jsxs)("main",{className:"p-3.5",children:[(0,q.jsxs)("section",{className:"p-3 lg:p-6 rounded-lg bg-[#f3f7fd] dark:bg-[#141c21]",children:[(0,q.jsx)("header",{className:"flxcc flex-wrap gap-2 mb-8",children:(0,q.jsxs)("div",{children:[(0,q.jsx)("h4",{className:"text-base fw6",children:S("Final audit file lock")}),(0,q.jsx)("p",{className:"text-xs grytx1 lh1",children:S("Finalize and protect audit integrity")})]})}),(0,q.jsxs)("div",{children:[(0,q.jsxs)("div",{className:"formrow",children:[(0,q.jsx)("aside",{className:"frmlbl",children:(0,q.jsx)("label",{children:S("Report type")})}),(0,q.jsxs)("div",{className:"grow "+((0,p.hj)(V)?"cursor-not-allowed":""),children:[!Y&&(0,q.jsx)(v.xI,{name:"report_type",dir:"ltr",className:"frmfld",control:ge,render:e=>{let{field:l}=e;return(0,q.jsx)(c.A,{onChange:e=>{l.onChange(e)},classNamePrefix:"frmfldRselect",className:""+(null!==xe&&void 0!==xe&&xe.report_type?"error":""),value:l.value,options:ve,noOptionsMessage:()=>S("No report type found"),ref:l.ref,placeholder:S("Select"),isDisabled:!!V})}}),Y&&(0,q.jsx)(k.A,{className:"!flex w-full h-9.5 noBRnxt"}),(0,q.jsx)("aside",{className:"errbx",children:null===xe||void 0===xe||null===(l=xe.report_type)||void 0===l?void 0:l.message})]})]}),(0,q.jsxs)("div",{className:"formrow",children:[(0,q.jsx)("aside",{className:"frmlbl",children:(0,q.jsx)("label",{children:S("Lock down period")})}),(0,q.jsxs)("div",{className:"grow",children:[!Y&&(0,q.jsxs)("div",{className:"flex max-w-48",children:[(0,q.jsx)("input",{type:"text",className:"frmfld grow !rounded-se-none !rounded-ee-none aIc "+(null!==xe&&void 0!==xe&&xe.lockdown_period_days?"error":""),..._e("lockdown_period_days"),onKeyDown:e=>(0,p.e7)(e,0),disabled:!!V}
1),(0,q.jsx)("div",{className:"border border-[#81818163] bg-[#8d8d8d26] p-2 rounded-se rounded-ee border-s-0 min-w-13 txtC",children:S("Days")})]}),(0,q.jsx)("div",{className:"max-w-48",children:Y&&(0,q.jsx)(k.A,{className:"!flex w-full h-9.5 noBRnxt"})}),(0,q.jsx)("aside",{className:"errbx",children:null===xe||void 0===xe||null===(a=xe.lockdown_period_days)||void 0===a?void 0:a.message})]})]}),(0,q.jsxs)("div",{className:"formrow",children:[(0,q.jsx)("aside",{className:"frmlbl",children:(0,q.jsx)("label",{children:S("Audit report date")})}),(0,q.jsxs)("div",{className:"grow",children:[!Y&&(0,q.jsx)(v.xI,{name:"audit_report_date",dir:"ltr",className:"frmfld",control:ge,render:e=>{let{field:l}=e;return(0,q.jsx)(u.A,{dateFormat:U,value:l.value,onChange:e=>{var a;l.onChange((0,p.z2)(null===e||void 0===e?void 0:e.format(),null===(a=x.DX[U])||void 0===a?void 0:a.forFn))},class_name:"frmfld"+(null!==xe&&void 0!==xe&&xe.audit_report_date?" error":""),calendarClassName:"inmodal",containerClassName:"max-w-48",isDisabled:!!V})}}),(0,q.jsx)("div",{className:"max-w-48",children:Y&&(0,q.jsx)(k.A,{className:"!flex w-full h-9.5 noBRnxt"})}),(0,q.jsx)("aside",{className:"errbx",children:null===xe||void 0===xe||null===(m=xe.audit_report_date)||void 0===m?void 0:m.message})]})]}),(0,q.jsxs)("div",{className:"formrow",children:[(0,q.jsx)("aside",{className:"frmlbl",children:(0,q.jsx)("label",{children:S("Archive date")})}),(0,q.jsxs)("div",{className:"grow",children:[!Y&&(0,q.jsx)(v.xI,{name:"archive_date",dir:"ltr",className:"frmfld",control:ge,render:e=>{let{field:l}=e;return(0,q.jsx)(u.A,{dateFormat:U,value:l.value,onChange:e=>{var a;l.onChange((0,p.z2)(null===e||void 0===e?void 0:e.format(),null===(a=x.DX[U])||void 0===a?void 0:a.forFn))},class_name:"frmfld"+(null!==xe&&void 0!==xe&&xe.archive_date?" error":""),calendarClassName:"inmodal",containerClassName:"max-w-48",isDisabled:!!V})}}),(0,q.jsx)("div",{className:"max-w-48",children:Y&&(0,q.jsx)(k.A,{className:"!flex w-full h-9.5 noBRnxt"})}),(0,q.jsx)("aside",{className:"errbx",children:null===xe||void 0===xe||null===(b=xe.archive_date)||void 0===b?void 0:b.message})]})]})]})]}),(0,q.jsxs)("section",{className:"p-3 lg:p-6 rounded-lg bg-[#f3f7fd] dark:bg-[#141c21] mt-6",children:[(0,q.jsxs)("header",{className:"flxcc flex-wrap gap-2 mb-8",children:[(0,q.jsxs)("div",{children:[(0,q.jsx)("h4",{className:"text-base fw6",children:S("Lock checklist")}),(0,q.jsx)("p",{className:"text-xs grytx1 lh1",children:S("Item shown here are driven by firm settings and report type")})]}),(0,q.jsxs)("aside",{className:"w-52 "+((0,p.hj)(V)?"cursor-not-allowed":""),children:[Y&&(0,q.jsx)(k.A,{className:"!flex w-full h-9.5 noBRnxt"}),!Y&&(0,q.jsx)(v.xI,{name:"group",dir:"ltr",className:"frmfld",control:ge,render:e=>{let{field:l}=e;return(0,q.jsx)(c.A,{isLoading:ae,cacheOptions:!1,isAsync:!0,classNamePrefix:"sm frmfldRselect",className:""+(null!==xe&&void 0!==xe&&xe.group?"error":""),value:l.value,defaultOptions:ie,onChange:e=>{l.onChange(e),$e(null===e||void 0===e?void 0:e.value)},placeholder:S("Select group"),noOptionsMessage:()=>S("No group found"),isDisabled:!!V})}}),(0,q.jsx)("aside",{className:"errbx",children:null===xe||void 0===xe||null===(N=xe.group)||void 0===N?void 0:N.message})]})]}),(0,q.jsxs)("div",{className:"space-y-3 overflow-auto cstmscr1",style:{maxHeight:"25rem"},children:[oe&&Array(3).fill(0).map((e,l)=>(0,q.jsxs)("article",{className:"chkStyle2 !pb-2",children:[(0,q.jsxs)("label",{className:"flex gap-2 flex-1",children:[(0,q.jsx)(k.A,{className:"size-6 !rounded"}),(0,q.jsxs)("div",{className:"flex-1 flex flex-col",children:[(0,q.jsx)(k.A,{className:"w-3/5 h-4"}),(0,q.jsx)(k.A,{className:"w-2/5 h-3"})]})]}),(0,q.jsx)("aside",{className:"flex tlY-1",children:(0,q.jsx)(k.A,{className:"w-16 h-5 !rounded-full"})})]},l)),!oe&&(0,p.hj)(re)&&(null===re||void 0===re?void 0:re.map((e,l)=>(0,q.jsxs)("article",{className:"chkStyle2",children:[(0,q.jsxs)("label",{className:"flex gap-2 flex-1 relative "+((0,p.hj)(V)?"cursor-not-allowed":""),children:[(0,q.jsx)("input",{type:"checkbox",onChange:()=>{return l=null===e||void 0===e?void 0:e.id,void(null!==ce&&void 0!==ce&&ce.includes(l)?ue(e=>e.filter(e=>e!==l)):ue(e=>[...null!==e&&void 0!==e?e:[],l]));var l},checked:null===ce||void 0===ce?void 0:ce.includes(e.id),disabled:!!V}
1),(0,q.jsxs)("div",{className:"crP icnarea",children:[(0,q.jsx)(d.S9k,{size:30,className:"uncheck opacity-50"}),(0,q.jsx)(d.Ftu,{size:30,className:"check thmtxtclr"})]}),(0,q.jsx)("div",{className:"flex-1",children:(0,q.jsx)("h5",{className:"fw6 mb-1",children:E(e.name,null===e||void 0===e?void 0:e.name_sl)})})]}),(0,q.jsx)("aside",{className:"flex lg-max:flex-col gap-2 txtC"})]},l))),!oe&&(0,p.hj)(be)&&0===(null===re||void 0===re?void 0:re.length)&&(0,q.jsx)("article",{className:"chkStyle2",children:(0,q.jsxs)("div",{className:"flex-1 txtC py-3",children:[(0,q.jsx)("div",{children:(0,q.jsx)("span",{class:"inline-flex aIc jIc size-10 rounded-full font-bold bg-blue-gray-500/10",children:(0,q.jsx)(d.K8w,{})})}),(0,q.jsx)("div",{className:"mt-4 opacity-40 fntArial",children:(0,q.jsx)("em",{children:S("No record found")})})]})}),!oe&&(0,g.Im)(be)&&(0,q.jsx)("article",{className:"chkStyle2",children:(0,q.jsx)("div",{className:"flex-1 txtC py-3",children:(0,q.jsx)("div",{className:"mt-4 opacity-40 fntArial",children:(0,q.jsx)("em",{children:S("Please select a group to view its checklist.")})})})})]})]}),(0,q.jsx)("section",{className:"p-3 lg:p-6 rounded-lg bg-[#f3f7fd] dark:bg-[#141c21] mt-6",children:(0,q.jsxs)("div",{className:"*:!items-start",children:[(0,q.jsx)(n.Checkbox,{label:S("I confirm that all required completion and review procedures have been performed and that the file will be final-locked sixty days from lock according to firm policy."),className:"spc2 thmbg size-5 rounded",containerProps:{className:"min-w-6"},defaultChecked:!0,..._e("conformation_box"),disabled:!!V}),(0,q.jsx)("aside",{className:"errbx",children:null===xe||void 0===xe||null===($=xe.conformation_box)||void 0===$?void 0:$.message})]})}),(0,q.jsxs)("div",{className:"flex justify-end gap-2 mt-6",children:[(0,q.jsx)(n.Button,{className:"rounded bg-[#5e656c] hover:btnHvrShw1 capitalize",onClick:()=>P(`${M}/audit-files/${D}/working-paper-index`),children:S("Cancel")})," ",(0,q.jsx)(n.Button,{className:`rounded thmclr hover:btnHvrShw1 capitalize ${ee&&"loading cursor-not-allowed"} ${(!!V||ee)&&"cursor-not-allowed"}`,type:"submit",disabled:!!V||ee,children:S("Confirm archive and lock")})]})]})]})}),(0,q.jsx)("aside",{className:"flex flex-col gap-6",children:(0,q.jsxs)("section",{className:"cntbx",children:[(0,q.jsx)("header",{className:"p-3.5 border-b bdrc-LD1",children:(0,q.jsx)("h4",{className:"text-lg fw6",children:S("Status after lock")})}),(0,q.jsx)("main",{className:"p-3.5",children:(0,q.jsxs)("ul",{className:"space-y-2",children:[(0,q.jsxs)("li",{className:`${Ne} ps-10`,children:[(0,q.jsx)("span",{className:"thmtxtclr absolute start-4",children:"\u25cf"}),S("Audit file becomes read-only")]}),(0,q.jsxs)("li",{className:`${Ne} ps-10`,children:[(0,q.jsx)("span",{className:"thmtxtclr absolute start-4",children:"\u25cf"}),S("No editing of working papers")]}),(0,q.jsxs)("li",{className:`${Ne} ps-10`,children:[(0,q.jsx)("span",{className:"thmtxtclr absolute start-4",children:"\u25cf"}),S("No deleting or adding documents")]}),(0,q.jsxs)("li",{className:`${Ne} ps-10`,children:[(0,q.jsx)("span",{className:"thmtxtclr absolute start-4",children:"\u25cf"}),S("No changes to review points or final report")]}),(0,q.jsxs)("li",{className:`${Ne} ps-10`,children:[(0,q.jsx)("span",{className:"thmtxtclr absolute start-4",children:"\u25cf"}),S("Full action logged in audit trail")]})]})})]})})]})})]}),K&&(0,q.jsx)(T,{t:S,open:K,onClose:()=>{X(!1)},conformationBoxCallback:e=>{Q(e),G(!1),X(!1),L((0,A.oR)({archive_lock_status:null===e||void 0===e?void 0:e.archive_lock_status,lock_file:!1}))}})]})},T=e=>{let{t:l,open:a,onClose:r,conformationBoxCallback:s}=e;const{audit_file_id:o}=(0,i.g)(),[d,c]=(0,t.useState)(""),[u,m]=(0,t.useState)(!1);return(0,q.jsxs)(N.a,{open:a,onClose:r,center:!0,classNames:{overlay:"ondtOverlay",modal:"ondtModal mw6H",root:"modelOpen"},children:[(0,q.jsx)("header",{className:"mdlhead",children:(0,q.jsx)("div",{className:"flex items-center gap-2",children:(0,q.jsxs)("div",{children:[(0,q.jsx)("h2",{children:l("Unlock Audit File")}),(0,q.jsx)("p",{className:"text-xs text-gray-500",children:l("Provide justification for unlocking")})]})})}),(0,q.jsxs)("form",{className:"frmstl1",children:[(0,q.jsxs)("main",{className:"mdlmain",children:[(0,q.jsxs)("div",{className:"alrtbx pe-8 org",children:[l("Warning"),": ",l("Unlocking this file will allow modifications. This action will be logged in the audit trail.")]}),(0,q.jsxs)("div",{children:[(0,q.jsx)("p",{className:"frmlbl",children:(0,q.jsxs)("label",{children:[l("Reason for unlocking"),(0,q.
1jsx)("i",{children:"*"})]})}),(0,q.jsx)("div",{className:"relative mt-1",children:(0,q.jsx)($.A,{value:d,onChange:e=>c(e.target.value),placeholder:l("Please provide a detailed reason for unlocking this audit file..."),className:"frmfld resize-none ",minRows:3,maxRows:8})})]})]}),(0,q.jsxs)("footer",{className:"mdlfotr flex justify-end gap-2",children:[(0,q.jsx)(n.Button,{type:"button",className:"rounded bg-[#5e656c]",onClick:r,disabled:u,children:l("Cancel")}),(0,q.jsx)(n.Button,{className:`rounded thmclr${u||!d.trim()?" cursor-not-allowed":""} ${u&&"loading"}`,type:"submit",onClick:async()=>{if(d.trim()){m(!0);try{const a=await R.updateArchiveLockStatus({audit_file_id:o,payload:{archive_lock_status:"unlocked",unlock_reason:d}});var e;if(null!==a&&void 0!==a&&a.success)s(null===a||void 0===a||null===(e=a.data)||void 0===e?void 0:e.audit_file_lock_archived),c(""),(0,j.P0)(l("File unlocked successfully"),"success")}catch(a){(0,j.P0)(l(a.message),"error")}finally{m(!1)}}else(0,j.P0)(l("Please provide a reason for unlocking"),"error")},disabled:u||!d.trim(),children:l(u?"Processing...":"Confirm Unlock")})]})]})]})}},52097:(e,l,a)=>{a.d(l,{YQ:()=>i});var t=a(9950);function i(e,l,i,n){var r=this,s=(0,t.useRef)(null),o=(0,t.useRef)(0),d=(0,t.useRef)(0),c=(0,t.useRef)(null),u=(0,t.useRef)([]),m=(0,t.useRef)(),h=(0,t.useRef)(),v=(0,t.useRef)(e),p=(0,t.useRef)(!0),f=(0,t.useRef)(),_=(0,t.useRef)();v.current=e;var x="undefined"!=typeof window,g=!l&&0!==l&&x;if("function"!=typeof e)throw new TypeError("Expected a function");l=+l||0;var j=!!(i=i||{}).leading,y=!("trailing"in i)||!!i.trailing,b=!!i.flushOnExit&&y,w="maxWait"in i,N="debounceOnServer"in i&&!!i.debounceOnServer,$=w?Math.max(+i.maxWait||0,l):null,k=(0,t.useMemo)(function(){var e=function(e){var l=u.current,a=m.current;return u.current=m.current=null,o.current=e,d.current=d.current||e,h.current=v.current.apply(a,l)},t=function(e,l){g&&cancelAnimationFrame(c.current),c.current=g?requestAnimationFrame(e):setTimeout(e,l)},i=function(e){if(!p.current)return!1;var a=e-s.current;return!s.current||a>=l||a<0||w&&e-o.current>=$},k=function(l){return c.current=null,y&&u.current?e(l):(u.current=m.current=null,h.current)},A=function e(){var a=Date.now();if(j&&d.current===o.current&&C(),i(a))return k(a);if(p.current){var n=l-(a-s.current),r=w?Math.min(n,$-(a-o.current)):n;t(e,r)}},C=function(){n&&n({})},F=function(){if(x||N){var n,d=Date.now(),v=i(d);if(u.current=[].slice.call(arguments),m.current=r,s.current=d,b&&!f.current&&(f.current=function(){var e;"hidden"===(null==(e=a.g.document)?void 0:e.visibilityState)&&_.current.flush()},null==(n=a.g.document)||null==n.addEventListener||n.addEventListener("visibilitychange",f.current)),v){if(!c.current&&p.current)return o.current=s.current,t(A,l),j?e(s.current):h.current;if(w)return t(A,l),e(s.current)}return c.current||t(A,l),h.current}};return F.cancel=function(){var e=c.current;e&&(g?cancelAnimationFrame(c.current):clearTimeout(c.current)),o.current=0,u.current=s.current=m.current=c.current=null,e&&n&&n({})},F.isPending=function(){return!!c.current},F.flush=function(){return c.current?k(Date.now()):h.current},F},[j,w,l,$,y,b,g,x,N,n]);return _.current=k,(0,t.useEffect)(function(){return p.current=!0,function(){var e;b&&_.current.flush(),f.current&&(null==(e=a.g.document)||null==e.removeEventListener||e.removeEventListener("visibilitychange",f.current),f.current=null),p.current=!1}},[b]),k}},72388:(e,l,a)=>{a.d(l,{t:()=>n});var t=a(29018);const i="/organizations";class n{constructor(e){let{module_name:l}=e;this.module_name=l,this.abort_controller=new AbortController}async getAll(e){let{callFromCP:l=!1,search_query:a}=e,n=`${i}/${this.module_name}`;return l?(n=`cp/users${n}`,await(0,t.J_)({url:n,search_query:a},{abort_controller:this.abort_controller})):await(0,t.ut)({url:n,search_query:a},{abort_controller:this.abort_controller})}async getAData(e){let{id:l}=e;const a=`${i}/${this.module_name}/${l}`;return await(0,t.ut)({url:a,search_query:{}},{abort_controller:this.abort_controller})}async create(e){let{payload:l}=e;const a=`${i}/${this.module_name}`;return await(0,t.Uu)({url:a,payload:l})}async createUsingFormData(e){let{payload:l,files:a}=e;const n=`${i}/${this.module_name}`;return await(0,t.YN)({url:n,payload:l,files:a})}async edit(e){let{id:l,payload:a}=e;const n=`${i}/${this.module_name}/${l}`;return await(0,t.Dq)({url:n,payload:a})}async delete(e){let{id:l}=e;const a=`${i}/${this.module_name}/${l}`;return await(0,t.L2)({url:a})}async restore(e){let{id:l}=e;const a=`${i}/${this.module_name}/${l}/restore`;return await(0,t.YJ)({url:a})}async editUsingFormData(e){let{id:l,payload:a,files:n}=e;const r=`${i}/${this.module_name}/${l}`;return await(0,t.Z2)({url:r,payload:a,files:n}
1)}async updateTransactionSeriesSinglePrefix(e){let{id:l,payload:a}=e;const n=`${i}/transaction_series/${l}/update_prefix`;return await(0,t.Dq)({url:n,payload:a})}async aninvoiceSync(e){let{id:l}=e;const a=`${i}/${this.module_name}/${l}/sync`;return await(0,t.YJ)({url:a})}async getAllItemCategories(){return await(0,t.ut)({url:"/aninvoice/item-category",search_query:{limit:100}},{abort_controller:this.abort_controller})}async fetchPaymentMethodAccountList(){return await(0,t.ut)({url:"/aninvoice/payment_method_accounts",search_query:{}},{abort_controller:this.abort_controller})}async syncFromPrime(){const e=`${i}/${this.module_name}/sync-from-prime`;return await(0,t.Uu)({url:e,payload:{}})}async aninvoiceServiceSync(e){let{id:l}=e;const a=`${i}/${this.module_name}/${l}/sync`;return await(0,t.YJ)({url:a})}}},75192:(e,l,a)=>{a.d(l,{A:()=>c});var t=a(9950),i=a(30615),n=a(38553),r=a(77833),s=a(67818),o=a(32261),d=a(44414);const c=(0,t.forwardRef)((e,l)=>{var a;let{isCreatable:t=!1,isAsync:c=!1,...u}=e;const m=null!==(a=null===u||void 0===u?void 0:u.classNamePrefix)&&void 0!==a?a:"frmfldRselect",h=u.menuComponent?{MenuList:u.menuComponent}:{},{t:v}=(0,s.Bd)(),p={control:e=>({...e,minHeight:"auto"}),singleValue:e=>({...e,whiteSpace:"normal",wordWrap:"break-word",textOverflow:"unset",overflow:"visible"}),valueContainer:e=>({...e,whiteSpace:"normal",overflow:"visible"}),option:e=>({...e,whiteSpace:"normal",wordWrap:"break-word"}),multiValue:(e,l)=>{let{data:a}=l;return{...e,opacity:a.isDisabled?.5:1,pointerEvents:a.isDisabled?"none":"auto"}},multiValueRemove:(e,l)=>{let{data:a}=l;return{...e,display:a.isDisabled?"none":e.display}}},f=()=>v("Loading...");return c&&t?(0,d.jsx)(o.A,{loadingMessage:f,ref:l,classNamePrefix:m,...u,components:u.menuComponent?u.menuComponent:{},allowCreateWhileLoading:!0}):t?(0,d.jsx)(n.A,{loadingMessage:f,ref:l,classNamePrefix:m,...u,components:u.menuComponent?u.menuComponent:{}}):c?(0,d.jsx)(r.A,{loadingMessage:f,ref:l,classNamePrefix:m,styles:p,...u,components:h}):(0,d.jsx)(i.Ay,{loadingMessage:f,ref:l,classNamePrefix:m,components:h,styles:p,...u})})},85755:(e,l,a)=>{a.d(l,{A:()=>s});var t=a(9950),i=a(10300),n=a(7398),r=a(7318);const s=()=>{var e,l,a,s,o;const d=(0,i.d4)(e=>e.user),c=(0,i.d4)(e=>e.CPUser),u=window.location.pathname.split("/"),m="cp"===u[2];let h=m?null!==(e=null===c||void 0===c||null===(l=c.cp_user_info)||void 0===l?void 0:l.current_organization)&&void 0!==e?e:{}:null!==(a=null===d||void 0===d||null===(s=d.user_info)||void 0===s?void 0:s.organization_info)&&void 0!==a?a:{},v=m?null===c||void 0===c?void 0:c.language:null!==(o=null===d||void 0===d?void 0:d.language)&&void 0!==o?o:u[1];const{use_secondary_language:p,secondary_language:f,primary_language:_,organization_id:x}=h||{},g=p?f:null;return(0,t.useCallback)(function(e,l){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return x!==a&&a===r.fq&&r.RB!==_&&([e,l]=[l,e]),(0,n.hj)(g)&&v===g&&(0,n.hj)(l)?l:e},[x,_,g,v])}},93012:(e,l,a)=>{a.d(l,{A:()=>m});a(9950);var t=a(10300),i=a(28429),n=a(32856),r=a(7398),s=a(44414);const o="https://1audit.com",d="1AUDIT",c="1AUDIT is a comprehensive audit management software for external audits. Streamline your audit workflow, boost productivity, and ensure compliance.",u=`${o}/assets/images/1audit.jpg`,m=e=>{const l=(0,t.d4)(e=>e.user.language),a=(0,t.d4)(e=>e.CPUser.language),m=(0,r.hj)(null===e||void 0===e?void 0:e.type)&&"cp"===(null===e||void 0===e?void 0:e.type)?a:l,{pathname:h}=(0,i.zy)(),v=e.canonicalUrl?e.canonicalUrl:h,p=`${o}${v}`,f=h.split("/"),_=e=>{const l=[...f];return l.length>1&&(l[1]=e),`${o}${l.join("/")}`},x=_("en"),g=_("ar"),j="ar"===m?"ar_SA":"en_US",y="ar"===m?"en_US":"ar_SA",b=e.title?`${e.title}`:"1AUDIT \u2014 Audit Management Software for External Audits",w=e.metaTitle?e.metaTitle:b,N=e.description?e.description:c,$=e.keywords?e.keywords:"audit management software, external audit software, audit management system, audit workflow software, audit solution, 1audit",k=e.image?e.image:u,A=e.ogType?e.ogType:"website",C={"@context":"https://schema.org","@type":"Organization",name:d,url:o,logo:`${o}/logo512.png`,description:c};return(0,s.jsxs)(n.mg,{children:[(0,s.jsx)("html",{lang:m}),(0,s.jsx)("title",{children:b}),(0,s.jsx)("meta",{name:"DC.title",content:w}),(0,s.jsx)("meta",{name:"description",content:N}),(0,s.jsx)("meta",{name:"keywords",content:$}),e.noindex?(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"}):(0,s.jsx)("meta",{name:"robots",content:"index, follow"}),(0,s.jsx)("link",{rel:"canonical",href:p}),(0,s.jsx)("link",{rel:"alternate",hrefLang:"en",href:x}),(0,s.jsx)("link",{rel:"alternate",hrefLang:"ar",href:g}),(0,s.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:x}),(0,s.jsx)("meta",{property:"og:title",content:b}),(0,s.jsx)("meta",{property:"og:description",content:N}),(0,s.jsx)("meta",{property:"og:type",content:A}),(0,s.jsx)("meta",{property:"og:url",content:p}),(0,s.jsx)("meta",{property:"og:site_name",content:d}),(0,s.jsx)("meta",{property:"og:locale",content:j}),(0,s.jsx)("meta",{property:"og:locale:alternate",content:y}),(0,s.jsx)("meta",{property:"og:image",content:k}
1),(0,s.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,s.jsx)("meta",{property:"og:image:height",content:"630"}),(0,s.jsx)("meta",{property:"og:image:alt",content:w}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,s.jsx)("meta",{name:"twitter:title",content:b}),(0,s.jsx)("meta",{name:"twitter:description",content:N}),(0,s.jsx)("meta",{name:"twitter:image",content:k}),(0,s.jsx)("script",{type:"application/ld+json",children:JSON.stringify(C)}),e.jsonLd?(0,s.jsx)("script",{type:"application/ld+json",children:JSON.stringify(e.jsonLd)}):null]})}},97686:(e,l,a)=>{a.d(l,{Qp:()=>$,bs:()=>k,tH:()=>g,tj:()=>A});var t=a(9950),i=a(42074),n=a(28429),r=a(74184),s=a(67818),o=a(10300),d=a(85755),c=a(7398),u=a(72555),m=a(6365),h=a(40083),v=a(47738),p=a(73899),f=a(44414);const _=["audit_file_activity_feeds","copy_working_paper","work_flow","chart_of_accounts_template","audit_file_tags","completion_archive","audit_file_documents","all_review_points","audit_file_tick_mark","audit_file_checklist","audit_file_assertions","engagement_team_details","audit_file_test_procedures","audit_file_time_budget"],x=["audit_file_tags","completion_archive","audit_file_documents","all_review_points","audit_file_tick_mark","audit_file_checklist","audit_file_assertions","audit_file_test_procedures"],g=()=>{const e=(0,o.d4)(e=>e.user.language);return(0,f.jsxs)("code",{children:["en"===e&&(0,f.jsx)(v.w5C,{}),"ar"===e&&(0,f.jsx)(v.$h9,{})]})},j=()=>{const e=(0,o.d4)(e=>{var l;return null===(l=e.auditFile.audit_file_info)||void 0===l?void 0:l.audit_file_lock_archived});if(!(0,c.hj)(e)||(null===e||void 0===e||!e.lock_file)&&"not_archived_locked"===(null===e||void 0===e?void 0:e.archive_lock_status))return null;const l=null===e||void 0===e?void 0:e.lock_file;return(0,f.jsx)("span",{className:"inline-flex items-center opacity-80 "+(l?"text-red-500":"text-green-500"),children:l?(0,f.jsx)(p.PXj,{size:16}):(0,f.jsx)(p.PJK,{size:16})})},y=e=>{let{to:l,title:a,children:t}=e;return(0,f.jsxs)("span",{children:[(0,f.jsx)(i.N_,{to:l,title:a,children:t}),(0,f.jsx)(g,{})]})},b=e=>{let{children:l}=e;return(0,f.jsx)("span",{className:"fw6",children:l})},w=e=>{let{withTitle:l=!0}=e;const a=(0,o.d4)(e=>e.auditFile.audit_file_info),t=(0,d.A)(),n=(0,r.$0)(),s=t(null===a||void 0===a?void 0:a.name,null===a||void 0===a?void 0:a.name_sl);return(0,f.jsxs)("span",{children:[(0,f.jsxs)(i.N_,{to:`${n}/working-paper-index`,title:l?s:void 0,children:[s," ",(0,f.jsx)(j,{})]}),(0,f.jsx)(g,{})]})},N=e=>{let{isAuditFile:l}=e;return l?(0,f.jsx)(k,{}):(0,f.jsx)(A,{})},$=e=>{var l,a,u,m,v,p,$,k,A;let{type:C,props_data:F}=e;const{t:S}=(0,s.Bd)(),q=(0,r.DT)(),R=`${q}/settings`,z=(0,r.SJ)(),I=(0,r.$0)(),P="audit-files"===(0,r.zm)(),{working_paper_id:T}=(0,n.g)(),D=(0,d.A)(),L=(0,o.d4)(e=>e.auditFile.audit_file_info),M=(0,o.d4)(e=>e.auditFile.all_working_paper),U=null!==(l=null===F||void 0===F?void 0:F.auditFileDetails)&&void 0!==l?l:{},E=null!==(a=null===F||void 0===F?void 0:F.cpWorkingPaperDetails)&&void 0!==a?a:{},O=null!==(u=null===F||void 0===F?void 0:F.contract_details)&&void 0!==u?u:{},B=null!==(m=null===F||void 0===F?void 0:F.agreement_details)&&void 0!==m?m:{},J=null===F||void 0===F?void 0:F.letter_details,W=null!==(v=null===F||void 0===F?void 0:F.template_details)&&void 0!==v?v:{},Y=null!==(p=null===F||void 0===F?void 0:F.review_type)&&void 0!==p?p:0,H=null!==($=null===F||void 0===F?void 0:F.details_data)&&void 0!==$?$:{},V=(0,t.useMemo)(()=>{if(!M||!T)return null;for(const l of M){var e;const a=null===(e=l.children)||void 0===e?void 0:e.find(e=>parseInt(e.id)===parseInt(T));if(a)return a}return null},[M,T]),Q=(0,t.useMemo)(()=>({audit_file_activity_feeds:"Audit file activity feeds",copy_working_paper:"Copy a work paper or template",work_flow_diagram:"Workflow diagram",work_flow:"Workflow",chart_of_accounts_template:"COA template",audit_file_tags:"Tags",completion_archive:"Completion & archive",audit_file_documents:"All documents",all_review_points:0===Y?"All review points":"All client notes",audit_file_tick_mark:"Tick marks",audit_file_checklist:"Checklist",audit_file_assertions:"Assertions",engagement_team_details:"Engagement team",audit_file_test_procedures:"Test procedures",audit_file_time_budget:"Time budget"}),[Y]),Z={working_paper_index:()=>L?(0,f.jsxs)(f.Fragment,{children:[(0,c.Im)(L)&&(0,f.jsx)(h.A,{className:"w-62.5 h-4 mb-2"}),(0,c.hj)(L)&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(y,{to:P?`${q}/audit-files`:`${q}/audit-file-templates`,children:S(P?"All files":"All templates")}
1),(0,f.jsxs)("span",{className:"fw6",children:[D(L.name,L.name_sl)," ",(0,f.jsx)(j,{})]})]})]}):null,working_paper_details:()=>L&&M?(0,f.jsxs)("div",{className:"grow",children:[(0,c.Im)(M)&&(0,f.jsx)(h.A,{className:"w-62.5 h-4"}),(0,c.hj)(M)&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(w,{}),(0,c.hj)(V)&&(0,f.jsxs)("span",{className:"fw6",children:[null===V||void 0===V?void 0:V.reference," - ",D(null===V||void 0===V?void 0:V.name,null===V||void 0===V?void 0:V.name_sl)]})]}),(0,c.hj)(null===F||void 0===F?void 0:F.heading)&&(0,f.jsx)("h1",{className:"lh1",children:F.heading}),(0,f.jsx)(N,{isAuditFile:P})]}):null,audit_file_document_preview:()=>L?(0,f.jsxs)("div",{className:"grow",children:[(0,c.Im)(L)&&(0,f.jsx)(h.A,{className:"w-62.5 h-4"}),(0,c.hj)(L)&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(w,{}),(0,f.jsx)(y,{to:`${I}/documents`,children:S("All documents")}),(0,f.jsx)(b,{children:S("Preview")})]}),(0,f.jsx)(N,{isAuditFile:P})]}):null,sampling:()=>{var e,l,a;return L?(0,f.jsxs)("div",{className:"grow",children:[(0,c.Im)(L)&&(0,f.jsx)(h.A,{className:"w-62.5 h-2.5 mb-2"}),(0,c.hj)(L)&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(w,{}),(0,f.jsx)("span",{children:(0,c.hj)(null===F||void 0===F?void 0:F.sample_name)?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i.N_,{to:`${I}/sampling`,children:S("All sampling")}),(0,f.jsx)(g,{})]}):(0,f.jsx)("strong",{className:"fw6",children:S("All sampling")})}),F&&(0,c.hj)(null===F||void 0===F?void 0:F.sample_name)&&(0,f.jsx)("span",{className:"fw6",children:D(null===(e=F.sample_name)||void 0===e?void 0:e.name,null===(l=F.sample_name)||void 0===l?void 0:l.name_sl,null===(a=F.sample_name)||void 0===a?void 0:a.organization_id)}),(0,c.Im)(null===F||void 0===F?void 0:F.sample_name)&&(null===F||void 0===F?void 0:F.headerAction)]}),(0,f.jsx)(N,{isAuditFile:P})]}):null},sud:()=>{var e,l,a;return L?(0,f.jsxs)("div",{className:"grow",children:[(0,c.Im)(L)&&(0,f.jsx)(h.A,{className:"w-62.5 h-2.5 mb-2"}),(0,c.hj)(L)&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(w,{}),(0,f.jsx)("span",{children:(0,c.hj)(null===F||void 0===F?void 0:F.sample_name)?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i.N_,{to:`${I}/sampling`,children:S("All SUD")}),(0,f.jsx)(g,{})]}):(0,f.jsx)("strong",{className:"fw6",children:S("All SUD")})}),F&&(0,c.hj)(null===F||void 0===F?void 0:F.sample_name)&&(0,f.jsx)("span",{className:"fw6",children:D(null===(e=F.sample_name)||void 0===e?void 0:e.name,null===(l=F.sample_name)||void 0===l?void 0:l.name_sl,null===(a=F.sample_name)||void 0===a?void 0:a.organization_id)})]}),(0,f.jsx)(N,{isAuditFile:P})]}):null},chart_of_accounts:()=>{var e,l;return(0,f.jsxs)(f.Fragment,{children:[P&&(0,c.Im)(L)&&(0,f.jsx)(h.A,{className:"w-62.5 h-4"}),P&&(0,c.hj)(L)&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(w,{}),(0,f.jsx)(y,{to:`${I}/chart-of-account-templates`,children:S("COA template")}),(0,f.jsx)("span",{className:"fw6",children:(0,c.Im)(W)?(0,f.jsx)(h.A,{className:"w-25 h-4"}):D(W.name,W.name_sl)})]}),!P&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(y,{to:`${R}/chart-of-account-templates`,children:S("COA template")}),(0,f.jsx)("span",{className:"!pe-1",children:D(W.name,W.name_sl)}),(0,f.jsxs)("span",{className:"grtxt2 !text-xs !pe-2.5",children:[(0,c.Im)(W)&&(0,f.jsx)(h.A,{className:"w-25 h-4"}),(null===W||void 0===W?void 0:W.client_sector)&&`(${D(null===W||void 0===W||null===(e=W.client_sector)||void 0===e?void 0:e.name,null===W||void 0===W||null===(l=W.client_sector)||void 0===l?void 0:l.name_sl)})`]})]})]})},cp_working_paper_index:()=>(0,f.jsx)(f.Fragment,{children:(0,c.hj)(U)&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(y,{to:`${z}/audit-files`,children:S("All files")}),(0,f.jsx)("span",{children:D(U.name,U.name_sl)})]})}),cp_working_paper_details:()=>(0,f.jsxs)(f.Fragment,{children:[(0,c.Im)(E)&&(0,f.jsx)(h.A,{className:"w-62.5 h-4"}),(0,c.hj)(E)&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(y,{to:`${z}/audit-files/${null===U||void 0===U?void 0:U.id}/file-details`,children:D(U.name,U.name_sl)}),(0,f.jsxs)("span",{children:[(0,c.hj)(E)&&(0,f.jsxs)(i.N_,{to:`${z}/audit-files/${null===U||void 0===U?void 0:U.id}/file-details`,children:[null===E||void 0===E?void 0:E.reference," - ",D(null===E||void 0===E?void 0:E.name,null===E||void 0===E?void 0:E.name_sl)]}),(0,f.jsx)(g,{})]}),(0,f.jsx)(b,{children:S("File request details")})]})]}),cp_sampling_details:()=>(0,f.jsx)("div",{className:"grow",children:(0,c.hj)(U)&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(y,{to:`${z}/audit-files/${null===U||void 0===U?void 0:U.id}/file-details`,children:D(U.name,U.name_sl)}),(0,f.jsx)(y,{to:`${z}/audit-files/${null===U||void 0===U?void 0:U.id}/file-details#sampling`,children:S("Sampling")}),(0,f.jsx)(b,{children:S("File request details")})]})}),invite_staff:()=>(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(y,{to:`${q}/staff-list`,children:S("Staffs")}),(0,f.jsx)(b,{children:S("Invite staff")})]}),create_team:()=>(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(y,{to:`${q}/staff-list`,children:S("Staffs")}),(0,f.jsx)(b,{children:S("Teams")})]}),prime_organization_details:()=>(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(y,{to:`${q}/organizations-list`,children:S("Organization list")}),(0,f.jsx)(b,{children:S("Organization details")})]}),setting_contact_template_details:()=>(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(y,{to:`${R}/templates/contract`,children:S("All contract template")}),(0,f.jsx)(b,{children:S("Contract template details")})]}),cp_contact_template_details:()=>(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(y,{to:`${z}/contracts`,children:S("All contract")}),(0,f.jsx)(b,{children:S("Contract template details")})]}),contact_template_details:()=>{var e,l,a,t,i;return(0,f.jsxs)(f.Fragment,{children:[(0,c.Im)(null===O||void 0===O||null===(e=O.contract_details)||void 0===e?void 0:e.contract_number)&&(0,f.jsx)(h.A,{className:"w-62.5 h-4"}),(0,c.hj)(null===O||void 0===O||null===(l=O.contract_details)||void 0===l?void 0:l.contract_number)&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(y,{to:`${q}/sales/contracts`,children:S("All contract")}),(0,f.jsx)(y,{to:`${q}/sales/contracts/details/${null===O||void 0===O||null===(a=O.contract_details)||void 0===a?void 0:a.contract_id}`,title:null===O||void 0===O||null===(t=O.contract_details)||void 0===t?void 0:t.contract_number,children:null===O||void 0===O||null===(i=O.contract_details)||void 0===i?void 0:i.contract_number}),(0,f.jsxs)("span",{children:[S("Contract template details"),(0,c.hj)(null===F||void 0===F?void 0:F.page_type)&&(0,f.jsx)(g,{})]}),(0,c.hj)(null===F||void 0===F?void 0:F.page_type)&&(0,f.jsx)("span",{className:"fw6",children:S(null===F||void 0===F?void 0:F.page_type)})]})]})},setting_work_flow:()=>(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(y,{to:`${R}/templates/workflow-templates`,children:S("All workflow templates")}
1),(0,f.jsx)(b,{children:S("Workflow diagram")})]}),audit_file_stage_automation:()=>L?(0,f.jsxs)("div",{className:"grow",children:[(0,c.Im)(L)&&(0,f.jsx)(h.A,{className:"w-62.5 h-4"}),(0,c.hj)(L)&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(w,{}),(0,f.jsx)(y,{to:`${I}/workflow-diagram/`,children:D(null===H||void 0===H?void 0:H.name,null===H||void 0===H?void 0:H.name_sl)}),(0,f.jsx)(b,{children:S(null===F||void 0===F?void 0:F.type)})]})]}):null,setting_stage_automation:()=>(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(y,{to:`${R}/templates/workflow-templates`,children:S("All workflow templates")}),(0,f.jsx)(y,{to:`${R}/templates/workflow-templates/${null===H||void 0===H?void 0:H.id}`,children:D(null===H||void 0===H?void 0:H.name,null===H||void 0===H?void 0:H.name_sl)}),(0,f.jsx)(b,{children:S(null===F||void 0===F?void 0:F.type)})]}),independence_agreement_details:()=>{var e,l,a,t,n;return(0,f.jsxs)(f.Fragment,{children:[(0,c.Im)(null===B||void 0===B?void 0:B.agreement_details)&&(0,f.jsx)(h.A,{className:"w-62.5 h-4"}),(0,c.hj)(null===B||void 0===B?void 0:B.agreement_details)&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsxs)("span",{children:[" ",(0,f.jsx)(i.N_,{to:`${R}/templates/independence-agreement`,children:S("All Independence agreement")}),(0,f.jsx)(g,{})]}),(0,f.jsxs)("span",{children:[" ",(0,f.jsx)(i.N_,{to:`${R}/templates/independence-agreement/${null===B||void 0===B||null===(e=B.agreement_details)||void 0===e?void 0:e.id}`,title:D(null===B||void 0===B||null===(l=B.agreement_details)||void 0===l?void 0:l.name,null===B||void 0===B||null===(a=B.agreement_details)||void 0===a?void 0:a.name_sl),children:D(null===B||void 0===B||null===(t=B.agreement_details)||void 0===t?void 0:t.name,null===B||void 0===B||null===(n=B.agreement_details)||void 0===n?void 0:n.name_sl)}),(0,f.jsx)(g,{})]}),(0,c.Im)(null===F||void 0===F?void 0:F.page_type)&&(0,f.jsxs)("span",{className:(0,c.Im)(null===F||void 0===F?void 0:F.page_type)?"fw6":"",children:[S("Details"),(0,c.hj)(null===F||void 0===F?void 0:F.page_type)&&(0,f.jsx)(g,{})]}),(0,c.hj)(null===F||void 0===F?void 0:F.page_type)&&(0,f.jsx)("span",{className:"fw6",children:S(null===F||void 0===F?void 0:F.page_type)})]})]})},letter_templates_details:()=>{var e,l,a,t,i;return(0,f.jsxs)(f.Fragment,{children:[(0,c.Im)(null===J||void 0===J?void 0:J.letter_details)&&(0,f.jsx)(h.A,{className:"w-62.5 h-4"}),(0,c.hj)(null===J||void 0===J?void 0:J.letter_details)&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(y,{to:`${R}/templates/letter-template`,children:S("All letter templates")}),(0,f.jsx)(y,{to:`${R}/templates/letter-template/${null===J||void 0===J||null===(e=J.letter_details)||void 0===e?void 0:e.id}`,title:D(null===J||void 0===J||null===(l=J.letter_details)||void 0===l?void 0:l.name,null===J||void 0===J||null===(a=J.letter_details)||void 0===a?void 0:a.name_sl),children:D(null===J||void 0===J||null===(t=J.letter_details)||void 0===t?void 0:t.name,null===J||void 0===J||null===(i=J.letter_details)||void 0===i?void 0:i.name_sl)}),(0,c.Im)(null===F||void 0===F?void 0:F.page_type)&&(0,f.jsxs)("span",{className:(0,c.Im)(null===F||void 0===F?void 0:F.page_type)?"fw6":"",children:[S("Details"),(0,c.hj)(null===F||void 0===F?void 0:F.page_type)&&(0,f.jsx)(g,{})]}),(0,c.hj)(null===F||void 0===F?void 0:F.page_type)&&(0,f.jsx)("span",{className:"fw6",children:S(null===F||void 0===F?void 0:F.page_type)})]})]})},predecessor_auditor_form:()=>L?(0,f.jsxs)(f.Fragment,{children:[(0,c.Im)(L)&&(0,f.jsx)(h.A,{className:"w-62.5 h-4"}),(0,c.hj)(L)&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(w,{withTitle:!1}),(0,f.jsx)(b,{children:S("Acknowledge predecessor auditor")})]})]}):null,qawaem_filing:()=>(0,f.jsxs)("div",{className:"grow min-w-0",children:[(0,c.Im)(L)&&(0,f.jsx)(h.A,{className:"w-62.5 h-4"}),(0,c.hj)(L)&&(0,f.jsxs)("div",{className:"flex items-center flex-wrap gap-2 mb-2 min-w-0",children:[(0,f.jsxs)("section",{className:"breadcrumb",children:[(0,f.jsx)(w,{}),(0,f.jsx)(b,{children:S("Qawaem filing")})]}),null===F||void 0===F?void 0:F.trailing]}),(0,f.jsx)(N,{isAuditFile:P})]})};return _.includes(C)?L?(0,f.jsxs)("div",{className:"grow",children:[(0,c.Im)(L)&&(0,f.jsx)(h.A,{className:"w-62.5 h-4"}),(0,c.hj)(L)&&(0,f.jsxs)("section",{className:"breadcrumb mb-2",children:[(0,f.jsx)(w,{}),(0,f.jsx)(b,{children:S(Q[C])})]}),x.includes(C)&&(0,f.jsx)(N,{isAuditFile:P})]}):null:null!==(k=null===(A=Z[C])||void 0===A?void 0:A.call(Z))&&void 0!==k?k:null},k=e=>{var l,a,t,i,n,r;let{auditFileDetails:v}=e;const{t:p}=(0,s.Bd)(),_=(0,o.d4)(e=>e.auditFile.audit_file_info),x=(0,d.A)(),g=(0,o.d4)(e=>e.user.language),j=(0,c.Im)(v)?_:v;return(0,f.jsx)("section",{children:(0,f.jsxs)("div",{className:"flex flex-wrap gap-x-2 aIc mt-1.5",children:[(0,f.jsx)(u.Tooltip,{className:"tltp1 dar
1k1 oppclr",content:p("Client"),children:(0,f.jsx)("span",{children:(0,f.jsx)(m.Msh,{size:16})})}),(0,c.Im)(j)&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(h.A,{className:"w-25 h-4"})," ",(0,f.jsx)(h.A,{className:"w-44 h-4"})]}),(0,c.hj)(j)&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.Tooltip,{className:"tltp1 dark1 oppclr",content:x(null===j||void 0===j||null===(l=j.client)||void 0===l?void 0:l.name,null===j||void 0===j||null===(a=j.client)||void 0===a?void 0:a.name_sl),children:(0,f.jsx)("span",{className:"text-base font-medium truncate",style:{maxWidth:"min(24rem, calc(100% - 1.75rem))"},children:x(null===j||void 0===j||null===(t=j.client)||void 0===t?void 0:t.name,null===j||void 0===j||null===(i=j.client)||void 0===i?void 0:i.name_sl)})})," ",(0,c.hj)(null===j||void 0===j||null===(n=j.client)||void 0===n?void 0:n.clients_no)&&(0,f.jsx)(u.Tooltip,{className:"tltp1 dark1 oppclr",content:p("Client number"),children:(0,f.jsx)("span",{className:"prcfnt lh1 text-[.72rem] font-semibold px-1.5 py-1 rounded-md text-[rgb(var(--thmclr))] bg-[rgba(var(--thmclr),.12)]",children:(0,f.jsx)("bdo",{dir:"ltr",children:null===j||void 0===j||null===(r=j.client)||void 0===r?void 0:r.clients_no})})}),(0,f.jsx)(u.Tooltip,{className:"tltp1 dark1 oppclr",content:p("Audit period"),children:(0,f.jsxs)("span",{className:"grytx1",children:[(0,f.jsx)("bdo",{dir:"ltr",className:"wsnrp",children:(0,c.VR)(j.audit_period_start_date,null,{for_display_date:!0})})," ","en"===g&&(0,f.jsx)(f.Fragment,{children:"\u2192"})," ","ar"===g&&(0,f.jsx)(f.Fragment,{children:"\u2190"})," ",(0,f.jsx)("bdo",{dir:"ltr",className:"wsnrp",children:(0,c.VR)(j.audit_period_end_date,null,{for_display_date:!0})})]})})]})]})})},A=()=>{const{t:e}=(0,s.Bd)(),l=(0,o.d4)(e=>e.auditFile.audit_file_info),a=(0,d.A)();return(0,f.jsx)("section",{children:(0,f.jsxs)("div",{className:"flex gap-x-3 aIc opacity-75 mt-1.5",children:[(0,f.jsx)(u.Tooltip,{className:"tltp1 dark1 oppclr",content:e("Template"),children:(0,f.jsx)("span",{children:(0,f.jsx)(m.x$N,{size:16})})}),(0,c.Im)(l)&&(0,f.jsx)(h.A,{className:"w-25 h-4"}),(0,c.hj)(l)&&(0,f.jsx)(u.Tooltip,{className:"tltp1 dark1 oppclr",content:e("File"),children:(0,f.jsxs)("span",{className:"text-sm",children:[a(l.name,l.name_sl)," "]})})]})})}}}]);

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.