1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9336],{54075:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ielts/test/reading-exam-2",function(){return s(57951)}])},23883:function(e,t,s){"use strict";var n=s(85893),i=s(95934),a=s(67294),r=s(6967),o=s.n(r);let l=e=>{var t,s;let{inputId:r,page:l,currentPage:c,givenAnswer:d,progressId:h,givenTime:u,previousGivenTime:g,groupName:m,progressRefetch:p,droppedData:x,dropId:v,dropInput2:f}=e,[b,{isSuccess:j}]=(0,i.Rh)(),w={given_answer_id:null==d?void 0:null===(t=d[v-1])||void 0===t?void 0:t.id,ielts_practice_progress_id:h,answer_text:x[v]?x[v]:"",time_taken:g+u,group_name:"part-".concat(m)};(0,a.useEffect)(()=>{v===r&&(x[v]?b(w):b({...w,answer_text:""}))},[x,v]),(0,a.useEffect)(()=>{j&&p()},[j]);let _=null==d?void 0:null===(s=d[r-1])||void 0===s?void 0:s.answer_text;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("span",{className:"".concat(o().input," ").concat(l===r&&o().in_focus," ").concat((x[r]||_)&&o().answered," ").concat(f?"drop_input2":"drop_input"),"data-id":r,id:"question_".concat(r),children:x[r]?x[r]||_:_||r})})};t.Z=l},22770:function(e,t,s){"use strict";var n=s(85893);s(67294);let i=e=>{let{index:t,item:s,handleSelectAnswer:i,selectedOption:a}=e,r=null==s?void 0:s.id.split("_")[1];return(0,n.jsxs)("p",{className:"mb_10",children:[(0,n.jsx)("input",{type:"checkbox",value:"a",id:null==s?void 0:s.id,onChange:()=>i(null==s?void 0:s.id),checked:a.includes(r)}),(0,n.jsxs)("label",{htmlFor:null==s?void 0:s.id,style:{marginLeft:"10px"},children:[(0,n.jsxs)("strong",{children:[["A","B","C","D","E","F","G","H","I","J"][t],"."]})," ",null==s?void 0:s.label]})]})};t.Z=i},57951:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return O}});var n=s(85893),i=s(88163),a=s(67294),r=s(50703),o=s(6967),l=s.n(o),c=s(89583),d=s(8399),h=s(25675),u=s.n(h),g=s(13599),m=s(13564),p=s(95934),x=s(18318),v=s(2585),f=s(60155);let b=e=>{let{page:t,setPage:s,isStarted:i,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:b,givenAnswer:j}=e,[w,_]=(0,a.useState)({visible:!1,x:0,y:0,target:null}),[y,N]=(0,a.useState)([]),[T,k]=(0,a.useState)([]),[C,S]=(0,a.useState)([]),[E,A]=(0,a.useState)([]),[P,I]=(0,a.useState)([]),[q,O]=(0,a.useState)({offset:"",text:""}),[R,W]=(0,a.useState)(!1),[Z,B]=(0,a.useState)(""),[G,L]=(0,a.useState)(!0),H=(0,a.useRef)(),M=(0,a.useRef)(null),[Q,D]=(0,a.useState)(50),[F,z]=(0,a.useState)(!1),[X,J]=(0,a.useState)(0),[V,K]=(0,a.useState)(""),[U,Y]=(0,a.useState)(""),ee=e=>{z(!0),J(e.clientX)},et=e=>{if(!F)return;let t=e.clientX-X,s=document.querySelector(".resizable-container").offsetWidth,n=t/s*100;D(e=>Math.max(10,Math.min(90,e+n))),J(e.clientX)},es=()=>{z(!1)};(0,a.useEffect)(()=>{let e=e=>{H.current&&!H.current.contains(e.target)&&_({visible:!1,x:0,y:0,target:null})};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[]),(0,a.useEffect)(()=>{G&&(null==T||T.forEach(e=>{let{text:t,offset:s}=e,n=M.current;if(n){let e;let i=document.createTreeWalker(n,NodeFilter.SHOW_TEXT,null,!1),a=0;for(;e=i.nextNode();){let n=e.textContent,i=n.indexOf(t);for(;i>-1;){let r=a+i;if(r===s){let s=document.createRange();s.setStart(e,i),s.setEnd(e,i+t.length);let n=document.createElement("span");n.textContent=t,n.style.backgroundColor="yellow",n.className="highlight",n.addEventListener("contextmenu",ea),s.surroundContents(n);return}i=n.indexOf(t,i+1)}a+=n.length}}}))},[T,i,G]),(0,a.useEffect)(()=>{G&&(null==E||E.forEach(e=>{let{text:t,offset:s}=e,n=M.current;if(n){let e;let i=document.createTreeWalker(n,NodeFilter.SHOW_TEXT,null,!1),a=0;for(;e=i.nextNode();){let n=e.textContent,i=n.indexOf(t);for(;i>-1;){let r=a+i;if(r===s){let s=document.createRange();s.setStart(e,i),s.setEnd(e,i+t.length);let n=document.createElement("span");n.textContent=t,n.style.backgroundColor="lightgreen",n.style.color="#053a76",n.className="note",n.addEventListener("contextmenu",ea),s.surroundContents(n);return}i=n.indexOf(t,i+1)}a+=n.length}}}))},[E,G,T,i]);let en=e=>{e.preventDefault();let t=window.getSelection().toString();t&&_({visible:!0,x:e.pageX,y:e.pageY-170,target:null})},ei=e=>{let t;L(!1);let s=window.getSelection();if(!s.rangeCount)return;let n=s.getRangeAt(0),i=s.toString();if(!i.trim())return;let a=M.current,r=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1),o=0,l=-1;for(;t=r.nextNode();){if(t===n.startContainer){l=o+n.startOffset;break}o+=t.textContent.length}if(-1!==l){if(O({offset:l,text:i}),"highlight"===e){let e=document.createElement("span");e.style.backgroundColor="yellow",e.className="highlight",e.addEventListener("contextmenu",ea),n.surroundContents(e),k(e=>[...e,{text:i,offset:l}]),N(t=>[...t,e])}if("note"===e){let e=document.createElement("span");e.style.backgroundColor="",e.style.backgroundColor="lightgreen",e.style.color="#053a76",e.className="note",e.addEventListener("contextmenu",ea),n.surroundContents(e),A(e=>[...e,{text:i,offset:l}]),I(t=>[...t,e])}_({visible:!1,x:0,y:0,target:null})}},ea=e=>{e.preventDefault(),_({visible:!0,x:e.pageX,y:e.pageY-170,target:e.target})},er=()=>{L(!1);let{target:e}=w;if(e){let t=e.parentNode;t.replaceChild(document.createTextNode(e.textContent),e),N(y.filter(t=>t!==e))}_({visible:!1,x:0,y:0,target:null}),k(t=>t.filter(t=>t.text!==e.textContent))},eo=()=>{L(!1);let{target:e}=w;if(e){let t=e.parentNode;null==t||t.replaceChild(document.createTextNode(e.textContent),e),I(P.filter(t=>t!==e));let s=null==E?void 0:E.filter(t=>{let s=(null==t?void 0:t.text)===e.textContent;return!s});A(s),ep(s)}_({visible:!1,x:0,y:0,target:null}),k(t=>t.filter(t=>t.text!==e.textContent))},{data:el,isSuccess:ec,isLoading:ed,isFetching:eh,refetch:eu}=(0,p.fV)({practiceProgressId:r,key:"part_three"},{skip:!r});(0,a.useEffect)(()=>
1{if(ec&&!eh&&!ed){var e,t,s,n;I([]),N([]),k([]);let i=(null==el?void 0:null===(e=el.data)||void 0===e?void 0:e.highlight)?JSON.parse(null==el?void 0:null===(t=el.data)||void 0===t?void 0:t.highlight):[],a=(null==el?void 0:null===(s=el.data)||void 0===s?void 0:s.note)?JSON.parse(null==el?void 0:null===(n=el.data)||void 0===n?void 0:n.note):[];k(i),S(i),A(a)}},[ec,eh]);let[eg,{isLoading:em}]=(0,p.h_)();(0,a.useEffect)(()=>{G||T===C||(eg({highlight:JSON.stringify(T),practice_progress_id:r,key:"part_three"}),eu())},[T,G]);let ep=async e=>{eg({note:JSON.stringify(e||E),practice_progress_id:r,key:"part_three"}),eu()};return(0,n.jsxs)("div",{className:l().ic_question_part,children:[(0,n.jsxs)("div",{className:l().ic_test_header,children:[(0,n.jsx)("h4",{children:"Part 3"}),(0,n.jsx)("p",{children:"You should spend about 20 minutes on Questions 27-40, which are based on Reading Passage 3."})]}),R&&(0,n.jsx)(x.Z,{selectedNote:q,allNoteData:E,setShowNoteModal:W,showNoteModal:R,note:Z,setNote:B,setNoteData:A,handleNoteSubmit:ep,highlightNoteSaveLoading:em,getHighlight:C}),(0,n.jsxs)("div",{className:"".concat(l().ic_test_main_body," ").concat(l().two_part_question," resizable-container"),onMouseMove:et,onMouseUp:es,onMouseLeave:es,children:[w.visible&&(0,n.jsx)("div",{ref:H,className:l().context_menu,style:{position:"absolute",top:w.y,left:w.x,zIndex:1e3},children:w.target?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsxs)("button",{onClick:()=>{var e;ei("note"),B(""),O({offset:"",text:(null==w?void 0:null===(e=w.target)||void 0===e?void 0:e.textContent)||""}),W(!0)},children:[(0,n.jsx)(v.NS3,{className:"tw-text-lg tw-text-rose-400"}),"Note"]})}),(0,n.jsx)("li",{children:(0,n.jsxs)("button",{onClick:er,children:[(0,n.jsx)(u(),{src:"/images/clearAllHighlightImage.png",alt:"icon",width:16,height:16}),"Clear Highlight"]})}),(0,n.jsx)("li",{children:(0,n.jsxs)("button",{onClick:eo,children:[(0,n.jsx)(f.fE4,{className:"tw-text-lg tw-text-rose-400"}),"Clear Note"]})})]})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsxs)("button",{onClick:()=>ei("highlight"),children:[(0,n.jsx)(u(),{src:"/images/highlightTextImage.png",alt:"icon",width:16,height:16}),"Highlight"]})}),(0,n.jsx)("li",{children:(0,n.jsxs)("button",{onClick:()=>{ei("note"),B(""),W(!0)},children:[(0,n.jsx)(v.NS3,{className:"tw-text-lg tw-text-rose-400"}),"Note"]})})]})})}),(0,n.jsx)("button",{style:{left:"".concat(Q-1,"%")},onMouseDown:ee,className:l().resize_button,children:(0,n.jsx)(c.Hrw,{})}),(0,n.jsxs)("div",{className:l().ic_test_main_inner,style:{width:"".concat(Q,"%")},children:[(0,n.jsx)("h3",{className:"mb_10 text_center",children:"The Fame Machine"}),(0,n.jsxs)("p",{className:"mb_10",ref:M,onContextMenu:en,children:["Fascination is universal for what Aaron Spelling, a prolific producer of American soap operas, once called\nârich people having problems that money canât solveâ. The fascinated in star-struck Britain have no equal.\nThe country has a profusion of titles devoted to chronicling even the smallest doings of celebrities. Britons\nbuy almost half as many celebrity magazines as Americans do, despite having a population that is only one\nfifth the size. Celebrity news often makes the front page of British tabloid newspapers, providing a\nformidable distribution channel for stories about celebrities. New figures from the Audit Bureau of\nCirculations show that the ten best-selling celebrity publications and ten most popular tabloids have a\ncombined circulation of 23 million.\n"," ",(0,n.jsx)("br",{})," ",(0,n.jsx)("br",{}),'Satisfying this voracious demand has turned what was once a shoddy, amateurish business into an\nentertainment industry in its own right. Its business model has two distinguishing features. First, celebrity\nhas become the product - rather than just a device for marketing films or music. The âtalent" (if that is the\nword) owes its standing chiefly to the celebrity machine and not to any particular gift. It, therefore, depends\non the attentions of the press to make money. Second, celebrities, agents, photographers, and picture\ndesks have found that the most efficient way to create an endless supply of celebrity news is to work\ntogether. A business that used to be based on intrusion has discovered a preference for collaboration.\n'," ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{})," ","It is also expanding abroad. In the past few weeks, Northern & Shell has launched an American edition of\nOK!, a celebrity magazine that already has Australian, Chinese, and Middle Eastern editions. EMAP recently\nlaunched Closer in France and already published a South African edition of Heat, a best-seller in Britain.\nCelebrity hounds who cut their teeth in Britainâs competitive market are in demand abroad. The National\nEnquirer, a hard-nosed American scandal sheet famed for pushing back the boundaries of taste - and of\nfree speech - was relaunched earlier in the year by a team led by Paul Field, formerly of The Sun, and\nstuffed with alumni of British tabloids and magazines.\n"," ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),"Celebrity magazines were not a British invention. Hello!- which is still widely read but which has been\nwaning of late, originated in Spain, where Hola! provided a hint of glamour to women under Francoâs drab\nreign. Before that, magazines grew up around the film industry in America. Some reported what the studios\nwanted them to say; others, such as Confidential - which became the biggest-selling magazine in America\nin the 1950s - aimed to dish the dirt on the stars. In Britain, celebrity news has been used to sell newspapers\nfor more than a century. The News of the World, which gleefully reported aristocratic scandals in the 19th\ncentury, first appeared in the same year as Dickensâs âA Christmas Carolâ.\n"," ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),"Modern Britain has given the gossip a new sophistication. Part of the secret has been to separate celebrity revenue streams. Julian Henry of Henryâs House, an agency for celebrities, distinguishes between a celebrityâs craft (such as singing, stripping, or kicking footballs) and their celebrity rating, which has a trajectory of its own, and often has an inverse relationship to the talent a famous person has, or once had. This second stream can often be more valuable than the first, and Britainâs celebrity industry has become adept at creating and selling it. ",(0,n.jsx)("br",{})," ",(0,n.jsx)("br",{}),"Take Peter Andre and Katie Price, who are to marry later this month. The pop singer and the model better known as Jordan, met when their careers were flagging, on a reality TV show - that essential new cog in the celebrity machine. They have sold rights to the wedding, built around a Cinderella theme, as an exclusive to OK! for a small fortune (a price, the gossip press says, that has irked Victoria Beckham, whose marriage to her footballer husband was covered by a million-
1pound contract). In the past, such sums have been reserved for authentic stars such as Michael Douglas and Catherine Zeta-Jones. The deal included more than wedding snaps: over a year of the coupleâs life - from prenuptial nerves to the first birthday of the expected offspring - was bundled together and sold as a commodity. Ms. Price, who once said the only book she had read was the story of the Yorkshire Ripper, has now signed a three-book deal with Random House. ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),"Paul Ashford of Northern & Shell, the company that owns OK! calls this stuff ârelationship journalismâ, and it is pretty easy to spot. The process has become so effective that the three celebrities who insiders say shift most copies of OK! have all been manufactured in this way. With celebrity stories able to have such a powerful effect on sales, it is unsurprising that their manufacture is not left to chance. Modern celebrity in Britain is also more egalitarian. Tittle-tattle about dukes and duchesses is worth less than stories on ordinary folk, partly because ordinary folk make for more colourful copy. The News of the World boosted circulation by 250,000 when it put the Beckhams on its cover last year after David Beckham was alleged to have had a love affair. Such cases show how celebritiesâ willing participation can come back to haunt them if they transgress. This is less common than you might think: many of the celebrity pictures that look like plain intrusion into private lives are staged. ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{})," ","This is partly thanks to the profit motive. Many celebrities don't\n see why they should give away their image when they could make money\n from it. Darren Lyons runs a photography agency called Big Pictures\n that specialises in shooting celebrities through long lenses as if\n for a paparazzi picture. The profits from the picture sales are then\n split between the subject, the agency, and the photographer. \"Weâre\n almost known as the friendly paparazzi,â grins Mr. Lyons from the\n high-backed, red leather judicial chair in his office, a lion-skin\n rug spread across the floor. Collaboration allows celebrities to\n retain some control over choosing the pictures that appear."]})]}),(0,n.jsxs)("div",{className:l().ic_test_main_inner,style:{width:"".concat(100-Q,"%")},children:[(0,n.jsxs)("div",{className:"mb_20",children:[(0,n.jsx)("p",{className:"mb_10",children:(0,n.jsx)("strong",{children:"Questions 27-30"})}),(0,n.jsxs)("p",{className:"mb_10",children:["For each question, only ",(0,n.jsx)("strong",{children:"ONE"})," of the choices is correct. Choose the correct letter, ",(0,n.jsx)("strong",{children:"A-C"})]})]}),(0,n.jsxs)("div",{className:"".concat(l().ic_collapse_questions," mb_20"),children:[(0,n.jsxs)("div",{className:l().ic_collapse_question_item,id:"question_27",children:[(0,n.jsx)("div",{className:"".concat(l().coll_title," ").concat(27===t&&l().active),onClick:()=>s(27),children:(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"27"})," British people buy"]})}),27===t&&(0,n.jsx)("div",{className:l().ic_collapse_ques_content,children:[{id:"27a_1",label:"as many celebrity magazines as Americans do"},{id:"27a_2",label:"more celebrity magazines per head of population than Americans."},{id:"27a_3",label:"a grand total of 23 million celebrity magazines each year."}].map((e,s)=>(0,n.jsx)(m.Z,{qName:"q27",currentQuestion:27,item:e,index:s,currentPage:t,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:b,givenAnswer:j,setSelectedOption:Y,selectedOption:U},e.id))})]}),(0,n.jsxs)("div",{className:l().ic_collapse_question_item,id:"question_28",children:[(0,n.jsx)("div",{className:"".concat(l().coll_title," ").concat(28===t&&l().active),onClick:()=>s(28),children:(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"28"})," The National Enquirer is-"]})}),28===t&&(0,n.jsx)("div",{className:l().ic_collapse_ques_content,children:[{id:"28a_1",label:"a tasteful magazine"},{id:"28a_2",label:"now owned by British people."},{id:"28a_3",label:"now employing many British journalists."}].map((e,s)=>(0,n.jsx)(m.Z,{qName:"q28",currentQuestion:28,item:e,index:s,currentPage:t,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:b,givenAnswer:j,setSelectedOption:Y,selectedOption:U},e.id))})]}),(0,n.jsxs)("div",{className:l().ic_collapse_question_item,id:"question_29",children:[(0,n.jsx)("div",{className:"".concat(l().coll_title," ").concat(29===t&&l().active),onClick:()=>s(29),children:(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"29"})," The News of the World-"]})}),29===t&&(0,n.jsx)("div",{className:l().ic_collapse_ques_content,children:[{id:"29a_1",label:"is an American newspaper"},{id:"29a_2",label:"has been published for over a hundred years."},{id:"29a_3",label:"published extracts from âA Christmas Carolâ"}].map((e,s)=>(0,n.jsx)(m.Z,{qName:"q29",currentQuestion:29,item:e,index:s,currentPage:t,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:b,givenAnswer:j,setSelectedOption:Y,selectedOption:U},e.id))})]}),(0,n.jsxs)("div",{className:l().ic_collapse_question_item,id:"question_30",children:[(0,n.jsx)("div",{className:"".concat(l().coll_title," ").concat(30===t&&l().active),onClick:()=>s(30),children:(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"30"})," Darren Lyons-"]})}),30===t&&(0,n.jsx)("div",{className:l().ic_collapse_ques_content,children:[{id:"30a_1",label:"works with celebrities"},{id:"30a_2",label:"is disliked by many celebrities."},{id:"30a_3",label:"doesnât co-operate with newspapers and magazines."}].map((e,s)=>(0,n.jsx)(m.Z,{qName:"q30",currentQuestion:30,item:e,index:s,currentPage:t,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:b,givenAnswer:j,setSelectedOption:Y,selectedOption:U},e.id))})]})]}),(0,n.jsxs)("div",{className:"mb_20",children:[(0,n.jsx)("p",{className:"mb_10",children:(0,n.jsx)("strong",{children:"Questions 31-35"})}),(0,n.jsxs)("p",{children:["Complete the following sentences using"," ",(0,n.jsx)("strong",{children:"NO MORE THAN TWO WORDS"})," from the text for each question."]})]}),(0,n.jsx)("div",{className:"mb_15",children:(0,n.jsxs)("p",{children:["Britainâs celebrity industry is good at"," ",(0,n.jsx)(g.Z,{currentQuestion:31,id:"question_31",currentPage:t,setPage:s,maxWords:3,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:b,givenAnswer:j})," ","a celebrity rating."]})}),(0,n.jsx)("div",{className:"mb_15",children:(0,n.jsxs)("p",{children:["Peter Andre and Katie Priceâs wedding will have a"," ",(0,n.jsx)(g.Z,{currentQuestion:32,id:"question_32",currentPage:t,setPage:s,maxWords:3,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:b,givenAnswer:j})]})}),(0,n.jsx)("div",{className:"mb_15",children:(0,n.jsxs)("p",{children:["According to some, the three stars that can increase sales of OK! most all participate in _"," ",(0,n.jsx)(g.Z,{currentQuestion:33,
1id:"question_33",currentPage:t,setPage:s,maxWords:3,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:b,givenAnswer:j})]})}),(0,n.jsx)("div",{className:"mb_15",children:(0,n.jsxs)("p",{children:[" ",(0,n.jsx)(g.Z,{currentQuestion:34,id:"question_34",currentPage:t,setPage:s,maxWords:3,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:b,givenAnswer:j}),"make more interesting subjects for stories"]})}),(0,n.jsx)("div",{className:"mb_20",children:(0,n.jsxs)("p",{children:["If celebrities co-operate with agencies and photographers, they"," ",(0,n.jsx)(g.Z,{currentQuestion:35,id:"question_35",currentPage:t,setPage:s,maxWords:3,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:b,givenAnswer:j})," ","with regard to which photographs of them are published."]})}),(0,n.jsx)("div",{className:"mb_20",children:(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Questions 36-40"})})}),(0,n.jsxs)("div",{className:"".concat(l().ic_collapse_questions," mb_20"),children:[(0,n.jsxs)("div",{className:l().ic_collapse_question_item,id:"question_36",children:[(0,n.jsx)("div",{className:"".concat(l().coll_title," ").concat(36===t&&l().active),onClick:()=>s(36),children:(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"36"})," Aaron Spelling has produced many American soap operas."]})}),36===t&&(0,n.jsx)("div",{className:l().ic_collapse_ques_content,children:[{id:"36a_1",label:"TRUE"},{id:"36a_2",label:"FALSE"},{id:"36a_3",label:"NOT GIVEN"}].map((e,s)=>(0,n.jsx)(m.Z,{qName:"q36",currentQuestion:36,item:e,index:s,currentPage:t,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:b,givenAnswer:j,setSelectedOption:Y,selectedOption:U},e.id))})]}),(0,n.jsxs)("div",{className:l().ic_collapse_question_item,id:"question_37",children:[(0,n.jsx)("div",{className:"".concat(l().coll_title," ").concat(37===t&&l().active),onClick:()=>s(37),children:(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"37"})," The âtalentâ (paragraph 2) refers to the celebrity."]})}),37===t&&(0,n.jsx)("div",{className:l().ic_collapse_ques_content,children:[{id:"37a_1",label:"TRUE"},{id:"37a_2",label:"FALSE"},{id:"37a_3",label:"NOT GIVEN"}].map((e,s)=>(0,n.jsx)(m.Z,{qName:"q37",currentQuestion:37,item:e,index:s,currentPage:t,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:b,givenAnswer:j,setSelectedOption:Y,selectedOption:U},e.id))})]}),(0,n.jsxs)("div",{className:l().ic_collapse_question_item,id:"question_38",children:[(0,n.jsx)("div",{className:"".concat(l().coll_title," ").concat(38===t&&l().active),onClick:()=>s(38),children:(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"38"})," Confidential was first published in the 1950s rating."]})}),38===t&&(0,n.jsx)("div",{className:l().ic_collapse_ques_content,children:[{id:"38a_1",label:"TRUE"},{id:"38a_2",label:"FALSE"},{id:"38a_3",label:"NOT GIVEN"}].map((e,s)=>(0,n.jsx)(m.Z,{qName:"q38",currentQuestion:38,item:e,index:s,currentPage:t,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:b,givenAnswer:j,setSelectedOption:Y,selectedOption:U},e.id))})]}),(0,n.jsxs)("div",{className:l().ic_collapse_question_item,id:"question_39",children:[(0,n.jsx)("div",{className:"".concat(l().coll_title," ").concat(39===t&&l().active),onClick:()=>s(39),children:(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"39"})," At Henryâs House, the celebrityâs ability is linked to their celebrity rating."]})}),39===t&&(0,n.jsx)("div",{className:l().ic_collapse_ques_content,children:[{id:"39a_1",label:"TRUE"},{id:"39a_2",label:"FALSE"},{id:"39a_3",label:"NOT GIVEN"}].map((e,s)=>(0,n.jsx)(m.Z,{qName:"q39",currentQuestion:39,item:e,index:s,currentPage:t,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:b,givenAnswer:j,setSelectedOption:Y,selectedOption:U},e.id))})]}),(0,n.jsxs)("div",{className:l().ic_collapse_question_item,id:"question_40",children:[(0,n.jsx)("div",{className:"".concat(l().coll_title," ").concat(40===t&&l().active),onClick:()=>s(40),children:(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"40"})," Peter Andre and Katie Price were becoming more successful when they met."]})}),40===t&&(0,n.jsx)("div",{className:l().ic_collapse_ques_content,children:[{id:"40a_1",label:"TRUE"},{id:"40a_2",label:"FALSE"},{id:"40a_3",label:"NOT GIVEN"}].map((e,s)=>(0,n.jsx)(m.Z,{qName:"q40",currentQuestion:40,item:e,index:s,currentPage:t,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:b,givenAnswer:j,setSelectedOption:Y,selectedOption:U},e.id))})]})]})]})]})]})};var j=s(22770);let w=e=>{let{page:t,givenAnswer:s,progressId:i,givenTime:r,previousGivenTime:o,progressRefetch:l,groupName:c}=e,[d,h]=(0,a.useState)([]),[u,g]=(0,a.useState)(!1),m=e=>{let t=e.split("_")[1];d.includes(t)?h(d.filter(e=>e!==t)):d.length<3&&(h([...d,t]),g(!0))},[x,{isSuccess:v}]=(0,p.Rh)();return(0,a.useEffect)(()=>
1{if(3===d.length&&u){let t=d.sort((e,t)=>e-t);for(let n=0;n<3;n++){var e;let a={given_answer_id:null==s?void 0:null===(e=s[n])||void 0===e?void 0:e.id,ielts_practice_progress_id:i,selected_option_id:t[n],time_taken:o+r,group_name:"part-".concat(c)};x(a)}}},[d]),(0,a.useEffect)(()=>{v&&l()},[v]),(0,a.useEffect)(()=>{if((null==s?void 0:s.length)>0){let e=null==s?void 0:s.slice(0,3),t=null==e?void 0:e.map(e=>null==e?void 0:e.selected_option_id);null!==t[0]&&h(t)}},[s]),(0,n.jsx)(n.Fragment,{children:[{id:"1a_1",label:"They were mainly skilled workers and single women."},{id:"1a_2",label:"They all welcomed Governor Macquarie's policies."},{id:"1a_3",label:"25 percent of them were born in the colonies."},{id:"1a_4",label:"160,000 of them went to Australia between 1787 and 1868."},{id:"1a_5",label:"8,000 of them arrived in Australia in the 1820s."},{id:"1a_6",label:"They established families, businesses and farms."},{id:"1a_7",label:"Convicts who were assigned to them provided them with labour"},{id:"1a_8",label:"They campaigned in favour of emancipist rights"}].map((e,t)=>(0,n.jsx)(j.Z,{qName:"q1to3",currentQuestion:1,item:e,index:t,handleSelectAnswer:m,selectedOption:d},e.id))})};var _=s(23883);let y=e=>{let{page:t,setPage:s,isStarted:i,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b}=e,[j,y]=(0,a.useState)([{id:1,text:"Free settlers",originalIndex:0},{id:2,text:"Transportation of convicts",originalIndex:1},{id:3,text:"The end of transportation",originalIndex:2},{id:4,text:"Convict life",originalIndex:3},{id:5,text:"The colonial population",originalIndex:4},{id:6,text:"The treatment of convicts",originalIndex:5},{id:7,text:"Opponents of transportation",originalIndex:6},{id:8,text:"The first settlements",originalIndex:7}]),[N,T]=(0,a.useState)({4:"",5:"",6:"",7:"",8:"",9:""}),[k,C]=(0,a.useState)({visible:!1,x:0,y:0,target:null}),[S,E]=(0,a.useState)([]),[A,P]=(0,a.useState)([]),[I,q]=(0,a.useState)([]),[O,R]=(0,a.useState)([]),[W,Z]=(0,a.useState)([]),[B,G]=(0,a.useState)({offset:"",text:""}),[L,H]=(0,a.useState)(!1),[M,Q]=(0,a.useState)(""),[D,F]=(0,a.useState)(!0),z=(0,a.useRef)(),X=(0,a.useRef)(null),[J,V]=(0,a.useState)(50),[K,U]=(0,a.useState)(!1),[Y,ee]=(0,a.useState)(0),[et,es]=(0,a.useState)(""),[en,ei]=(0,a.useState)(""),ea=e=>{U(!0),ee(e.clientX)},er=e=>{if(!K)return;let t=e.clientX-Y,s=document.querySelector(".resizable-container").offsetWidth,n=t/s*100;V(e=>Math.max(10,Math.min(90,e+n))),ee(e.clientX)},eo=()=>{U(!1)};(0,a.useEffect)(()=>{let e=e=>{z.current&&!z.current.contains(e.target)&&C({visible:!1,x:0,y:0,target:null})};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[]),(0,a.useEffect)(()=>{D&&(null==A||A.forEach(e=>{let{text:t,offset:s}=e,n=X.current;if(n){let e;let i=document.createTreeWalker(n,NodeFilter.SHOW_TEXT,null,!1),a=0;for(;e=i.nextNode();){let n=e.textContent,i=n.indexOf(t);for(;i>-1;){let r=a+i;if(r===s){let s=document.createRange();s.setStart(e,i),s.setEnd(e,i+t.length);let n=document.createElement("span");n.textContent=t,n.style.backgroundColor="yellow",n.className="highlight",n.addEventListener("contextmenu",ed),s.surroundContents(n);return}i=n.indexOf(t,i+1)}a+=n.length}}}))},[A,i,D]),(0,a.useEffect)(()=>{D&&(null==O||O.forEach(e=>{let{text:t,offset:s}=e,n=X.current;if(n){let e;let i=document.createTreeWalker(n,NodeFilter.SHOW_TEXT,null,!1),a=0;for(;e=i.nextNode();){let n=e.textContent,i=n.indexOf(t);for(;i>-1;){let r=a+i;if(r===s){let s=document.createRange();s.setStart(e,i),s.setEnd(e,i+t.length);let n=document.createElement("span");n.textContent=t,n.style.backgroundColor="lightgreen",n.style.color="#053a76",n.className="note",n.addEventListener("contextmenu",ed),s.surroundContents(n);return}i=n.indexOf(t,i+1)}a+=n.length}}}))},[O,D,A,i]);let el=e=>{e.preventDefault();let t=window.getSelection().toString();t&&C({visible:!0,x:e.pageX,y:e.pageY-170,target:null})},ec=e=>{let t;F(!1);let s=window.getSelection();if(!s.rangeCount)return;let n=s.getRangeAt(0),i=s.toString();if(!i.trim())return;let a=X.current,r=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1),o=0,l=-1;for(;t=r.nextNode();){if(t===n.startContainer){l=o+n.startOffset;break}o+=t.textContent.length}if(-1!==l){if(G({offset:l,text:i}),"highlight"===e){let e=document.createElement("span");e.style.backgroundColor="yellow",e.className="highlight",e.addEventListener("contextmenu",ed),n.surroundContents(e),P(e=>[...e,{text:i,offset:l}]),E(t=>[...t,e])}if("note"===e){let e=document.createElement("span");e.style.backgroundColor="",e.style.backgroundColor="lightgreen",e.style.color="#053a76",e.className="note",e.addEventListener("contextmenu",ed),n.surroundContents(e),R(e=>[...e,{text:i,offset:l}]),Z(t=>[...t,e])}C({visible:!1,x:0,y:0,target:null})}},ed=e=>{e.preventDefault(),C({visible:!0,x:e.pageX,y:e.pageY-170,target:e.target})},eh=()=>{F(!1);let{target:e}=k;if(e){let t=e.parentNode;t.replaceChild(document.createTextNode(e.textContent),e),E(S.filter(t=>t!==e))}C({visible:!1,x:0,y:0,target:null}),P(t=>t.filter(t=>t.text!==e.textContent))},eu=()=>{F(!1);let{target:e}=k;if(e){let t=e.parentNode;null==t||t.replaceChild(document.createTextNode(e.textContent),e),Z(W.filter(t=>t!==e));let s=null==O?void 0:O.filter(t=>{let s=(null==t?void 0:t.text)===e.textContent;return!s});R(s),ej(s)}C({visible:!1,x:0,y:0,target:null}),P(t=>t.filter(t=>t.text!==e.textContent))},{data:eg,isSuccess:em,isLoading:ep,isFetching:ex,refetch:ev}=(0,p.fV)({practiceProgressId:r,key:"part_one"},{skip:!r});(0,a.useEffect)(()=>
1{if(em&&!ex&&!ep){var e,t,s,n;Z([]),E([]),P([]);let i=(null==eg?void 0:null===(e=eg.data)||void 0===e?void 0:e.highlight)?JSON.parse(null==eg?void 0:null===(t=eg.data)||void 0===t?void 0:t.highlight):[],a=(null==eg?void 0:null===(s=eg.data)||void 0===s?void 0:s.note)?JSON.parse(null==eg?void 0:null===(n=eg.data)||void 0===n?void 0:n.note):[];P(i),q(i),R(a)}},[em,ex]);let[ef,{isLoading:eb}]=(0,p.h_)();(0,a.useEffect)(()=>{D||A===I||(ef({highlight:JSON.stringify(A),practice_progress_id:r,key:"part_one"}),ev())},[A,D]);let ej=async e=>{ef({note:JSON.stringify(e||O),practice_progress_id:r,key:"part_one"}),ev()};return(0,a.useEffect)(()=>{$(".dragable_item").draggable({helper:"clone",revert:"invalid",cursor:"move"}),$(".drop_input").droppable({accept:".dragable_item",hoverClass:"drop-hover",greedy:!0,drop:function(e,t){let s=$(this).data("id"),n=t.helper.text();T(e=>({...e,[s]:n})),es(s)}})},[j,N,t,i]),(0,n.jsxs)("div",{className:l().ic_question_part,children:[(0,n.jsxs)("div",{className:l().ic_test_header,children:[(0,n.jsx)("h4",{children:"Part 1"}),(0,n.jsx)("p",{children:"You should spend about 20 minutes on Questions 1-13, which are based on Reading Passage 1."})]}),L&&(0,n.jsx)(x.Z,{selectedNote:B,allNoteData:O,setShowNoteModal:H,showNoteModal:L,note:M,setNote:Q,setNoteData:R,handleNoteSubmit:ej,highlightNoteSaveLoading:eb,getHighlight:I}),(0,n.jsxs)("div",{className:"".concat(l().ic_test_main_body," ").concat(l().two_part_question," resizable-container"),onMouseMove:er,onMouseUp:eo,onMouseLeave:eo,children:[k.visible&&(0,n.jsx)("div",{ref:z,className:l().context_menu,style:{position:"absolute",top:k.y,left:k.x,zIndex:1e3},children:k.target?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsxs)("button",{onClick:()=>{var e;ec("note"),Q(""),G({offset:"",text:(null==k?void 0:null===(e=k.target)||void 0===e?void 0:e.textContent)||""}),H(!0)},children:[(0,n.jsx)(v.NS3,{className:"tw-text-lg tw-text-rose-400"}),"Note"]})}),(0,n.jsx)("li",{children:(0,n.jsxs)("button",{onClick:eh,children:[(0,n.jsx)(u(),{src:"/images/clearAllHighlightImage.png",alt:"icon",width:16,height:16}),"Clear Highlight"]})}),(0,n.jsx)("li",{children:(0,n.jsxs)("button",{onClick:eu,children:[(0,n.jsx)(f.fE4,{className:"tw-text-lg tw-text-rose-400"}),"Clear Note"]})})]})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsxs)("button",{onClick:()=>ec("highlight"),children:[(0,n.jsx)(u(),{src:"/images/highlightTextImage.png",alt:"icon",width:16,height:16}),"Highlight"]})}),(0,n.jsx)("li",{children:(0,n.jsxs)("button",{onClick:()=>{ec("note"),Q(""),H(!0)},children:[(0,n.jsx)(v.NS3,{className:"tw-text-lg tw-text-rose-400"}),"Note"]})})]})})}),(0,n.jsx)("button",{style:{left:"".concat(J-1,"%")},onMouseDown:ea,className:l().resize_button,children:(0,n.jsx)(c.Hrw,{})}),(0,n.jsxs)("div",{className:l().ic_test_main_inner,style:{width:"".concat(J,"%")},children:[(0,n.jsx)("h4",{className:"text_center mb_20",children:"Australiaâs Convict Colonies"}),(0,n.jsxs)("p",{className:"mb_10",ref:X,onContextMenu:el,children:[(0,n.jsx)("span",{className:"".concat(l().input," drop_input"),children:"Transportation of convicts"}),(0,n.jsx)("br",{}),(0,n.jsx)("strong",{children:"A."})," ","The 1700s in Britain saw widespread poverty and\n rising crime, and those convicted of crimes faced harsh penalties,\n including transportation to one of Britain's overseas colonies.\n Since 1615, convicts had been transported to Britain's American\n colonies, both as punishment and a source of labour, but this\n practice was halted by the Revolutionary War in America (1775-1783).\n The British government decided to establish a new prison colony, and\n Botany Bay in New South Wales was chosen as the site. (Captain Cook,\n exploring the southeast coast of Australia in 1770, had named the\n land New South Wales and claimed it for Britain.) Between 1787 and\n 1868, almost 160,000 convicts, of whom about 25,000 were women, were\n sent to Australia to
1serve sentences ranging from 7 years to life.",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)(_.Z,{inputId:4,page:t,currentPage:t,givenAnswer:b,progressId:r,givenTime:h,previousGivenTime:d,groupName:o,progressRefetch:m,droppedData:N,dropId:et}),(0,n.jsx)("br",{}),(0,n.jsx)("strong",{children:"B."})," ","Eleven ships set sail from England in 1787 to\n take the first group of about 750 British convicts to Australia. The\n fleet reached Botany Bay in January 1788, but nearby Sydney Cove was\n selected as a more suitable site for the new settlement, which later\n became the city of Sydney. The first few years were difficult, with\n severe food shortages; by 1792, however, there were government farms\n and private gardens. Convicts worked on these farms, or on\n construction projects such as building roads and bridges. Although\n the settlement was a prison colony, few convicts served their\n sentences in jail. They lived in houses they had built themselves,\n and established families, businesses and farms. A settlement was\n also established on Norfolk Island, where some convicts were sent\n for crimes committed after arrival in the colony. Two more\n settlements were established on Van Diemen's Land (now Tasmania), in\n 1803 and 1804."," ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)(_.Z,{inputId:5,page:t,currentPage:t,givenAnswer:b,progressId:r,givenTime:h,previousGivenTime:d,groupName:o,progressRefetch:m,droppedData:N,dropId:et}),(0,n.jsx)("br",{}),(0,n.jsx)("strong",{children:"C."})," ","Convicts not involved in public work were assigned to free settlers, providing labour in exchange for\nfood, clothing and shelter. Some masters treated the convicts cruelly, and the punishment of convicts,\nparticularly in the early days, could be arbitrary and savage. Lachlan Macquarie, governor of New South\nWales from 1809 to 1819, adopted a more humane approach. He encouraged convicts to reform by\nrewarding good behaviour, even granting pardons to convicts before their sentence was completed.\nThese emancipists, as they were called, were given land and government assistance to help them start\nfarming. His policies were unpopular both with British authorities and wealthy free settlers, however,\nand the next governors were under orders to ensure that life for convicts became much stricter and\nmore controlled. There were harsher punishments for second offenders, such as working in the 'iron\ngangs', where men were chained together to carry out exhausting work on the roads, or being sent to\npenal settlements where punishment was deliberately brutal so that it would act as a deterrent."," ",(0,n.jsx)("br",{})," ",(0,n.jsx)("br",{}),(0,n.jsx)(_.Z,{inputId:6,page:t,currentPage:t,givenAnswer:b,progressId:r,givenTime:h,previousGivenTime:d,groupName:o,progressRefetch:m,droppedData:N,dropId:et}),(0,n.jsx)("br",{}),(0,n.jsx)("strong",{children:"D."})," In the early years of settlement, the convicts greatly outnumbered free immigrants and settlers. In 1810, convicts made up almost 60 percent of the population, and over 20,000 new convicts arrived between 1821 and 1830. Even in 1831, convicts still comprised 45 percent of the population, with exconvicts and emancipists making up another 30 percent. 25 percent of the population now consisted of people born in the colonies, and free people outnumbered convicts. ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)(_.Z,{inputId:7,page:t,currentPage:t,givenAnswer:b,progressId:r,givenTime:h,previousGivenTime:d,groupName:o,progressRefetch:m,droppedData:N,dropId:et}),(0,n.jsx)("br",{}),(0,n.jsx)("strong",{children:"E."})," The first group of free settlers had arrived in Australia in 1793 to seek their fortune in the new land. Their numbers grew, with about 8,000 free settlers arriving in the 1820s to take advantage of free land grants and cheap convict labour. In 1831, the British government offered money to support new settlers, hoping to attract skilled workers and single women as immigrants. Between 183
11 and 1840, more than 40,000 immigrants arrived in Australia. ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)(_.Z,{inputId:8,page:t,currentPage:t,givenAnswer:b,progressId:r,givenTime:h,previousGivenTime:d,groupName:o,progressRefetch:m,droppedData:N,dropId:et}),(0,n.jsx)("br",{}),(0,n.jsx)("strong",{children:"F."})," ","During the 1820s there was a lengthy campaign to win certain rights for emancipists, which was\nopposed by wealthy free settlers. In the 1830s, free immigrants to New South Wales and Van Diemen's\nLand, unhappy about living in a prison colony where civil liberties were restricted and convict labour\nresulted in low wages, increasingly voiced their opposition to transportation. Again, wealthy landowners\ndisagreed, but a growing number of reformers in England were also opposed to convict transportation.\nIn 1838, a committee set up by the British Parliament recommended that the government end\ntransportation to New South Wales and Van Diemen's Land, and abolish assignment. The British duly\nabolished assignment, and transportation - at least to New South Wales - was halted in 1840."," ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{})," ",(0,n.jsx)(_.Z,{inputId:9,page:t,currentPage:t,givenAnswer:b,progressId:r,givenTime:h,previousGivenTime:d,groupName:o,progressRefetch:m,droppedData:N,dropId:et}),(0,n.jsx)("br",{}),(0,n.jsx)("strong",{children:"G."})," ","Transportation continued, however, to other colonies and settlements. In the 1840s, most British\nconvicts were sent to Van Diemen's Land, where the British government introduced a convict system\nbased on stages of reform, with the convicts gaining increasing levels of freedom for continued good\nbehaviour. Transportation to the eastern colonies was abolished in 1852. In contrast, the convict\nsystem in Western Australia began in 1850, at the request of the Western Australian government, and\ncontinued until 1868. Convicts served part of their sentences in Britain before being transported to the\ncolony, where they worked on badly- needed public construction projects under a system similar to\nthat tried in Van Diemen's Land.\n"]})]}),(0,n.jsx)("div",{className:l().ic_test_main_inner,style:{width:"".concat(100-J,"%")},children:(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"mb_20",id:"question_1",children:[(0,n.jsx)("p",{className:"mb_10",id:"question_2",children:(0,n.jsx)("strong",{id:"question_3",children:"Question 1-3"})}),(0,n.jsx)("p",{className:"mb_10",children:"Which THREE of the following statements are true of free settlers in the Australian prison colonies, according to the text?"}),(0,n.jsxs)("p",{children:["Choose ",(0,n.jsx)("strong",{children:"THREE"})," letters ",(0,n.jsx)("strong",{children:"A-H"})]})]}),(0,n.jsx)("div",{children:(0,n.jsx)(w,{page:t,givenAnswer:b,progressId:r,previousGivenTime:d,givenTime:h,progressRefetch:m,groupName:o})}),(0,n.jsxs)("div",{className:"mb_20",children:[(0,n.jsx)("p",{className:"mb_10",children:(0,n.jsx)("strong",{children:" Questions 4-9"})}),(0,n.jsx)("p",{children:"Reading Passage 1 has seven paragraphs, A-G. Choose the correct heading for paragraphs B-G, from the list of headings below."})]}),(0,n.jsx)("div",{className:"".concat(l().ic_dragable_item_wrap," draggable_list"),children:null==j?void 0:j.map(e=>(0,n.jsx)("div",{className:"".concat(l().dragable_item," dragable_item"),"data-id":e.id,children:(0,n.jsx)("strong",{children:e.text})},e.id))}),(0,n.jsxs)("div",{className:"mb_20",children:[(0,n.jsx)("p",{className:"mb_10",children:(0,n.jsx)("strong",{children:"Questions 10-13"})}),(0,n.jsxs)("p",{className:"mb_10",children:["Complete the notes below. Write"," ",(0,n.jsx)("strong",{children:"NO MORE THAN THREE WORDS"})," for each answer."]}),(0,n.jsx)("p",{className:"mb_10",children:(0,n.jsx)("strong",{children:"Australiaâs Convict Colonies"})}),(0,n.jsx)("p",{children:"Events preceding first settlement"})]}),(0,n.jsxs)("ul",{children:[(0,n.jsxs)("li",{className:"mb_15",children:["1615- convicts first transported to"," ",(0,n.jsx)(g.Z,{currentQuestion:10,id:"question_10",currentPage:t,setPage:s,maxWords:3,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})," ","controlled by Britain"]}),(0,n.jsxs)("li",{className:"mb_15",children:["1770 - Cook claims SE Australian coast for Britain, calling it"," ",(0,n.jsx)(g.Z,{currentQuestion:11,id:"question_11",currentPage:t,setPage:s,maxWords:3,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})]}),(0,n.jsx)("li",{className:"mb_15",children:"1775 - 1783 - Revolutionary War in America halts transportation there"}),(0,n.jsxs)("li",{className:"mb_15",children:["1787 - Botany Bay chosen as site for new"," ",(0,n.jsx)(g.Z,{currentQuestion:12,id:"question_12",currentPage:t,setPage:s,maxWords:3,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})," ","; first convict fleet sets sail"]}),(0,n.jsxs)("li",{className:"mb_15",children:["1788 - fleet reaches Botany Bay but"," ",(0,n.jsx)(g.Z,{currentQuestion:13,id:"question_13",currentPage:t,setPage:s,maxWords:3,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})," ","; chosen instead"]})]})]})})]})]})};var N=s(25968),T=s(6226);let k=e=>{let{page:t,setPage:s,isStarted:i,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b}=e,[j,w]=(0,a.useState)({visible:!1,x:0,y:0,target:null}),[_,y]=(0,a.useState)([]),[k,C]=(0,a.useState)([]),[S,E]=(0,a.useState)([]),[A,P]=(0,a.useState)([]),[I,q]=(0,a.useState)([]),[O,R]=(0,a.useState)({offset:"",text:""}),[W,Z]=(0,a.useState)(!1),[B,G]=(0,a.useState)(""),[L,H]=(0,a.useState)(!0),M=(0,a.useRef)(),Q=(0,a.useRef)(null),[D,F]=(0,a.useState)(50),[z,X]=(0,a.useState)(!1),[J,V]=(0,a.useState)(0),[K,U]=(0,a.useState)(""),[Y,ee]=(0,a.useState)(""),et=e=>{X(!0),V(e.clientX)},es=e=>{if(!z)return;let t=e.clientX-J,s=document.querySelector(".resizable-container").offsetWidth,n=t/s*100;F(e=>Math.max(10,Math.min(90,e+n))),V(e.clientX)},en=()=>{X(!1)};(0,a.useEffect)(()=>{let e=e=>{M.current&&!M.current.contains(e.target)&&w({visible:!1,x:0,y:0,target:null})};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[]),(0,a.useEffect)(()=>
1{L&&(null==k||k.forEach(e=>{let{text:t,offset:s}=e,n=Q.current;if(n){let e;let i=document.createTreeWalker(n,NodeFilter.SHOW_TEXT,null,!1),a=0;for(;e=i.nextNode();){let n=e.textContent,i=n.indexOf(t);for(;i>-1;){let r=a+i;if(r===s){let s=document.createRange();s.setStart(e,i),s.setEnd(e,i+t.length);let n=document.createElement("span");n.textContent=t,n.style.backgroundColor="yellow",n.className="highlight",n.addEventListener("contextmenu",er),s.surroundContents(n);return}i=n.indexOf(t,i+1)}a+=n.length}}}))},[k,i,L]),(0,a.useEffect)(()=>{L&&(null==A||A.forEach(e=>{let{text:t,offset:s}=e,n=Q.current;if(n){let e;let i=document.createTreeWalker(n,NodeFilter.SHOW_TEXT,null,!1),a=0;for(;e=i.nextNode();){let n=e.textContent,i=n.indexOf(t);for(;i>-1;){let r=a+i;if(r===s){let s=document.createRange();s.setStart(e,i),s.setEnd(e,i+t.length);let n=document.createElement("span");n.textContent=t,n.style.backgroundColor="lightgreen",n.style.color="#053a76",n.className="note",n.addEventListener("contextmenu",er),s.surroundContents(n);return}i=n.indexOf(t,i+1)}a+=n.length}}}))},[A,L,k,i]);let ei=e=>{e.preventDefault();let t=window.getSelection().toString();t&&w({visible:!0,x:e.pageX,y:e.pageY-170,target:null})},ea=e=>{let t;H(!1);let s=window.getSelection();if(!s.rangeCount)return;let n=s.getRangeAt(0),i=s.toString();if(!i.trim())return;let a=Q.current,r=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1),o=0,l=-1;for(;t=r.nextNode();){if(t===n.startContainer){l=o+n.startOffset;break}o+=t.textContent.length}if(-1!==l){if(R({offset:l,text:i}),"highlight"===e){let e=document.createElement("span");e.style.backgroundColor="yellow",e.className="highlight",e.addEventListener("contextmenu",er),n.surroundContents(e),C(e=>[...e,{text:i,offset:l}]),y(t=>[...t,e])}if("note"===e){let e=document.createElement("span");e.style.backgroundColor="",e.style.backgroundColor="lightgreen",e.style.color="#053a76",e.className="note",e.addEventListener("contextmenu",er),n.surroundContents(e),P(e=>[...e,{text:i,offset:l}]),q(t=>[...t,e])}w({visible:!1,x:0,y:0,target:null})}},er=e=>{e.preventDefault(),w({visible:!0,x:e.pageX,y:e.pageY-170,target:e.target})},eo=()=>{H(!1);let{target:e}=j;if(e){let t=e.parentNode;t.replaceChild(document.createTextNode(e.textContent),e),y(_.filter(t=>t!==e))}w({visible:!1,x:0,y:0,target:null}),C(t=>t.filter(t=>t.text!==e.textContent))},el=()=>{H(!1);let{target:e}=j;if(e){let t=e.parentNode;null==t||t.replaceChild(document.createTextNode(e.textContent),e),q(I.filter(t=>t!==e));let s=null==A?void 0:A.filter(t=>{let s=(null==t?void 0:t.text)===e.textContent;return!s});P(s),ex(s)}w({visible:!1,x:0,y:0,target:null}),C(t=>t.filter(t=>t.text!==e.textContent))},{data:ec,isSuccess:ed,isLoading:eh,isFetching:eu,refetch:eg}=(0,p.fV)({practiceProgressId:r,key:"part_two"},{skip:!r});(0,a.useEffect)(()=>{if(ed&&!eu&&!eh){var e,t,s,n;q([]),y([]),C([]);let i=(null==ec?void 0:null===(e=ec.data)||void 0===e?void 0:e.highlight)?JSON.parse(null==ec?void 0:null===(t=ec.data)||void 0===t?void 0:t.highlight):[],a=(null==ec?void 0:null===(s=ec.data)||void 0===s?void 0:s.note)?JSON.parse(null==ec?void 0:null===(n=ec.data)||void 0===n?void 0:n.note):[];C(i),E(i),P(a)}},[ed,eu]);let[em,{isLoading:ep}]=(0,p.h_)();(0,a.useEffect)(()=>{L||k===S||(em({highlight:JSON.stringify(k),practice_progress_id:r,key:"part_two"}),eg())},[k,L]);let ex=async e=>{em({note:JSON.stringify(e||A),practice_progress_id:r,key:"part_two"}),eg()};return(0,n.jsxs)("div",{className:l().ic_question_part,children:[(0,n.jsxs)("div",{className:l().ic_test_header,children:[(0,n.jsx)("h4",{children:"Part 2"}),(0,n.jsx)("p",{children:"You should spend about 20 minutes on Questions 14-26, which are based on Reading Passage 2"})]}),W&&(0,n.jsx)(x.Z,{selectedNote:O,allNoteData:A,setShowNoteModal:Z,showNoteModal:W,note:B,setNote:G,setNoteData:P,handleNoteSubmit:ex,highlightNoteSaveLoading:ep,getHighlight:S}),(0,n.jsxs)("div",{className:"".concat(l().ic_test_main_body," ").concat(l().two_part_question," resizable-container"),onMouseMove:es,onMouseUp:en,onMouseLeave:en,children:[j.visible&&(0,n.jsx)("div",{ref:M,className:l().context_menu,style:{position:"absolute",top:j.y,left:j.x,zIndex:1e3},children:j.target?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsxs)("button",{onClick:()=>{var e;ea("note"),G(""),R({offset:"",text:(null==j?void 0:null===(e=j.target)||void 0===e?void 0:e.textContent)||""}),Z(!0)},children:[(0,n.jsx)(v.NS3,{className:"tw-text-lg tw-text-rose-400"}),"Note"]})}),(0,n.jsx)("li",{children:(0,n.jsxs)("button",{onClick:eo,children:[(0,n.jsx)(u(),{src:"/images/clearAllHighlightImage.png",alt:"icon",width:16,height:16}),"Clear Highlight"]})}),(0,n.jsx)("li",{children:(0,n.jsxs)("button",{onClick:el,children:[(0,n.jsx)(f.fE4,{className:"tw-text-lg tw-text-rose-400"}),"Clear Note"]})})]})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsxs)("button",{onClick:()=>ea("highlight"),children:[(0,n.jsx)(u(),{src:"/images/highlightTextImage.png",alt:"icon",width:16,height:16}),"Highlight"]})}),(0,n.jsx)("li",{children:(0,n.jsxs)("button",{onClick:()=>{ea("note"),G(""),Z(!0)},children:[(0,n.jsx)(v.NS3,{className:"tw-text-lg tw-text-rose-400"}),"Note"]})})]})})}),(0,n.jsx)("button",{style:{left:"".concat(D-1,"%")},onMouseDown:et,className:l().resize_button,children:(0,n.jsx)(c.Hrw,{})}),(0,n.jsxs)("div",{className:l().ic_test_main_inner,style:{width:"".concat(D,"%")}
1,children:[(0,n.jsx)("h3",{className:"text_center mb_20",children:"Crows can be Craftsmen too"}),(0,n.jsxs)("p",{className:"mb_10",ref:Q,onContextMenu:ei,children:["A remarkable colony of inventors has emerged on an isolated Pacific island. They can fashion tools out of materials scavenged from the rainforest. They can even customize a tool for a given job. Meet the crows of New Caledonia. ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{})," Thinkers as diverse as Freud, Engels and Thomas Carlyle once pointed\n to the use of tools as being a defining behavior of human beings.\n Then it was found that many animals also used them, from the\n 'fishing sticks' of apes to the rocks dropped on ostrich eggs by\n Egyptian vultures. Crows are particularly crafty. Earlier studies\n showed that they are almost human-like in their use of tools, with\n technological features that match the stone and bone tool cultures\n that emerged among primitive humans between 2.5 million and 70,000\n BC."," ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{})," But only humans were thought to have the brain power required for cumulative technological evolution. This is the skill for innovation that took our ancestors two million years ago from creating flakes of flint, for use in cutting, to honing knives, blades, arrowheads and axeheads. ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{})," Now this 'unique' attribute of humans has also turned out to be a\n flattering delusion. A new study shows that the crows of New\n Caledonia are inventive. With their evolving leaf tools, the birds\n have levered man off his pedestal."," ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),"Dr. Gavin Hunt and Dr. Russell Gray of the University of Auckland have spent the past decade studying feathered technology in New Caledonia, 900 miles north-east of Australia. After an intensive field survey of local crow industry, the scientists found that the birds rip the leaves of the pandanus tree to fashion three distinct types of tool for grub and insect extraction: wide, narrow and tapered. ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{})," Long ago, the birds discovered that they could rip the serrated edge off the leaves to make a wide tool. The skill spread and the crows honed tools with finer working tips, by either narrowing tools or tapering them. (Because the leaves are reinforced by tough parallel fibers, the tapered design is made in steps. The crow nips the leaf, rips along the fibers, makes another cut and tears again, repeating until it has a tool with usually two, three or four steps.) ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{})," ","Leaf tool manufacture is an example of culture: the birds learn\n through example and their tool-making wisdom grows in sophistication\n down the generations. The crows appear to have the cognitive\n requirements for cumulative, though rudimentary, technological\n evolution, said Dr. Gray. Tool manufacture in New Caledonian crows\n shows striking flexibility and innovation.' The ability of the birds\n to innovate is further shown by their making of other tools. They\n often strip a twig of leaves and cut it off just below a shortened\n offshoot to create a hook to get bugs out. They also use simpler\n tools to extract grubs from the dead wood of trees."," ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),"Professor Alex Kacelnik, fellow of Pembroke College, Oxford, praised\n the study as 'extremely important'. It complements his own research,\n with Dr. Jackie Chappell and Alex Weir, which has turned Betty the\n New Caledonian crow into a star by revealing her to be the first\n animal, other than man, to show a basic understanding of cause and\n effect. Betty began making tools after her partner snatched away a hook made for her by the researchers, forcing\nher to make her own from garden wire to fish out morsels from a tube. She wedged the end of the wire\ninto the base of the food tube and turned her head to form the hook. What amazed the researchers is that\nshe can even adapt her hooks if they are not up to the job, something that even chimpanzees are unable\nto do. Although chimps use sticks in experiments, they have not shown any human-like understanding of\nbasic physical laws. 'When she starts bending the wire it is as if she has a clear objective, even correcting\nthe angle of the hook if it is not right,' said Prof Kacelnik. 'Although many animals use tools, purposeful\nmodification of objects to solve new problems, without training or prior experience, is virtually unknown.'\n"," ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),"'While we have been emphasizing the individual ability of animals\n like Betty to solve problems, the New Zealand team has been\n emphasizing tool manufacture, the cultural traditions and\n transmission of information in the wild,' said Prof Kacelnik. Both\n strands of research are related by how the crows are not genetically\n programmed to use a tool, like a spider and his web. Instead, the\n birds creatively invent new kinds of tools to solve problems and can\n share skills with others."," ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{})," ","The crow family are the Einsteins of the avian world, though Prof\n Kacelnik added that, at least in terms of tool making, the Pacific\n crows are smarter than their British cousins. 'We have not yet\n identified what it is that makes these crows so special, though it\n is something to do with ecological circumstances,' said Prof\n Kacelnik."," ",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),"Once scientists have got to the bottom of what makes Pacific crows master toolmakers, they may have to think again about how this skill evolved in humans."]})]}),(0,n.jsxs)("div",{className:l().ic_test_main_inner,style:{width:"".concat(100-D,"%")},children:[(0,n.jsxs)("div",{className:"mb_20",children:[(0,n.jsx)("p",{className:"mb_10",children:(0,n.jsx)("strong",{children:"Questions 14-17"})}),(0,n.jsx)("p",{className:"mb_10",children:"Complete the diagrams. Choose NO MORE THAN TWO WORDS from the passage for each answer"})]}),(0,n.jsxs)(N.Z,{align:"middle",className:"mb_20",children:[(0,n.jsx)(T.Z,{lg:10,children:(0,n.jsxs)("p",{className:"mb_15",children:[(0,n.jsx)("strong",{children:"14"})," The crow makes a cut in the leaf then"," ",(0,n.jsx)(g.Z,{currentQuestion:14,
1id:"question_14",currentPage:t,setPage:s,maxWords:2,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})," ","away a section"]})}),(0,n.jsx)(T.Z,{lg:4,children:(0,n.jsx)(u(),{src:"/images/reading-part2-01.png",width:135,height:26,alt:"icon",className:"mb_15"})}),(0,n.jsxs)(T.Z,{lg:10,children:[(0,n.jsx)("p",{className:"mb_15",children:"Evolution of the crowâs leaf tool"}),(0,n.jsx)("ul",{children:(0,n.jsxs)("li",{className:"mb_15",children:[(0,n.jsx)("strong",{children:"16."})," ",(0,n.jsx)(g.Z,{currentQuestion:16,id:"question_16",currentPage:t,setPage:s,maxWords:2,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})," ","tool"]})})]}),(0,n.jsxs)(T.Z,{lg:10,children:[" ",(0,n.jsx)(u(),{src:"/images/reading-part2-02.png",width:160,height:88,alt:"icon",className:"mb_15"})]}),(0,n.jsxs)(T.Z,{lg:4,children:[" ",(0,n.jsx)(u(),{src:"/images/reading-part2-03.png",width:122,height:24,alt:"icon",className:"mb_15"})]}),(0,n.jsx)(T.Z,{lg:10,children:(0,n.jsx)("ul",{children:(0,n.jsx)("li",{children:(0,n.jsx)("li",{className:"mb_15",children:"narrow tool"})})})}),(0,n.jsxs)(T.Z,{lg:10,children:[" ",(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"15"})," ",(0,n.jsx)(g.Z,{currentQuestion:15,id:"question_15",currentPage:t,setPage:s,maxWords:2,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})," ","leaf"]})]}),(0,n.jsxs)(T.Z,{lg:4,children:[" ",(0,n.jsx)(u(),{src:"/images/reading-part2-04.png",width:120,height:22,alt:"icon",className:"mb_15"})]}),(0,n.jsx)(T.Z,{lg:10,children:(0,n.jsx)("ul",{children:(0,n.jsxs)("li",{className:"mb_15",children:[" ",(0,n.jsx)("strong",{children:"17."})," ",(0,n.jsx)(g.Z,{currentQuestion:17,id:"question_17",currentPage:t,setPage:s,maxWords:2,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})," ","tool with 2, 3 or 4 step"]})})})]}),(0,n.jsxs)("div",{className:"mb_20",children:[(0,n.jsx)("p",{className:"mb_10",children:(0,n.jsx)("strong",{children:"Questions 18-22"})}),(0,n.jsx)("p",{children:"Classify the following statements as referring to the crow(s) in"})]}),(0,n.jsxs)("div",{className:"mb_20",children:[(0,n.jsxs)("p",{className:"mb_10",children:[(0,n.jsx)("strong",{children:"A "}),"the study by Hunt and Gray"]}),(0,n.jsxs)("p",{className:"mb_10",children:[(0,n.jsx)("strong",{children:"B"})," the study by Kacelnik, Chappell and Weir"]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"C"})," both studies"]})]}),(0,n.jsxs)("p",{className:"mb_20",children:["Write the correct letter, ",(0,n.jsx)("strong",{children:"A"}),", ",(0,n.jsx)("strong",{children:"B"})," or"," ",(0,n.jsx)("strong",{children:"C"}),"."]}),(0,n.jsxs)("div",{className:"mb_20",children:[(0,n.jsxs)("p",{className:"mb_15",children:[(0,n.jsx)("strong",{children:"18."})," can share tool-making skills with other crows"," ",(0,n.jsx)(g.Z,{currentQuestion:18,id:"question_18",currentPage:t,setPage:s,maxWords:1,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})]}),(0,n.jsxs)("p",{className:"mb_15",children:[(0,n.jsx)("strong",{children:"19."})," can make special tools for a particular purpose"," ",(0,n.jsx)(g.Z,{currentQuestion:19,id:"question_19",currentPage:t,setPage:s,maxWords:1,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})]}),(0,n.jsxs)("p",{className:"mb_15",children:[(0,n.jsx)("strong",{children:"20."})," can solve problems by understanding rather than learning"," ",(0,n.jsx)(g.Z,{currentQuestion:20,id:"question_20",currentPage:t,setPage:s,maxWords:1,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})]}),(0,n.jsxs)("p",{className:"mb_15",children:[(0,n.jsx)("strong",{children:"21."})," can make tools better than British crows can"," ",(0,n.jsx)(g.Z,{currentQuestion:21,id:"question_21",currentPage:t,setPage:s,maxWords:1,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"22."})," can manufacture hooks to extract food can"," ",(0,n.jsx)(g.Z,{currentQuestion:22,id:"question_22",currentPage:t,setPage:s,maxWords:1,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})]})]}),(0,n.jsxs)("div",{className:"mb_20",children:[(0,n.jsx)("p",{className:"mb_10",children:(0,n.jsx)("strong",{children:"Questions 23-26"})}),(0,n.jsx)("p",{className:"mb_10",children:"Complete the summary."}),(0,n.jsxs)("p",{children:["Choose ",(0,n.jsx)("strong",{children:"NO MORE THAN TWO WORDS"})," from the passage for each answer."]}
1)]}),(0,n.jsxs)("p",{style:{lineHeight:"32px"},children:["It used to be thought that only human beings used tools. Even after we learned that many other"," ",(0,n.jsx)(g.Z,{currentQuestion:23,id:"question_23",currentPage:t,setPage:s,maxWords:2,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})," ","also do so, it was still believed that only humans were intelligent enough to gradually evolve better tools. A study of crows in"," ",(0,n.jsx)(g.Z,{currentQuestion:24,id:"question_24",currentPage:t,setPage:s,maxWords:2,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})," ",", however, shows that these birds use a leaf tool which has been evolved over several generations. A crow in another study has shown the human-like ability to understand"," ",(0,n.jsx)(g.Z,{currentQuestion:25,id:"question_25",currentPage:t,setPage:s,maxWords:2,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})," ","in order to manufacture tools, which not even"," ",(0,n.jsx)(g.Z,{currentQuestion:26,id:"question_26",currentPage:t,setPage:s,maxWords:2,progressId:r,groupName:o,previousGivenTime:d,givenTime:h,progressRefetch:m,givenAnswer:b})," ","can do."]})]})]})]})};var C=s(11163),S=s(43970),E=s(49801),A=s(18972),P=s(56374),I=s(96701);let q=()=>{let[e,t]=(0,a.useState)(!1),[s,o]=(0,a.useState)(1),[h,u]=(0,a.useState)(1),[g,m]=(0,a.useState)(0),[x,v]=(0,a.useState)(0),[f,j]=(0,a.useState)(0),[w,_]=(0,a.useState)(null),N=(0,C.useRouter)(),{test_id:T,...I}=N.query,q=Object.values(I)[0],O=Object.entries(I).slice(1).map(e=>{let[t,s]=e;return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(s))}).join("&"),R=()=>{t(!0)},W=e=>{o(e)},Z=()=>{o(s+1),s<13?u(1):s>=13&&s<26?u(2):u(3)},B=()=>{o(s-1);let e=s-1;e<=13?u(1):e>13&&e<=26?u(2):u(3)};(0,a.useEffect)(()=>{let e=x+f;1201===e?(u(2),o(14)):2401===e&&(u(3),o(27))},[f,x]);let G=(e,t)=>{u(e),o(t)},{data:L,isLoading:H,isSuccess:M,isError:Q,error:D}=(0,S.C)(T,{skip:!e});(0,a.useEffect)(()=>{var e,t,s,n,i;M&&L&&((null==L?void 0:null===(e=L.data)||void 0===e?void 0:e.is_completed)&&((0,P._N)("Test already completed"),q?N.push("/ielts/test/".concat(q,"?test_id=").concat(q,"&").concat(O)):N.push("/my-learning?tab=my_test&subTab=all_tests")),_(null==L?void 0:null===(t=L.data)||void 0===t?void 0:t.id),m(3600-(null==L?void 0:null===(s=L.data)||void 0===s?void 0:s.time_taken)),v(null==L?void 0:null===(n=L.data)||void 0===n?void 0:n.time_taken)),Q&&((0,P._N)(null==D?void 0:null===(i=D.data)||void 0===i?void 0:i.message),N.push("/my-learning?tab=my_test&subTab=all_tests"))},[M,L,D,Q]),(0,a.useEffect)(()=>{if(M&&L){var e;null==L||null===(e=L.data)||void 0===e||e.time_taken}},[M,L]);let{data:F,isSuccess:z,refetch:X}=(0,p.AO)(w,{skip:!w}),J=null==F?void 0:F.given_answers,[V,{data:K,isSuccess:U}]=(0,E.W)(),Y=()=>{V({practice_progress_id:w,time_taken:x+f})};return(0,a.useEffect)(()=>{x+f===3600&&0!==f&&Y()},[f,x]),(0,a.useEffect)(()=>{U&&K&&((0,P.x9)("Test completed successfully"),q?N.push("/ielts/test/".concat(q,"?test_id=").concat(q,"&").concat(O)):N.push("/my-learning?tab=my_test&subTab=all_tests"))},[U,K]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.Z,{title:"IELTS Test"}),H?(0,n.jsx)(A.Z,{}):(0,n.jsxs)("div",{className:"ielts_body",children:[(0,n.jsx)(i.Z,{isStarted:e,isAudio:!1,totalTime:g,setGivenTime:j,startTestIsSuccess:M,handleEndTest:Y}),(0,n.jsxs)("div",{className:l().ic_ielts_content_wrapper,children:[!e&&(0,n.jsx)(d.Z,{handleStartTest:R}),e&&(0,n.jsxs)(n.Fragment,{children:[s<=13&&(0,n.jsx)(y,{page:s,setPage:o,isStarted:e,progressId:w,groupName:1,givenTime:f,previousGivenTime:x,progressRefetch:X,givenAnswer:J}),s>13&&s<=26&&(0,n.jsx)(k,{page:s,setPage:o,isStarted:e,progressId:w,groupName:2,givenTime:f,previousGivenTime:x,progressRefetch:X,givenAnswer:J}),s>26&&s<=40&&(0,n.jsx)(b,{page:s,setPage:o,isStarted:e,progressId:w,groupName:3,givenTime:f,previousGivenTime:x,progressRefetch:X,givenAnswer:J})]})]}),e&&(0,n.jsxs)("div",{className:l().ic_footer_wrap,children:[(0,n.jsxs)("div",{className:"".concat(l().ic_navigation_panel),children:[(0,n.jsx)("div",{className:"".concat(l().ic_navigation_item," ").concat(1!==h&&l().inactive),children:1===h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:l().ic_part_text,children:(0,n.jsx)("span",{children:"Part 1"})}),(0,n.jsx)("div",{children:Array.from({length:13},(e,t)=>{let i=null==J?void 0:J[t],a=(null==i?void 0:i.answer_text)||(null==i?void 0:i.selected_option_id);return(0,n.jsx)("a",{href:"#question_".concat(t+1),onClick:()=>W(t+1),className:"".concat(s===t+1?l().active:""," ").concat(a&&l().ic_answered),children:t+1},t)})})]}):(0,n.jsxs)("div",{className:l().ic_navigation_inactive,onClick:()=>G(1,1),children:[(0,n.jsx)("div",{className:l().ic_part_text,children:(0,n.jsx)("span",{children:"Part 1"})}),(0,n.jsx)("p",{className:l().ic_count,children:"0 to 13"})]})}),(0,n.jsx)("div",{className:"".concat(l().ic_navigation_item," ").concat(2!==h&&l().inactive),children:2===h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:l().ic_part_text,children:(0,n.jsx)("span",{children:"Part 2"})}),(0,n.jsx)("div",{children:Array.from({length:13},(e,t)=>{let i=null==J?void 0:J[t+13],a=(null==i?void 0:i.answer_text)||(null==i?void 0:i.selected_option_id);return(0,n.jsx)("a",{href:"#question_".concat(t+14),onClick:()=>W(t+14),className:"".concat(s===t+14?l().active:""," ").concat(a&&l().ic_answered),children:t+14},t)})})]}):(0,n.jsxs)("div",{className:l().ic_navigation_inactive,onClick:()=>G(2,14),children:[(0,n.jsx)("div",{className:l().ic_part_text,children:(0,n.jsx)("span",{children:"Part 2"})}),(0,n.jsx)("p",{className:l().ic_count,children:"14 to 26"})]})}),(0,n.jsx)("div",{className:"".concat(l().ic_navigation_item," ").concat(3!==h&&l().inactive),children:3===h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:l().ic_part_text,children:(0,n.jsx)("span",{children:"Part 3"})}),Array.from({length:14},(e,t)=>{let i=null==J?void 0:J[t+26],a=(null==i?void 0:i.answer_text)||(null==i?void 0:i.selected_option_id);return(0,n.jsx)("a",{href:"#question_".concat(t+27),onClick:()=>W(t+27),className:"".concat(s===t+27?l().active:""," ").concat(a&&l().ic_answered),children:t+27},t)})]}):(0,n.jsxs)("div",{className:l().ic_navigation_inactive,onClick:()=>G(3,27),children:[(0,n.jsx)("div",{className:l().ic_part_text,children:(0,n.jsx)("span",{children:"Part 3"})}),(0,n.jsx)("p",{className:l().ic_count,children:"27 to 40"})]})})]}),(0,n.jsxs)("div",{className:l().ic_next_prev,children:[(0,n.jsx)("button",{className:l().prev_btn,onClick:B,disabled:1===s,children:(0,n.jsx)(c.x_l,{})}),(0,n.jsx)("button",{className:l().next_btn,onClick:Z,disabled:40===s,children:(0,n.jsx)(c.Z1Y,{})})]})]})]})]})};var O=(0,I.Z)(q)}},function(e){e.O(0,[260,4980,669,2874,9470,877,499,1502,9422,1193,4498,9131,901,9774,2888,179],function(){return e(e.s=54075)}),_N_E=e.O()}]);
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.