1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1398,5285],{63606:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var l=n(1413),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},o=n(42135),s=function(e,t){return a.createElement(o.Z,(0,l.Z)((0,l.Z)({},e),{},{ref:t,icon:i}))};s.displayName="CheckOutlined";var r=a.forwardRef(s)},99611:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var l=n(1413),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},o=n(42135),s=function(e,t){return a.createElement(o.Z,(0,l.Z)((0,l.Z)({},e),{},{ref:t,icon:i}))};s.displayName="EyeOutlined";var r=a.forwardRef(s)},34041:function(e,t,n){"use strict";var l=n(4942),a=n(87462),i=n(94184),o=n.n(i),s=n(7752),r=n(98423),c=n(67294),u=n(53124),d=n(73e3),p=n(98866),h=n(97647),g=n(52706),m=n(33603),f=n(9708),A=n(46163),v=n(4173),b=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&0>t.indexOf(l)&&(n[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,l=Object.getOwnPropertySymbols(e);a<l.length;a++)0>t.indexOf(l[a])&&Object.prototype.propertyIsEnumerable.call(e,l[a])&&(n[l[a]]=e[l[a]]);return n},x="SECRET_COMBOBOX_MODE_DO_NOT_USE",w=c.forwardRef(function(e,t){var n,i=e.prefixCls,w=e.bordered,j=e.className,C=e.getPopupContainer,y=e.dropdownClassName,N=e.popupClassName,O=e.listHeight,S=e.placement,Z=e.listItemHeight,E=e.size,D=e.disabled,T=e.notFoundContent,P=e.status,L=e.showArrow,R=b(e,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","popupClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),F=c.useContext(u.E_),B=F.getPopupContainer,z=F.getPrefixCls,k=F.renderEmpty,U=F.direction,M=F.virtual,I=F.dropdownMatchSelectWidth,
1V=c.useContext(h.Z),G=z("select",i),W=z(),Y=(0,v.ri)(G,U),H=Y.compactSize,K=Y.compactItemClassnames,Q=c.useMemo(function(){var e=R.mode;return"combobox"===e?void 0:e===x?"combobox":e},[R.mode]),X="multiple"===Q||"tags"===Q,_=void 0!==L?L:R.loading||!(X||"combobox"===Q),q=(0,c.useContext)(g.aM),J=q.status,$=q.hasFeedback,ee=q.isFormItemInput,et=q.feedbackIcon,en=(0,f.F)(J,P);n=void 0!==T?T:"combobox"===Q?null:(k||d.Z)("Select");var el=(0,A.Z)((0,a.Z)((0,a.Z)({},R),{multiple:X,hasFeedback:$,feedbackIcon:et,showArrow:_,prefixCls:G})),ea=el.suffixIcon,ei=el.itemIcon,eo=el.removeIcon,es=el.clearIcon,er=(0,r.Z)(R,["suffixIcon","itemIcon"]),ec=o()(N||y,(0,l.Z)({},"".concat(G,"-dropdown-").concat(U),"rtl"===U)),eu=H||E||V,ed=c.useContext(p.Z),ep=o()((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(G,"-lg"),"large"===eu),"".concat(G,"-sm"),"small"===eu),"".concat(G,"-rtl"),"rtl"===U),"".concat(G,"-borderless"),!(void 0===w||w)),"".concat(G,"-in-form-item"),ee),(0,f.Z)(G,en,$),K,j);return c.createElement(s.ZP,(0,a.Z)({ref:t,virtual:M,dropdownMatchSelectWidth:I},er,{transitionName:(0,m.mL)(W,(0,m.q0)(S),R.transitionName),listHeight:void 0===O?256:O,listItemHeight:void 0===Z?24:Z,mode:Q,prefixCls:G,placement:void 0!==S?S:"rtl"===U?"bottomRight":"bottomLeft",direction:U,inputIcon:ea,menuItemSelectedIcon:ei,removeIcon:eo,clearIcon:es,notFoundContent:n,className:ep,getPopupContainer:C||B,dropdownClassName:ec,showArrow:$||L,disabled:null!=D?D:ed}))});w.SECRET_COMBOBOX_MODE_DO_NOT_USE=x,w.Option=s.Wx,w.OptGroup=s.Xo,t.Z=w},70095:function(e,t,n){"use strict";var l=n(67294),a=n(93463),i=n(63606),o=n(97937),s=n(99611);n(75224);var r=n(85893),c=function(e){var t=e.onChange,n=e.label,c=e.isRequired,u=e.placeholder,d=e.value,p=e.onBlur,h=e.isError,g=e.errorText,m=e.errorFloatRight,f=e.type,A=e.customClassName,v=e.customStyle,b=e.textarea,x=e.isLength,w=e.minLength,j=e.maxLength,C=e.pre,y=e.preText,N=e.id,O=e.onFocus,S=e.customLabelClassName,Z=e.minRows,E=e.description,D=e.customClass,T=e.withLineFlat,P=e.disabled,L=e.isCheckVisible,R=e.isCrossVisible,F=e.showPasswordEnabled,B=(0,l.useState)(d),z=B[0],k=B[1],U=(0,l.useState)(!1),M=U[0],I=U[1],V=(0,l.useRef)(!1),G=(0,l.useState)(function(){return j&&d?j-d.length:d?d.length:0}),W=G[0],Y=G[1],H="isl-input-text";""!==z&&(H+=" filled"),h&&(H+=" error");var K=function(e){if(!t)return k(d),null;if(V.current=!0,j){var n;k(n=(e||"").slice(0,j)),Y(j-n.length)}else n=e,k(e),Y(e?e.length:0);return t(n),null};return(0,l.useEffect)(function(){V.current||d===z||(k(d),j?Y(j-((null==d?void 0:d.length)||0)):Y((null==d?void 0:d.length)||0)),V.current=!1},[d]),(0,r.jsxs)("label",{className:"isl-input-text-label ".concat(S),htmlFor:n,children:[n&&(0,r.jsxs)("div",{className:"isl-input-text-label-text ".concat(A).concat(h?" error":""),children:[n,c&&n?(0,r.jsx)("span",{children:"*"}):null]}),E&&(0,r.jsx)("div",{className:"isl-input-text-description-text",children:E}),(0,r.jsxs)("div",{className:"input-inner-container",children:[C?(0,r.jsx)("div",{className:"input-pre-container",children:y}):null,b?(0,r.jsx)(a.Z,{className:"textarea ".concat(A," ").concat(H),type:f,onChange:function(e){K(e.target.value)},onBlur:function(e){if(T){var t=e.target.value.replace(/^\s+|\s+$/gm,"").split(" ").filter(function(e){return""!==e}).join(" ");K(t),p(t)}else p(e.target.value)},value:z,required:c,placeholder:u,style:v,id:N,onFocus:O,minRows:Z}):(0,r.jsxs)("div",{className:"input-field-wrapper",children:[(0,r.jsx)("input",{className:"".concat(H," ").concat(D),type:M?"text":f,onChange:function(e){return K(e.target.value)},onBlur:function(e){var t=e.target.value.replace(/^\s+|\s+$/gm,"").split(" ").filter(function(e){return""!==e}).join(" ");K(t),p(t)},value:z,required:c,placeholder:u,style:v,id:N,onFocus:O,disabled:P}),L&&(0,r.jsx)(i.Z,{className:"input-icon check"}),R&&(0,r.jsx)(o.Z,{className:"input-icon cross"}),F&&(0,r.jsx)(s.Z,{className:"input-icon show-input",onClick:function(){I(!M)}})]}),h&&(0,r.jsx)("div",{className:"error-text".concat(m?" right":""," ").concat(N),children:g})]}),x&&!w&&(0,r.jsx)("div",{className:"length-text",children:W}),x&&w&&(0,r.jsxs)("div",{className:"length-text min-length",children:[0===W&&(0,r.jsx)("span",{className:"min-length-empty",children:"min. ".concat(w)}),0!==W&&(0,r.jsx)("span",{className:W<w?"min-length-below":"min-length-above",children:"".concat(W," / ").concat(w)})]})]})};c.defaultProps={id:null,pre:!1,maxLength:null,preText:"https://",customStyle:{},isRequired:!1,textarea:!1,placeholder:"",customClass:"",errorText:"",label:"",description:null,onBlur:function(){},onFocus:function(){},isError:!1,type:"text",customClassName:"",customLabelClassName:"",isLength:!1,minLength:null,minRows:1,value:"",withLineFlat:!1,disabled:!1,errorFloatRight:!0,isCheckVisible:!1,isCrossVisible:!1,showPasswordEnabled:!1},t.Z=c},25285:function(e,t,n){"use strict";n.r(t),n(67294);var l=n(97937);n(13865);var a=n(85893),i=function(e){var t=e.modalOpen,n=e.onClose,i=e.children,o=e.title,s=e.className;return(0,a.jsx)("div",{className:"base-modal-container ".concat(s).concat(t?" active":""),children:(0,a.jsxs)("div",{className:"modal-outer-container",children:[(0,a.jsxs)("div",{className:"modal-header-container",children:[(0,a.jsx)("div",{className:"modal-header-title",children:o}),n&&(0,a.jsx)(l.Z,{className:"modal-header-exit",style:{color:"white",fontSize:16},onClick:function(e){n(e)}})]}),(0,a.jsx)("div",{className:"modal-inner-container",children:i})]})})};i.defaultProps={className:"",onClose:!1},t.default=i},66935:function(e,t,n){"use strict";var l=n(59499),a=n(27812),i=n(67294),o=n(61317),s=n(43654),r=n(39398);n(74188);var c=n(3745),u=n(85893);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,l)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?d(Object(n),!0).forEach(function(t){(0,l.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var h=o.Z.TreeNode,g={selectAll:"language_dropdown.select_all",deSelectAll:"language_dropdown.deselect_all"},m=function(e){var t=e.onChange,n=e.dataSource,l=e.onBlur,d=e.className,m=e.placeholder,f=e.isError,A=e.errorText,v=e.label,b=e.description,x=e.value,w=e.showSearch,j=e.multiple,C=e.maxOptions,y=e.icon,N=e.activeIcon,O=e.customStyle,S=e.autocomplete,Z=e.reference,E=e.noDataText,D=e.removeButtonLabel,T=e.onRemove,P=e.loading,L=e.loadingText,R=e.dropdownCustomStyle,F=e.clearOnFocus,B=e.customItem,z=e.renderCustomItemAction,k=e.popupContainer,U=e.valueKeyToUse,M=e.labelKeyToUse,I=e.notFoundContent,V=e.customKey,G=e.selectAll,W=e.withSelectAll,Y=e.dropdownMatchSelectWidth,H=(0,i.useState)(x||[]),K=H[0],Q=H[1],X=(0,i.useState)(""),_=X[0],q=X[1],J=(0,i.useState)(n),$=J[0],ee=J[1],et=(0,i.useState)(!1),en=et[0],el=et[1],ea=function(){W?ee([{id:9999,text:c.default.t(0===$.length||0===K.length?g.selectAll:g.deSelectAll),slug:"select-all"}].concat((0,a.Z)(n))):B?ee([].concat((0,a.Z)(n),[{classId:"create-class",title:c.default.t("assign_as_hw.dropdown_create_placeholder"),value:"create-class",selectable:!1}])):ee(n)};(0,i.useEffect)(function(){ea()},[n]);var ei=function(e){q(e);var t=e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),l=n.filter(function(e){return(e.title||e.text).normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().includes(t.toUpperCase())});B?ee([].concat((0,a.Z)(l),[{classId:"create-class",title:"".concat(c.default.t("components.select.create"),": ").concat(e),value:"create-class",selectable:!0}])):""!==e?ee(l):ea()};(0,i.useEffect)(function(){en&&V&&0===x.length&&G()},[en]),(0,i.useEffect)(function(){Q(x)},[x]);var eo=function(){t(_),q(""),el(!1),ea()},es=(0,u.jsxs)("div",{className:"isl-selector".concat(en?" isl-open":"").concat(y?" isl-has-icon":"").concat(x&&x.length?" isl-has-value":""),style:p({},O),children:[y&&(0,u.jsxs)("div",{className:"icon-container",children:[x&&0!==x.length?N:y,(0,u.jsx)("div",{className:"isl-label",children:v})]}),j&&K&&K.length&&!y?(0,u.jsx)("div",{className:"isl-multiple-value",children:"Multiple selected"}):null,f&&(0,u.jsx)("div",{className:"isl-error-text",children:A}),(0,u.jsxs)("div",{className:"isl-selector-label-container",children:[v&&!y&&(0,u.jsxs)("div",{className:"isl-label-row",children:[(0,u.jsx)("div",{className:"isl-label",children:v}),D&&(0,u.jsx)("button",{className:"isl-selector-remove-button",type:"button",onClick:T,children:D})]}),b&&(0,u.jsx)("div",{className:"isl-selector-description-text",children:b})]}),(0,u.jsxs)("div",{className:"isl-selector-input-container",children:[(0,u.jsx)(s.ZP,{renderEmpty:function(){return(0,u.jsx)("div",{className:"select-empty-render",children:(0,u.jsx)("p",{children:P?L:E})})},children:(0,u.jsx)(o.Z,{filterTreeNode:!1,ref:Z,style:p({},O),getPopupContainer:function(){return k?document.getElementById(k):document.body},defaultOpen:!0,open:en,dropdownStyle:p({},R),dropdownRender:function(e){return(0,u.jsxs)("div",{className:"isl-dropdown".concat(y?" isl-has-icon":"").concat(B&&!$.length?" isl-has-custom":""),children:[y&&(0,u.jsx)("input",{className:"isl-menu-input",placeholder:m,onCh
1ange:function(e){ei(e.target.value),q(e.target.value)},value:_,type:"text"}),e]})},notFoundContent:void 0!==I?I:void 0,onFocus:function(){el(!0),F&&null!==x&&(Q([]),t([]),ee([]))},onChange:function(e,l,a){"select-all"===a.triggerValue?x&&x.length===n.length?t([]):G(V):"create-class"===a.triggerValue?eo():x&&x.length===n.length?t([a.triggerValue]):t(e),B&&q("")},allowClear:!1,onBlur:function(){l()},dropdownClassName:"isl-select ".concat(d).concat(f?" error":"").concat(j?" isl-multiple":"").concat(S?" empty-none":""),placeholder:y?null:m,value:W&&x.length===n.length?[].concat((0,a.Z)(x),["select-all"]):x,showSearch:w,searchValue:B?_:void 0,multiple:j,treeCheckable:j,dropdownMatchSelectWidth:Y,onSearch:function(e){S?t(e):ei(e)},onSelect:function(e){W&&("select-all"===e?ee($.map(function(e){return"select-all"===e.slug?p(p({},e),{},{text:c.default.t(g.deSelectAll)}):e})):x.length===n.length-1?ee($.map(function(e){return"select-all"===e.slug?p(p({},e),{},{text:c.default.t(g.deSelectAll)}):e})):ee($.map(function(e){return"select-all"===e.slug?p(p({},e),{},{text:c.default.t(g.selectAll)}):e})))},onDeselect:function(){W&&ee($.map(function(e){return"select-all"===e.slug?p(p({},e),{},{text:c.default.t(g.selectAll)}):e}))},virtual:!1,showArrow:!0,tagRender:null,onDropdownVisibleChange:function(e){el(e),B&&!e&&q(""),ee(W?[{id:9999,text:c.default.t(x.length===n.length||0===x.length?g.deSelectAll:g.selectAll),slug:"select-all"}].concat((0,a.Z)(n)):n)},suffixIcon:(0,u.jsx)(r.Z,{className:"isl-arrow".concat(en?" isl-open":""),style:{fontSize:14,color:"#1C0D38"}}),children:$&&$.length&&$.map(function(e){return(0,u.jsx)(h,{selectable:!B||e.selectable&&!0===e.selectable,value:e[U],title:e[M],disableCheckbox:j&&C&&C===K.length&&!K.includes(e[U])},e[U])})})}),y&&(0,u.jsxs)("div",{className:"icon-container",children:[x&&0!==x.length?N:y,(0,u.jsx)("div",{className:"isl-label",children:v})]}),j&&K&&K.length&&!y?(0,u.jsx)("div",{className:"isl-multiple-value",children:c.default.t("components.select.multiple")}):null,f&&(0,u.jsx)("div",{className:"isl-error-text",children:A})]})]});return(0,u.jsxs)(u.Fragment,{children:[es,B&&en&&z&&$.some(function(e){return"create-class"===e.value&&e.selectable})&&z(eo)]})};m.defaultProps={loading:!1,clearOnFocus:!1,loadingText:"",description:void 0,noDataText:"Not found",customStyle:{},autocomplete:!1,icon:null,activeIcon:null,value:void 0,onBlur:function(){},showSearch:!1,multiple:!1,isError:!1,removeButtonLabel:null,onRemove:function(){},className:"",placeholder:"",errorText:"",label:null,valueKeyToUse:null,labelKeyToUse:null,maxOptions:void 0,reference:null,filter:!1,customKey:void 0,dropdownMatchSelectWidth:!0,selectAll:function(){},withSelectAll:!1,dropdownCustomStyle:{},customItem:!1,renderCustomItemAction:void 0,popupContainer:null,notFoundContent:void 0},t.Z=m},11398:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k},languageGoalsImages:function(){return B}});var l=n(59499),a=n(27812),i=n(16835),o=n(67294),s=n(14416),r=n(77939),c=n(54658),u=n(80076),d=n(70095),p=n(65711),h=n(10494),g=n(66935),m=n(34041);n(70121);var f=n(85893),A=function(e){var t=e.title,n=e.options,l=e.defaultValue,i=e.onSearch,r=e.onSelect,c=e.onDeselect,u=e.onChange,d=e.onBlur,p=(0,o.useState)((0,a.Z)(n)),h=p[0],g=p[1],A=(0,s.v9)(function(e){return e.upload}).autocompleteTags;return(0,f.jsxs)("div",{className:"tag-select",children:[(0,f.jsx)("div",{className:"tag-select-title",children:t}),(0,f.jsx)(m.Z,{size:"large",mode:"tags",defaultValue:l,style:{width:"100%"},options:A.map(function(e){return{label:e,value:e}}),value:h,onSearch:i,onSelect:r,onChange:function(e){var t=e.map(function(e){return e.replace(/^\s+|\s+$/gm,"")}).filter(function(e){return e.length>2});g(t),u(t)},onDeselect:c,onBlur:d})]})};A.defaultProps={title:"",options:[],defaultValue:[],onSearch:function(){},onSelect:function(){},onDeselect:function(){},onBlur:function(){}};var v=n(33930),b=n(23278),x=n(25285);n(59385);var w=n(39928),j=n(31474),C=n(63635),y=n(81560),N=n(29865),O=n(28556),S=n(15434),Z=n(22105),E=n(73465),D=n(53003),T=n(54797),P=n(30568);function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,l)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?L(Object(n),!0).forEach(function(t){(0,l.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var F=function(e){return(0,f.jsx)("svg",R(R({},e),{},{children:(0,f.jsx)("path",{d:"M5 0v1H0v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3h1V1h-5V0H5M3 3h10v13H3V3m2 2v9h2V5H5m4 0v9h2V5H9Z",fill:"#FF4041",fillRule:"nonzero"})}))};F.defaultProps={width:"16",height:"18",xmlns:"http://www.w3.org/2000/svg"};var B={grammar:{icon:w.Z.src,iconActive:S.Z.src},vocabulary:{icon:j.Z.src,iconActive:Z.Z.src},reading:{icon:C.Z.src,iconActive:E.Z.src},speaking:{icon:y.Z.src,iconActive:D.Z.src},writing:{icon:N.Z.src,iconActive:T.Z.src},listening:{icon:O.Z.src,iconActive:P.Z.src}},z=function(){var e=(0,s.I0)(),t=(0,c.useTranslation)().t,n=(0,s.v9)(function(e){return e}).upload,l=n.worksheetId,m=n.uploadInProgress,w=n.pedagogicalGoals,j=n.grammarTopicOptions,C=n.generalTopicOptions,y=n.selectedGeneralTopic,N=n.selectedGrammarTopic,O=n.dialectSectionVisible,S=n.examSectionVisible,Z=n.situationSectionVisible,E=n.dialectOptions,D=n.examOptions,T=n.situationOptions,P=n.languageGoals,L=n.selectedDialect,R=n.selectedExam,z=n.selectedSituation,k=n.selectedLanguageGoals,U=n.autocompleteTags,M=n.selectedTags,I=n.deleteUploadModal,V=n.newest,G=n.nextNewestDate,W=(0,o.useState)([]),Y=W[0],H=W[1],K=(0,o.useState)(!1),Q=K[0],X=K[1],_=(0,o.useState)(!1),q=_[0],J=_[1];(0,o.useEffect)(function(){var n=[],l=0!==Object.entries(k).filter(function(e){var t=(0,i.Z)(e,2),n=t[0],l=t[1];return"grammar"!==n&&l.length>0}).length;X(l),l||e((0,u.uC)("selectedGeneralTopic",null));var a=0!==k.grammar.length;J(a),a||e((0,u.uC)("selectedGrammarTopic",null)),Object.values(k).filter(function(e){return 0===e.length}).length===Object.keys(k).length&&n.push(t("upload.steps.3.rules.missingLanguageGoal")),l&&null===y&&n.push(t("upload.steps.3.rules.missingGeneralTopic")),a&&null===N&&n.push(t("upload.steps.3.rules.missingGrammarTopic")),w.filter(function(e){var t=e.checked,n=e.goal;return t&&(!n||n.length<50)}).length>0&&n.push(t("upload.steps.3.rules.missingPedagogicalGoal")),0===n.length&&e((0,u.uC)("currentStep",4)),H(n)},[y,N,k,w]);var $=function(e,t){if(null===t)return null;var n=new Date,l=new Date(t);if(null!==e){var a=new Date(e);if(a.setHours(l.getHours()),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a<l)return null}var i=l-n,o=Math.floor(i/36e5),s=Math.floor(i%36e5/6e4);return o<0||s<0||0===o&&0===s?null:{hours:o,minutes:s}};return(0,f.jsx)("div",{className:"upload-step step-03",children:(0,f.jsxs)(b.Z,{children:[(0,f.jsxs)(x.default,{modalOpen:I,onClose:function(){e((0,u.uF)(!1))},title:t("upload.steps.3.delete.deleteResource"),children:[(0,f.jsx)("div",{className:"main-title",children:t("upload.steps.3.delete.sureToDelete")}),(0,f.jsxs)("div",{className:"modal-button-container",children:[(0,f.jsx)(p.Z,{text:t("myAccount.yes"),onClick:function(){e((0,u.HZ)())},className:"custom-green-button"}),(0,f.jsx)(p.Z,{text:t("myAccount.no"),onClick:function(){e((0,u.uF)(!1))},className:"custom-green-button"})]})]}),(0,f.jsx)("div",{className:"section-title",children:t("upload.steps.3.languageGoalsTitle")}),(0,f.jsx)("div",{className:"section-description",children:t("upload.steps.3.languageGoalsDescription")}),(0,f.jsx)("div",{className:"upload-step-language-goals-selector",children:Object.entries(P).map(function(l){var a=(0,i.Z)(l,2),o=a[0],s=a[1].dataSource;return(0,f.jsx)(g.Z,{autocomplete:!1,className:"isl-language-goals-dropdown",customStyle:{},dataSource:s,errorText:"",icon:(0,f.jsx)("img",{src:B[o].icon,width:50,height:50,alt:o,loading:"lazy"}),activeIcon:(0,f.jsx)("img",{src:B[o].iconActive,width:50,height:50,alt:o,loading:"lazy"}),isError:!1,label:t("upload.steps.3.languageGoals.".concat(o)),maxOptions:2,multiple:!0,onBlur:function(){},onChange:function(t){e((0,u.oL)(o,t))},placeholder:t("upload.steps.3.typeToSearch"),showSearch:!1,value:n.selectedLanguageGoals[o],valueKeyToUse:"value",labelKeyToUse:"title"},o)})}),q&&(0,f.jsx)("div",{className:"isl-grammar-topic-selector",children:(0,f.jsx)(g.Z,{label:t("upload.steps.3.grammarTopicLabel"),dataSource:j,placeholder:t("upload.steps.3.selectGrammarTopic"),onChange:function(t){return e((0,u.uC)("selectedGrammarTopic",t))},value:N,showSearch:!0,filterFunction:function(e,t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0},valueKeyToUse:"value",labelKeyToUse:"title"})}),Q&&(0,f.jsx)(g.Z,{label:t("upload.steps.3.generalTopicLabel"),dataSource:C,placeholder:t("upload.steps.3.selectGeneralTopic"),onChange:function(t){return e((0,u.uC)("selectedGeneralTopic",t))},value:y,showSearch:!0,filterFunction:function(e,t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0},valueKeyToUse:"value",labelKeyToUse:"title"}),(0,f.jsx)("div",{className:"section-title",children:t("upload.steps.3.otherGoalsTitle")}),(0,f.jsx)("div",{className:"section-description",children:t("upload.steps.3.otherGoalsDescription")}),(0,f.jsx)("div",{className:"upload-step-pedagogical-goals-selector",children:w&&w.map(function(n){var l=n.id,a=n.goalKey,i=n.label,o=n.checked,s=n.disabled,r=n.icon,c=n.iconActive;return(0,f.jsx)(h.Z,{onChange:function(t){return e((0,u.ws)(l,"checked",t))},title:t("upload.steps.3.pedagogicalGoals.".concat(a)),icon:(0,f.jsx)("img",{src:r,alt:i,width:50,height:50,quality:100,loading:"lazy"}),activeIcon:(0,f.jsx)("img",{src:c,alt:i,width:50,height:50,quality:100,loading:"lazy"}),value:o,disabled:s},l)})}),w&&w.map(function(n){var l=n.id,a=n.goal;return n.checked?(0,f.jsx)(d.Z,{label:t("upload.steps.3.pedagogicalGoalTitles.".concat(l)),onChange:function(t){e((0,u.ws)(l,"goal",t))},value:a,minLength:50,isLength:!0,textarea:!0},l):null}),(0,f.jsx)("div",{className:"section-title",children:t("upload.steps.3.optionalTags")}),(0,f.jsxs)("div",{className:"section-optional-field-container",children:[!O&&(0,f.jsxs)("div",{className:"section-optional-field-row",children:[(0,f.jsx)("div",{className:"section-optional-field-title",children:t("upload.steps.3.dialects")}),(0,f.jsx)("button",{type:"button",className:"section-optional-field-add",onClick:function(){return e((0,u.uC)("dialectSectionVisible",!0))},children:t("upload.steps.3.addDialects")})]}),O&&(0,f.jsx)(g.Z,{label:t("upload.steps.3.dialectLabel"),dataSource:E,placeholder:t("upload.steps.3.selectDialect"),onChange:function(t){return e((0,u.uC)("selectedDialect",t))}
1,value:L,showSearch:!0,removeButtonLabel:t("upload.steps.3.removeTag"),onRemove:function(){return e((0,u.uC)("dialectSectionVisible",!1))},valueKeyToUse:"value",labelKeyToUse:"title"})]}),(0,f.jsxs)("div",{className:"section-optional-field-container",children:[!S&&(0,f.jsxs)("div",{className:"section-optional-field-row",children:[(0,f.jsx)("div",{className:"section-optional-field-title",children:t("upload.steps.3.specialExam")}),(0,f.jsx)("button",{type:"button",className:"section-optional-field-add",onClick:function(){return e((0,u.uC)("examSectionVisible",!0))},children:t("upload.steps.3.addExam")})]}),S&&(0,f.jsx)(g.Z,{label:t("upload.steps.3.examLabel"),dataSource:D,placeholder:t("upload.steps.3.selectExam"),onChange:function(t){return e((0,u.uC)("selectedExam",t))},value:R,showSearch:!0,removeButtonLabel:t("upload.steps.3.removeTag"),onRemove:function(){return e((0,u.uC)("examSectionVisible",!1))},valueKeyToUse:"value",labelKeyToUse:"title"})]}),(0,f.jsxs)("div",{className:"section-optional-field-container",children:[!Z&&(0,f.jsxs)("div",{className:"section-optional-field-row",children:[(0,f.jsx)("div",{className:"section-optional-field-title",children:t("upload.steps.3.specificSituation")}),(0,f.jsx)("button",{type:"button",className:"section-optional-field-add",onClick:function(){return e((0,u.uC)("situationSectionVisible",!0))},children:t("upload.steps.3.addCommunicativeFunction")})]}),Z&&(0,f.jsx)(g.Z,{label:t("upload.steps.3.specificSituationLabel"),dataSource:T,placeholder:t("upload.steps.3.selectSituation"),onChange:function(t){return e((0,u.uC)("selectedSituation",t))},value:z,showSearch:!0,removeButtonLabel:t("upload.steps.3.removeTag"),onRemove:function(){return e((0,u.uC)("situationSectionVisible",!1))},valueKeyToUse:"value",labelKeyToUse:"title"})]}),(0,f.jsx)(A,{title:t("upload.steps.3.needOtherTags"),options:[].concat((0,a.Z)(U),(0,a.Z)(M)),value:M,onSearch:function(t){t.length>=3&&e((0,u.TD)(t))},onChange:function(t){e((0,u.Up)(t))}}),(0,f.jsxs)("div",{className:"upload-step-actions",children:[(0,f.jsx)("div",{className:"upload-step-action-container",children:(0,f.jsx)(v.Z,{label:t("upload.steps.2.previousStep"),onClick:function(){return e((0,u.uC)("currentStep",2))}})}),(0,f.jsx)("div",{className:"upload-step-action-container right",children:l&&(0,f.jsxs)("div",{tabIndex:0,role:"button",onClick:function(){e((0,u.uF)(!0))},className:"action-delete-upload",children:[t("upload.steps.3.delete.deleteResource"),(0,f.jsx)(F,{})]})})]}),(0,f.jsx)("div",{className:"upload-step-actions",children:(0,f.jsx)("div",{className:"upload-step-action-container",children:(0,f.jsx)(r.Z,{title:0!==Y.length?Y[0]:null,children:(0,f.jsx)("span",{children:(0,f.jsx)(p.Z,{text:null===l?t("upload.steps.3.publish"):t("upload.steps.3.save"),onClick:function(){e((0,u.uC)("currentStep",5)),e((0,u.nY)())},customStyle:{width:"100%",borderRadius:4,padding:"12px 24px",textAlign:"center",lineHeight:"24px"},loading:m,disabled:m||0!==Y.length,className:"custom-green-button"})})})})}),(null===V||null!==$(V,G))&&(0,f.jsx)("div",{className:"publish-note",children:t("upload.steps.3.note.publish",{hours:$(V,G).hours,minutes:$(V,G).minutes})})]})})};z.defaultProps={upload:{grammarPracticeOptions:[],vocabularyBuildingOptions:[],readingComprehensionOptions:[],speakingPracticeOptions:[],writingPracticeOptions:[],listeningComprehensionOptions:[],pedagogicalGoals:[],grammarTopicOptions:[],generalTopicOptions:[]}};var k=z},33930:function(e,t,n){"use strict";var l=n(59499);n(67294),n(95118);var a=n(85893);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,l)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,l.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var s=function(e){return(0,a.jsx)("svg",o(o({},e),{},{children:(0,a.jsx)("path",{d:"M8 1.42 3.42 6 8 10.59 6.59 12l-6-6 6-6z",fill:"#1688FA",fillRule:"nonzero"})}))};
1s.defaultProps={width:"8",height:"12",xmlns:"http://www.w3.org/2000/svg"};var r=function(e){var t=e.label,n=e.onClick;return(0,a.jsxs)("button",{className:"upload-step-back-button",type:"button",onClick:n,children:[(0,a.jsx)("span",{className:"button-icon",children:(0,a.jsx)(s,{})}),(0,a.jsx)("span",{className:"button-label",children:t})]})};r.defaultProps={onClick:function(){}},t.Z=r},15434:function(e,t){"use strict";t.Z={src:"/_next/static/media/grammar_practice_colored.inline.a3fd0d22.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA2ElEQVR42mOAAkYQoZviL6QZ6yMKF4OBwIIgZihTWYiBQQcsVhUKFbtVC1bpND3eyX9H7t2AnbmP7RckhIHlXjQxMZh4O8sAmcYefTkVuXt7/+ce7P/vMi9vKlDMyCzUVZZhfpOxZWeinl/yFF/T0smmz8smm3xMnenj2hWn67OgxcSaYWOPGfuyDovUT0el/m+Y1/h/yYzO/5+Pyf9fP8GsJN3GhhVs1cbpMTx3NjF0mbZtfcLQuufV1fXSk48vthQHS26ZqAn3jlxgraJzQoMGjH9orjITADlsSj6vAFtRAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},39928:function(e,t){"use strict";t.Z={src:"/_next/static/media/grammar_practice_inactive.inline.2703113c.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA2UlEQVR42mMAgZaGbkYQvXXzTuEtm3aIgtj11e1AMShorO9ghjKVgVgDxOho64OI3bpxhwlEz5g6133L5u03t27ZcWfenMWBILFrV28wMfi4R8gB2YY9nZPqtm7Z+X/H9j3/Z0yb2w8UMwoLTpRm0NdwUgJyjOfMWujQ2z35OhDfnjt7kSdQzMxI20WBAQQSYrI8Tp06/X/l8nX/li9d8/fM6bP/S4tqAhlgYNmSlQJbN+/onDNz0bN5sxe/ALJ7163dKAbxYlMn3DtxETnKaYnFqjD+9GmzGQEemFeG+V0EagAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},30568:function(e,t){"use strict";t.Z={src:"/_next/static/media/listening_comprehension_colored.inline.7c3cdd36.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA/0lEQVR42mMAAkYGINAWMdOwUnA2ZGBgUD9Wf4KZAQagkqlGsjb/mRkUftf5NX683HHl4bmW89MYQECIQdVAmd/wtyKDwX8GBob/m4u3/n8z883/mz23/u+rOuDMAAQJCzMW/z885ejvjfWb/19tv/obaMK/+xMe/D9Uc9ieIT+kSPrRpMdfPiz+8P/zws9/3s/68P/Z1Gd/zrVeeDchaoojAwhc67pe/X7a1/+fZ3//f7Hr7O7DVac9zrddmLO9dKcYAwgcm5PZ/GhT1f+Xu4r/v9jn8+Fu95Obt/puFjPAwNmlke7vTjBkfjjNkPhkl2fKtop1OgwMDEwMDAwMANLGep0O8kMqAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},28556:function(e,t){"use strict";t.Z={src:"/_next/static/media/listening_comprehension_inactive.inline.2dd4b7e2.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA7ElEQVR42mNgYFBnYgACGT4LeQMtZ20gU4kBHcgJWESqSNv8Z2DQ+pGZXvhux/Zdtzdv2tYHldZVE2Iw+cLPYAxUwP9/9sz5/8+ePfd/7579/5cvW+XAAAThne19/1etXPd75ox5/3ft3PN7547d/w4fPgoUW2sHlNcSOXr0+PtLFy/9v3L5yp9LFy//P3H85J+tW3a8ratuAyoAgp07dxdfuXLl//Xr1/9v3rxtD9B+761bts9dMG+JKFhBWFBSTUpi7v/4mMz/NmY+H48fO3Frz559+Qww4OoY7AKkMoE4wUTPLWXShOkaMDkAQPdsp/TbpysAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}},73465:function(e,t){"use strict";t.Z={src:"/_next/static/media/reading_comprehension_colored.inline.432b96cd.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA5UlEQVR42mMAgfV9RiwgemaVcdzGfqMrzWmGQiD+lDIjRgYQ+HSRAczYP9tu68G55v8TzOOlQfxZFW5MDB9PM4B139nJ0PD9PMP/10cY/j/Yy9AIEvt6Hij3/95zJhDn3MyZe+8sXvH/6oyN/8/NnnEUJPb//39GBihgO1d/bcfNzsf/b3Td/3+t4fYmFAWtufaNHblu//cWb/h1vObI3+r8qj9FuXG5DDDg2rdvkuGqB//d2rb/95ty+r/stk//bWddmMYAA3LlK6q0Jp3+oLLw9h2FBTfvGCx7+EGl91AlAwMDAwCC+2lnPPCTlwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},63635:function(e,t){"use strict";t.Z={src:"/_next/static/media/reading_comprehension_inactive.inline.a72cd87e.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA30lEQVR42lWLO6/BABTHzxW5ucvdfBZfR2I3C+JVj3ikAwmJYPCqCiKoeqTaMhCPSodOTQffgNngcCQd/JZz/i8g6tWWky6bK3lqlcbR6/H9k04n2B8gLPP6ebh2f8lzA/wDt4s0E8s6QNf1z1qW1bhhGHg4HFFVtn7yNO3iBER0kBCmc0WRN7haSDidiGvy7Iz4nYyF1XuJVBIEkf8qREIpJhrKYL3afPT44TPFsI9wIOkDm0F/VDyfNGy3ujgXl2iaJoqzRRls8plC8F26S5JsqerW2u32N67TCwAAvAA3RnfnmPcoHQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},53003:function(e,t){"use strict";t.Z={src:"/_next/static/media/speaking_practice_colored.inline.5e0ddf26.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA50lEQVR42mNwn3uDkYEQ8K+6p2q07N1O3elXGw03vt2nmz01U52BwZOBAQbWza7k3X78v+qcLauklz7bqe1X/EKXQfO/poTFfYalq32LZh3y++93Ru+/02GrtmAGhh5NMfP/OlIuL9X59AoZNM/Gf6veWfa/as6+//zlK0uvby58dGqF//+sIJ3FDCDAdCRkIcOmw/85Ztz/x1C23/j0Ys+U29td/t/aaniIAQQW5Tr5R3dveSYe1RQLc9LeKXGTbi1acnam0WV5hrn9DNzfGBiYQYYxvP7P+PIAAwsDw3+w1zd3lLMCAN6GXFXe98L7AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},81560:function(e,t){"use strict";t.Z={src:"/_next/static/media/speaking_practice_inactive.inline.f9cba307.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA2ElEQVR42mNgYFBmZCACqAHx9vbWnrrr127sra5sTAfyPeCyC+Yvqa6tbv4/acKM5efOnd8ZE5n+jIFB/7+CqNV9htysstI5sxf8P3785P9dO/e2AtX3yHBa/deUd3glxGBcwnDi+KlfSxev/DdvzuL/9dUdJatWrH+8bMnq/wHesYvBxu/be3DZyROn/wPpf5MnzDKeOXVB+s7te/5v27LzCFhBSX5d0KIFy5+mJRVGwdw0oW/q5M6O/jNAphxDd+dEbiCDCYgZ////z7h/3yEWmMK62mZWACWeX6H40tAnAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},22105:function(e,t){"use strict";t.Z={src:"/_next/static/media/vocabulary_colored.inline.d8f5bb43.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA00lEQVR42mPo9drLyAAH/8HsxJkr2EyXMyDEy+znyLV4t5yaHFF8cWJE2YNqhbx8BgYGhuaKKhawglnpmY6Tq8v/t/eU/e/qLP1f09zwMjm31AVuwp1OBpvlxwL+M9ws/i19u+CH0vW8/5pLozLhCm7UMdgsPR76n2FV3G/j9bE/lc9n/VdZE5OAUNDJ4Lj8UNB/hoPp/w23xP9XPpL2X3VzfBpcwakoBrnudf5nGc5kXdM+nXFB5WjaY7WZYUFgybuTmODeuczAwMTAwMCYyIDwIgAj9VFliKarIQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},31474:function(e,t){"use strict";t.Z={src:"/_next/static/media/vocabulary_inactive.inline.c5567d01.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA2ElEQVR42mNoqu9k/P//PwMInz55jv3+3YesB/YfZu3q7AeLgyUKciplUxLztocHJy2ODk/bbG7gGQ8Sr69tYwErqK5ocu5o6/vf3zv5Rm/3pAcT+qbeLS+pd4SbMHniDOsTx0/+v379+v9bt279v3r16v85sxakwBX0dE2yOXXy9P+VK9b83Lhhy4+zZ8/9X7xoWQxcwdTJsxyPHjn2f+/e/f83bdzy//ChI/9Xr1qXBFeQnVEss37dplOnTp2+evrU6fNABQ+B7vAFK5gxbQ7cm0AAZiNjAOoqpjVD7pQuAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},54797:function(e,t){"use strict";t.Z={src:"/_next/static/media/writing_practice_colored.inline.32a07731.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA+UlEQVR42mOAgVoGBj6TLfGhqruTElWWRTepF3hqgiWUF0XamOxPPsBwLvsh4/Xc/2q38v6rns78b1YXagRWYNYTaMlwOvv/5BNR/zN3RP9luJ73Q+puzn+Gk5GzoYbbiR3bZPv6xjqt/7dWaf4r2xH6R/l29f/ifV17oQpsOc4v075wYa39/2urLf4e3Kj3O3BK3v8VYau3MMBAYQWDwrmZFbef7wj+8+6k+a8AW/v/DAwMPmDJ5om9bGBG96GEeZPy/99Zx/C/vHf+f6UlD8/ahBerMgTXV0uXLqxPClu6Y2nV/GnbbmzhW79tbdd6hunXjztXLvAEAFt6bccSmy3tAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},29865:function(e,t){"use strict";t.Z={src:"/_next/static/media/writing_practice_inactive.inline.b8552419.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA8UlEQVR42mNAAlybN20N2LNnX/SSxStqC3Iq1MCiC+cvsdi378CuM2fO3r127dr/mzdv/j958tT/ksJaHbCC9tY+09OnTv8/ffrM/9279v0FKvp5+/bt/0ePHJsAM1p4x/ZdL7dv2/l/86Zt/3bv2vsHpODYsRPbYArY1q3ZeHbL5u0gBX93bNv1e+7shf/bWnrWwF3X1TFBdtKE6Tf37t3/5/z5C790FJ3/A4VdIY5csIQNRK9bsyF+4YKl/zdt3PIfRB89euxUWFCiIkNVRaPEpInT4zZu3LJo2ZKVm3fu2L3mwIFDa7Zt23G4s73PFQDG/YkjDnx5QQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},75224:function(){},13865:function(){},74188:function(){},70121:function(){},95118:function(){},59385:function(){},93463:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});
1var l=n(87462),a=n(63366),i=n(67294),o=i.useLayoutEffect,s=function(e){var t=i.useRef(e);return o(function(){t.current=e}),t},r=function(e,t){if("function"==typeof e){e(t);return}e.current=t},c=function(e,t){var n=(0,i.useRef)();return(0,i.useCallback)(function(l){e.current=l,n.current&&r(n.current,null),n.current=t,t&&r(t,l)},[t])},u={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},d=function(e){Object.keys(u).forEach(function(t){e.style.setProperty(t,u[t],"important")})},p=null,h=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize},g=function(){},m=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],f=!!document.documentElement.currentStyle,A=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n=m.reduce(function(e,n){return e[n]=t[n],e},{}),l=n.boxSizing;if(""===l)return null;f&&"border-box"===l&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var a=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),i=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:a,borderSize:i}};function v(e,t,n){var l=s(n);i.useLayoutEffect(function(){var n=function(e){return l.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var b=function(e){v(window,"resize",e)},x=function(e){v(document.fonts,"loadingdone",e)},w=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],j=i.forwardRef(function(e,t){var n=e.cacheMeasurements,o=e.maxRows,s=e.minRows,r=e.onChange,u=void 0===r?g:r,m=e.onHeightChange,f=void 0===m?g:m,v=(0,a.Z)(e,w),j=void 0!==v.value,C=i.useRef(null),y=c(C,t),N=i.useRef(0),O=i.useRef(),S=function(){var e,t,l,a,i,r,c,u,g,m,v,b=C.current,x=n&&O.current?O.current:A(b);if(x){O.current=x;var w=(e=b.value||b.placeholder||"x",void 0===(t=s)&&(t=1),void 0===(l=o)&&(l=1/0),p||((p=document.createElement("textarea")).setAttribute("tabindex","-1"),p.setAttribute("aria-hidden","true"),d(p)),null===p.parentNode&&document.body.appendChild(p),a=x.paddingSize,i=x.borderSize,c=(r=x.sizingStyle).boxSizing,Object.keys(r).forEach(function(e){p.style[e]=r[e]}),d(p),p.value=e,u=h(p,x),p.value=e,u=h(p,x),p.value="x",m=(g=p.scrollHeight-a)*t,"border-box"===c&&(m=m+a+i),u=Math.max(m,u),v=g*l,"border-box"===c&&(v=v+a+i),[u=Math.min(v,u),g]),j=w[0],y=w[1];N.current!==j&&(N.current=j,b.style.setProperty("height",j+"px","important"),f(j,{rowHeight:y}))}};return i.useLayoutEffect(S),b(S),x(S),i.createElement("textarea",(0,l.Z)({},v,{onChange:function(e){j||S(),u(e)},ref:y}))})}}]);
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.