@clickview/lite 0.15.4-rc.1 → 0.15.4-rc.2

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.
Files changed (20) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/css/{2076-lite-e47550a582.chunk.css → 2076-lite-ccc64223a0.chunk.css} +1 -1
  3. package/dist/css/{2290-lite-e47550a582.chunk.css → 2290-lite-ccc64223a0.chunk.css} +1 -1
  4. package/dist/css/{6567-lite-f675d323d1.chunk.css → 6567-lite-946d99c15f.chunk.css} +1 -1
  5. package/dist/css/{9315-lite-f675d323d1.chunk.css → 9315-lite-946d99c15f.chunk.css} +1 -1
  6. package/dist/scripts/{1592-56a1e8b90f-lite.chunk.js → 1592-b7359e0592-lite.chunk.js} +2 -2
  7. package/dist/scripts/6480-07519dacf9-lite.chunk.js +1 -0
  8. package/dist/scripts/7831-f3386dc46e-lite.chunk.js +1 -0
  9. package/dist/scripts/{8377-c59549dd38-lite.chunk.js → 8377-6da20ce12b-lite.chunk.js} +1 -1
  10. package/dist/scripts/{bundle-53dff3b335.min.js → bundle-e534012ff8.min.js} +2 -2
  11. package/package.json +2 -2
  12. package/dist/scripts/6480-79cf69f48e-lite.chunk.js +0 -2
  13. package/dist/scripts/6480-79cf69f48e-lite.chunk.js.LICENSE.txt +0 -1
  14. package/dist/scripts/7831-606251df1e-lite.chunk.js +0 -1
  15. /package/dist/scripts/{1592-56a1e8b90f-lite.chunk.js.LICENSE.txt → 1592-b7359e0592-lite.chunk.js.LICENSE.txt} +0 -0
  16. /package/dist/scripts/{2076-530073be18-lite.chunk.js → 2076-717ec11494-lite.chunk.js} +0 -0
  17. /package/dist/scripts/{2290-9ecc20b860-lite.chunk.js → 2290-5c4feb8e6b-lite.chunk.js} +0 -0
  18. /package/dist/scripts/{6567-e2b64bfd53-lite.chunk.js → 6567-91c1462e79-lite.chunk.js} +0 -0
  19. /package/dist/scripts/{9315-041082c5a4-lite.chunk.js → 9315-2f5357dd0e-lite.chunk.js} +0 -0
  20. /package/dist/scripts/{bundle-53dff3b335.min.js.LICENSE.txt → bundle-e534012ff8.min.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/lite",
3
- "version": "0.15.4-rc.1",
3
+ "version": "0.15.4-rc.2",
4
4
  "description": "ClickView Lite",
5
5
  "main": "dist/scripts/bundle.js",
6
6
  "types": "dist/projects/lite/src/index.d.ts",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@clickview/braze-client": "1.0.5",
36
- "@clickview/styles": "1.15.1-rc.1",
36
+ "@clickview/styles": "1.15.1-rc.2",
37
37
  "@googlemaps/js-api-loader": "1.15.1",
38
38
  "@microsoft/immersive-reader-sdk": "1.0.0",
39
39
  "@microsoft/teams-js": "1.5.2",
@@ -1,2 +0,0 @@
1
- /*! For license information please see 6480-79cf69f48e-lite.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6480],{9826:(e,t,n)=>{n.d(t,{e:()=>d});var r=n(1024),o=n(79014),a=n(10038),i=n(81514),c=n(86764);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){var t="justify-content-".concat(e.justify);return r.createElement("div",{className:"py-3 bg-white ".concat("rIUL4")},r.createElement("div",{className:"w-75 mx-auto d-flex ".concat(t)},e.children))}function s(e){var t=(0,i.V)(),n=t===c.r.SM||t===c.r.XS?"w-100":"w-75",o="justify-content-".concat(e.justify);return r.createElement("div",{className:"".concat(n," ").concat(o," ").concat("PuC_F"," d-flex px-3")},e.children)}function d(e){var t,n,i=function(){return window.innerHeight+window.scrollY>=document.body.offsetHeight-50},c=(t=r.useState(!1),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 r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.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}}(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=c[0],f=c[1];r.useEffect((function(){return f(!i())}),[]);var h=o.q.throttle((function(){var e=!i();!d||e?!d&&e&&f(!0):f(!1)}),100);return r.useEffect((function(){return window.addEventListener("scroll",h),function(){return window.removeEventListener("scroll",h)}}),[d,f]),(0,a.H)(h,h,[d,f]),d?r.createElement(u,Object.assign({},e),e.children):r.createElement(s,Object.assign({},e),e.children)}d.defaultProps={justify:"between"}},94035:(e,t,n)=>{n.d(t,{ed:()=>r.e,cQ:()=>p.c,i:()=>d,RP:()=>v});var r=n(9826),o=(n(95436),n(1024)),a=n(75896),i=n(86764),c=n(81514),l=n(70154),u=n(92875);function s(e){var t=o.useContext(l.x),n=t.expandedSubject,r=t.selectedSubjects;return o.createElement(o.Fragment,null,e.subjects.map((function(t){var a=function(e,t){return!(!t||e.id===t.id||t.children.find((function(t){return t.id===e.id})))}(t,n),i=e.onSelect;return t.isExpandableOption&&(i=e.onExpand),a&&(i=e.onCollapse),e.hasSelectedBulk&&(i=function(){}),o.createElement(v,{key:t.id,subject:t,selected:!e.hasSelectedBulk&&r.includes(t.id),disabled:e.hasSelectedBulk||a,onClick:function(){return i(t)},hasSelectedBulk:e.hasSelectedBulk})})))}function d(e){var t=e.subjects,n=e.hasSelectedBulk,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["subjects","hasSelectedBulk"]),f=o.useContext(l.x).expandedSubject,h=function(){switch((0,c.V)()){case i.r.LG:default:return 5;case i.r.MD:return 4;case i.r.SM:return 3;case i.r.XS:return 2}}(),p=t.reduce((function(e,t,n){return n%h==0?e.push([t]):a.m.last(e).push(t),e}),[]);return o.createElement("ul",{className:u.Z.grid},p.map((function(e,t){var a=f&&!!e.find((function(e){return f.id===e.id&&e.isExpandableOption}));return o.createElement(o.Fragment,{key:t},o.createElement(s,Object.assign({subjects:e,hasSelectedBulk:n},r)),a&&o.createElement("li",{className:"".concat(u.Z.subgrid," m-0")},o.createElement(d,Object.assign({subjects:f.children,hasSelectedBulk:n},r))))})))}var f=n(67453),h=n(54610),p=n(386),m=n(36532);function v(e){var t,n,r=o.useContext(l.x),a=e.subject.cover?f.j.createUrl(e.subject.cover.url,{size:h.h2.Small}):"",i=e.subject.isExpandableOption?e.subject.children.map((function(e){return e.id})):[],c=e.hasSelectedBulk?0:null===(t=null==r?void 0:r.selectedSubjects)||void 0===t?void 0:t.filter((function(e){return i.includes(e)})).length,u=o.createElement(p.c,{name:e.subject.name,imageUrl:a,onClick:e.onClick,isSelected:e.selected,isDisabled:e.disabled,isExpandable:e.subject.isExpandableOption,expand:(null===(n=null==r?void 0:r.expandedSubject)||void 0===n?void 0:n.id)===e.subject.id,selectedChildCount:c,extraClasses:e.extraClasses,hideStatus:e.hideStatus});return e.disabled?o.createElement("span",null,u):o.createElement(m.u,{title:e.subject.name},o.createElement("span",null,u))}},95436:(e,t,n)=>{n.d(t,{a:()=>a});var r=n(1024),o=n(8493);function a(e){return r.createElement("nav",{className:"d-flex justify-content-center pt-3 position-relative ".concat("cwMAI")},e.steps.map((function(e,t){return r.createElement(o.F,{key:t,appLink:e.disabled||e.active?null:e.appLink,className:(n=e.active,a=e.disabled,i=n?"bg-info":"bg-light",c=a||n?"":"cursor-pointer","".concat("rounded-circle mx-2 G0_JK"," ").concat(i," ").concat(c))});var n,a,i,c})))}},386:(e,t,n)=>{n.d(t,{c:()=>d});var r=n(1024),o=n.n(r),a=n(83914),i=n(58130);const c="H4u81",l="w5g0e";var u=function(e){return e.selectedChildrenCount?r.createElement("div",{className:"".concat(c," ").concat(l)},e.selectedChildrenCount):r.createElement(r.Fragment,null)},s=function(e){var t;return t=e.selected?r.createElement(a.x,{svgName:i.vn.Check}):e.radioButton?r.createElement(r.Fragment,null," "):r.createElement(a.x,{svgName:i.vn.Plus}),r.createElement("div",{className:"".concat(c," ").concat(e.selected?l:"iYkPv")},t)};function d(e){var t,n="".concat("CCsqs"," ").concat(e.expand?"w7N1R":"mO0Kn");return o().createElement("li",{className:(t="rounded ".concat("PSWHa"),e.extraClasses&&(t+=" "+e.extraClasses),e.isDisabled&&(t+=" Oyw2x"),e.isSelected&&!e.isExpandable&&(t+=" Czk2N"),e.hideStatus&&(t+=" _e7oe"),t),onClick:e.onClick,"aria-checked":e.isSelected,"aria-haspopup":e.isExpandable,role:e.isExpandable?"button":"checkbox",style:{backgroundImage:"url(".concat(e.imageUrl,")")},tabIndex:0,title:e.name},o().createElement("div",{className:"".concat("pfksF"," p-2")},o().createElement("p",{className:"text-truncate mb-0"},e.name,o().createElement("span",{className:e.isExpandable?n:""})),!e.hideStatus&&o().createElement(o().Fragment,null,e.isExpandable?o().createElement(u,{selectedChildrenCount:e.selectedChildCount}):o().createElement(s,{selected:e.isSelected,radioButton:e.radioButton}))))}},70154:(e,t,n)=>{n.d(t,{x:()=>r});var r=(0,n(1024).createContext)(void 0)},26480:(e,t,n)=>{n.r(t),n.d(t,{WelcomePopupView:()=>w});var r=n(1024),o=n.n(r),a=n(23481),i=n(83345),c=n(25925),l=n(9111),u=n(94035),s=n(67453),d=n(54610),f=n(69883),h=n(13876),p=n(51200);function m(e){return m="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},m(e)}function v(){v=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var a=t&&t.prototype instanceof f?t:f,i=Object.create(a.prototype),c=new C(o||[]);return r(i,"_invoke",{value:S(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function f(){}function h(){}function p(){}var y={};l(y,a,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(L([])));g&&g!==t&&n.call(g,a)&&(y=g);var w=p.prototype=f.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,a,i,c){var l=s(e[r],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==m(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,i,c)}),(function(e){o("throw",e,i,c)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return o("throw",e,i,c)}))}c(l.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function S(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=j(i,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return h.prototype=p,r(w,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(x.prototype),l(x.prototype,i,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},E(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},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),d},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),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var b="settings.welcomePopup",g=a.T.encloseNamespace(b);function w(e){var t,n,r=(t=o().useState(!1),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 r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.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)?y(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.")}()),m=r[0],w=r[1],E=(0,f.Z)(),x=(0,p.I)(),S=x.availablePresentations,j=x.selectedPresentation,k=x.setSelectedPresentation,O=x.persistPresentation,C=x.hasLoaded;function L(){w(!1),e.closePopup()}function N(){w(!1),E.error(a.T.getPhrase(b,"error"))}return o().createElement(l.G,{title:g("title"),size:"md",closeButton:!1,closePopup:function(){e.closePopup()},backdrop:"static",centered:!0},o().createElement("div",{className:"".concat("b2r5s")},o().createElement("p",null,o().createElement(i.x,{namespace:b,phrase:"info_primary"})),o().createElement("p",null,o().createElement(i.x,{namespace:b,phrase:"info_secondary"})),o().createElement("div",{className:"mt-3"},o().createElement("div",{className:"position-relative"},o().createElement("ul",{className:"list-unstyled d-flex ".concat("oHNZN")},C&&(null==S?void 0:S.map((function(e){var t;return e.type!==c.R.Subject?o().createElement(o().Fragment,{key:e.id}):o().createElement(u.cQ,{key:e.id,name:e.name,imageUrl:s.j.createUrl(null===(t=e.cover)||void 0===t?void 0:t.url,{size:d.h2.Medium})||"",onClick:function(){return function(e){k(e)}(e)},isSelected:(null==j?void 0:j.id)===e.id,extraClasses:"".concat("olBqT"," m-2"),radioButton:!0})}))))),o().createElement(h.u,null,o().createElement(h.u.Submit,{variant:"dark",onClick:function(){return e=this,t=void 0,n=void 0,r=v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!0),e.next=3,O(L,N);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})),new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function c(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}l((r=r.apply(e,t||[])).next())}));var e,t,n,r},text:g("save"),showSpinner:m,disabled:!j})))))}},92875:(e,t,n)=>{n.d(t,{Z:()=>r});const r={grid:"X9r1Y",subgrid:"TgYhp"}}}]);
@@ -1 +0,0 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7831],{15446:(e,t,n)=>{n.d(t,{C:()=>m});var a=n(1024),i=n.n(a),r=n(8493),l=n(93696),o=n(68626),c=n(3133),s=n(54610),d=n(65858);var m=i().memo((function(e){var t;return i().createElement("div",{className:"flex-shrink-0 px-1 ".concat("hzP5u")},i().createElement("div",{className:"row m-0 border rounded p-2 h-100"},i().createElement("div",{className:"col-6 p-0"},i().createElement(l.u,{video:e.data,appLink:e.getAppLink(e.data),type:"static",imageOptions:{size:s.h2.Small},textPosition:o.z.Independent,analyticsOptions:{location:d.LocationContext.SlidingListItem},preload:!0})),i().createElement("div",{className:"col-6 p-0"},i().createElement("div",{className:"pl-2"},i().createElement(r.F,{appLink:e.getAppLink(e.data)},i().createElement("h3",{className:"h6 mb-1"},i().createElement("span",{className:"clamp-2"},e.data.name))),i().createElement(c.R,{owner:e.data.owner,isClickViewContent:null===(t=e.data._isClickViewContent)||void 0===t?void 0:t.value,imageCdnUrl:e.imageCdnUrl})))))}))},56871:(e,t,n)=>{n.d(t,{N:()=>V});var a=n(1024),i=n.n(a),r=n(17082),l=n(28400),o=n(23049),c=n(23481),s=n(83657),d=n(83345),m=n(8493),u=n(11518),p=n(58704),v=n(15446),g=n(47862),h=n(22902),f=n(16714),E=n(12754),y=n(74122),b=n(65986),N=n(97291),C=n(14070),x=n(96833),k=n(78166),I=n(43853),L=n(99719),P=n(22490);function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var w="shared.playClip",S=c.T.encloseNamespace(w);function V(e){var t,n,a,c,V,O,T,U,j,D=(U=(0,y.g)(),j=2,function(e){if(Array.isArray(e))return e}(U)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,l,o=[],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)&&(o.push(a.value),o.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw i}}return o}}(U,j)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.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)?A(e,t):void 0}}(U,j)||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.")}()),F=D[0],_=D[1],M=F.video;(0,o.o)(null==M?void 0:M.name),(0,I.T)();var H=(0,h.T)().hasPermissions,R=(0,b._)(b.i.PlayPage);function z(){var t;return!(null===(t=e.currentUser)||void 0===t?void 0:t.isAuthenticated)||!e.hasProduct(E.x.Primary)||!!H(f.C.StudentExperience)}i().useEffect((function(){return _("isOnPlayPage",!0),_("allowFloatingPlayer",!0),function(){_("isOnPlayPage",!1)}}),[]);var W,q=null!==(a=null===(n=null===(t=e.originalVideo.clips)||void 0===t?void 0:t.data)||void 0===n?void 0:n.filter((function(e){return e.id.toString()!==M.id.toString()})))&&void 0!==a?a:[];return i().createElement("div",{className:"px-3"},i().createElement("div",{className:"mb-2"},!F.showFloatingPlayer&&i().createElement(r.t0,{node:F.portalNode}),i().createElement("div",{className:F.showFloatingPlayer?"":"d-none"},i().createElement(x.S,{video:M,type:"pip"}))),i().createElement("div",{className:"d-flex justify-content-between align-items-center"},i().createElement("div",{className:"d-flex flex-column"},i().createElement("h1",{className:"h3 d-inline-block mb-1"},M.name),!z()&&!!(null===(c=M._canUpdate)||void 0===c?void 0:c.value)&&i().createElement("p",{className:"mb-1 mr-3 clamp-1"},i().createElement(d.x,{namespace:w,phrase:"backTo"})," ",i().createElement(m.F,{className:"info-link",appLink:(W=e.originalVideo,{application:N.O.VIDEOS,action:C.e.Videos.PLAY_VIDEO,args:[W.id,l.m.slugify(W.name)]})},e.originalVideo.name))),(null===(V=e.currentUser)||void 0===V?void 0:V.isAuthenticated)&&e.hasProduct(E.x.Primary)&&i().createElement(s.e,{actions:R(M),actionsDropdownClassName:"btn btn-outline-dark"})),!!M.description&&i().createElement("div",{className:"pt-3"},i().createElement(L.X,{video:M,maxHeight:130})),!(!(null==q?void 0:q.length)||z())&&i().createElement("div",{className:"mt-3 mx-n1"},i().createElement(u.kM,{name:S("otherClips",{count:q.length}),contents:p.z.Clips,collection:q,prefetched:!0,getChildAppLink:function(e){return{application:N.O.CLIPS,action:C.e.Clips.PLAY_CLIP,args:[e.id,l.m.slugify(e.name)]}},childComponent:v.C,extraChildComponentProps:{video:e.originalVideo,imageCdnUrl:e.imageCdnUrl},analyticsData:{widgetId:"clips"}})),!(!(null===(T=null===(O=M.interactives)||void 0===O?void 0:O.data)||void 0===T?void 0:T.length)||z())&&i().createElement("div",{className:"mt-3 mx-n1"},i().createElement(u.kM,{name:S("interactives",{count:M.interactives.data.length}),contents:p.z.Interactives,collection:M.interactives.data,prefetched:!0,getChildAppLink:function(e){return{application:N.O.INTERACTIVES,action:C.e.Interactives.VIEW_INTERACTIVE,args:[e.id,l.m.slugify(e.name)]}},childComponent:g.K,extraChildComponentProps:{video:M,questionsAppLink:{application:N.O.INTERACTIVES,action:C.e.Interactives.PREVIEW_QUESTIONS},imageCdnUrl:e.imageCdnUrl},analyticsData:{widgetId:"interactives"}})),i().createElement(k.Z,{currentVideo:M,relatedVideos:e.relatedVideos,setFavourite:e.setFavourite,canFavourite:e.canFavourite,currentUser:e.currentUser,className:"mt-3",getVideoAppLink:function(t){return P.W.getAppLink(t,{context:e.queryParams.context,contextId:e.queryParams.contextId,playNext:e.queryParams.playNext,shareId:e.shareId})}}))}},96833:(e,t,n)=>{n.d(t,{S:()=>g});var a=n(1024),i=n(23481),r=n(11025),l=n(10874),o=n(58130),c=n(81886),s=n(97291),d=n(14070);const m="LL7My",u="BcnSH",p="QoLgZ";var v=i.T.encloseNamespace("shared.playerPlaceholder");function g(e){switch(e.type){case"pip":return a.createElement(h,Object.assign({},e));case"public":return a.createElement(f,Object.assign({},e));default:return a.createElement(a.Fragment,null)}}var h=function(e){var t,n;return a.createElement("div",{className:"position-relative responsive-img ".concat(p),style:{backgroundImage:"url('".concat(null!==(n=null===(t=r.M.getThumbnail(e.video))||void 0===t?void 0:t.url)&&void 0!==n?n:"","')")}},a.createElement("p",{className:"m-0 text-white h3 ".concat(u)},v("playingPiP")),a.createElement("div",{className:m}))},f=function(e){var t,n,i,g,h=(i={application:s.O.DEFAULT,action:d.e.Default.LOG_IN},(g=c.Q.AppLinkHelper.getHref(c.Q.AppLinkHelper.getCurrentAppLink()))&&"/"!==g&&(i.params={redirectUrl:g}),i);return a.createElement("div",{className:"position-relative responsive-img ".concat(p),style:{backgroundImage:"url('".concat(null!==(n=null===(t=r.M.getThumbnail(e.video))||void 0===t?void 0:t.url)&&void 0!==n?n:"","')")}},a.createElement(l.h,{svgName:o.vn.Play,appLink:h,className:"btn btn-dark ".concat(u)},v("publicCta")),a.createElement("div",{className:m}))}},99719:(e,t,n)=>{n.d(t,{X:()=>y});var a=n(1024),i=n(54976),r=n.n(i),l=n(23481),o=n(28400),c=n(83345),s=n(65858),d=n(91743),m=n(11607),u=n(25723),p=n(11025),v=n(90102);var g="shared.videoDetails",h=l.T.encloseNamespace(g);function f(e){var t=e.label,n=e.items,i=e.className;if(!(n&&n.data&&n.data.length))return a.createElement(a.Fragment,null);var r=n.data.map((function(e){return e.name})).join(", ");return a.createElement("div",{className:i},t,": ",r)}function E(e){var t,n,i,r,l,o,s,m,u,v,g=e.video;return p.M.isVideo(g)?a.createElement("div",{className:g.description?"col-md-5 pl-md-3 pt-3 pt-md-0":"col-12"},a.createElement("h2",{className:"h6 mb-1"},a.createElement(c.x,{phrase:"details"})),e.hasPPDD&&p.M.isVideo(e.video)&&a.createElement("div",{className:"pb-2"},a.createElement(f,{label:h("productionCompanies",{smartCount:null===(n=null===(t=g.productionCompanies)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length}),items:g.productionCompanies}),a.createElement(f,{label:h("distributors",{smartCount:null===(r=null===(i=g.distributors)||void 0===i?void 0:i.data)||void 0===r?void 0:r.length}),items:g.distributors}),a.createElement(f,{label:h("producers",{smartCount:null===(o=null===(l=g.producers)||void 0===l?void 0:l.data)||void 0===o?void 0:o.length}),items:g.producers}),a.createElement(f,{label:h("directors",{smartCount:null===(m=null===(s=g.directors)||void 0===s?void 0:s.data)||void 0===m?void 0:m.length}),items:g.directors})),!!(null===(v=null===(u=g.tags)||void 0===u?void 0:u.data)||void 0===v?void 0:v.length)&&a.createElement(d.P,{tags:g.tags.data,getAppLink:e.getTagAppLink})):a.createElement(a.Fragment,null)}function y(e){var t,n,i=e.video,l=e.maxHeight,d=void 0===l?v.x:l,h=!!e.video.description,f=e.hasPPDD||p.M.isVideo(e.video)&&!!(null===(n=null===(t=e.video.tags)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length);return h||f?a.createElement(c.D.Provider,{value:g},a.createElement("div",{className:"rounded border p-3 mb-3 position-relative"},a.createElement(r(),{autoHeight:!0,autoHeightMax:d},a.createElement("div",{className:"row no-gutters"},h&&a.createElement("div",{className:f?"".concat("uotsN"," pr-3 col-md-7"):"col-12"},a.createElement("div",{className:"d-flex align-items-center"},a.createElement("h2",{className:"h6 mb-1"},a.createElement(c.x,{phrase:"description"})),a.createElement(u.m,{text:i.description,title:i.name,className:"pl-2",onLaunch:e.onLaunchImmersiveReader,onExit:e.onExitImmersiveReader,analyticsOptions:{location:s.LocationContext.PlayPage,entity:s.EntityType.Video,actionType:s.UserAction.Click,descriptor:s.ClickDescriptor.LaunchImmersiveReader},analyticsData:{id:i.id,type:"description"}})),a.createElement("p",{className:"mb-0",dangerouslySetInnerHTML:{__html:o.m.linkifyText(e.video.description)}}),e.canViewCurriculumLinks&&a.createElement(m.L,{onClick:e.onClickSeeCurriculumLinks,className:"cursor-pointer d-inline-block font-weight-500 text-info mt-2"},a.createElement(c.x,{namespace:g,phrase:"seeCurriculumLinks"}))),f&&a.createElement(E,Object.assign({},e)))),e.canViewGlance&&a.createElement("button",{type:"button",className:"close ".concat("j5mgW"),"aria-label":"Close",onClick:e.onClickShowSynopsis},a.createElement("span",{"aria-hidden":"true"},"×")))):a.createElement(a.Fragment,null)}},90102:(e,t,n)=>{n.d(t,{x:()=>a});var a=368},50456:(e,t,n)=>{n.d(t,{l:()=>o});var a=n(1024),i=n(22490),r=n(74122);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function o(e,t,n){var o,c,s=(o=(0,r.g)(),c=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,l,o=[],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)&&(o.push(a.value),o.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw i}}return o}}(o,c)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.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,c)||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.")}())[1];(0,a.useEffect)((function(){if(null==e?void 0:e.id)return t.playNext&&s("playNext",!0),s("nextVideo",e),s("nextVideoAppLink",function(e){return i.W.getAppLink(e,{context:t.context,contextId:t.contextId,playNext:t.playNext,shareId:n})}(e)),function(){s("playNext",!1),s("nextVideo",null),s("nextVideoAppLink",null)}}),[t,e])}}}]);