(window.webpackJsonp=window.webpackJsonp||[]).push([["51gJ"],{iyry:function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.ContentPathContext=void 0,t.default=function({children:e,contentPath:t}){const n=o.useRef(null),r=o.useRef(null),a=(0,u.default)(t);r.current!==a&&(n.current=r.current,r.current=t);return o.createElement(l.Provider,{value:{contentPath:a,previousContentPath:n.current}},e)};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=o?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(r,u,l):r[u]=e[u]}r.default=e,n&&n.set(e,r);return r}(n("q1tI")),u=r(n("yO8p"));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}const l=o.createContext(null);t.ContentPathContext=l},vf2M:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arePathsEqual=void 0,t.getContentDescriptorFromPath=function(e){return`${e.learnableNodeKind}:${e.learnableNodeId}`},t.keyForResolvedContentPath=void 0;const r=e=>[e.domainId,e.courseId,e.unitId,e.lessonId,e.learnableNodeKind,e.learnableNodeId].filter((e=>null!==e)).join("/");t.keyForResolvedContentPath=r;t.arePathsEqual=(e,t)=>r(e)===r(t)},yO8p:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,r.useRef)(null),n=t.current;e&&n&&(0,o.arePathsEqual)(e,n)||(t.current=e);return t.current};var r=n("q1tI"),o=n("vf2M")}}]);
//# sourceMappingURL=../../sourcemaps/en/51gJ.da10d3dd4e4fdf2362d1.js.map