1"use strict";(globalThis.webpackChunkuseberryresearch=globalThis.webpackChunkuseberryresearch||[]).push([[7952],{25571(e,r,t){t.r(r),t.d(r,{default:()=>d});var n=t(44967),a=t(25828),l=t(70792),i=t(76204),o=t(76232),c=t(67773),s=t(6138);function u(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}let d=(0,o.YB)(function(e){var r,t,o=e.screens,d=e.taskData,p=e.completionNumber,m=e.edit,h=e.studyDispatch,f=e.startingScreen;f||(f=null==o||null==(t=o[0])?void 0:t.guid);var y=(0,a.$u)(f,o),g=(0,a.$u)(d.id,o),v=function(e){if(Array.isArray(e))return e}(r=n.useState(!1))||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,l,i,o=[],c=!0,s=!1;try{l=(t=t.call(e)).next,!1;for(;!(c=(n=l.call(t)).done)&&(o.push(n.value),2!==o.length);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(s)throw a}}return o}}(r,2)||function(e,r){if(e){if("string"==typeof e)return u(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,2):void 0}}(r,2)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}(),b=v[0],N=v[1];return(0,s.Y)(c.default,{children:(0,s.FD)("div",{className:"panel-task-completion-container isLocked_blur",children:[(0,s.Y)("div",{className:"completion-number",children:"Completion ".concat(p+1)}),(0,s.FD)("div",{className:"panel-path-container",onClick:function(){m();var e={};e.source="TASK_ENDING_SCREEN",e.id=d.id,h({type:"HELPER_MODAL",view:"SCREENS",item:e})},children:[(0,i.isEmpty)(g)||(0,i.isEmpty)(y)?null:(0,s.FD)(s.FK,{children:[(0,s.Y)("div",{className:"screen-wrapper right-arrow",style:{backgroundImage:"url(".concat(y.url,")")}}),(0,s.Y)("div",{className:"screen-wrapper",style:{backgroundImage:"url(".concat(g.url,")")}})]}),(0,s.FD)("div",{className:"edit-overlay",children:[(0,s.Y)("div",{className:"overlay-text",children:"Edit"}),(0,s.Y)("span",{onClick:function(e){e.stopPropagation(),N(!0)},className:"preventDefaultClass icon-Delete"})]})]}),b?(0,s.Y)(l.A,{title:"Are you sure?",type:"ALERT",message:(0,s.FD)(s.FK,{children:["You are about to delete ",(0,s.Y)("span",{className:"font-weight-6 gunmetal-80-fg",children:"Completion"+(p+1)}),". If you delete this, all progress will be lost. You cannot undo this action!"]}),callBack:function(){N(!1),e.delete()},closeDialog:function(){N(!1)}}):null]})})},[{startingScreen:"currentBlock.data.startingScreen"},{screens:"prototype.screens"}])}}]);
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.