@clickview/lite 0.56.4-rc.0 → 0.56.5-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/lite",
3
- "version": "0.56.4-rc.0",
3
+ "version": "0.56.5-rc.0",
4
4
  "description": "ClickView Lite",
5
5
  "main": "dist/scripts/bundle.js",
6
6
  "types": "dist/projects/lite/src/index.d.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"scripts/5566-0b9845e33b-lite.chunk.js","mappings":"wiBAWM,SAAUA,EAAaC,GAC3B,IAAQC,EAAqFD,EAArFC,MAAOC,EAA8EF,EAA9EE,uBAAwBC,EAAsDH,EAAtDG,wBAAyBC,EAA6BJ,EAA7BI,UAAcC,EAAU,EAAKL,EAAvF,0EAEN,OACE,gBAACM,EAAA,QAAU,CAACF,UAAU,cACpB,uBAAKA,UAAS,qBAAgBA,GAAa,KACzC,gBAACG,EAAY,eAACH,UAAU,oBAAuBC,IAC/C,gBAACC,EAAA,QAAU,CACTF,UAAS,0CAAiE,WAA5BD,EAAuC,YAAc,GAAE,wBACnGD,GACFM,QAASH,EAAWI,IAEnBR,GAEFD,EAAMU,iBAAmBV,EAAMW,qBAC9B,gCACE,iCACA,gBAACC,EAAA,EAAO,CAACC,QAASb,EAAMU,gBAAiBN,UAAU,aAChDJ,EAAMW,uBAOrB,C,gDC1BM,SAAUG,EAA4Cd,GAC1D,IAEMe,GAFa,UAAXC,OAEahB,EAAMiB,WAE3B,MAAqB,iBAAVF,EACF,iCAGP,uBAAKX,UAAU,sCACZW,EAAMG,OAAM,IAAGlB,EAAMmB,MAAK,cAGjC,CCtBA,SAAgB,eAAiB,QAAQ,cAAgB,QAAQ,kBAAoB,QAAQ,0BAA4B,QAAQ,YAAc,QAAQ,QAAU,S,sbCmB3JC,EAAY,mBAiCZ,SAAUb,EACdP,GAEA,I,IAAQqB,EAAgDrB,EAAhDqB,SAAUC,EAAsCtB,EAAtCsB,mBAAuBjB,EAAU,EAAKL,EAAlD,mCAE8C,G,EAA1B,WAAeA,EAAMuB,M,EAAK,E,o4BAA5CA,EAAI,KAAEC,EAAO,KASfC,EAAmBC,EAAA,aAA0BL,GAC/C,SAACM,GAAa,OAAKN,EAASM,EAAE,EAC9B,iBAAqBN,GAAYA,EAAW,KAEhD,GAAwB,aAApBhB,EAAWkB,KACb,OAAID,EAEA,uBAAKlB,UAAU,qBACb,gBAAC,KAAK,iBAAMwB,EAAA,OAAkBvB,EAAY,CAAC,cACxCoB,GAGH,uBAAKrB,UAAW,WACd,gBAACyB,EAAA,EAAO,CAACC,UAAU,SAASC,KAAK,SAOvC,gBAAC,KAAK,iBAAMH,EAAA,OAAkBvB,EAAY,CAAC,cACxCoB,GAKP,IAAIO,EAAqB,qBAAH,OAAwB,qBAY9C,OAVI3B,EAAWD,YACb4B,GAAsB,IAAJ,OAAQ3B,EAAWD,YAEnCC,EAAW4B,WACbD,GAAsB,IAAJ,OAAQ,8BAO1B,uBAAK5B,UAAW4B,GACd,gBAAC,KAAK,iBACCJ,EAAA,OAAkBvB,EAAY,CAAE,WAAY,OAAQ,cAAe,CACxEkB,KAAMA,EACNnB,UAAS,UAAK,gBAAoB,gDAEjCqB,GAEkB,aAApBpB,EAAWkB,MACV,gBAACW,EAAA,EAAY,CACXC,QAAkB,aAATZ,EAAsB,eAAyB,gBACxDnB,UAAS,uCAAkC,kBAC3CgC,QA1DR,WAEIZ,EADW,aAATD,EACM,OAEA,WACZ,IA0DF,CAOM,SAAUc,EAAqCrC,GACnD,IACEC,EAUED,EAVFC,MACAG,EASEJ,EATFI,UACAkC,EAQEtC,EARFsC,qBACAC,EAOEvC,EAPFuC,iBACAC,EAMExC,EANFwC,YACAC,EAKEzC,EALFyC,qBACAC,EAIE1C,EAJF0C,SACAC,EAGE3C,EAHF2C,SACAC,EAEE5C,EAFF4C,kBACGvC,EAAU,EACXL,EAXE,gJAaN,GAA4B,UAApB6C,EAAM,EAANA,OAAQC,EAAO,EAAPA,QAIVC,EAAmB,WAAO,EAEhC,GAAwB,aAApB1C,EAAWkB,KAAqB,CAClC,IAAMyB,EAASpB,EAAA,OAAkB5B,EAAO,CAAE,WAAY,yBAKtD,OAHIA,EAAMiC,WACRe,EAAOC,SAAWF,GAEb,gBAAChD,EAAY,iBAAKiD,GAC1B,CAED,IAAME,EAAoB,OAAH,wBAClB7C,GAAU,CACbD,UAAW+C,EAAA,gCACTN,EACAC,EACAzC,EAAW+C,KACXT,EACAvC,EACoB,iBAAbJ,EAAMqD,GAAkBrD,EAAMqD,GAAK,QAO9C,OAHIrD,EAAMiC,WACRiB,EAAkBD,SAAWF,GAG7B,gBAACzC,EAAA,QAAU,CAACF,UAAU,gBACjBH,GACD,gBAACK,EAAA,QAAU,CAACE,QAASH,EAAWI,GAAIL,UAAU,6BAC3CH,EACAsC,GAAoB,wBAAMnC,UAAU,eAAa,KACjDoC,GACC,gBAACN,EAAA,EAAY,CACX9B,UAAS,uCAAkC,eAC3C+B,QAAS,UACTmB,MAAOd,EACPe,iBAAkBd,EAClBe,iBAAe,IAGlBZ,GAAqB,wBAAMxC,UAAU,kBAAgB,IAAO,gBAACqD,EAAA,EAAI,CAACrC,UAAWA,EAAWsC,OAAO,gBAE7FpB,KAA2BjC,EAAiDsD,WAC7E,uBAAKvD,UAAU,WACb,gBAACU,EAAgB,CACfG,UAAYZ,EAAW+C,KACvBjC,MAAQd,EAAiDsD,cAOnE,gBAACpD,EAAY,iBAAK2C,EAAiB,+BAAwB7C,EAAW+C,KAAI,cAEvEV,GACD,gBAACpC,EAAA,OAAS,CAACF,UAAU,kBAClBsC,GAIL,gBAAC,KAAY,CAACU,KAAM/C,EAAW+C,OAC5B,SAACQ,GAAoB,OAAK,gBAACtD,EAAA,mBAAqB,CAACG,GAAE,UAAKJ,EAAW+C,KAAI,SAAS7B,KAAK,UAAUsC,KAAK,UAAUD,EAAqC,IAI5J,CAtKArD,EAAauD,aAAe,CAC1BC,aAAc,OA2EhB1B,EAAUyB,aAAe,CACvBC,aAAc,MACdtB,qBAAsB,M,ghBCrElB,SAAUuB,EAIdhE,GACA,IAAQiE,EAAmFjE,EAAnFiE,kBAAmBC,EAAgElE,EAAhEkE,mBAAoBC,EAA4CnE,EAA5CmE,cAAeC,EAA6BpE,EAA7BoE,SAAaC,EAAW,EAAKrE,EAArF,uEAMAsE,EAAqCL,GAAqBjE,EAAMuE,iBAClEvE,EAAMuE,iBAAiBC,KA3D7B,SAA4DL,GAC1D,IAAKA,EACH,MAAO,CAAC,EAEV,IAAMnD,EAAS,cAAuBmD,GAetC,OAbA,SAASM,EAAgBC,GACvBC,OAAOC,KAAK5D,GAAQ6D,SAAQ,SAACC,GACtB9D,EAAO+D,eAAeD,KAGvB,aAAsBJ,EAAMI,IAC9BL,EAAgBC,EAAMI,IACC,OAAhB9D,EAAO8D,WACP9D,EAAO8D,GAClB,GACF,CAEAL,CAAgBzD,GACTA,CACT,CAuCkCgE,CAAsBb,IAClDA,EA4BEc,EAA+B,CACnCC,mBAAoBlF,EAAMkF,oBAG5B,OACE,gBAAC,KAAM,eACLC,oBAAkB,GACbd,EAA6D,CAClEF,cAAeG,EACfF,SAnCoB,SACtBpD,EAAkB,GAEhB,IADAoE,EAAa,EAAbA,cAAeC,EAAS,EAATA,UAAWC,EAAa,EAAbA,cAOtBC,EAAgBrB,GAAsBlE,EAAMuE,iBAC9CvE,EAAMuE,iBAAiBC,KAAKxD,GAC5BA,EAEJoD,EAASmB,GAAe,WAAoD,I,IAAnDC,EAAA,uDAA6C,CAAC,EAGrE,GAFAA,EAAQC,OAASJ,IAEbG,EAAQ3C,OACV,IAAK,IAAL,MAA6B8B,OAAOe,QAAQF,EAAQ3C,QAAO,eAAE,CAAxD,O,EAAA,K,EAAA,E,o4BAAQiC,EAAG,KAAEa,EAAK,KACrBL,EAAcR,EAAKa,EACpB,CAGHP,GAAc,EAChB,GACF,EAYIH,cAAeA,IAEd,eAA0BjF,EAAMqB,UAC7B,SAACM,GAA0B,OAAM3B,EAAMqB,SAA6DM,EAAE,EACtG,iBAAqB3B,EAAMqB,UAAYrB,EAAMqB,SAAW,KAIlE,CAEM,SAAUuE,IACd,OAAO,SACT,CApEA5B,EAAYF,aAAe,CACzBG,mBAAmB,EACnBC,oBAAoB,E,kDC/BTf,EAAa,CACxB0C,8BAA6B,SAC3BhD,EACAC,EACAgD,EACA/D,EACAgE,EACAxE,GAEA,IAAInB,EAAY,GAWhB,OATAA,EA/BJ,SAAqBmB,EAAcQ,GACjC,IAAI3B,EAAY,GAgBhB,OAZIA,EADG,WADCmB,EAEQ,cAGA,eAGH,OAATQ,IACF3B,GAAa,IAAJ,OAAQA,EAAS,QAEf,OAAT2B,IACF3B,GAAa,IAAJ,OAAQA,EAAS,QAErBA,CACT,CAagB4F,CAAYzE,EAAMQ,IAG1B,QAAMe,EAASgD,KAAc,QAAMjD,EAAQiD,KAC7C1F,GAAa,eAEX2F,IACF3F,GAAa,IAAJ,OAAQ2F,IAEZ3F,CACT,E,yPC5BI6F,EAAYC,EAAA,mBADA,0BAGZC,EAAuB,OAAaC,MAAiC,CACzEhD,KAAM,OACHiD,OACAC,IAAI,KAAK,kBAAML,EAAU,eAAe,IACxCM,UAAS,kBAAMN,EAAU,gBAAgB,IAAC,QAClC,IAEXO,YAAa,OACVH,OACAC,IAAI,MAAO,kBAAML,EAAU,qBAAqB,IAAC,QACzC,IAEXQ,UAAW,OACRF,WAEHG,QAAS,OACNH,WAEHI,OAAQ,SAEPC,YAQH,SAASC,EAAoB7G,GAC3B,IAAMqE,GAAc,SAEpB,OACE,gBAAC,KAAI,KACH,uBAAKjE,UAAU,kBACb,uBAAKA,UAAU,SACb,gBAAC0G,EAAA,EAAc,CACbC,MAAK,eACHC,aAAchH,EAAM+G,MACpBE,OAAQC,EAAA,QACL7C,EAAYrD,QAEjBO,KAAK,WACL4F,aAAc,CAAEpF,KAAM,YACtBqF,aAAcC,EAAA,cACdC,SAAO,KAGX,uBAAKlH,UAAU,SACb,sBAAIA,UAAU,MAAMiE,EAAYrD,OAAOoC,QAG3C,gBAACf,EAAA,EAAS,CACRpC,MAAOgG,EAAU,aACjB1E,KAAK,OACL6B,KAAK,OACL3C,GAAI,OACJ8G,YAAatB,EAAU,mBACvBuB,WAAS,EACT7B,MAAOtB,EAAYrD,OAAOoC,OAE5B,gBAACf,EAAA,EAAS,CACRpC,MAAOgG,EAAU,oBACjBwB,UAAU,WACVrE,KAAK,cACL3C,GAAI,cACJ8G,YAAatB,EAAU,0BACvBN,MAAOtB,EAAYrD,OAAOwF,cAE5B,gBAACkB,EAAA,EAAY,KACX,gBAACA,EAAA,SAAmB,CAACtF,QAASpC,EAAM2H,gBACpC,gBAACD,EAAA,SAAmB,CAClBE,MAAO5H,EAAM4H,MACbC,KAAM7H,EAAM4H,OAAS3B,EAAU,cAC/B6B,QAAQ,UAKlB,CAWM,SAAUC,EAAgB/H,G,MAC9B,OACE,gBAACgE,EAAA,EAAW,CACVG,cAAenE,EAAMgI,KACrBzD,iBAAkB4B,EAClB/B,SAAUpE,EAAMiI,SAChB/C,mBAAoBlF,EAAMkF,oBAE1B,gBAAC2B,EAAmB,CAClBE,MAAO/G,EAAM+G,MACba,QAAkB,QAAV,EAAA5H,EAAMgI,YAAI,eAAEvH,KAAMT,EAAMkI,UAChCP,cAAe3H,EAAM2H,gBAI7B,C,yFCnGM,EAAYzB,EAAA,mBADA,8BAWZ,SAAUiC,EAAoBnI,G,sBAC5BoI,GAAW,UACXC,GAAS,SAETL,EAAO,oBAA6BhI,EAAMS,IAAM6H,EAAA,OAAkBtI,EAAMS,KACxE8H,GAAiC,QAAvB,EAAS,QAAT,EAAAP,EAAKQ,YAAI,eAAExB,oBAAY,eAAEvG,KAAMT,EAAMuI,QAC/CxB,EAAQ,oBAA8BwB,GAAWE,EAAA,QAAoBF,IAErE9B,EAAYiC,MAAM1I,EAAMyG,WAAuB,QAAV,EAAAuB,aAAI,EAAJA,EAAMQ,YAAI,eAAE/B,UAAYzG,EAAMyG,UACnEC,EAAUgC,MAAM1I,EAAM0G,SAAqB,QAAV,EAAAsB,aAAI,EAAJA,EAAMQ,YAAI,eAAE9B,QAAU1G,EAAM0G,QAsCnE,IAAK1G,EAAMS,KAAOT,EAAMuI,QACtB,OAAO,iCAET,IAAMI,KAAe5B,EAAMyB,MAAUxI,EAAMS,KAAQuH,EAAKQ,MAExD,OACE,gBAACI,EAAA,EAAK,CACJtF,MAAO,EAAUtD,EAAMS,GAAK,mBAAqB,sBACjDoI,WAAY7I,EAAM6I,WAClBvH,oBAAqBqH,GAErB,gBAACZ,EAAe,CACdhB,MAAOA,EAAMyB,KACbR,KAAM,CACJvH,GAAc,QAAV,EAAAuH,aAAI,EAAJA,EAAMQ,YAAI,eAAE/H,GAChB2C,KAAMpD,EAAMkI,UAAY,GAAH,OAAM,EAAU,cAAa,YAAc,QAAV,EAAAF,aAAI,EAAJA,EAAMQ,YAAI,eAAEpF,MAAmB,QAAV,EAAA4E,aAAI,EAAJA,EAAMQ,YAAI,eAAEpF,KACvFoD,YAAuB,QAAV,EAAAwB,aAAI,EAAJA,EAAMQ,YAAI,eAAEhC,YACzBC,UAAAA,EACAC,QAAAA,EACAC,OAAQmC,EAAA,YACRC,UAAqB,QAAV,EAAAf,aAAI,EAAJA,EAAMQ,YAAI,eAAEQ,YAEzBf,SA1DN,SAAkBO,GAChB,IAAMS,EAAU,SAACC,GACfb,EAAOY,QAAQ,EAAU,UAAW,CAAE7F,KAAMoF,EAAKpF,KAAM+F,YAAY,KAEnEC,EAAA,gBACEC,EAAA,mBAA6BrB,EAAKQ,MAClC,CACEc,WAAYtJ,EAAMS,GAAK,UAAkB,YACzC8I,OAAQ,UACRC,SAAU,WACVC,cAAe,gBAInB,eAA2B,CACzBC,YAAa,UACbC,OAAQ,oBACRC,KAAM,CAAEV,EAAUzI,GAAIoJ,EAAA,UAAmBX,EAAU9F,QAEvD,EAEM0G,EAAQ,WACZzB,EAAOyB,MAAM,EAAU,SACzB,EAEMC,EAAS,WACb/J,EAAM6I,YACR,EAEMmB,EAAUhK,EAAMS,KAAOT,EAAMkI,UAC/BI,EAAA,aAAwBtI,EAAMS,GAAI+H,EAAMS,EAASa,EAAOC,GACxDzB,EAAA,aAAwBC,EAASC,EAAMS,EAASa,EAAOC,GAE3D,UAAa3B,EAAU4B,EACzB,EAyBMrC,cAAe3H,EAAM6I,WACrBX,YAAalI,EAAMkI,UACnBhD,oBAAkB,IAI1B,C","sources":["file:///app/packages/libs/shared/src/components/forms/form-checkbox/FormCheckbox.tsx","file:///app/packages/libs/shared/src/components/forms/form-field/CharacterCounter.tsx","file:///app/packages/libs/shared/src/components/forms/form-field/form-field.scss","file:///app/packages/libs/shared/src/components/forms/form-field/FormField.tsx","file:///app/packages/libs/shared/src/components/forms/form-wrapper/FormWrapper.tsx","file:///app/packages/libs/shared/src/utils/FormHelper.ts","file:///app/packages/libs/shared/src/apps/clips/components/edit-clip-details/EditClipDetails.tsx","file:///app/packages/projects/lite/src/shared/views/edit-clip-details/EditClipDetailsView.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Form } from 'react-bootstrap';\nimport { FieldAttributes } from 'formik';\n\nimport { AppLink } from 'libs/shared/components/app-link/AppLink';\n\nimport { FieldWrapper, FormFieldProps } from '../form-field/FormField';\n\n/**\n * Use this checkbox within Formik contexts\n */\nexport function FormCheckbox(props: FieldAttributes<FormFieldProps>): JSX.Element {\n const { label, checkboxLabelClassName, checkboxLabelFontWeight, className, ...fieldProps } = props;\n\n return (\n <Form.Group className='form-group'>\n <div className={`form-check ${className || ''}`}>\n <FieldWrapper className='form-check-input' {...fieldProps} />\n <Form.Label\n className={`form-check-label cursor-pointer ${checkboxLabelFontWeight === 'normal' ? 'fw-normal' : ''} \n ${checkboxLabelClassName}`}\n htmlFor={fieldProps.id}\n >\n {label}\n </Form.Label>\n {props.checkboxAppLink && props.checkboxAppLinkText && (\n <>\n <span>&nbsp;</span>\n <AppLink appLink={props.checkboxAppLink} className='info-link'>\n {props.checkboxAppLinkText}\n </AppLink>\n </>\n )}\n </div>\n </Form.Group>\n );\n}\n\n","import * as React from 'react';\nimport { useFormikContext } from 'formik';\n\nimport { HashObject } from 'libs/common/react/interfaces';\n\ninterface CharacterCounterProps<Values extends HashObject> {\n fieldName: keyof Values;\n limit: number;\n}\n\nexport function CharacterCounter<Values extends HashObject>(props: CharacterCounterProps<Values>): JSX.Element {\n const { values } = useFormikContext<Values>();\n\n const field = values[props.fieldName];\n\n if (typeof field !== 'string')\n return <></>;\n\n return (\n <div className='float-end text-secondary fw-normal'>\n {field.length}/{props.limit} characters\n </div>\n );\n}","// extracted by mini-css-extract-plugin\nexport default {\"revealPassword\":\"jCfI0\",\"passwordInput\":\"RBJnf\",\"passwordContainer\":\"d78lK\",\"passwordContainerDisabled\":\"asbVo\",\"infoTooltip\":\"wzyOG\",\"spinner\":\"CycFx\"};","import * as React from 'react';\nimport { Form, Spinner } from 'react-bootstrap';\nimport { Placement } from 'react-bootstrap/esm/types';\nimport { ErrorMessage, Field, FieldAttributes, FieldProps, useFormikContext } from 'formik';\n\nimport { Core } from 'libs/common/backbone/index';\nimport { FunctionHelper } from 'libs/common/backbone/utils/FunctionHelper';\nimport { HashObject } from 'libs/common/react/interfaces';\nimport { ObjectHelper } from 'libs/common/react/utils/ObjectHelper';\n\nimport { FormCheckbox } from 'libs/shared/components/forms/form-checkbox/FormCheckbox';\nimport { SvgContainer } from 'libs/shared/components/svg-container/SvgContainer';\nimport { Text } from 'libs/shared/components/text/Text';\nimport { FormHelper } from 'libs/shared/utils/FormHelper';\nimport { cvSvgLibrary } from 'libs/shared/utils/SvgHelper';\n\nimport { CharacterCounter } from './CharacterCounter';\n\nimport styles from './form-field.scss';\n\nconst namespace = 'shared.formField';\n\nexport type FormSize = 'lg' | 'sm';\n\n// If checkboxLabelFontWeight is not specified, it will be bold by default\nexport type CheckboxLabelFontWeight = 'normal' | 'bold'\n\nexport interface FormFieldProps {\n /**\n * The name prop MUST be the same as the attribute\n * name of the value that the field is bound to.\n */\n name: string;\n label?: string;\n children?: any;\n showCharacterCounter?: boolean;\n showRequiredStar?: boolean;\n checkboxAppLink?: Core.AppLink;\n checkboxAppLinkText?: string;\n checkboxLabelClassName?: string;\n checkboxLabelFontWeight?: CheckboxLabelFontWeight\n infoTooltip?: string;\n infoTooltipPlacement?: Placement;\n infoText?: string;\n formSize?: FormSize;\n showOptionalLabel?: boolean;\n showLoadingSpinner?: boolean;\n}\n\nFieldWrapper.defaultProps = {\n autoComplete: 'off'\n};\n\nexport function FieldWrapper(\n props: FieldAttributes<FormFieldProps> & { className: string }\n): React.ReactElement {\n const { children, showLoadingSpinner, ...fieldProps } = props;\n\n const [ type, setType ] = React.useState(props.type);\n\n function onClickTogglePassword(): void {\n if (type === 'password')\n setType('text');\n else\n setType('password');\n }\n\n const resolvedChildren = FunctionHelper.isFunction(children)\n ? (f: FieldProps) => children(f)\n : React.Children.count(children) ? children : null;\n\n if (fieldProps.type !== 'password') {\n if (showLoadingSpinner) {\n return (\n <div className='position-relative'>\n <Field {...(ObjectHelper.omit(fieldProps, ['formSize']))}>\n {resolvedChildren}\n </Field>\n\n <div className={styles.spinner}>\n <Spinner animation='border' size='sm' />\n </div>\n </div>\n );\n }\n\n return (\n <Field {...(ObjectHelper.omit(fieldProps, ['formSize']))}>\n {resolvedChildren}\n </Field>\n );\n }\n\n let containerClassName = `position-relative ${styles.passwordContainer}`;\n\n if (fieldProps.className)\n containerClassName += ` ${fieldProps.className}`;\n\n if (fieldProps.disabled)\n containerClassName += ` ${styles.passwordContainerDisabled}`;\n\n /**\n * We need to wrap out input with a relatively positioned element in order to absolutely\n * position our visibility icon to reveal the password - Sha\n */\n return (\n <div className={containerClassName}>\n <Field\n {...(ObjectHelper.omit(fieldProps, [ 'formSize', 'type', 'className' ]))}\n type={type}\n className={`${styles.passwordInput} border-0 w-100 h-100 outline-none rounded`}\n >\n {resolvedChildren}\n </Field>\n {fieldProps.type === 'password' &&\n <SvgContainer\n svgName={type === 'password' ? cvSvgLibrary.VisibleOn : cvSvgLibrary.VisibleOff}\n className={`svg-container cursor-pointer ${styles.revealPassword}`}\n onClick={onClickTogglePassword}\n />\n }\n </div>\n );\n}\n\nFormField.defaultProps = {\n autoComplete: 'off',\n infoTooltipPlacement: 'top'\n};\n\nexport function FormField<Values extends HashObject>(props: FieldAttributes<FormFieldProps>): React.ReactElement {\n const {\n label,\n className,\n showCharacterCounter,\n showRequiredStar,\n infoTooltip,\n infoTooltipPlacement,\n infoText,\n formSize,\n showOptionalLabel,\n ...fieldProps\n } = props;\n\n const { errors, touched } = useFormikContext<Values>();\n\n // This function overwrites the default `onChange` function whenever `props.disabled` is set.\n // This prevents users from \"undisabling\" form fields via inspect element, then editing the field.\n const disabledOnChange = () => {};\n\n if (fieldProps.type === 'checkbox') {\n const _props = ObjectHelper.omit(props, [ 'formSize', 'infoTooltipPlacement' ]);\n\n if (props.disabled)\n _props.onChange = disabledOnChange;\n\n return <FormCheckbox {..._props} />;\n }\n\n const fieldWrapperProps = {\n ...fieldProps,\n className: FormHelper.getCustomFormControlClassName(\n errors,\n touched,\n fieldProps.name,\n formSize,\n className,\n typeof props.as === 'string' ? props.as : null\n )\n };\n\n if (props.disabled)\n fieldWrapperProps.onChange = disabledOnChange;\n\n return (\n <Form.Group className='form-group'>\n {!!label && (\n <Form.Label htmlFor={fieldProps.id} className='d-flex align-items-center'>\n {label}\n {showRequiredStar && <span className='text-danger'>*</span>}\n {infoTooltip && (\n <SvgContainer\n className={`svg-container text-secondary ${styles.infoTooltip}`}\n svgName={cvSvgLibrary.Info}\n title={infoTooltip}\n tooltipPlacement={infoTooltipPlacement}\n tooltipSpanHack\n />\n )}\n {showOptionalLabel && <span className='text-secondary'>&nbsp;<Text namespace={namespace} phrase='optional' /></span>}\n \n {!!showCharacterCounter && !!(fieldProps as React.HTMLProps<HTMLInputElement>).maxLength &&\n <div className='ms-auto'>\n <CharacterCounter\n fieldName={(fieldProps.name as keyof Values)}\n limit={(fieldProps as React.HTMLProps<HTMLInputElement>).maxLength}\n />\n </div>\n }\n </Form.Label>\n )}\n\n <FieldWrapper {...fieldWrapperProps} aria-errormessage={`${fieldProps.name}Error`} />\n\n {!!infoText &&\n <Form.Text className='text-secondary'>\n {infoText}\n </Form.Text>\n }\n\n <ErrorMessage name={fieldProps.name}>\n {(errorMessage: string) => <Form.Control.Feedback id={`${fieldProps.name}Error`} type='invalid' role='status'>{errorMessage}</Form.Control.Feedback>}\n </ErrorMessage>\n </Form.Group>\n );\n}","import * as React from 'react';\nimport { Formik, FormikConfig, FormikContextType, FormikErrors, FormikHelpers, FormikProps, FormikValues, useFormikContext } from 'formik';\n\nimport { FunctionHelper } from 'libs/common/backbone/utils/FunctionHelper';\nimport { HashObject } from 'libs/common/react/interfaces';\nimport { ObjectHelper } from 'libs/common/react/utils/ObjectHelper';\n\n/**\n * Note: This currently doesn't support arrays, but the need for arrays as initial\n * form data has not yet come up\n */\nfunction omitNullInitialValues<Values extends FormikValues>(initialValues: Values): Values {\n if (!initialValues)\n return {} as Values;\n\n const values = ObjectHelper.deepClone(initialValues);\n\n function omitChildValues(child: Values): void {\n Object.keys(values).forEach((key: keyof Values) => {\n if (!values.hasOwnProperty(key))\n return;\n \n if (ObjectHelper.isObject(child[key]))\n omitChildValues(child[key]);\n else if (values[key] === null)\n delete values[key];\n });\n }\n\n omitChildValues(values);\n return values;\n}\n\n// Omit attributes from FormikConfig that are defined in FormWrapperProps.\ntype ModifiedFormikConfig<Values extends FormikValues> = Omit<FormikConfig<Values>, 'initialValues' | 'onSubmit'>;\n\ninterface InitialStatus {\n allowInitialSubmit: boolean;\n}\n\nexport type FormSubmissionOptions<FormValues = FormikValues> = {\n reset?: boolean;\n errors?: FormikErrors<FormValues>;\n};\n\ninterface FormWrapperProps<FormValues extends FormikValues, ApiValues extends FormikValues> {\n initialValues: Partial<FormValues | ApiValues>;\n onSubmit: (data: FormValues, onDone: (options?: FormSubmissionOptions<FormValues>) => void) => void;\n castInitialValues?: boolean; // cast to validationSchema\n castValuesOnSubmit?: boolean; // cast to validationSchema\n allowInitialSubmit?: boolean; // if true, useCanSubmitForm will allow submit without any user changes.\n}\n\nFormWrapper.defaultProps = {\n castInitialValues: true,\n castValuesOnSubmit: true\n};\n\nexport function FormWrapper<\n FormValues extends FormikValues = FormikValues,\n ApiValues extends FormikValues = FormValues,\n ExtraProps = HashObject\n>(props: ModifiedFormikConfig<FormValues> & ExtraProps & FormWrapperProps<FormValues, ApiValues>): JSX.Element {\n const { castInitialValues, castValuesOnSubmit, initialValues, onSubmit, ...formikProps } = props;\n\n /**\n * If castInitialValues is true, cast initialValues to the validationSchema.\n * This will ensure that any data fetched from the api conforms to the expected form data shape.\n */\n const formattedInitialValues: FormValues = castInitialValues && props.validationSchema\n ? props.validationSchema.cast(omitNullInitialValues(initialValues))\n : initialValues;\n\n const onSubmitHandler = (\n values: FormValues,\n { setSubmitting, resetForm, setFieldError }: FormikHelpers<FormValues>\n ) => {\n /**\n * validationSchema.cast will coerce the values to the types defined in validationSchema.\n * This is useful for trimming inputs:\n * e.g. if a value field has type Yup.string().trim(), it will be automatically trimmed.\n */\n const formattedData = castValuesOnSubmit && props.validationSchema\n ? props.validationSchema.cast(values)\n : values;\n\n onSubmit(formattedData, (options: FormSubmissionOptions<FormValues> = {}) => {\n options.reset && resetForm();\n\n if (options.errors) {\n for (const [ key, value ] of Object.entries(options.errors)) {\n setFieldError(key, value);\n }\n }\n\n setSubmitting(false);\n });\n };\n\n const initialStatus: InitialStatus = {\n allowInitialSubmit: props.allowInitialSubmit\n };\n\n return (\n <Formik<FormValues, ExtraProps>\n enableReinitialize\n {...(formikProps as ModifiedFormikConfig<FormValues> & ExtraProps)}\n initialValues={formattedInitialValues}\n onSubmit={onSubmitHandler}\n initialStatus={initialStatus}\n >\n {FunctionHelper.isFunction(props.children)\n ? (f: FormikProps<FormValues>) => (props.children as (f: FormikProps<FormValues>) => React.ReactNode)(f)\n : React.Children.count(props.children) ? props.children : null\n }\n </Formik>\n );\n}\n\nexport function useFormikContextWrapper<T>(): FormikContextType<T> {\n return useFormikContext<T>();\n}","import { FormikErrors, FormikTouched, getIn } from 'formik';\n\nimport { FormSize } from 'libs/shared/components/forms/form-field/FormField';\n\nfunction getTypeSize(type: string, size: FormSize) {\n let className = '';\n\n switch (type) {\n case 'select':\n className = 'form-select';\n break;\n default:\n className = 'form-control';\n }\n\n if (size === 'sm')\n className += ` ${className}-sm`;\n\n if (size === 'lg')\n className += ` ${className}-lg`;\n\n return className;\n}\n\nexport const FormHelper = {\n getCustomFormControlClassName<T>(\n errors: FormikErrors<T>,\n touched: FormikTouched<T>,\n attribute: string,\n size?: FormSize,\n additionalClassName?: string,\n type?: string\n ): string {\n let className = '';\n\n className = getTypeSize(type, size);\n\n // Using getIn as it supports dot notation\n if (getIn(touched, attribute) && getIn(errors, attribute))\n className += ' is-invalid';\n\n if (additionalClassName)\n className += ` ${additionalClassName}`;\n\n return className;\n }\n};","import * as React from 'react';\nimport { Form } from 'formik';\nimport * as Yup from 'yup';\n\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\n\nimport { FormField } from 'libs/shared/components/forms/form-field/FormField';\nimport { FormWrapper, useFormikContextWrapper } from 'libs/shared/components/forms/form-wrapper/FormWrapper';\nimport { PopupButtons } from 'libs/shared/components/popup/PopupButtons';\nimport { VideoThumbnail } from 'libs/shared/components/thumbnails/video/VideoThumbnail';\nimport { CurationStatus } from 'libs/shared/enums/CurationStatus';\nimport { ImageSize } from 'libs/shared/enums/Images';\nimport { MasterType } from 'libs/shared/enums/MasterType';\nimport { ThumbnailTextPosition } from 'libs/shared/enums/ThumbnailTextPosition';\nimport { Clip, CreateOrUpdateClipRequest, Video } from 'libs/shared/interfaces';\n\nconst namespace = 'shared.editClipDetails';\nconst getPhrase = LanguageService.encloseNamespace(namespace);\n\nconst ClipValidationSchema = Yup.object().shape<CreateOrUpdateClipRequest>({\n name: Yup.string()\n .trim()\n .max(255, () => getPhrase('titleTooLong'))\n .required(() => getPhrase('titleRequired'))\n .default(''),\n\n description: Yup.string()\n .trim()\n .max(16000, () => getPhrase('descriptionTooLong'))\n .default(''),\n\n startTime: Yup.number()\n .required(),\n\n endTime: Yup.number()\n .required(),\n\n status: Yup.mixed<CurationStatus>()\n\n}).noUnknown();\n\ninterface EditClipDetailsFormProps {\n video: Video;\n onClickCancel: () => void;\n isNew?: boolean;\n}\n\nfunction EditClipDetailsForm(props: EditClipDetailsFormProps): React.ReactElement {\n const formikProps = useFormikContextWrapper<CreateOrUpdateClipRequest>();\n\n return (\n <Form>\n <div className='row form-group'>\n <div className='col-5'>\n <VideoThumbnail\n video={{\n _parentVideo: props.video,\n typeId: MasterType.Clip,\n ...formikProps.values as Clip\n }}\n type='cosmetic'\n imageOptions={{ size: ImageSize.Small }}\n textPosition={ThumbnailTextPosition.Independent}\n preload\n />\n </div>\n <div className='col-7'>\n <h2 className='h6'>{formikProps.values.name}</h2>\n </div>\n </div>\n <FormField\n label={getPhrase('nameLabel')}\n type='text'\n name='name'\n id ='name'\n placeholder={getPhrase('namePlaceholder')}\n autoFocus\n value={formikProps.values.name}\n />\n <FormField\n label={getPhrase('descriptionLabel')}\n component='textarea'\n name='description'\n id ='description'\n placeholder={getPhrase('descriptionPlaceholder')}\n value={formikProps.values.description}\n />\n <PopupButtons>\n <PopupButtons.Cancel onClick={props.onClickCancel} />\n <PopupButtons.Submit\n isNew={props.isNew}\n text={props.isNew && getPhrase('createClip')}\n variant='dark'\n />\n </PopupButtons>\n </Form>\n );\n}\n\ninterface EditClipDetailsProps {\n video: Video;\n clip: Clip;\n saveClip: (data: CreateOrUpdateClipRequest, onDone: () => void) => void;\n onClickCancel: () => void;\n allowInitialSubmit?: boolean;\n isCopying: boolean;\n}\n\nexport function EditClipDetails(props: EditClipDetailsProps): React.ReactElement {\n return (\n <FormWrapper<CreateOrUpdateClipRequest>\n initialValues={props.clip}\n validationSchema={ClipValidationSchema}\n onSubmit={props.saveClip}\n allowInitialSubmit={props.allowInitialSubmit}\n >\n <EditClipDetailsForm\n video={props.video}\n isNew={!props.clip?.id || props.isCopying}\n onClickCancel={props.onClickCancel}\n />\n </FormWrapper>\n );\n}","import * as React from 'react';\nimport { useDispatch } from 'react-redux';\n\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\nimport { Core } from 'libs/common/core';\nimport { Flight } from 'libs/common/flight';\nimport { TextHelper } from 'libs/common/react/utils/TextHelper';\n\nimport { AnalyticsHelper } from 'libs/analytics/AnalyticsHelper';\nimport { EntityType, LocationContext, UserAction, WorkflowPhase } from 'libs/analytics/interfaces/AnalyticsTypes';\n\nimport { EditClipDetails } from 'libs/shared/apps/clips/components/edit-clip-details/EditClipDetails';\nimport { Popup } from 'libs/shared/components/popup/Popup';\nimport { CurationStatus } from 'libs/shared/enums/CurationStatus';\nimport { ClipRequests } from 'libs/shared/flight-requests/ClipRequests';\nimport { VideoRequests } from 'libs/shared/flight-requests/VideoRequests';\nimport { useAlerts } from 'libs/shared/hooks/UseAlerts';\nimport { Clip, CreateOrUpdateClipRequest, PopupViewProps, Video } from 'libs/shared/interfaces';\nimport { VideoHelper } from 'libs/shared/utils/VideoHelper';\n\nimport { Actions } from 'shared/constants/LiteActions';\nimport { AppChannels } from 'shared/constants/LiteRadioChannels';\n\nconst namespace = 'shared.editClipDetailsView';\nconst getPhrase = LanguageService.encloseNamespace(namespace);\n\ninterface EditClipDetailsViewProps extends PopupViewProps {\n id?: string;\n videoId?: string;\n startTime?: number;\n endTime?: number;\n isCopying?: boolean;\n}\n\nexport function EditClipDetailsView(props: EditClipDetailsViewProps): JSX.Element {\n const dispatch = useDispatch();\n const alerts = useAlerts();\n\n const clip = Flight.useBasicFetch<Clip>(!!props.id && ClipRequests.clip(props.id));\n const videoId = clip.data?._parentVideo?.id || props.videoId;\n const video = Flight.useBasicFetch<Video>(!!videoId && VideoRequests.video(videoId));\n\n const startTime = isNaN(props.startTime) ? clip?.data?.startTime : props.startTime;\n const endTime = isNaN(props.endTime) ? clip?.data?.endTime : props.endTime;\n \n function saveClip(data: CreateOrUpdateClipRequest): void {\n const success = (savedClip: Clip) => {\n alerts.success(getPhrase('success', { name: data.name, escapeText: true }));\n\n AnalyticsHelper.logUserAction(\n VideoHelper.getAnalyticsData(clip.data),\n {\n actionType: props.id ? UserAction.Edit : UserAction.Create,\n entity: EntityType.Clip,\n location: LocationContext.Popup,\n workflowPhase: WorkflowPhase.Complete\n }\n );\n\n Core.AppLinkHelper.trigger({\n application: AppChannels.CLIPS,\n action: Actions.Clips.PLAY_CLIP,\n args: [ savedClip.id, TextHelper.slugify(savedClip.name) ]\n });\n };\n\n const error = () => {\n alerts.error(getPhrase('error'));\n };\n\n const always = () => {\n props.closePopup();\n };\n\n const request = props.id && !props.isCopying\n ? ClipRequests.updateClip(props.id, data, success, error, always)\n : ClipRequests.createClip(videoId, data, success, error, always);\n\n Flight.fetch(dispatch, request);\n }\n\n if (!props.id && !props.videoId)\n return <></>;\n\n const dataLoaded = !!video.data && (!props.id || !!clip.data);\n\n return (\n <Popup\n title={getPhrase(props.id ? 'editPopupHeading' : 'createPopupHeading')}\n closePopup={props.closePopup}\n showLoadingSpinner={!dataLoaded}\n >\n <EditClipDetails\n video={video.data}\n clip={{\n id: clip?.data?.id,\n name: props.isCopying ? `${getPhrase('copyPrefix')} ${clip?.data?.name}` : clip?.data?.name,\n description: clip?.data?.description,\n startTime,\n endTime,\n status: CurationStatus.Published,\n thumbnail: clip?.data?._thumbnail\n }}\n saveClip={saveClip}\n onClickCancel={props.closePopup}\n isCopying={!!props.isCopying}\n allowInitialSubmit\n />\n </Popup>\n );\n}"],"names":["FormCheckbox","props","label","checkboxLabelClassName","checkboxLabelFontWeight","className","fieldProps","Form","FieldWrapper","htmlFor","id","checkboxAppLink","checkboxAppLinkText","AppLink","appLink","CharacterCounter","field","values","fieldName","length","limit","namespace","children","showLoadingSpinner","type","setType","resolvedChildren","FunctionHelper","f","ObjectHelper","Spinner","animation","size","containerClassName","disabled","SvgContainer","svgName","onClick","FormField","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel","errors","touched","disabledOnChange","_props","onChange","fieldWrapperProps","FormHelper","name","as","title","tooltipPlacement","tooltipSpanHack","Text","phrase","maxLength","errorMessage","role","defaultProps","autoComplete","FormWrapper","castInitialValues","castValuesOnSubmit","initialValues","onSubmit","formikProps","formattedInitialValues","validationSchema","cast","omitChildValues","child","Object","keys","forEach","key","hasOwnProperty","omitNullInitialValues","initialStatus","allowInitialSubmit","enableReinitialize","setSubmitting","resetForm","setFieldError","formattedData","options","reset","entries","value","useFormikContextWrapper","getCustomFormControlClassName","attribute","additionalClassName","getTypeSize","getPhrase","LanguageService","ClipValidationSchema","shape","trim","max","required","description","startTime","endTime","status","noUnknown","EditClipDetailsForm","VideoThumbnail","video","_parentVideo","typeId","MasterType","imageOptions","textPosition","ThumbnailTextPosition","preload","placeholder","autoFocus","component","PopupButtons","onClickCancel","isNew","text","variant","EditClipDetails","clip","saveClip","isCopying","EditClipDetailsView","dispatch","alerts","ClipRequests","videoId","data","VideoRequests","isNaN","dataLoaded","Popup","closePopup","CurationStatus","thumbnail","_thumbnail","success","savedClip","escapeText","AnalyticsHelper","VideoHelper","actionType","entity","location","workflowPhase","application","action","args","TextHelper","error","always","request"],"sourceRoot":""}
@@ -1,3 +0,0 @@
1
- /*! For license information please see 7076-00dd00a69c-lite.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7076],{73679:(e,t,n)=>{n.d(t,{s:()=>o});var a=n(32735),i=n(36848);const r={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function o(e){var t,n,o;return a.createElement(i.F,{appLink:null===(t=e.getAppLink)||void 0===t?void 0:t.call(e),className:"text-decoration-none text-center bg-white text-dark border border-3 ".concat(null===(n=e.theme)||void 0===n?void 0:n.border," rounded-3 d-block fw-semibold ").concat(e.className),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"position-relative ".concat(r.dateItem)},a.createElement("div",{className:"".concat(null===(o=e.theme)||void 0===o?void 0:o.background," py-1 ").concat(r.label," d-flex align-items-center justify-content-center")},e.label?e.label:a.createElement(a.Fragment,null," ")),a.createElement("div",{className:"".concat(function(){switch(e.body.type){case"range":return r.bodyRange;case"day":return r.bodyDay;case"month":return r.bodyMonth}}()," ").concat(r.body," my-2")},e.body.text),a.createElement("div",{className:"mb-0 ".concat(r.month)},e.month)))}},2158:(e,t,n)=>{n.d(t,{T:()=>y});var a=n(32735),i=n(2948),r=n(20354),o=n(38304),l=n(25925),c=n(21750),s=n(5112),d=n(61699),u=n(31949),m=n(22902),p=n(37802),v=n(75795),g=n(33857);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function y(e){var t,n,y,h=(n=(0,i.D)("has:playlist",null),y=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(n,y)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(n,y)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=h[0],E=h[1],k=r.a.useBasicFetch(u.N.currentUser()),w=r.a.useBasicFetch((null===(t=k.data)||void 0===t?void 0:t.isAuthenticated)&&u.N.user(k.data.id)),L=r.a.useBasicFetch(c.x.availablePresentations(l.R.Subject)),C=r.a.useBasicFetch(c.x.presentation(l.R.Subject)),x=r.a.useBasicFetch(c.x.availablePresentations(l.R.Curriculum)),O=r.a.useBasicFetch(s.C.getUserPlaylists(new g.l)),N=r.a.useBasicFetch(d.o.mySubjectPreferences()),T=(0,m.T)().hasPermissions;a.useEffect((function(){var e,t,n,a;O.hasCompleted&&b!==!!(null===(t=null===(e=O.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&E(!!(null===(a=null===(n=O.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.length))}),[O.hasCompleted]);var S=k.hasCompleted&&w.hasCompleted&&L.hasCompleted&&x.hasCompleted&&C.hasCompleted&&O.hasCompleted&&N.hasCompleted&&null!==b,j=(0,p.r)(null).userSettings;return{getPathway:function(){var t,n,a,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.jobTitleOverride||(null===(a=null===(n=null===(t=w.data)||void 0===t?void 0:t.userProfile)||void 0===n?void 0:n.metadata)||void 0===a?void 0:a.jobTitle),l=i.preferredPresentationOverride||C.data;return S?o.m.getOnboardingPathway({jobTitle:r,userSettings:j.data,presentations:L.data,curriculums:x.data,preferredSubjects:N.data,preferredPresentation:l,appLink:v.O.getCurrentRoute().appLink,appLinks:e,masterUser:w.data,hasPlaylist:b,hasPermissions:T,currentUser:k.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:S}}},98364:(e,t,n)=>{n.d(t,{V:()=>r});var a=n(32735);const i={emoji:"d86p2"};function r(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:i.emoji},e.emoji),e.children)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(32735),i=n(92802),r=n(2102),o=n(83345),l=n(33936),c="shared.formButtons";function s(e){var t=(0,i.u6)(),n=(0,l.l)(t);return a.createElement(r.m,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(o.x,{namespace:c,phrase:e.isNew?"create":"save"}))}},38365:(e,t,n)=>{n.d(t,{n:()=>k,W:()=>w});var a=n(32735),i=n(80247),r=n(80130),o=n(92802),l=n(91967),c=n(1048),s=n(36848),d=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function u(e){var t=e.label,n=e.checkboxLabelClassName,i=e.checkboxLabelFontWeight,o=e.className,l=d(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(r.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(k,Object.assign({className:"form-check-input"},l)),a.createElement(r.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===i?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),p=n(83345),v=n(73814),g=n(35223);function f(e){var t=(0,o.u6)().values[e.fieldName];return"string"!=typeof t?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-secondary fw-normal"},t.length,"/",e.limit," characters")}const y={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n},E="shared.formField";function k(e){var t,n,r=e.children,s=e.showLoadingSpinner,d=b(e,["children","showLoadingSpinner"]),u=(t=a.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=u[0],v=u[1],f=l.q.isFunction(r)?function(e){return r(e)}:a.Children.count(r)?r:null;if("password"!==d.type)return s?a.createElement("div",{className:"position-relative"},a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize"])),f),a.createElement("div",{className:y.spinner},a.createElement(i.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize"])),f);var E="position-relative ".concat(y.passwordContainer);return d.className&&(E+=" ".concat(d.className)),d.disabled&&(E+=" ".concat(y.passwordContainerDisabled)),a.createElement("div",{className:E},a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize","type","className"]),{type:p,className:"".concat(y.passwordInput," border-0 w-100 h-100 outline-none rounded")}),f),"password"===d.type&&a.createElement(m.x,{svgName:"password"===p?g.vn.VisibleOn:g.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(y.revealPassword),onClick:function(){v("password"===p?"text":"password")}}))}function w(e){var t=e.label,n=e.className,i=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,d=e.infoTooltipPlacement,h=e.infoText,w=e.formSize,L=e.showOptionalLabel,C=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),x=(0,o.u6)(),O=x.errors,N=x.touched,T=function(){};if("checkbox"===C.type){var S=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(S.onChange=T),a.createElement(u,Object.assign({},S))}var j=Object.assign(Object.assign({},C),{className:v.w.getCustomFormControlClassName(O,N,C.name,w,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(j.onChange=T),a.createElement(r.Z.Group,{className:"form-group"},!!t&&a.createElement(r.Z.Label,{htmlFor:C.id,className:"d-flex align-items-center"},t,l&&a.createElement("span",{className:"text-danger"},"*"),s&&a.createElement(m.x,{className:"svg-container text-secondary ".concat(y.infoTooltip),svgName:g.vn.Info,title:s,tooltipPlacement:d,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-secondary"}," ",a.createElement(p.x,{namespace:E,phrase:"optional"})),!!i&&!!C.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(f,{fieldName:C.name,limit:C.maxLength}))),a.createElement(k,Object.assign({},j,{"aria-errormessage":"".concat(C.name,"Error")})),!!h&&a.createElement(r.Z.Text,{className:"text-secondary"},h),a.createElement(o.Bc,{name:C.name},(function(e){return a.createElement(r.Z.Control.Feedback,{id:"".concat(C.name,"Error"),type:"invalid",role:"status"},e)})))}k.defaultProps={autoComplete:"off"},w.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>d,n:()=>s});var a=n(32735),i=n(92802),r=n(91967),o=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,d=e.onSubmit,u=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=o.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(o.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(i.J9,Object.assign({enableReinitialize:!0},u,{initialValues:m,onSubmit:function(t,a){var i=a.setSubmitting,r=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;d(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&r(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=s[0],u=s[1];o(d,u)}i(!1)}))},initialStatus:p}),r.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function d(){return(0,i.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},75891:(e,t,n)=>{n.d(t,{C:()=>p});var a=n(32735),i=n(86073),r=n(54610),o=n(1164),l=n(67453),c=n(45778),s=n(75163);const d={imageStyle:"FFgf3",imageTypeResource:"z4O5p",fallBackImage:"Xy4zX"};var u={width:200,resizeType:r.Nq.Cover};function m(e){var t;return c.G.isResource(e)?e.metadata.type===o.L.Pdf||(null===(t=e.pdf)||void 0===t?void 0:t.url)?r.__.Pdf:r.__.Thumbnails:r.__.Link}function p(e){var t,n,p,v=null,g=0;c.G.isResource(e.resource)&&(v=e.resource.metadata,g=null!==(p=null===(n=null===(t=e.resource.thumbnail)||void 0===t?void 0:t.metadata)||void 0===n?void 0:n.rotation)&&void 0!==p?p:0);var f=function(e,t){var n,a,s,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,p=m(t);if("thumbnail"in t&&(null===(n=t.thumbnail)||void 0===n?void 0:n.url))return l.j.createUrl(null===(a=t.thumbnail)||void 0===a?void 0:a.url,Object.assign({},d));var v=i._.safeUrlConcat(e,"/v1/previews");return c.G.isResource(t)?p===r.__.Pdf?t.metadata.type===o.L.Pdf?l.j.createResourceImage(v,t.url,Object.assign({},d)):l.j.createResourceImage(v,null===(s=t.pdf)||void 0===s?void 0:s.url,Object.assign({},d)):t.metadata.type!==o.L.Zip?l.j.createUrl(t.url,{size:r.h2.Medium,resizeType:r.Nq.Cover}):"/images/zip-resource.png":l.j.createResourceImage(v,t.url,Object.assign({},d))}(e.imageCdnUrl,e.resource,e.dynamicRatioImageOptions);return a.createElement(s.Z,{data:f,imageType:m(e.resource),imageStyle:{transform:"rotate(".concat(g,"deg)")},alt:e.resource.name,errorFallbackImageSrc:e.imageErrorFallbackUrl,errorFallbackImageClassName:d.fallBackImage,imageClassName:(null==v?void 0:v.type)===o.L.Image?"".concat(d.imageTypeResource," ").concat(d.imageStyle):"",preload:e.preloadImage,preventLoad:!e.preloadImage})}},74696:(e,t,n)=>{n.d(t,{S:()=>s});var a=n(32735),i=n(68050),r=n(69111),o=n(9977),l=n(79967);const c={partialOptions:"Gufgq",partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function s(e){return a.createElement("div",{className:"mx-2"},Array(e.numVideos).fill(null).map((function(t,n){return a.createElement("div",{className:"d-flex",key:n},e.allowBulkActions&&a.createElement("div",{className:"form-check pe-3 pe-sm-2 mx-0 mx-md-2"}),a.createElement(d,Object.assign({},e)))})))}function d(e){var t=(0,l.k)(),n="sm"===o.O.getSize(t,"md"),s=e.withReordering&&!t.xs;return a.createElement(i.Z,{className:"".concat(n?"":"py-2"," flex-grow-1")},a.createElement(r.Z,Object.assign({},o.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(n?"pb-2 pe-1":"mb-1 pe-3 pe-md-2")}),a.createElement(i.Z,null,!!s&&a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a.createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),a.createElement(r.Z,{xs:o.O.getThumbnailColSize(s)},a.createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-3"," ").concat(c.partialThumbnail)})))),a.createElement(r.Z,Object.assign({},o.O.getDetailsColumns(),{className:n?"pb-2":"px-2"}),a.createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),a.createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)})))}s.defaultProps={numVideos:15}},76561:(e,t,n)=>{n.d(t,{L:()=>Za});var a=n(32735),i=n(91967),r=n(20354),o=n(110),l=n(49985),c=n(65858),s=n(83914),d=n(83345),u=n(54610),m=n(12778),p=n(67453),v=n(35223);const g={card:"TTPKV",avatar:"nF3tK",time:"lwnZl"};var f="shared.authorReviewerWidgetTemplate",y="MMMM D, YYYY";function h(e){if(!e.person)return a.createElement(a.Fragment,null);var t="".concat(g.card," h-100 rounded-2 d-flex flex-column"),n=m.o.getAuthorBlogUrl(e.person.blogSlug);return n?a.createElement("a",{href:n,target:"_blank",className:"".concat(t," no-decoration"),onClick:function(){l.k.logUserAction({id:e.person.id,firstName:e.person.firstName,lastName:e.person.lastName,imageId:e.person.imageId,blogUrl:n},{entity:c.py.Author,location:c.LZ.AuthorReviewerWidget,actionType:c.Vw.Click})}},e.children):a.createElement("div",{className:t},e.children)}function b(e){return e.person?a.createElement(h,{person:e.person},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"".concat(g.avatar," rounded-circle me-2 overflow-hidden")},a.createElement("img",{className:"img-fluid",src:p.j.getUrlById(e.imageCdnUrl,u.__.Avatars,e.person.imageId,u.h2.Small),alt:"".concat(e.person.firstName," ").concat(e.person.lastName)})),a.createElement("div",null,a.createElement("h2",{className:"h6 mb-0 fw-normal"},a.createElement(s.x,{className:"align-middle svg-container d-inline-block",svgName:"reviewer"===e.type?v.vn.Verified:v.vn.Edit}),"reviewer"===e.type?a.createElement("span",{className:"align-middle"},a.createElement(d.x,{namespace:f,phrase:"reviewedBy"})," ",e.person.firstName," ",e.person.lastName):a.createElement("span",{className:"align-middle"},a.createElement(d.x,{namespace:f,phrase:"authoredBy"})," ",e.person.firstName," ",e.person.lastName)),a.createElement("div",null,e.person.title))),a.createElement("p",{className:"mb-2 flex-grow-1"},e.person.bio),a.createElement("div",{className:g.time},"reviewer"===e.type?a.createElement(a.Fragment,null,a.createElement(d.x,{namespace:f,phrase:"reviewed"})," ",a.createElement("time",{dateTime:e.datePublished},o.O.format(e.datePublished,y))):a.createElement(a.Fragment,null,a.createElement(d.x,{namespace:f,phrase:"published"})," ",a.createElement("time",{dateTime:e.datePublished},o.O.format(e.datePublished,y))," • ",a.createElement(d.x,{namespace:f,phrase:"lastUpdated"})," ",a.createElement("time",{dateTime:e.lastUpdated},o.O.format(e.lastUpdated,y))))):a.createElement(a.Fragment,null)}function E(e){var t=e.content[0],n=t.reviewer,i=t.author,r=t.lastUpdated,o=t.datePublished;return i&&n?a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(b,{type:"author",person:i,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r})),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(b,{type:"reviewer",person:n,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r}))):a.createElement(a.Fragment,null)}function k(){return a.createElement("div",{className:"".concat(g.card," rounded-2")},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"partial-loading-background rounded-circle me-2 ".concat(g.avatar)}),a.createElement("div",{className:"w-75"},a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"90%",height:"21px"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"65%",height:"1rem"}}))),a.createElement("div",null,a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"100%",height:"1rem"}}),a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"75%",height:"1rem"}})),a.createElement("div",{className:"partial-loading-background",style:{width:"50%",height:"1rem"}}))}var w=n(5281),L=n(36848),C=n(7733),x=n(9085);var O=function(e){var t,n,i,r=p.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:u.h2.Medium}),o=(0,x.x)(e.data.name,C.o),l=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(i=e.data)||void 0===i?void 0:i.name}),s=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.CircleLogoSlidingListWidget,actionType:c.Vw.Click,entity:c.py.Company});return a.createElement(L.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:l,analyticsOptions:s},a.createElement("div",{className:"rounded-circle w-100 h-100 ".concat("vt0gx"," ").concat(o),style:{backgroundImage:"url(".concat(r,")")}}))},N=n(58704),T=n(40424);function S(e){var t;return a.createElement(w.k,{id:e.id,name:e.name,description:e.description,type:T.l9.Row,contents:N.z.Companies,collection:e.content,childComponent:O,extraChildComponentProps:{imageCdnUrl:e.imageCdnUrl},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var j=n(55827),D=n(79967);var P=n(47770),A=n(68050),I=n(69111),F=n(9513),M=n(92802),V=n(23481),R=n(98364),U=n(23201),H=n(38365),B=n(82644),G=n(10874),W=n(69883),Z=n(5173),_=Z.Ry().shape({feedbackInput:Z.Z_().max(5e3,(function(){return V.T.getPhrase("shared.feedbackForm","tooLong")}))});const z={promptContainer:"A_kCD",text:"UFm9h",form:"na9Vb"};function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function q(){q=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var r=t&&t.prototype instanceof y?t:y,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:O(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var m="suspendedStart",p="suspendedYield",v="executing",g="completed",f={};function y(){}function h(){}function b(){}var E={};s(E,o,(function(){return this}));var k=Object.getPrototypeOf,w=k&&k(k(D([])));w&&w!==n&&a.call(w,o)&&(E=w);var L=b.prototype=y.prototype=Object.create(E);function C(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,r,o,l){var c=u(e[i],e,r);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==Y(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function O(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===f)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=g,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=u(t,n,a);if("normal"===s.type){if(i=a.done?g:p,s.arg===f)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=g,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,i=t.iterator[a];if(i===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),f;var r=u(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,f;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(Y(t)+" is not iterable")}return h.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:h,configurable:!0}),h.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},C(x.prototype),s(x.prototype,l,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new x(d(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=D,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,f):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),f}},t}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var X=function(e,t,n,a){return new(n||(n=Promise))((function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function l(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))},K="shared.feedbackForm";function $(e){var t,n,r=(t=a.useState("prompt"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Q(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],l=r[1],c=(0,W.Z)();function s(t,n){return X(this,void 0,void 0,q().mark((function a(){return q().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.onSubmit({content:t.feedbackInput,type:"yes"===o?"positive":"negative"});case 3:l("done"),a.next=10;break;case 6:a.prev=6,a.t0=a.catch(0),l("prompt"),c.error(V.T.getPhrase(K,"error"));case 10:return a.prev=10,n({reset:!0}),a.finish(10);case 13:case"end":return a.stop()}}),a,null,[[0,6,10,13]])})))}return i.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:z.promptContainer},a.createElement("p",{className:"fw-semibold me-2 ".concat(z.text)},a.createElement(R.V,{emoji:"🔎"},a.createElement(d.x,{namespace:K,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(G.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:v.vn.ThumbsUp},a.createElement(d.x,{namespace:K,phrase:"yes"})),a.createElement(G.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:v.vn.ThumbsDown},a.createElement(d.x,{namespace:K,phrase:"no"})))):"yes"===o?a.createElement(B.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:_},a.createElement(M.l0,{className:z.form},a.createElement("p",{className:"fw-semibold ".concat(z.text)},a.createElement(R.V,{emoji:"👏"},a.createElement(d.x,{namespace:K,phrase:"happyFeedback"}))),a.createElement(H.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:V.T.getPhrase(K,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(d.x,{namespace:K,phrase:"back"})),a.createElement(U.A,{variant:"dark",submitText:V.T.getPhrase(K,"sendFeedback")})))):"no"===o?a.createElement(B.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:_},a.createElement(M.l0,{className:z.form},a.createElement("p",{className:"fw-semibold ".concat(z.text)},a.createElement(R.V,{emoji:"😢"},a.createElement(d.x,{namespace:K,phrase:"unhappyFeedback"}))),a.createElement(H.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:V.T.getPhrase(K,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(d.x,{namespace:K,phrase:"back"})),a.createElement(U.A,{variant:"dark",submitText:V.T.getPhrase(K,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(R.V,{emoji:"🙌"},a.createElement(d.x,{namespace:K,phrase:"thankYou"}))):a.createElement(a.Fragment,null):a.createElement(a.Fragment,null)}const J={imageContainer:"ZMjnx",image:"SsxEf",background:"MtcB3"};function ee(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(J.background," px-4 py-3 rounded-3 mb-3")},a.createElement("h2",{className:"h5"},e.name),a.createElement(A.Z,{as:"ul",className:"list-unstyled mb-2 w-100"},e.content.map((function(t){var n,i,r,o=p.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:u.h2.Small});return a.createElement(I.Z,{as:"li",key:t.id,xs:12,sm:6,lg:4},a.createElement(L.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat(J.imageContainer," me-2")},a.createElement("div",{className:"".concat(J.image," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),a.createElement("div",null,t.name)))})))),a.createElement($,{onSubmit:e.onSubmitFeedback}))}var te=n(98981),ne=n(88513),ae={actionType:c.Vw.Click,entity:c.py.Playlist,location:c.LZ.PlaylistListItem,descriptor:c._S.Cover};function ie(e){return a.createElement("div",null,a.createElement(ne.B,{name:e.name,description:e.description}),a.createElement(A.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(I.Z,{as:"li",key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(te.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===i?void 0:i.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),ae)}))}))))}var re=n(16450),oe=n(43741),le=n(55171),ce=n(78479),se=n(42308),de=n(87114);function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function me(e){return e.reduce((function(e,t){return e+((null==t?void 0:t.totalVideos)||0)}),0)}function pe(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function ve(e){var t,n,i,r=function(e,t){var n,a,i,r,o,l,c,s;return(null===(n=e.metadata)||void 0===n?void 0:n.appLink)===T.OL.ClassificationDirectory&&(null===(a=e.settings)||void 0===a?void 0:a.hasTopicDirectories)?{id:T.OL.ClassificationDirectory,name:"Explore all topics",cover:{url:p.j.createUrl(null===(r=null===(i=e.classification)||void 0===i?void 0:i.cover)||void 0===r?void 0:r.url,{size:u.h2.Small})},metadata:{backgroundColor:null===(l=null===(o=e.classification)||void 0===o?void 0:o.metadata)||void 0===l?void 0:l.backgroundColor}}:(null===(c=e.metadata)||void 0===c?void 0:c.appLink)===T.OL.ClassificationLatestReleases?{id:"classification-latest-releases",name:"All new releases",cover:{url:p.j.getUrlById(e.imageCdnUrl,u.__.Covers,e.metadata.imageId,u.h2.Medium)},totalVideos:me(t)}:(null===(s=e.metadata)||void 0===s?void 0:s.appLink)===T.OL.ExploreAllTopics?{id:"explore-all-topics",name:"Explore all subjects",cover:{url:p.j.createUrl(le.e.Images.STREAMABLE_TOPIC_COVER,{size:u.h2.Small})}}:void 0}(e,e.content),o=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===T.OL.ClassificationLatestReleases;return a.createElement(re.e,{id:e.id,collection:r?[r].concat((i=e.content,function(e){if(Array.isArray(e))return ue(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return ue(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ue(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,getChildAppLink:function(t){return function(t){var n,a,i,r,l,c,s,d;return t.id===T.OL.ClassificationDirectory?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationDirectory)||void 0===a?void 0:a.call(n,e.classification):t.id===T.OL.ExploreAllTopics?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.allTopics)||void 0===r?void 0:r.call(i,t):o?null===(c=null===(l=e.appLinks)||void 0===l?void 0:l.classificationLatestReleases)||void 0===c?void 0:c.call(l,t):null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===d?void 0:d.call(s,t)}(t)},childComponent:F.Vz,partialLoadingComponent:oe.Q,heading:e.name,headingAppLink:function(){var t,n,a;return e.classification&&de.i.isTopLevelTopic(e.classification)&&e.widgetTypeId===se.z.Classifications&&e.templateId===ce.f.CoverSlidingPillListSmall&&(null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationDirectory)||void 0===a?void 0:a.call(n,e.classification):null}(),getSubtitle:o?pe:void 0,description:e.description,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,childComponentProps:{highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,shouldHighlight:function(e){return e.id===T.OL.ClassificationDirectory}}})}var ge=n(65163),fe=n(98269),ye=n(1048),he=n(11607),be=n(17808),Ee=n(1287),ke=n(2102),we=n(83523),Le=n(92038),Ce="shared.subjectWidgetItem",xe=a.forwardRef((function(e,t){var n,i="px-3 d-flex flex-column justify-content-center",r="".concat(Le.Z.name," h6");return e.multiline?r+=" clamp-3":(i+=" text-nowrap",r+=" text-truncate"),"hidden"===(null===(n=e.style)||void 0===n?void 0:n.visibility)?a.createElement("div",{ref:t,className:"d-flex align-items-center position-relative clamp-2 ".concat(Le.Z.widgetItem," ").concat(Le.Z.draggingItem),style:ye.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(Le.Z.widgetItem),style:ye.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(Le.Z.dragHandle," ms-3 d-flex justify-content-center align-items-center \n ").concat(e.isDragging?"cursor-grabbing":"cursor-grab"," ").concat(e.isVisible?"":"text-secondary","\n ")},e.dragAttributes,e.dragListeners),a.createElement(s.x,{svgName:v.vn.Hamburger})),a.createElement("div",{className:i},a.createElement("label",{htmlFor:e.data.id,className:"".concat(r," ").concat(e.isVisible?"":"text-secondary"," mb-0")},e.data.name)),a.createElement("div",{className:"ms-auto me-3"},a.createElement(we.Z,{id:e.data.id,on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?V.T.getPhrase(Ce,e.isVisible?"hideFromDashboard":"showOnDashboard"):V.T.getPhrase(Ce,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),Oe=n(91028),Ne=n(16714),Te=n(54569),Se=n(49542);function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function De(){De=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var r=t&&t.prototype instanceof y?t:y,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:O(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var m="suspendedStart",p="suspendedYield",v="executing",g="completed",f={};function y(){}function h(){}function b(){}var E={};s(E,o,(function(){return this}));var k=Object.getPrototypeOf,w=k&&k(k(D([])));w&&w!==n&&a.call(w,o)&&(E=w);var L=b.prototype=y.prototype=Object.create(E);function C(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,r,o,l){var c=u(e[i],e,r);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==je(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function O(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===f)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=g,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=u(t,n,a);if("normal"===s.type){if(i=a.done?g:p,s.arg===f)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=g,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,i=t.iterator[a];if(i===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),f;var r=u(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,f;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(je(t)+" is not iterable")}return h.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:h,configurable:!0}),h.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},C(x.prototype),s(x.prototype,l,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new x(d(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=D,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,f):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),f}},t}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ae(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Ie="shared.editableCoverFixedPillListSmall";function Fe(e){var t,n=Pe(a.useState(!1),2),i=n[0],r=n[1],o=Pe(a.useState(!1),2),s=o[0],u=o[1],m=Se.d.useGetContent(e.content,e.widgetTypeId,e.isPreviewing,e.preferences).unfilteredContent,p=a.useMemo((function(){return m.every((function(e){var t,n;return!(null===(n=null===(t=e.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)}))}),[m]),v=a.useMemo((function(){var e;return null!==(e=null==m?void 0:m.reduce((function(e,t,n){var a,i,r={id:t.id,hidden:!(null===(i=null===(a=t.followers)||void 0===a?void 0:a.data)||void 0===i?void 0:i.length)&&!p,index:n};return e[t.id]=r,e}),{}))&&void 0!==e?e:{}}),[e.preferences,p]),g=Pe(a.useState(v),2),f=g[0],y=g[1],h=Pe(a.useState(v),2),b=h[0],E=h[1],k=a.useMemo((function(){return i?m.filter((function(e){return!!b[e.id]})).sort((function(e,t){return b[e.id].index-b[t.id].index})):m.filter((function(e){var t;return!!f[e.id]&&!(null===(t=f[e.id])||void 0===t?void 0:t.hidden)})).sort((function(e,t){return f[e.id].index-f[t.id].index}))}),[m,b,f,i]),w=(0,W.Z)();a.useEffect((function(){r(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var L=a.useMemo((function(){return!(i||!k.length)&&Object.values(b).some((function(e){return e.hidden}))}),[i,b]);function C(e){return b[e.id]?b[e.id].index:k.findIndex((function(t){return t.id===e.id}))}function x(e){var t;return!(null===(t=b[e.id])||void 0===t?void 0:t.hidden)}function O(e){var t=Object.assign({},b),n=x(e);t[e.id]={id:e.id,hidden:n,index:C(e)},l.k.logUserAction({id:e.id,name:e.name},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Hide,descriptor:n?c.DL.On:c.DL.Off}),E(t)}var N=a.useMemo((function(){return!ye.t.isEqual(v,b)}),[v,b]),T={id:e.presentation.id,name:V.T.getPhrase(Ie,"exploreAll",{name:e.presentation.name}),cover:e.presentation.cover,metadata:{backgroundColor:de.i.getMappedPresentationBackgroundColourCode(e.presentation.learningLevel)}},S=e.availablePresentations?e.availablePresentations.filter((function(t){var n;return t.id!==(null===(n=e.presentation)||void 0===n?void 0:n.id)})).map((function(e){return{id:e.id,name:V.T.getPhrase(Ie,"changeTo",{name:e.name}),cover:e.cover,vanitySlug:e.vanitySlug,description:e.description,metadata:{backgroundColor:de.i.getMappedPresentationBackgroundColourCode(e.learningLevel)}}})):[],j=!i&&S.length>0&&e.settings.hasTopicDirectories,D=e.hasLocalPermissions(Ne.E.ManageDiscoverPreferences),P=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.EditableSubjectPreferencesWidget});return k.length?a.createElement("div",null,a.createElement("div",{className:"d-flex flex-wrap align-items-center justify-content-between"},a.createElement("div",{className:"col"},a.createElement("div",{className:"d-flex justify-content-between w-100 no-wrap flex-row mb-2"},a.createElement("h2",{className:"h4 mb-0 align-self-end flex-shrink-0"},i?V.T.getPhrase(Ie,"updating"):e.name),!i&&D&&a.createElement(he.L,{className:"hover-text-underline",onClick:function(){return r(!0)}},V.T.getPhrase(Ie,"edit"))),!!e.description&&!i&&a.createElement("p",{className:"text-truncate description mb-2"},e.description),i&&a.createElement("p",{className:"description mb-2"},a.createElement(d.x,{namespace:Ie,phrase:"editingDescription"}))),i&&D&&a.createElement("div",{className:"d-flex align-items-start"},a.createElement(fe.Z,{variant:"link",className:"me-2",onClick:function(){E(f),r(!1)}},a.createElement(d.x,{namespace:Ie,phrase:"cancel"})),a.createElement(ke.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,i=De().mark((function t(){var n;return De().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u(!0),n=p?m.map((function(e,t){return{id:e.id,hidden:!0,index:t}})):Object.values(f),e.updatePreferences(e.id,e.widgetTypeId,n,Object.values(b)).then((function(){y(b),u(!1),r(!1)})).catch((function(){u(!1),w.error(V.T.getPhrase(Ie,"error"))}));case 3:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,r){function o(e){try{c(i.next(e))}catch(e){r(e)}}function l(e){try{c(i.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,l)}c((i=i.apply(t,n||[])).next())}));var t,n,a,i},showSpinner:s,disabled:!N},a.createElement(d.x,{namespace:Ie,phrase:"update"})))),a.createElement(A.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},L&&a.createElement(I.Z,{as:"li",className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(Oe.V,{data:T,getChildAppLink:function(){var t,n;return null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.allTopics)||void 0===n?void 0:n.call(t,e.presentation.id)},analyticsData:e.analyticsData,analyticsOptions:P,multiline:!0,highlightOnHover:e.settings.hasTopicDirectories,shouldHighlight:function(){return e.settings.hasTopicDirectories}})),a.createElement(be.Q,{ids:k.map((function(e){return e.id})),getDragOverlay:function(e){var t=k.find((function(t){return t.id===e}));return a.createElement("div",{className:"bg-white rounded-3 ".concat("K1Ce4")},a.createElement(xe,{data:t,onToggleVisibility:O,isVisible:x(t),isDragging:!0,canToggle:!x(t)||Object.values(b).filter((function(e){return!e.hidden})).length>1}))},onSortStart:function(e){var t=k.find((function(t){return t.id.toString()===e.active.id.toString()})),n=k.findIndex((function(t){return t.id.toString()===e.active.id.toString()}));l.k.logUserAction({id:t.id,name:t.name,index:n},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=C({id:t.id}),i=k.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==i){var r=k[a];if(r){var o=Object.assign({},b);Te.l.reorder(k,a,i).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!x(e)}})),E(o),l.k.logUserAction({id:r.id,name:r.name,oldIndex:a,newIndex:i},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Complete})}}},vertical:!1},k.map((function(t){return a.createElement(I.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(a.Fragment,null,i?a.createElement(Ee.W,{id:t.id,childComponent:xe,childProps:{data:t,onToggleVisibility:O,isVisible:x(t),isDragging:!1,canToggle:!x(t)||Object.values(b).filter((function(e){return!e.hidden})).length>1,multiline:!0}}):a.createElement(Oe.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:P,multiline:!0,highlightOnHover:e.settings.hasTopicDirectories,showNewVideosCount:e.settings.hasTopicDirectories})))}))),j&&S.map((function(t){return a.createElement(I.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(Oe.V,{data:t,getChildAppLink:function(){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===a?void 0:a.call(n,t.id)},getChildAppLinkOptions:function(){return{middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}}},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationId:t.id,presentationDescription:t.description}),analyticsOptions:Object.assign(Object.assign({},P),{entity:c.py.Presentation}),multiline:!0,highlightOnHover:!0,shouldHighlight:function(){return e.settings.hasTopicDirectories}}))})))):a.createElement(a.Fragment,null)}var Me=n(11518),Ve=n(56752),Re=n(73679);const Ue={dateItemContainer:"Hrx2m",container:"k2Xse"};var He=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function Be(e){return a.createElement("div",{className:"".concat(Ue.container," position-relative flex-shrink-0 ").concat(e.theme.backgroundSecondary)},a.createElement(L.F,{appLink:e.getAppLink(e.data),className:"text-decoration-none my-2 mx-1 rounded-3 d-block position-relative",analyticsData:e.analyticsData(e.data),analyticsOptions:e.analyticsOptions},a.createElement(Ve.X,{isHovering:!1,date:new Date(e.data.startDate),notCurrentMonth:!1,monthQuery:null,eventsOnDay:[e.data],events:[e.data],sliderStep:0,presentationId:e.data.content.presentationId,hoveredEvent:null,isMultiEventDate:!1,className:"rounded-3",getBackgroundColor:e.getBackgroundColor,getIconUrl:e.getIconUrl,hasInitialized:!0,responsiveText:!1,hideDay:!0})))}function Ge(e){var t=e.data,n=He(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Ue.container," ").concat(Ue.dateItemContainer," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(Re.s,{month:t.month,body:t.body,label:t.label,getAppLink:function(){return e.getAppLink(t)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{label:t.label,month:t.month,body:t.body.text}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Url,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget}),className:"my-2 mx-1",theme:e.theme})):"Livestream"===t.type?a.createElement(Be,Object.assign({},n,{data:t,getBackgroundColor:function(e){var t;return null===(t=e.company.metadata)||void 0===t?void 0:t.colour},getIconUrl:function(e){var t;return null===(t=e.company.logo)||void 0===t?void 0:t.url},analyticsData:function(t){return Object.assign(Object.assign({},e.analyticsData),{id:t.content.id,name:t.content.name,startDateTime:t.content.startDateTime,endDateTime:t.content.endDateTime})},analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.SpecialEvent,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget})})):a.createElement(Be,Object.assign({},n,{data:t,getBackgroundColor:function(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.backgroundColor},getIconUrl:function(e){return function(e){var t;return p.j.createUrl(null===(t=e.icon)||void 0===t?void 0:t.url,{size:u.h2.Small})}(e)},getHardCodedEvent:function(e){return le.e.SpecialEvents[e.id]},analyticsData:function(t){return Object.assign(Object.assign({},e.analyticsData),{id:t.specialEventId,name:t.name,startDate:t.startDate,endDate:t.endDate,classificationId:t.content.id,classificationName:t.content.name})},analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.SpecialEvent,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget})}))}function We(e){return function(e){if(Array.isArray(e))return _e(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ze(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e,t){if(e){if("string"==typeof e)return _e(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_e(e,t):void 0}}function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var ze=V.T.encloseNamespace("widgets.eventIconSlidingList");function Ye(e){var t,n,i=a.useMemo((function(){return function(e,t){var n=We(t===T.VH.Livestream?e.map((function(e){return{id:e.id,startDate:o.O.format(e.startDateTime,"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}})):e).sort((function(e,t){return e.startDate.localeCompare(t.startDate)})),a=new Date,i=o.O.format(a,"YYYY-MM-DD"),r=o.O.format(o.O.add(i,1,"day"),"YYYY-MM-DD"),l=o.O.format(o.O.add(o.O.startOf(a,"week"),8,"days"),"YYYY-MM-DD"),c=o.O.format(o.O.add(l,6,"days"),"YYYY-MM-DD"),s=o.O.format(o.O.startOf(a,"month"),"YYYY-MM-DD"),d=o.O.format(o.O.endOf(a,"month"),"YYYY-MM-DD"),u=o.O.format(o.O.startOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),m=o.O.format(o.O.endOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),p=o.O.format(o.O.startOf(o.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),v=o.O.format(o.O.endOf(o.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),g=new Map;function f(e){if(g.has(e.group)){var t=g.get(e.group);g.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(We(t.events),[e.event])}))}else g.set(e.group,{events:[e.event],label:e.label,body:e.body,monthLabel:e.monthLabel,startDate:e.startDate,endDate:e.endDate})}n.forEach((function(e){if(e.startDate<=i)f({group:"today",startDate:i,endDate:null,event:e,body:{text:o.O.format(i,"DD"),type:"day"},monthLabel:o.O.format(i,"MMMM"),label:ze("today")});else if(e.startDate!==r)if(e.startDate>r&&e.startDate<l){var t=o.O.format(e.startDate,"dddd");f({group:t,startDate:e.startDate,endDate:e.endDate,event:e,monthLabel:o.O.format(e.startDate,"MMMM"),body:{text:o.O.format(e.startDate,"DD"),type:"day"},label:t})}else e.startDate>=l&&e.startDate<=c?f({group:"nextWeek",startDate:l,endDate:c,event:e,monthLabel:o.O.isSame(l,c,"month")?o.O.format(l,"MMMM"):"".concat(o.O.format(l,"MMM")," - ").concat(o.O.format(c,"MMM")),body:{text:"".concat(o.O.format(l,"DD"),"-").concat(o.O.format(c,"DD")),type:"range"},label:ze("nextWeek")}):e.startDate>=s&&e.startDate<=d?f({group:"thisMonth",startDate:s,endDate:d,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:ze("thisMonth")}):e.startDate>=u&&e.startDate<=m?f({group:"nextMonth",startDate:u,endDate:m,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:ze("nextMonth")}):e.startDate>=p&&e.startDate<=v&&f({group:"later",startDate:p,endDate:v,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:ze("later")});else f({group:"tomorrow",startDate:r,endDate:null,event:e,body:{text:o.O.format(r,"DD"),type:"day"},monthLabel:o.O.format(e.startDate,"MMMM"),label:ze("tomorrow")})}));var y,h=[],b=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ze(e))){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw r}}}}(g.values());try{for(b.s();!(y=b.n()).done;){var E=y.value,k={label:E.label,body:E.body,month:E.monthLabel,appLinkMonth:o.O.format(E.startDate,"MMMM"),appLinkYear:o.O.format(E.startDate,"YYYY"),type:"date-widget-item"};h.push(k),E.events.forEach((function(e){h.push(e)}))}}catch(e){b.e(e)}finally{b.f()}return h}(e.content,e.contentType)}),[e.content]),r=e.contentType===T.VH.Livestream?{background:"bg-light-green",border:"border-light-green",backgroundSecondary:"bg-light-blue"}:{background:"bg-light-blue",border:"border-light-blue",backgroundSecondary:"bg-light-yellow"};return a.createElement(Me.kM,{id:e.id,name:e.name,description:e.description,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.calendar)||void 0===n?void 0:n.call(t),type:T.l9.Row,contents:N.z.SpecialEvents,getChildAppLink:function(t){var n,a,i,r,o,l;return"date-widget-item"===t.type?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.calendarMonth)||void 0===a?void 0:a.call(n,t.appLinkMonth,t.appLinkYear):"Livestream"===t.type?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.livestream)||void 0===r?void 0:r.call(i,t.content):null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,t.content)},collection:i,childComponent:Ge,extraChildComponentProps:{theme:r},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,prefetched:!0})}var qe=n(39202),Qe=n(84591),Xe=n(49439);function Ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var $e=a.memo((function(e){var t,n,i=e.data,r=e.subTextAppLink,o=e.context,l=e.thumbnailSize,c=e.preloadImage,s=(t=(0,Xe.L)({className:"x7nyG",style:{transform:"scale(".concat((null==o?void 0:o.type)===T.l9.LargeRow?1.1:1.15,")")}}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Ke(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ke(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=s[0],u=s[1];a.useEffect((function(){e.onHover(u)}),[u]);var m="eo8oY";return o.type===T.l9.LargeRow&&(m="lhqxB"),a.createElement("div",{ref:d,className:"px-1 flex-shrink-0 position-relative ".concat(m," ").concat("A7FeL")},a.createElement(Qe.u,{video:i,type:"expandable",appLink:e.getAppLink(i),subTextAppLink:r,imageOptions:{size:l},preload:c,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,hovering:u,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,isPlugin:e.isPlugin}))}));const Je="eSMIx",et="layDP";function tt(e){var t,n,i=Se.d.getCustomAppLink(e),r=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?p.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Medium):"";return a.createElement("div",null,a.createElement(L.F,{appLink:i,style:r?{backgroundImage:"url(".concat(r,")")}:{},className:"".concat(Je," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":et),analyticsData:{url:qe.C$.getHref(i)},analyticsOptions:{actionType:c.Vw.Click,entity:c.py.Url,location:c.LZ.ContentUpdatesBanner}},a.createElement("h2",{className:"h4 text-white mb-0"},e.name)),a.createElement(w.k,{id:e.id,type:T.l9.Row,contents:N.z.Videos,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},collection:e.content,childComponent:$e,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,seriesAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.series},hideBleedingContent:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var nt=n(81993);const at={rowWidth:"TzZuL"};function it(e){return a.createElement(L.F,{appLink:e.getAppLink(e.data),className:"".concat(at.rowWidth," ").concat(e.ratingsLength>4?"":4===e.ratingsLength?"col-4 col-md-3":"col"," position-relative flex-shrink-0 px-1 mt-1 text-decoration-none"),analyticsData:Object.assign(Object.assign({},e.analyticsData),{code:e.data.code,id:e.data.id}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Rating,actionType:c.Vw.Click,location:c.LZ.FilterSlidingPillListSmallWidget})},a.createElement("div",{className:"".concat(nt.u.mapRatingToClass(e.data.value)," py-3 rounded-3")},a.createElement("div",{className:"d-flex justify-content-center align-items-center text-white text-shadow"},a.createElement(s.x,{svgName:v.vn.Search,size:s.S.Medium}),a.createElement("h4",{className:"mb-0"},e.data.code))))}var rt=n(72639);function ot(e){var t,n=(t=e.presentation,de.i.getMappedPresentationLevel(t.learningLevel)===rt.p.Level_1?64:128),i=e.content.filter((function(e){return e.code&&e.value<n}));return a.createElement(a.Fragment,null,a.createElement(w.k,{id:e.id,name:e.name,description:e.description,type:T.l9.Row,contents:N.z.Ratings,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.rating)||void 0===a?void 0:a.call(n,t,i)},collection:i,childComponent:it,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,extraChildComponentProps:{ratingsLength:i.length},prefetched:!0}))}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ct(e){return a.createElement("div",{className:"curated-widget-header"},a.createElement("h2",{className:"curated-widget-heading"},e.name),!!e.description&&a.createElement("p",{className:"description curated-widget-description"},e.description))}var st,dt,ut,mt=n(75896);function pt(e){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pt(e)}function vt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=pt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=pt(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6"}(st||(st={})),function(e){e.Dark="dark",e.White="white"}(dt||(dt={})),function(e){e.NewWindow="new-window",e.TopicDirectory="topic-directory",e.TopicNewReleases="topic-new-releases",e.CuratedTopic="curated-topic"}(ut||(ut={})),st.H1,st.H2,st.H3,st.H4,st.H5,st.H6,dt.Dark,dt.White,ut.NewWindow;var gt=vt(vt(vt(vt({},ut.NewWindow,v.vn.NewWindow),ut.TopicDirectory,v.vn.Grid),ut.TopicNewReleases,v.vn.Sparkle),ut.CuratedTopic,v.vn.Rectangles),ft=vt(vt(vt(vt(vt(vt(vt(vt({},st.H1,"h1"),st.H2,"h2"),st.H3,"h3"),st.H4,"h4"),st.H5,"h5"),st.H6,"h6"),dt.Dark,"text-dark"),dt.White,"text-white");const yt={banner:"MQAsk",bannerImage:"Sk9ox"};function ht(e){var t,n;if(!(null===(t=e.cta)||void 0===t?void 0:t.text))return a.createElement("div",null);var i="btn btn-outline-dark text-nowrap me-3";return(null===(n=e.cta)||void 0===n?void 0:n.icon)?a.createElement(G.h,{svgName:gt[e.cta.icon],className:i,openInNewTab:!0},e.cta.text):a.createElement("div",{className:i},e.cta.text)}function bt(e){return a.createElement(L.F,{appLink:e.appLink,className:"text-decoration-none",analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(yt.banner)},a.createElement("div",{className:"".concat(yt.bannerImage," d-flex justify-content-between align-items-center"),style:e.style},!!e.heading&&a.createElement("div",{className:"d-flex align-items-center ps-3 h-100"},a.createElement("h2",{className:"text-white text-shadow h4 clamp-1"},e.heading)),a.createElement(ht,{cta:e.cta}))))}function Et(e){var t,n,i,r=mt.m.first(e.content),o=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.Classification,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Banner});return a.createElement(bt,{heading:e.name,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,r),analyticsData:e.analyticsData,analyticsOptions:o,style:{backgroundImage:"url('".concat(p.j.createBannerUrl(r.banner,{fallbackBaseUrl:"",fallbackCategoryName:r.name,type:u.__.Banners},{size:u.h2.Large}),"')"),backgroundSize:"100%"},cta:null===(i=e.metadata)||void 0===i?void 0:i.cta})}function kt(e){return a.createElement(Et,Object.assign({},e))}const wt="iCyo4",Lt="cgv_6";function Ct(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(Lt)}))}const xt={cta:"nA9th",banner:"b5ljD",bannerImage:"dj_1H",blurb:"UBcVE",presentations:"fGBlR",bannerContent:"lkPfM"};function Ot(e){var t,n,i,r=ft[(null===(t=e.metadata.theming)||void 0===t?void 0:t.headingSize)||st.H6],o=ft[(null===(n=e.metadata.theming)||void 0===n?void 0:n.headingColor)||dt.Dark];return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(xt.banner)},a.createElement("div",{className:"".concat(xt.bannerImage," ").concat(xt.blurb," d-flex"),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(xt.bannerContent," ").concat(e.widgetTypeId===se.z.Blurb?xt.blurb:""," d-flex justify-content-between w-100 px-3")},a.createElement("p",{className:"".concat(r," ").concat(o," mb-0")},e.name),(null===(i=e.metadata.cta)||void 0===i?void 0:i.text)&&a.createElement(G.h,{svgName:v.vn.NewWindow,className:"btn btn-dark text-nowrap",href:e.metadata.cta.href,openInNewTab:!0},e.metadata.cta.text))))}function Nt(e){var t=e.hasPermissions(Ne.C.ManageSubjectPreferences)||e.hasLocalPermissions(Ne.E.ManagePublicPresentation);function n(t){var n,i,r={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),l=Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Presentation,actionType:c.Vw.Click,location:c.LZ.HeroBannerSmallWidget});return a.createElement(L.F,{className:"info-link d-inline",appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===i?void 0:i.call(n),appLinkOptions:r,analyticsData:o,analyticsOptions:l},t.name)}var i=e.name;return t?a.createElement("div",{className:"banner rounded-3 position-relative ".concat(xt.banner)},a.createElement("div",{className:"".concat(xt.bannerImage," ").concat(xt.presentations),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},i&&a.createElement("div",{className:"".concat(xt.bannerContent," ").concat(xt.presentations," px-3")},a.createElement("p",{className:"h6 mb-0"},i," ",1===e.content.length?n(e.content[0]):2===e.content.length?a.createElement(a.Fragment,null,n(e.content[0])," or ",n(e.content[1])):a.createElement(a.Fragment,null,e.content.slice(0,e.content.length-1).map((function(e){return a.createElement(a.Fragment,{key:e.id},n(e),", ")})),"or ",n(mt.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function Tt(e){switch(e.widgetTypeId){case se.z.Blurb:return a.createElement(Ot,Object.assign({},e));case se.z.Presentations:return a.createElement(Nt,Object.assign({},e));default:return a.createElement(Et,Object.assign({},e))}}function St(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(xt.banner)},a.createElement("div",{className:"".concat(xt.bannerContent)}))}function jt(e){var t,n,i=mt.m.first(e.content),r=(0,D.k)(),o=Object.assign(Object.assign({},e.analyticsData),{id:i.id,name:i.name,presentationId:i.presentationId}),l=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail});return a.createElement(bt,{heading:e.name,appLink:function(){var t,n,a,r,o,l,c,s;switch(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.appLink){case T.NK.TopicDirectory:return null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.classificationDirectory)||void 0===r?void 0:r.call(a,i);case T.NK.CuratedTopic:return null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,i);case T.NK.TopicNewReleases:return null===(s=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===s?void 0:s.call(c,i)}return null}(),analyticsData:o,analyticsOptions:l,style:{backgroundColor:null===(t=i.metadata)||void 0===t?void 0:t.backgroundColor,backgroundSize:"100%"},cta:r.xs?null:null===(n=e.metadata)||void 0===n?void 0:n.cta})}function Dt(e){var t,n,i,r,o,l,s=mt.m.first(e.content),d=p.j.createUrl(null===(t=s.thumbnail)||void 0===t?void 0:t.url,{size:u.h2.Medium}),m=null===(n=s.metadata)||void 0===n?void 0:n.backgroundColor,v={backgroundColor:m,backgroundSize:"50%"};d&&(v.backgroundImage="url('".concat(d,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:s.id,name:s.name,presentationId:s.presentationId}),f=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail});return d&&m?a.createElement(bt,{heading:e.name,appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,s),analyticsData:g,analyticsOptions:f,style:v,cta:Object.assign({text:V.T.getPhrase("shared.heroThumbnailSmall","buttonLabel")},null!==(l=null===(o=e.metadata)||void 0===o?void 0:o.cta)&&void 0!==l?l:{})}):a.createElement(Tt,Object.assign({},e))}var Pt=n(45716),At=n(2158),It=n(38304),Ft={HIGH:.75,MODERATE:.5};const Mt={circleContainer:"p8Vgz",backgroundCircle:"asGGE",circleSuccess:"PXLNj",circleWarning:"ZckRN",circleDanger:"slBRg",lgCircleContainer:"N8KCI",pendingCircle:"DKrcq",centredPercentageText:"tpmLR"};var Vt,Rt,Ut=2,Ht=5.8,Bt=.2,Gt=.36;function Wt(e){var t=e===Vt.Large?Ht:Ut,n=e===Vt.Large?Gt:Bt;return"".concat(t/2-2*n,"rem")}function Zt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ft;return e>=t.HIGH?Mt.circleSuccess:e>=t.MODERATE?Mt.circleWarning:Mt.circleDanger}function _t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ft;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function zt(e,t){var n="d-inline-block ".concat(Mt.circleContainer);return e===Vt.Large&&(n+=" ".concat(Mt.lgCircleContainer)),Yt(t)&&(n+=" ".concat(Mt.pendingCircle)),n}function Yt(e){return"number"!=typeof e}function qt(e){var t=a.useCallback((function(t){if(t){var n=t.r.baseVal.value,a=2*Math.PI*n,i=a-e.percentage*a;t.style.strokeDasharray="".concat(a," ").concat(a),t.style.strokeDashoffset=i.toString()}}),[e.percentage]);return a.createElement("svg",null,a.createElement("circle",{r:Wt(e.size),className:Mt.backgroundCircle}),!Yt(e.percentage)&&a.createElement("circle",{ref:t,r:Wt(e.size),className:Zt(e.percentage,e.scoreThresholds)}))}function Qt(e){var t,n,i=function(e){if(!Yt(e))return+e.toFixed(2)}(e.percentage),r=e.layout===Rt.LabelInside?Vt.Large:Vt.Small,o=e.customLabel||(Yt(n=i)?"--%":"".concat(Math.round(100*n),"%"));return e.layout===Rt.LabelOnly?a.createElement("span",{className:_t(i)},o):a.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===Rt.LabelBefore&&a.createElement("span",{className:"me-2"},o),a.createElement("div",{className:zt(r,i)},a.createElement(qt,{percentage:i,size:r,scoreThresholds:e.scoreThresholds}),e.layout===Rt.LabelInside&&a.createElement("span",{className:Mt.centredPercentageText},o)))}!function(e){e.Small="small",e.Large="large"}(Vt||(Vt={})),function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(Rt||(Rt={})),Qt.defaultProps={layout:Rt.CircleOnly};var Xt=n(64818);var Kt="widgets.onboardingSteps",$t=V.T.encloseNamespace(Kt);function Jt(e){var t,n,i,r,o,l,u,m,p=(0,At.T)(null!==(i=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.onboardingAppLinks)||void 0===n?void 0:n.call(t))&&void 0!==i?i:{}),g=p.getPathway,f=p.hasLoadedPathway,y=f&&g(),h=Xt.l.isKDM(e.jobTitle);if(function(){var t,n;return!(e.isPreviewing||f&&!(null===(t=e.settings)||void 0===t?void 0:t.hasCompletedOnboardingV2)&&(null===(n=e.settings)||void 0===n?void 0:n.hasOnboardingV2)&&e.hasPermissions(Ne.C.ViewOnboarding)&&!y.hasCompletedAllSteps)}())return a.createElement("div",{className:"mb-n3"});var b=function(){if(e.isPreviewing)return{};var t=Pt.H[y.currentScreen],n=y.screens[y.currentScreen],a=null==n?void 0:n.next,i=null==n?void 0:n.previous;return Object.assign({currentScreen:null==t?void 0:t.id,nextScreen:a,previousScreen:i,progress:It.m.getProgress(y)},It.m.getOnboardingScreenStates(y))}(),E=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=It.m.getProgress(y);return 0===t.overallPercentage?Object.assign(Object.assign({},t),{overallPercentage:10}):t}(),k=E.overallPercentage,w=E.totalScreens,C=E.currentStepNumber;return a.createElement("div",{className:"rounded-3 bg-light-yellow border border-2 border-dark position-relative d-flex align-items-center ".concat("QU4re")},a.createElement("div",{className:"".concat("zmH98")},a.createElement("div",{className:"T9LAC"},a.createElement(Qt,{percentage:Math.round(k)/100,layout:Rt.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(r=Pt.H["select-videos"])||void 0===r?void 0:r.getWidgetHeading(h):null===(o=Pt.H[y.currentScreen])||void 0===o?void 0:o.getWidgetHeading(h)),a.createElement("div",{className:"dTKo5"},a.createElement(s.x,{svgName:v.vn.ArrowRight,className:"svg-container me-1"}),a.createElement("p",{className:"ypP5M"},function(e,t,n,a){var i=Pt.H[e];return t===n?"".concat($t("lastStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):1===t?"".concat($t("firstStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):"".concat($t("descriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a))}(e.isPreviewing?"select-videos":y.currentScreen,C,w,h))))),a.createElement("div",{className:"align-items-center justify-content-end h-100 ".concat("w05om"),style:{backgroundImage:"url('".concat(null===(l=e.imageUrls)||void 0===l?void 0:l.onboardingTeacherBackground,"')")}},a.createElement(L.F,{appLink:null===(m=null===(u=e.appLinks)||void 0===u?void 0:u.onboardingStep)||void 0===m?void 0:m.call(u,y.currentScreen),className:"btn btn-dark btn-lg ".concat("CHWcH"),analyticsData:b,analyticsOptions:{actionType:c.Vw.Click,entity:c.py.User,location:c.LZ.OnboardingStepsWidget,descriptor:c.Ix.FinishPersonalising}},a.createElement(d.x,{namespace:Kt,phrase:"completeSetup"}))))}function en(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}var tn=n(17082),nn=n(31908),an=n(80835);function rn(e){var t,n,i,r,o,l,c,s,d,u,m,p,v=tn.u[e.widgetTypeId],g=Se.d.getVideoContent(e.content);return a.createElement(w.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:T.l9.LargeRow,contents:N.z.Videos,collection:g,childComponent:an.U,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.subText,imageCdnUrl:e.imageCdnUrl,yearGroups:e.yearGroups,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(o=e.metadata)||void 0===o?void 0:o.hideObjectSeries,companyLogoFallbackUrl:e.companyLogoFallbackUrl,showVideoGuidance:nn.M.showVideoGuidance(e.hasPermissions),subTextType:e.subTextType,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,getResourceGuidanceAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.resourceGuidance,getInteractiveGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.interactiveGuidance},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null!==(u=null===(d=v.getCollectionAppLink)||void 0===d?void 0:d.call(v,e.appLinks,e.content))&&void 0!==u?u:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.widgetVideoList)||void 0===p?void 0:p.call(m,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId})}function on(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}function ln(e){var t,n,i,r,o,l,c,s,d,u,m,p,v=tn.u[e.widgetTypeId],g=Se.d.getVideoContent(e.content);return a.createElement(w.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:T.l9.Row,contents:N.z.Videos,collection:g,childComponent:an.U,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.subText,imageCdnUrl:e.imageCdnUrl,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(o=e.metadata)||void 0===o?void 0:o.hideObjectSeries,yearGroups:e.yearGroups,showVideoGuidance:nn.M.showVideoGuidance(e.hasPermissions),companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,preventPopout:e.preventPopout,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,getResourceGuidanceAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.resourceGuidance,getInteractiveGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.interactiveGuidance},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null!==(u=null===(d=v.getCollectionAppLink)||void 0===d?void 0:d.call(v,e.appLinks,e.content))&&void 0!==u?u:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.widgetVideoList)||void 0===p?void 0:p.call(m,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId})}const cn={largeSeriesItem:"HZ00X",smallSeriesItem:"PQ2sv",partialLoading:"hMoHO"};function sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var dn=n(34004);function un(e){var t=e.data,n=Object.assign(Object.assign({},e.analyticsData),{id:null==t?void 0:t.id,name:null==t?void 0:t.name}),i=Object.assign(Object.assign({},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Series,descriptor:c._S.TallPoster});return a.createElement(L.F,{key:t.id,appLink:e.getAppLink(t),className:"position-relative px-1 flex-shrink-0 ".concat(e.isSmall?cn.smallSeriesItem:cn.largeSeriesItem," "),analyticsData:n,analyticsOptions:i},a.createElement(dn.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall,hasTableOfContents:e.hasTableOfContents}))}function mn(e){return a.createElement(w.k,{id:e.id,name:e.name,description:e.description,type:T.l9.Row,contents:N.z.Series,collection:e.content,childComponent:un,extraChildComponentProps:{audiences:e.audiences,hasTableOfContents:e.hasTableOfContents},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.series)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}const pn={slidingSubjectSmall:"fgIje",slidingSubjectLarge:"CJwKL",heading:"P16Yg",posterContainer:"VtrLt",partialLoading:"IgCcl",labelContainer:"ujwlj"};var vn=function(e){return a.createElement("div",{className:"".concat(e.type===T.l9.Row?pn.slidingSubjectSmall:pn.slidingSubjectLarge," px-1")},a.createElement("div",{className:"".concat(pn.partialLoading," partial-loading-background rounded-3")}))};function gn(e){for(var t,n,i=(t=e.type,(n=(0,D.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===T.l9.LargeRow?5:6),r=[],o=0;o<i;o++)r.push(a.createElement(vn,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(j.l,null),a.createElement("div",{className:"row g-0 mx-n1"},r))}var fn=n(75163),yn=n(5465);function hn(e){var t,n=e.data,i=e.preloadImage,r=Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Classification,actionType:c.Vw.Click,descriptor:c._S.TallPoster});return a.createElement("div",{className:(t=pn.posterContainer,e.context.type===T.l9.Row?t+=" ".concat(pn.slidingSubjectSmall):t+=" ".concat(pn.slidingSubjectLarge),t)},a.createElement(fn.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:u.__.TallPosters,preload:i,imageOptions:{size:u.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:r},a.createElement(yn.oy,{type:yn.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat(pn.heading)},n.name)))}function bn(e){return a.createElement(w.k,{id:e.id,name:e.name,description:e.description,type:T.l9.LargeRow,contents:N.z.Subjects,collection:e.content,childComponent:hn,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}function En(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var kn="explore-all-topics";function wn(e){var t,n=function(e){var t,n,a,i,r;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===T.OL.ExploreAllTopics?kn:"",name:null===(i=e.metadata)||void 0===i?void 0:i.text,tallPoster:{url:(null===(r=e.metadata)||void 0===r?void 0:r.imageId)?p.j.getUrlById(e.imageCdnUrl,u.__.TallPosters,e.metadata.imageId,u.h2.Medium):""}}}(e),i=Se.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(w.k,{id:e.id,name:e.name,appLink:i,description:e.description,type:T.l9.Row,contents:N.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return En(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return En(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?En(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,childComponent:hn,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,i,r;return t.id?t.id===kn?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n,e.presentation.id):null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t):null},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function Ln(e){var t;return a.createElement("div",null,a.createElement(w.k,{id:e.id,name:e.name,description:e.description,type:T.l9.Row,contents:N.z.SmallSeries,collection:e.content,childComponent:un,extraChildComponentProps:{audiences:e.audiences,isSmall:!0},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}var Cn=n(16367),xn=n(57900),On=n(2948),Nn=n(10038);var Tn="markdown-link",Sn={isLink:function(e){return e.classList.contains(Tn)},getSeoWidgetRenderer:function(){var e=new Cn.Renderer;return e.link=function(e,t,n){return'<a href="'.concat(e,'" target="_blank" class="info-link ').concat(Tn,'">').concat(n,"</a>")},e.list=function(e){return'<ul class="'.concat("TIGbB",'">').concat(e,"</ul>")},e}};const jn={question:"r4X_X",partialQuestion:"aE9qQ",description:"dVLkj"};function Dn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var An="1.2rem",In=500;function Fn(e){var t=Dn((0,On.D)("should:expand:".concat(e.id),e.isBot,{storage:xn.Z1.LocalStorage}),2),n=t[0],i=t[1],r=Dn(a.useState(n?"100%":An),2),o=r[0],d=r[1],u=Dn(a.useState(!n),2),m=u[0],p=u[1],g=Dn(a.useState(Cn(e.answer,{renderer:Sn.getSeoWidgetRenderer()})),2),f=g[0],y=g[1],h=a.useRef(null),b=a.useRef(null),E=a.useRef(null);function k(){d(An),i(!1),h.current=window.setTimeout((function(){p(!0)}),In)}return a.useEffect((function(){var t=Cn(e.answer||"",{renderer:Sn.getSeoWidgetRenderer()});f!==t&&(f&&n&&k(),y(t))}),[e.answer]),a.useEffect((function(){"100%"===o&&E.current&&d(E.current.clientHeight+"px")}),[o]),(0,Nn.H)((function(){n&&k()}),null,[n]),e.question&&f?a.createElement(he.L,{className:"".concat(jn.question," rounded-3"),onClick:function(t){var a;Sn.isLink(t.target)||0===window.getSelection().toString().length&&(l.k.logUserAction(Object.assign(Object.assign({},e.analyticsData),{question:e.question,answer:e.answer}),Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Faq,actionType:c.Vw.Click,descriptor:n?c._S.Collapse:c._S.Expand,location:c.LZ.FaqQuestionWidget})),n?k():((a=document.createElement("p")).innerHTML=f,a.style.visibility="hidden",b.current.appendChild(a),d("".concat(a.clientHeight,"px")),b.current.removeChild(a),i(!0),window.clearTimeout(h.current),p(!1)))}},a.createElement("div",{className:"pb-2"},a.createElement("div",{className:"float-end rounded-circle bg-white"},a.createElement(s.x,{svgName:n?v.vn.Minus:v.vn.Plus})),a.createElement("h2",{className:"h4 mb-0 clear-end"},e.question)),a.createElement("div",{className:jn.description,style:{height:o}},a.createElement("p",{className:"mb-0 ".concat(m?"clamp-1":""),dangerouslySetInnerHTML:{__html:f},ref:E}),a.createElement("div",{ref:b}))):a.createElement(a.Fragment,null)}function Mn(e){var t=mt.m.first(e.content),n=t.question,i=t.answer;return a.createElement(Fn,{id:e.id,answer:i,question:n,isBot:e.isBot,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}const Vn={question:"G1OXf",padding:"Jg3am",partialQuestion:"tWUKI",description:"z5LRc"};function Rn(){return a.createElement("div",{className:"".concat(Vn.partialQuestion," ").concat(Vn.padding," rounded-2 mb-2")},a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"75%"}}))}function Un(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Hn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Bn="0px";function Gn(e){var t,n,i,r,o,d=Un((0,On.D)("should:expand:".concat(e.id),e.isBot,{storage:xn.Z1.LocalStorage}),2),u=d[0],m=d[1],p=Un(a.useState(u?"100%":Bn),2),g=p[0],f=p[1],y=Un(a.useState(Cn(null!==(n=null===(t=e.faq)||void 0===t?void 0:t.answer)&&void 0!==n?n:"",{renderer:Sn.getSeoWidgetRenderer()})),2),h=y[0],b=y[1],E=a.useRef(null),k=a.useRef(null);function w(){f(Bn),m(!1)}return a.useEffect((function(){var t,n,a=Cn(null!==(n=null===(t=e.faq)||void 0===t?void 0:t.answer)&&void 0!==n?n:"",{renderer:Sn.getSeoWidgetRenderer()});h!==a&&(h&&u&&w(),b(a))}),[null===(i=e.faq)||void 0===i?void 0:i.answer]),(0,Nn.H)((function(){u&&w()}),null,[u]),a.useEffect((function(){"100%"===g&&k.current&&f(k.current.clientHeight+"px")}),[g]),(null===(r=e.faq)||void 0===r?void 0:r.question)&&(null===(o=e.faq)||void 0===o?void 0:o.answer)?a.createElement(he.L,{onClick:function(t){var n;Sn.isLink(t.target)||0===window.getSelection().toString().length&&(l.k.logUserAction(Object.assign(Object.assign(Object.assign({},e.analyticsData),e.faq),{questionIndex:e.index}),Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Faq,actionType:c.Vw.Click,descriptor:u?c._S.Collapse:c._S.Expand,location:c.LZ.FaqQuestionAccordionWidget})),u?w():((n=document.createElement("p")).innerHTML=h,n.style.visibility="hidden",n.classList.add("py-1"),E.current.appendChild(n),f("".concat(n.clientHeight-10,"px")),E.current.removeChild(n),m(!0)))},className:"".concat(Vn.question," rounded-2")},a.createElement("div",{className:"d-flex align-items-center ".concat(Vn.padding)},a.createElement("div",{className:"rounded-circle bg-white me-2"},a.createElement(s.x,{svgName:u?v.vn.Minus:v.vn.Plus})),a.createElement("h3",{className:"mb-0 font-size-normal fw-normal"},e.faq.question)),a.createElement("div",{className:"".concat(Vn.description),style:{height:g}},a.createElement("p",{className:"mb-0 py-1",dangerouslySetInnerHTML:{__html:h},ref:k}),a.createElement("div",{ref:E}))):a.createElement(a.Fragment,null)}function Wn(e){return e.content.length?a.createElement(a.Fragment,null,a.createElement("h2",{className:"curated-widget-heading"},e.name),a.createElement("ul",{className:"list-unstyled mb-n2"},e.content.map((function(t,n){return a.createElement("li",{className:"mb-2",key:n},a.createElement(Gn,{key:n,id:"".concat(e.id,":").concat(n),faq:t,index:n,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,isBot:e.isBot}))})))):a.createElement(a.Fragment,null)}var Zn=n(83616);function _n(){return a.createElement("div",{className:"d-flex"},a.createElement("div",{className:"".concat(Zn.Z.cover," me-2 rounded overflow-hidden border rounded d-inline-block")},a.createElement("div",{className:Zn.Z.partialIcon},a.createElement(yn.oy,{type:yn.mS.Subject}))),a.createElement("div",{className:"d-inline-block",style:{flexBasis:"50%"}},a.createElement("div",{className:"partial-loading-background mt-1",style:{height:"19px",width:"100%"}}),a.createElement("div",{className:"partial-loading-background mt-1",style:{height:"16.5px",width:"75%"}})))}var zn=n(82032);function Yn(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function qn(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(Yn,null),a.createElement(Yn,null))}var Qn=n(3626);function Xn(e){var t,n,i,r,o,l,c=mt.m.first(Se.d.getVideoContent(e.content));return a.createElement(a.Fragment,null,a.createElement(ne.B,{name:e.name,description:e.description}),a.createElement(Qn.J,{video:c,presentationAudiences:e.audiences,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,subTextAppLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.subText)||void 0===i?void 0:i.call(n,c),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,hideInteractiveBadge:!0,showVideoGuidance:nn.M.showVideoGuidance(e.hasPermissions),yearGroups:e.yearGroups,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,imageCdnUrl:e.imageCdnUrl,isPlugin:e.isPlugin,getInteractiveGuidanceAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.interactiveGuidance,getResourceGuidanceAppLink:null===(o=e.appLinks)||void 0===o?void 0:o.resourceGuidance,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide}))}function Kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var $n=n(2284);const Jn="OZATG",ea="hcAU2",ta="Tbieu",na="mGGrd",aa="VtzxT",ia="jrY7R",ra="yAgR6",oa="RjJ7O",la="TJ7Sl",ca="hGi43";function sa(e){var t,n,i,r=p.j.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:u.h2.Small}),o=p.j.createUrl(null===(n=e.data.thumbnail)||void 0===n?void 0:n.url,{size:u.h2.Medium}),l={backgroundColor:null===(i=e.data.metadata)||void 0===i?void 0:i.backgroundColor};return o&&(l.backgroundImage="url('".concat(o,"')")),a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat(ea," ").concat(e.isLarge?ta:na),style:l},a.createElement("div",{className:"".concat(aa," ").concat(e.isLarge?"":"justify-content-center")},a.createElement("div",{className:"".concat(ia)},a.createElement("p",{className:"".concat(ra," h3 text-shadow ").concat(e.isLarge?"mb-0 text-wrap clamp-2":"text-wrap clamp-3"),title:e.data.name},e.data.name),e.isLarge&&a.createElement("div",{className:"text-start text-shadow ".concat(oa)},a.createElement("p",{className:"clamp-3",title:e.data.description},e.data.description))),e.isLarge&&a.createElement("div",{className:ca},a.createElement("div",{className:"".concat(!e.appLink&&"cursor-default"," btn btn-outline-dark")},V.T.getPhrase("shared.subjectThumbnailWidgetItem","buttonLabel")))),!o&&!!r&&a.createElement("div",{className:"".concat(la),style:{backgroundImage:"url('".concat(r,"')")}}))}var da=a.memo((function(e){var t,n,i,r,o=(null===(t=e.data)||void 0===t?void 0:t.status)===$n.W.ComingSoon,l=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(i=e.data)||void 0===i?void 0:i.name,presentationId:null===(r=e.data)||void 0===r?void 0:r.presentationId,comingSoon:!!o}),s=Object.assign(Object.assign({location:c.LZ.ClassificationListItem},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail});return e.appLink?a.createElement(L.F,{className:Jn,appLink:e.appLink,analyticsData:l,analyticsOptions:s},a.createElement(sa,Object.assign({},e))):a.createElement(sa,Object.assign({},e))}));function ua(e){return a.createElement(a.Fragment,null,a.createElement(ne.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing}),a.createElement(A.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(I.Z,{as:"li",key:t.id,sm:12,xl:6,className:"px-1 pb-2"},a.createElement(da,{data:t,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===i?void 0:i.call(n,t),isLarge:!0,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))}))))}const ma="HwejH";var pa=function(){return a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"15rem"}}))},va=n(22843),ga=n(60318),fa=n(68626),ya=n(80143);const ha={guidance:"uCRU1",responsiveGuidance:"iwav4"};function ba(e){var t,n,i,r,o,l,s,d,m=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video,{}),p=nn.M.isVideo(e.video)&&(null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.subText)||void 0===r?void 0:r.call(i,e.video)),v=a.useRef(null),g={actionType:c.Vw.Click,entity:nn.M.getAnalyticsEntity(e.video),location:c.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:c._S.Thumbnail},f=(0,ya.n)(null===(o=e.video.subjectPresentationAudiences)||void 0===o?void 0:o.data,e.audiences);return a.createElement("div",{className:"col-md-6"},a.createElement("div",{ref:v},a.createElement(Qe.u,{analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),g),video:e.video,appLink:m,imageOptions:{size:u.h2.Medium},textPosition:fa.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:f,hideRating:!!f,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement(va.h,{video:e.video,appLink:m,subTextAppLink:p,yearGroups:e.yearGroups,subTextType:e.subTextType}),nn.M.showVideoGuidance(e.hasPermissions)&&a.createElement(ga.u,{getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,getResourceGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.resourceGuidance,getInteractiveGuidanceAppLink:null===(d=e.appLinks)||void 0===d?void 0:d.interactiveGuidance,video:e.video,analyticsData:e.analyticsData,analyticsOptions:g,responsiveClassName:ha.responsiveGuidance,containerClassName:"d-flex justify-content-start align-items-center pt-1 ".concat(ha.guidance)}))}function Ea(e){var t=Se.d.getVideoContent(e.content);return a.createElement(a.Fragment,null,a.createElement(ne.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},t.map((function(t){return a.createElement(ba,Object.assign({key:t.id,video:t},e))}))))}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function wa(e){return a.createElement(a.Fragment,null,a.createElement(ne.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing}),a.createElement(A.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},(e.widgetTypeId!==se.z.TrendingClassifications&&e.widgetTypeId!==se.z.LatestReleasedClassifications?e.content:e.content.length<6?e.content.slice(0,3):e.content).map((function(t){var n,i;return a.createElement(I.Z,{as:"li",key:t.id,xl:4,md:6,xs:12,className:"px-1 pb-2"},a.createElement(da,{data:t,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===i?void 0:i.call(n,t),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))}))))}function La(e){var t,n,i,r,o,l,s=mt.m.first(e.content),d=p.j.createUrl(null===(t=s.thumbnail)||void 0===t?void 0:t.url,{size:u.h2.Medium}),m=null===(n=s.metadata)||void 0===n?void 0:n.backgroundColor,v={backgroundColor:m};d&&(v.backgroundImage="url('".concat(d,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:s.id,name:s.name,presentationId:s.presentationId}),f=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail});return d&&m?a.createElement(a.Fragment,null,a.createElement(L.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,s),className:"text-decoration-none",analyticsData:g,analyticsOptions:f},a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("EkoYD"),style:v},a.createElement("div",{className:"".concat("SSmWX")},a.createElement("div",{className:"".concat("vEXH2")},a.createElement("h2",{className:"".concat("bMbF2"," text-decoration-none h4 text-nowrap text-truncate")},e.name),a.createElement("div",{className:"text-start ".concat("gDFxm")},a.createElement("p",{className:"clamp-3"},s.description))),a.createElement("div",null,a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},(null===(l=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===l?void 0:l.text)||V.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):a.createElement(kt,Object.assign({},e))}var Ca=n(38647),xa=n(11882);function Oa(e){var t,n,i,r,o,s,d,m,p,v,g,f,y=mt.m.first(Se.d.getVideoContent(e.content)),h=a.useRef(),b=(0,ya.n)(null===(t=y.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),E=nn.M.hasSeries(y)||Se.d.isCompanyWidget(e.widgetTypeId),k=l.k.mergeOptions(e.analyticsOptions,{actionType:c.Vw.Click,entity:nn.M.getAnalyticsEntity(y),location:c.LZ.ThumbnailHeroMediaWidget}),w=nn.M.getCanBeConsumed(y).canNavigate;return y?a.createElement("div",null,a.createElement(ne.B,{name:e.name,description:e.description}),a.createElement("div",{ref:h},a.createElement(Qe.u,{video:y,imageOptions:{size:u.h2.Large},type:"static",textPosition:fa.z.Independent,analyticsOptions:k,audience:b,hideRating:!!b,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===i?void 0:i.call(n,y,{}),subTextAppLink:null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.subText)||void 0===o?void 0:o.call(r,y),setFavourite:e.setFavourite,canFavourite:e.canFavourite,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,nn.M.isVideo(y)&&a.createElement(xa.$,{type:Se.d.isCompanyWidget(e.widgetTypeId)?"productionCompany":e.subTextType,video:y,appLink:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.subText)||void 0===d?void 0:d.call(s,y),analyticsOptions:k,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:E?"":"mt-2"},a.createElement(L.F,{appLink:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.videoType)||void 0===p?void 0:p.call(m,y,{}),analyticsData:{id:y.id,name:y.name},analyticsOptions:Object.assign(Object.assign({},k),{descriptor:c._S.Title}),className:"d-inline-block ".concat(w?"":"cursor-default text-decoration-none disabled"),disabled:!w},a.createElement("h3",{className:"h4 mb-0"},y.name,a.createElement(Ca.m,{video:y,yearGroups:e.yearGroups}))))),nn.M.showVideoGuidance(e.hasPermissions)&&a.createElement(ga.u,{getClassroomGuideAppLink:null===(v=e.appLinks)||void 0===v?void 0:v.classroomGuide,getResourceGuidanceAppLink:null===(g=e.appLinks)||void 0===g?void 0:g.resourceGuidance,getInteractiveGuidanceAppLink:null===(f=e.appLinks)||void 0===f?void 0:f.interactiveGuidance,video:y,analyticsData:e.analyticsData,analyticsOptions:k,responsiveClassName:"RoK8y",containerClassName:"d-flex mt-2 ".concat("EQXKD")}))):a.createElement(a.Fragment,null)}function Na(e){var t,n;return a.createElement(w.k,{id:e.id,name:e.name,description:e.description,type:T.l9.LargeRow,contents:N.z.Videos,collection:e.content,childComponent:$e,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name)})}function Ta(e){var t,n;return a.createElement(w.k,{id:e.id,name:e.name,description:e.description,type:T.l9.Row,contents:N.z.Videos,collection:e.content,childComponent:$e,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name)})}var Sa=n(74237),ja=n(26733);var Da=a.memo((function(e){var t,n,i,r=null===(n=null===(t=e.data)||void 0===t?void 0:t.subjectPresentationAudiences)||void 0===n?void 0:n.data,o=(0,ya.n)(r,e.presentationAudiences);return a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat("YY2CD")},a.createElement(Qe.u,{video:e.data,type:"static",appLink:e.getAppLink(e.data),subTextAppLink:nn.M.isVideo(e.data)&&(null===(i=e.getSubTextAppLink)||void 0===i?void 0:i.call(e,e.data.series)),imageOptions:{size:e.thumbnailSize},preload:e.preloadImage,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,subTextType:e.subTextType,textPosition:fa.z.Below,audience:o,hideRating:!!o,hideDuration:!1,isPlugin:e.isPlugin}))}));function Pa(e){return nn.M.isVideoType(e.data)?a.createElement(Da,Object.assign({},e)):a.createElement(ja.R,Object.assign({},e,{location:"dashboard",onClickDownload:function(t,n){t.preventDefault(),t.stopPropagation(),Sa.T.downloadResource(n,e.analyticsData,e.analyticsOptions)}}))}function Aa(e){var t,n,i,r=e.hasLocalPermissions(Ne.E.ViewVideoResourceItems);return a.createElement(w.k,{id:e.id,name:e.name,description:e.description,type:T.l9.Row,contents:N.z.Videos,collection:e.content,childComponent:Pa,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,imageCdnUrl:e.imageCdnUrl,imageErrorFallbackUrl:e.resourceThumbnailFallbackImageUrl,getSubTextAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,location:"dashboard",titlePosition:"below",actionBehaviour:r?"normal":"public",presentationAudiences:e.audiences,subTextType:"series",isPlugin:e.isPlugin},getChildAppLink:function(t){var n,a,i,o;return nn.M.isVideoType(t)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{}):null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.resource)||void 0===o?void 0:o.call(i,t,t.parentId,r)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===i?void 0:i.call(n,e.id,e.name)})}var Ia=n(74696),Fa=n(13231);function Ma(e){var t,n,i,r;return a.createElement(a.Fragment,null,a.createElement(ne.B,{name:!e.metadata.hideWidgetHeading&&e.name,description:!e.metadata.hideWidgetDescription&&e.description}),a.createElement(Fa.E4,{videos:e.content,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,getSubTextAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.company)||void 0===a?void 0:a.call(n,t)},hasPermissions:e.hasPermissions,subTextType:e.subTextType,getPreviewQuestionsAppLink:function(){return null},presentationAudiences:e.audiences,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.classroomGuide,getResourceGuidanceAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.resourceGuidance,getInteractiveGuidanceAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.interactiveGuidance}))}var Va,Ra=n(12754);function Ua(e){return Ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ua(e)}function Ha(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ua(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=Ua(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ua(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ba=(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Va={},ce.f.ThumbnailHeroMedia,{getComponent:function(){return Oa},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"KjaI4"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(qn,null))))},icon:v.vn.WidgetTemplateThumbnailHeroMedia,predicate:function(e){var t=e.targetType;return[T.ku.Classification,T.ku.Discover,T.ku.Company].includes(t)},className:""}),ce.f.PosterSlidingListLarge,{getComponent:function(){return mn},partialLoading:function(e){var t,n,i=(t=(0,D.k)()).xs?2:t.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row mb-n2"},(n=Array(i),function(e){if(Array.isArray(e))return sn(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return sn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sn(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col-6 col-sm-4 col-md-3 col-lg-3 pb-2"},a.createElement("div",{className:"".concat(cn.partialLoading," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.MoviesAndTv,T.ku.Company].includes(t)},className:""}),ce.f.PosterSlidingListMedium,{getComponent:function(){return bn},partialLoading:function(){return a.createElement(gn,{type:T.l9.LargeRow})},icon:v.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.MoviesAndTv,T.ku.Company].includes(t)},className:""}),ce.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case se.z.CuratedClassifications:return wn;case se.z.CuratedSeries:return Ln;default:return wn}},partialLoading:function(){return a.createElement(gn,{type:T.l9.Row})},icon:v.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;if(e.product===Ra.x.StreamableLearning)return!1;switch(n){case se.z.CuratedClassifications:return[T.ku.Classification,T.ku.Discover,T.ku.MoviesAndTv].includes(t);case se.z.CuratedSeries:return[T.ku.MoviesAndTv,T.ku.Company].includes(t);default:return!1}},className:""}),ce.f.ThumbnailFeaturedMedia,{getComponent:function(){return Xn},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(A.Z,null,a.createElement(I.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(I.Z,{xs:12,md:6},a.createElement("div",{className:"J5CAD"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(qn,null))))))},icon:v.vn.WidgetTemplateThumbnailFeaturedMedia,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company].includes(t)},className:""}),ce.f.CoverFixedPillListLarge,{getComponent:function(){return P.K},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(A.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(I.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(F.Ml,null)))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product===Ra.x.StreamableLearning?[T.ku.Classification].includes(t):[T.ku.Classification,T.ku.Discover].includes(t)},className:""}),ce.f.StatsCoverFixedPillListLarge,{getComponent:function(){return zn.q},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(A.Z,{className:"g-0"},Array(6).fill(null).map((function(e,t){return a.createElement(I.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(_n,null)))}))))},icon:v.vn.WidgetTemplateStatsCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.ClassificationDirectory].includes(t)},className:""}),ce.f.CoverFixedPillListXSmall,{getComponent:function(){return ee},partialLoading:function(){return a.createElement("div",{className:"".concat(J.background," px-4 py-3 rounded-3 mb-3")},a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.35rem",width:"8rem"}}),a.createElement(A.Z,{className:"mb-2 ".concat(J.row)},Array(8).fill(null).map((function(e,t){return a.createElement(I.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"partial-loading-background me-2 rounded",style:{width:"2rem",height:"2rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"5rem",height:"1.3125rem"}})))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListXSmall,predicate:function(e){var t=e.targetType;return e.product===Ra.x.StreamableLearning?[T.ku.Discover].includes(t):[T.ku.Classification,T.ku.Discover].includes(t)},className:""}),ce.f.CoverSlidingPillListSmall,{getComponent:function(){return ve},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(ge.QL,{partialLoadingComponent:F.Qh}))},icon:v.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;return e.product===Ra.x.StreamableLearning?n!==se.z.Classifications&&[T.ku.Discover,T.ku.Company,T.ku.Classification].includes(t):[T.ku.Classification,T.ku.Discover,T.ku.MoviesAndTv,T.ku.Company].includes(t)},className:""}),ce.f.CoverFixedTileList,{getComponent:function(){return ie},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(te.YA,{itemClassName:"columns-of-five"}))},icon:v.vn.WidgetTemplateCoverFixedTileList,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company].includes(t)},className:""}),Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Va,ce.f.FeaturedThumbnailSlidingList,{getComponent:function(){return tt},partialLoading:function(e){return a.createElement("div",null,a.createElement("div",{className:"banner rounded-3 position-relative partial-loading-background ".concat(Je," ").concat(et," mb-1 ")}),a.createElement(Me.j7,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0,hideHeading:!0}))},icon:v.vn.WidgetTemplateFeaturedThumbnailSlidingList,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover].includes(t)},className:""}),ce.f.HeroBanner,{getComponent:function(){return kt},partialLoading:Ct,icon:v.vn.WidgetTemplateHeroBanner,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover].includes(t)},className:""}),ce.f.OnboardingSteps,{getComponent:function(){return Jt},partialLoading:Ct,icon:v.vn.WidgetTemplateOnboardingSteps,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Discover].includes(t)},className:""}),ce.f.HeroBannerSmall,{getComponent:function(){return Tt},partialLoading:St,icon:v.vn.WidgetTemplateHeroBannerSmall,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.HeroThumbnailSmall,{getComponent:function(){return Dt},partialLoading:function(){return a.createElement(St,null)},icon:v.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company,T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.HeroBlockColourSmall,{getComponent:function(){return jt},partialLoading:function(){return a.createElement(St,null)},icon:v.vn.WidgetTemplateHeroBlockColourSmall,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.ClassificationDirectory,T.ku.ClassificationVideos].includes(t)},className:""}),ce.f.ThumbnailFixedListXLarge,{getComponent:function(){return La},partialLoading:function(){return a.createElement(Ct,null)},icon:v.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company,T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.ThumbnailFixedListLarge,{getComponent:function(){return ua},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return Kn(e)}(t=Array(2))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return Kn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kn(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement("div",null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(A.Z,{className:"mx-n1"},n.map((function(e,t){return a.createElement(I.Z,{key:t,sm:12,md:6,className:"p-1"},a.createElement("div",{className:"".concat("pRXSM"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplateThumbnailFixedListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company,T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.ThumbnailFixedListSmall,{getComponent:function(){return wa},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return ka(e)}(t=Array(3))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement(a.Fragment,null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(A.Z,{className:"mx-n1 "},n.map((function(e,t){return a.createElement(I.Z,{key:t,lg:4,md:6,sm:6,xs:12,className:"p-1"},a.createElement("div",{className:"".concat("SNBRD"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplateThumbnailFixedListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company,T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.EditableCoverFixedPillListSmall,{getComponent:function(){return Fe},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(A.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(I.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(F.Qh,null)))}))))},icon:v.vn.WidgetTemplateEditableCoverFixedPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Discover].includes(t)},className:""}),Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Va,ce.f.Heading,{getComponent:function(){return ct},partialLoading:function(){return a.createElement("div",{className:"curated-widget-header"},a.createElement("div",{className:"partial-loading-background curated-widget-heading",style:{height:"2.099625rem",width:"16.5rem",maxWidth:"80%"}}," "),a.createElement("div",{className:"partial-loading-background description curated-widget-description",style:{width:"21rem",height:"1.3125rem",maxWidth:"90%"}}," "))},icon:v.vn.WidgetTemplateHeading,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.ClassificationDirectory,T.ku.Discover].includes(t)},className:"heading-widget-template"}),ce.f.AuthorReviewer,{getComponent:function(){return E},partialLoading:function(){return a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,null)),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,null)))},icon:v.vn.WidgetTemplateAuthorReviewer,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification].includes(t)},className:""}),ce.f.Question,{getComponent:function(){return Mn},partialLoading:function(){return a.createElement("div",{className:"".concat("QrLg2"," rounded-3")},a.createElement("div",{className:"mb-2 partial-loading-background",style:{height:"1.5rem",width:"75%"}}),a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"100%"}}))},icon:v.vn.WidgetTemplateQuestion,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification].includes(t)},className:""}),ce.f.QuestionAccordion,{getComponent:function(){return Wn},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"2rem",width:"30%"}}),a.createElement("div",{className:"mb-n2"},a.createElement(Rn,null),a.createElement(Rn,null),a.createElement(Rn,null)))},icon:v.vn.WidgetTemplateQuestionAccordion,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification].includes(t)},className:""}),ce.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return Ea},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(ma," partial-loading-background rounded-3")}),a.createElement(pa,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(qn,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(ma," partial-loading-background rounded-3")}),a.createElement(pa,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(qn,null)))))},icon:v.vn.WidgetTemplateThumbnailFixedListMediaLarge,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company].includes(t)},className:""}),ce.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return rn},partialLoading:function(e){return a.createElement(Me.j7,{size:"lg",childComponent:en,name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company,T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return ln},partialLoading:function(e){return a.createElement(Me.j7,{size:"sm",childComponent:on,name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:e.hideDescription,hideHeading:e.hideHeading})},icon:v.vn.WidgetTemplatePopoutThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.product,a=e.isTopLevelClassification;return n===Ra.x.StreamableLearning?[T.ku.Discover,T.ku.Company].includes(t):t===T.ku.Classification?a:[T.ku.MoviesAndTv,T.ku.Discover,T.ku.Company].includes(t)},className:""}),ce.f.FilterSlidingPillListSmall,{getComponent:function(){return ot},partialLoading:function(e){var t,n=(0,D.k)();return a.createElement(a.Fragment,null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row mx-n1"},(t=Array(n.xs||n.sm?3:n.md||n.lg?4:5),function(e){if(Array.isArray(e))return lt(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return lt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col px-1"},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3 pb-5"}))}))))},icon:v.vn.WidgetTemplateFilterSlidingPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.CircleLogoSlidingList,{getComponent:function(){return S},partialLoading:function(e){var t=8,n=(0,D.k)();return(n.sm||n.xs)&&(t=4),n.md&&(t=6),a.createElement(a.Fragment,null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"d-flex flex-no-wrap"},Array(t).fill(null).map((function(e,t){return a.createElement("div",{key:t,className:"uVZyX"},a.createElement("div",{className:"".concat("KbaRB"," h-100 d-inline-block partial-loading-background rounded-circle")}))}))))},icon:v.vn.WidgetTemplateCircleLogoSlidingList,predicate:function(e){var t=e.targetType;return e.product===Ra.x.StreamableLearning?[T.ku.Discover,T.ku.Company].includes(t):[T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.EventIconSlidingList,{getComponent:function(){return Ye},partialLoading:function(e){var t,n=(t=(0,D.k)()).xs?2:t.sm?3:t.md?4:t.lg?5:t.xl||t.xxl?6:void 0;return a.createElement(a.Fragment,null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row g-0 mx-n1"},Array(n).fill(null).map((function(e,t){return a.createElement("div",{className:"col px-1",key:t},a.createElement("div",{className:"partial-loading-background rounded-3",style:{paddingBottom:"100%"}}))}))))},icon:v.vn.WidgetTemplateEventIconSlidingList,predicate:function(e){var t=e.targetType;return e.product===Ra.x.StreamableLearning?[T.ku.Discover,T.ku.Classification,T.ku.Company].includes(t):[T.ku.Discover,T.ku.Classification].includes(t)},className:""}),Ha(Ha(Ha(Ha(Va,ce.f.ThumbnailVerticalList,{getComponent:function(){return Ma},partialLoading:function(){return a.createElement(Ia.S,{numVideos:3})},icon:v.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e){var t=e.targetType;return e.product===Ra.x.StreamableLearning&&[T.ku.Company,T.ku.Classification].includes(t)},className:""}),ce.f.ThumbnailSlidingListSmallV2,{getComponent:function(){return Aa},partialLoading:Me.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[T.ku.Classification].includes(t)},className:""}),ce.f.ThumbnailSlidingListSmall,{getComponent:function(){return Ta},partialLoading:Me.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),ce.f.ThumbnailSlidingListLarge,{getComponent:function(){return Na},partialLoading:function(e){return a.createElement(Me.j7,{size:"lg",name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),Ga=n(65294);const Wa={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function Za(e){var t,n,o,l,c=a.createRef(),s=null===(t=e.lazyLoad)||void 0===t||t,d=(0,Ga.Y)({prevent:!s}),u=d.ref,m=d.inView,p=i.q.isFunction(e.getContentRequest),v=r.a.useBasicFetch(!(!m||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),g=Se.d.useGetContent(e.content||(null===(n=v.data)||void 0===n?void 0:n.content),e.widgetTypeId,e.isPreviewing,null===(o=v.data)||void 0===o?void 0:o.preferences),f=g.content,y=g.unfilteredContent,h=(0,D.k)(),b=function(e,t){return!(Se.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,f),E=!Se.d.canDisplayOnScreenSize(h,e.widgetTypeId,e.templateId);a.useEffect((function(){var t;p&&!v.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,b||E)}),[v.hasCompleted,b,E,p,e.setIsEmpty]),a.useEffect((function(){e.isScrollToTargetWidget&&c.current&&c.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,c.current]);var k=e.appLinks?Object.assign({},e.appLinks):null;(null==k?void 0:k.videoType)&&(k.videoType=function(t,n){var a;return null===(a=e.appLinks)||void 0===a?void 0:a.videoType(t,Object.assign(Object.assign({},n),{contextId:e.id}))});var w=Object.assign(Object.assign({},e.analyticsData),{widgetId:e.widgetTypeId,templateId:e.templateId,dashboardTarget:null==e?void 0:e.dashboardTarget,widgetIndex:null==e?void 0:e.widgetIndex,widgetName:e.name}),L=p&&!v.hasCompleted||e.isEditing&&b,C=Ba[e.templateId].partialLoading,x=Ba[e.templateId].getComponent(e.widgetTypeId),O=Ba[e.templateId].className;return L||!b&&!E?a.createElement("div",{id:e.widgetTypeId===se.z.ContinueWatching?"continue-watching-videos-widget":null,ref:c,className:"curated-widget ".concat(O," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(Wa.widgetHighlight," py-2 px-3 rounded-3"):""},Se.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(Wa.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),L?a.createElement("div",{ref:u},a.createElement(C,{name:e.name,description:e.description,isPreviewing:e.isPreviewing})):a.createElement(x,Object.assign({},e,{appLinks:k,content:f,unfilteredContent:y,preferences:null===(l=v.data)||void 0===l?void 0:l.preferences,analyticsData:w,showHighlight:e.isScrollToTargetWidget,isPreviewing:e.isPreviewing})))):a.createElement(a.Fragment,null)}},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(32735),i=n(68050),r=n(69111),o=n(88513),l=n(91028);function c(e){return a.createElement(a.Fragment,null,a.createElement(o.B,{name:e.name,description:e.description}),a.createElement(i.Z,{className:"mb-n2"},e.content.map((function(t){var n;return a.createElement(r.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(l.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,isLarge:!0}))}))))}},82032:(e,t,n)=>{n.d(t,{q:()=>O});var a=n(32735),i=n(68050),r=n(69111),o=n(88513),l=n(23481),c=n(65858),s=n(36848),d=n(11607),u=n(75163),m=n(5465),p=n(83914),v=n(2284),g=n(54610),f=n(35223),y=n(87114),h=n(110);const b={isNew:"KLRzE",newVideos:"xozwy",badge:"NWZxu",icon:"G9W_I"};var E=l.T.encloseNamespace("shared.subjectStatsBadge");function k(e){var t=y.i.getCounts(e.classification),n=t.dashboardNewVideosCount+t.childDashboardNewVideoCount,i=function(){if(e.classification.status===v.W.ComingSoon)return"coming-soon";var t=e.classification.datePublished;return t&&h.O.timeSince(t,"day")<=30?"new-topic":n>0?"new-videos":null}();return a.createElement("div",{className:function(){var e="fw-semibold d-inline-block rounded-pill px-2 ".concat(b.badge);switch(i){case"coming-soon":return e+" bg-light ps-1 d-inline-flex align-items-center";case"new-topic":return e+" ".concat(b.isNew);case"new-videos":return e+" ".concat(b.newVideos);default:return""}}()},"coming-soon"===i&&a.createElement(p.x,{svgName:f.vn.TimerSmall,className:"svg-container ".concat(b.icon),size:p.S.ExtraSmall}),function(){switch(i){case"coming-soon":return E("comingSoon");case"new-topic":return E("new");case"new-videos":return E("newVideos",{smartCount:n});default:return""}}())}var w=n(83616);function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var C=l.T.encloseNamespace("shared.subjectStatsWidgetItem");function x(e){var t,n,i,r,o,l,h=(o=a.useState(!1),l=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(o,l)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(o,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=h[0],E=h[1],x=(null===(t=e.classification)||void 0===t?void 0:t.status)===v.W.ComingSoon,O=y.i.isFollowing(e.classification),N=y.i.getCounts(e.classification),T=N.dashboardNewVideosCount,S=N.childDashboardNewVideoCount,j=N.dashboardResourceCount,D=N.childDashboardResourceCount,P=N.dashboardVideoCount,A=N.childDashboardVideoCount,I=N.childClassificationCount,F=P+A,M=j+D,V=T+S,R=function(){if(e.classification.status===v.W.ComingSoon)return"";var t="";if(F&&(t+="".concat(C("videos",{smartCount:F})," ")),M&&(t+=" • ".concat(C("resources",{smartCount:M}))),y.i.isTopLevelTopic(e.classification)&&I>0){if(!t)return C("topics",{smartCount:I});t="".concat(C("topics",{smartCount:I})," • ")+t}return t}();return a.createElement(s.F,{className:"d-flex no-decoration rounded ".concat(w.Z.container),appLink:null===(n=e.getAppLink)||void 0===n?void 0:n.call(e,e.classification),analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:null===(i=e.classification)||void 0===i?void 0:i.id,name:null===(r=e.classification)||void 0===r?void 0:r.name,presentationId:e.classification.presentationId,comingSoon:!!x,videoCount:F,resourceCount:M,newVideoCount:V,datePublished:e.classification.datePublished}),analyticsOptions:Object.assign(Object.assign({location:c.LZ.SubjectStatsWidgetItem},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Cover})},!b&&a.createElement(m.oy,{type:m.mS.Subject,extraClasses:"ms-2 ".concat(w.Z.fallbackImage)}),a.createElement("div",{className:"".concat(w.Z.cover," me-2 rounded overflow-hidden")},a.createElement(u.Z,{data:e.classification.cover,imageOptions:{size:g.h2.Medium},imageClassName:x?"opacity-50":"",onLoad:function(){return E(!0)}},e.canFollowTopics&&a.createElement(d.L,{onClick:function(t){var n;t.stopPropagation(),t.preventDefault(),e.canFollowTopics&&(null===(n=e.onToggleFollowClassification)||void 0===n||n.call(e,e.classification,c.LZ.SubjectStatsWidgetItem))},className:"\n align-items-center justify-content-center cursor-pointer\n ".concat(w.Z.bellContainer," ").concat(O?w.Z.followed:"","\n ")},a.createElement(p.x,{svgName:f.vn.BellFilled,className:"svg-container ".concat(w.Z.bell)}),a.createElement(p.x,{svgName:f.vn.Bell,className:"svg-container ".concat(w.Z.bellOutline)})))),a.createElement("div",null,a.createElement("h3",{className:"h6 mb-0 clamp-2 mt-1"},e.classification.name),!!R&&a.createElement("p",{className:"mb-0 ".concat(w.Z.subText)},R),a.createElement(k,{classification:e.classification})))}function O(e){return a.createElement(a.Fragment,null,a.createElement(o.B,{name:e.name,description:e.description}),a.createElement(i.Z,{className:"mb-n2"},e.content.map((function(t){var n;return a.createElement(r.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(x,{classification:t,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,getAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.classification,onToggleFollowClassification:e.onToggleFollowClassification,canFollowTopics:!1}))}))))}},65163:(e,t,n)=>{n.d(t,{QL:()=>a.Q,eb:()=>a.e});var a=n(16450);n(14244)},80835:(e,t,n)=>{n.d(t,{U:()=>d});var a=n(32735),i=n(84591),r=n(68626),o=n(79967),l=n(80143),c=n(40424),s=n(31908);var d=a.memo((function(e){var t,n=e.data,d=e.getSubTextAppLink,u=e.context,m=e.thumbnailSize,p=e.preloadImage,v=e.presentationAudiences,g=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,f=(0,l.n)(g,v),y=(0,o.k)(),h="JSM4l";return u.type===c.l9.LargeRow&&(h="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(h)},a.createElement(i.u,{type:e.preventPopout||y.xs?"static":"popout",textPosition:r.z.Below,video:n,appLink:e.getAppLink(n),subTextAppLink:s.M.isVideo(n)&&(null==d?void 0:d(n)),imageOptions:{size:m},preload:p,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,canFavourite:e.canFavourite,setFavourite:e.setFavourite,imageCdnUrl:e.imageCdnUrl,audience:f,hideRating:!!f,hideDuration:!1,yearGroups:e.yearGroups,hideTitle:e.hideTitle,showVideoGuidance:e.showVideoGuidance,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,isPlugin:e.isPlugin,getInteractiveGuidanceAppLink:e.getInteractiveGuidanceAppLink,getResourceGuidanceAppLink:e.getResourceGuidanceAppLink,getClassroomGuideAppLink:e.getClassroomGuideAppLink}))}))},26733:(e,t,n)=>{n.d(t,{s:()=>w,R:()=>L});var a=n(32735),i=n(39202),r=n(49985),o=n(65858),l=n(36848),c=n(11607),s=n(75891),d=n(83914),u=n(60995),m=n(76177),p=n(61150),v=n(71063),g=n(4594),f=n(1164),y=n(79967),h=n(45778),b=n(54297),E=n(35223);const k={imageStyle:"I9E5O",item:"tqUFn",dashboard:"o7j7p",playPage:"V2RwX",aspectRatio:"OnJDH",outerContainer:"CIFy7",innerContainer:"oUZPD",actions:"jzGAm",titleBelow:"Cpjs3",thumbnailContainer:"EDiGi",titleAbove:"e9ejn",teacherPack:"_tdVE",text:"g5NWS",hoverState:"xRYhX",atomGuide:"X39wU",studentActivity:"X9pMl",additionalMaterials:"qRVUo",userUploaded:"_18JaV",imageTypeResource:"KYtZL",download:"fbb_e"};function w(e){var t,n,i,r,o=null;"metadata"in e.data&&(o=e.data.metadata);var l=h.G.isType(e.data,g.E.Resource);return a.createElement(a.Fragment,null,a.createElement("div",{className:k.aspectRatio},a.createElement("div",{className:k.outerContainer},a.createElement("div",{className:function(t){var n,a="\n d-flex flex-column align-items-center justify-content-end rounded-3 h-100\n position-relative ".concat(function(e){switch(e){case"atom-guide":return k.atomGuide;case"student-activity":return k.studentActivity;case"teacher-pack":return k.teacherPack;case"additional-materials":return k.additionalMaterials;default:return k.userUploaded}}(t)," ").concat(k.innerContainer);return(null===(n=e.theme)||void 0===n?void 0:n.containerClass)?a+=" ".concat(e.theme.containerClass):a+=" pt-3 px-3",e.applyHoverState&&(a+=" ".concat(k.hoverState)),a}(null==o?void 0:o.resourceType)},"above"===e.titlePosition&&a.createElement(m.u,{title:e.data.name},a.createElement("h3",{className:"text-center text-break h5 mb-3 ".concat(k.text)},a.createElement("span",{className:"clamp-1"},e.data.name))),a.createElement("div",{className:"\n ".concat(null!==(n=null===(t=e.theme)||void 0===t?void 0:t.thumbnailContainerClass)&&void 0!==n?n:""," w-75 overflow-hidden \n ").concat(k.thumbnailContainer," ").concat("above"===e.titlePosition?k.titleAbove:""," \n ").concat(k.imageStyle,"\n ")},a.createElement(s.C,{resource:e.data,imageCdnUrl:e.imageCdnUrl,imageErrorFallbackUrl:e.imageErrorFallbackUrl,preloadImage:e.preloadImage})),l&&e.onClickDownload&&"normal"===e.actionBehaviour&&a.createElement("div",{className:k.actions},a.createElement(c.L,{onClick:function(t){return e.onClickDownload(t,e.data)},className:"".concat(k.download," d-flex align-items-center justify-content-center")},a.createElement(d.x,{svgName:E.vn.Download}))),!e.hideTypeBadge&&l&&a.createElement(p.y,{typeId:g.E.Resource})))),"below"===e.titlePosition&&a.createElement("div",{className:"mt-1 ".concat(k.titleBelow)},h.G.isType(e.data,g.E.Resource)&&!!(null===(r=null===(i=e.data)||void 0===i?void 0:i.metadata)||void 0===r?void 0:r.resourceType)&&a.createElement(u.m,null,b.C.getResourceTypeName(e.data.metadata.resourceType)),a.createElement("h3",{className:"h6 clamp-2"},e.data.name)))}w.defaultProps={preloadImage:!0,actionBehaviour:"normal"};var L=a.memo((function(e){var t,n,c,s,d=(t=e.data,n=e.actionBehaviour,s=(0,y.k)(),"public"===n||!s.xs&&!s.sm&&"resource"===t.type&&"metadata"in t&&(t.metadata.type===f.L.Image||(t.metadata.type===f.L.Pdf?!!t.url:!!(null===(c=t.pdf)||void 0===c?void 0:c.url)))),u=Object.assign(Object.assign({},e.analyticsData),e.data),m=Object.assign(Object.assign({},e.analyticsOptions),{actionType:o.Vw.Click,entity:e.data.typeId===g.E.Resource?o.py.Resource:o.py.Link});function p(){r.k.logUserAction(u,m)}var h,b=Object.assign(Object.assign({},e),{applyHoverState:d||!!e.data.url});return a.createElement("div",{className:"px-1 flex-shrink-0 ".concat(k.item," ").concat("play-page"===e.location?k.playPage:k.dashboard," ").concat(v.M.RESOURCE_ITEM_SELECTOR)},(h="d-block no-decoration","link"===e.data.type?a.createElement("a",{href:e.data.url,target:"_blank",className:h,onClick:p},a.createElement(w,Object.assign({},b))):d?"public"===e.actionBehaviour?a.createElement("div",{className:"".concat(h," cursor-pointer d-inline"),onClick:function(){p(),i.C$.trigger(e.getAppLink(e.data))}},a.createElement(w,Object.assign({},b))):a.createElement(l.F,{appLink:e.getAppLink(e.data),className:h,analyticsData:u,analyticsOptions:m},a.createElement(w,Object.assign({},b))):e.data.url?a.createElement("a",{href:e.data.url,className:h,onClick:p},a.createElement(w,Object.assign({},b))):a.createElement("div",{className:h},a.createElement(w,Object.assign({},b)))))}))},74237:(e,t,n)=>{n.d(t,{T:()=>l});var a=n(97395),i=n(49985),r=n(65858),o=null,l={getVideoDownloadUrl:function(e,t){return a._.safeUrlConcat(a._.makeHttps(e),"/download?token=".concat(t))},downloadResource:function(e,t,n){var a,l=o;o||(l=o=document.createElement("iframe"),document.body.appendChild(l),l.style.display="none"),l.src=e.url,i.k.logUserAction(Object.assign({id:null==e?void 0:e.id,name:null==e?void 0:e.name,resourceType:null===(a=null==e?void 0:e.metadata)||void 0===a?void 0:a.resourceType},t),Object.assign({actionType:r.Vw.Download,entity:r.py.Resource,workflowPhase:r.eu.Complete},n))}}},73814:(e,t,n)=>{n.d(t,{w:()=>i});var a=n(92802),i={getCustomFormControlClassName:function(e,t,n,i,r,o){var l="";return l=function(e,t){var n="";return n="select"===e?"form-select":"form-control","sm"===t&&(n+=" ".concat(n,"-sm")),"lg"===t&&(n+=" ".concat(n,"-lg")),n}(o,i),(0,a.u9)(t,n)&&(0,a.u9)(e,n)&&(l+=" is-invalid"),r&&(l+=" ".concat(r)),l}}},54297:(e,t,n)=>{n.d(t,{C:()=>a});var a={getResourceTypeName:function(e){switch(e){case"additional-materials":return"Additional Materials";case"atom-guide":return"ATOM Guide";case"teacher-pack":return"Teacher Pack";case"student-activity":return"Student Activity";default:return"N/A"}}}},83616:(e,t,n)=>{n.d(t,{Z:()=>a});const a={container:"wzt8R",bellContainer:"X7Jgx",bell:"HoKe4",followed:"Pdmdk",bellOutline:"bEQDk",cover:"luOU3",fallbackImage:"ReXqz",subText:"p0kUV"}}}]);
3
- //# sourceMappingURL=7076-00dd00a69c-lite.chunk.js.map