@clickview/lite 0.46.0 → 0.46.1-dev.1
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/dist/bundles.json +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/{1081-31d33caff8-lite.chunk.js → 1081-c8f57f8c61-lite.chunk.js} +1 -1
- package/dist/scripts/3081-d735782159-lite.chunk.js +1 -0
- package/dist/scripts/4777-3ecf130828-lite.chunk.js +1 -0
- package/dist/scripts/5271-6cc2fa0197-lite.chunk.js +1 -1
- package/dist/scripts/{6102-3e36166e12-lite.chunk.js → 6102-ab09916cae-lite.chunk.js} +1 -1
- package/dist/scripts/6725-b4bbed9263-lite.chunk.js +1 -0
- package/dist/scripts/{3081-b55baaca7c-lite.chunk.js → 6736-6579bf1059-lite.chunk.js} +2 -2
- package/dist/scripts/{6801-41c3784522-lite.chunk.js → 6801-c8dca9d6ce-lite.chunk.js} +1 -1
- package/dist/scripts/6896-bdd42e6f30-lite.chunk.js +1 -0
- package/dist/scripts/7017-4110ed58df-lite.chunk.js +1 -0
- package/dist/scripts/8772-96ce9094a8-lite.chunk.js +1 -0
- package/dist/scripts/bundle-724d5767b0.min.js +2 -0
- package/jest.config.js +11 -11
- package/package.json +60 -60
- package/typings/libs/CVEvents.d.ts +12 -12
- package/typings/libs/CVLanguages.d.ts +24 -24
- package/typings/libs/cloneDeep.d.ts +4 -4
- package/typings/libs/cookiesjs.d.ts +25 -25
- package/typings/libs/draft-convert.d.ts +3 -3
- package/typings/libs/google-api.d.ts +93 -93
- package/typings/libs/intersection-observer.d.ts +82 -82
- package/typings/libs/microsoft-teams.d.ts +2 -2
- package/typings/libs/react-table-config.d.ts +138 -138
- package/typings/libs/trackjs.d.ts +2 -2
- package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
- package/typings/utils/imports.d.ts +13 -13
- package/dist/scripts/414-7b426955ef-lite.chunk.js +0 -1
- package/dist/scripts/4676-beb0d246a2-lite.chunk.js +0 -2
- package/dist/scripts/4777-2ed89096fa-lite.chunk.js +0 -1
- package/dist/scripts/6102-3e36166e12-lite.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/6896-a3d38ae7a4-lite.chunk.js +0 -2
- package/dist/scripts/6896-a3d38ae7a4-lite.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/7017-1c686d77cb-lite.chunk.js +0 -2
- package/dist/scripts/7017-1c686d77cb-lite.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/8763-f2ccf1cfea-lite.chunk.js +0 -1
- package/dist/scripts/bundle-08d2d66165.min.js +0 -2
- /package/dist/css/{414-lite-db1dbcbd39.chunk.css → 6725-lite-db1dbcbd39.chunk.css} +0 -0
- /package/dist/css/{8763-lite-db1dbcbd39.chunk.css → 8772-lite-db1dbcbd39.chunk.css} +0 -0
- /package/dist/scripts/{2452-c3f02e89b5-lite.chunk.js → 2452-54c1403617-lite.chunk.js} +0 -0
- /package/dist/scripts/{3081-b55baaca7c-lite.chunk.js.LICENSE.txt → 6102-ab09916cae-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4676-beb0d246a2-lite.chunk.js.LICENSE.txt → 6736-6579bf1059-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-08d2d66165.min.js.LICENSE.txt → bundle-724d5767b0.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6725],{94644:(e,a,n)=>{n.d(a,{r:()=>l});var r=n(50242),t=n(81886),i=n(67058),c=n(14553),o=n(49267),s=n(49075),d={notFound:i.d,forbidden:{rating:c.q,yearLevel:c.q,region:o.a,privacy:c.q},badRequest:s._};function l(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var i;i="number"==typeof e?e:e.status;var c=Object.assign(Object.assign({},d),a);i&&t.Q.Ry.isStatusCodeError(i)&&(i!==r.o.NotFound?i!==r.o.Forbidden?n.badRequest||t.Q.Ry.throw(new c.badRequest):n.forbidden||t.Q.Ry.throw(new c.forbidden.privacy):n.notFound||t.Q.Ry.throw(new c.notFound))}}},91286:(e,a,n)=>{n.d(a,{v:()=>c});var r=n(32735),t=n(94644);function i(e){return e.map((function(e){return e.statusCode})).join(":")}function c(e,a,n){var c=Array.isArray(e)?e:[e];(0,r.useEffect)((function(){c.forEach((function(e){(0,t.r)(e.statusCode,a,n)}))}),[i(c),a,n])}},14919:(e,a,n)=>{n.d(a,{w:()=>v});var r=n(32735),t=n(64249),i=n(11607),c=n(2786),o=n(7733),s=n(9085),d=n(98084),l=n(87984);const u={playButtonCircle:"zima4"};function v(e){var a,n,v,m,b=e.onClick,g=e.video,p="rating"in g&&(null===(a=g.rating)||void 0===a?void 0:a.code),f="rating"in g&&(null===(n=g.rating)||void 0===n?void 0:n.value),h=(0,l.C)(f),y="series"in g&&(null===(v=g.series)||void 0===v?void 0:v.name),C="episodeNumber"in g&&g.episodeNumber,E="season"in g&&(null===(m=g.season)||void 0===m?void 0:m.number),w=t.I.getImageUrl(g),k="";w||(k=(0,s.x)(g.name,o.b));var F={backgroundImage:w?"url('".concat(w,"')"):"",backgroundColor:k};return r.createElement(i.L,{className:"cv-embed-splash ".concat(k||"cv-embed-splash-black"),style:F,onClick:b},!!w&&r.createElement("div",{className:"cv-splash-mask"}),r.createElement("div",{className:"cv-splash-metadata"},r.createElement("h1",null,r.createElement("div",{className:"cv-splash-series"},function(e,a,n){if(!e)return"";if(!n||!a)return e;var r=d.I.padNumber(n,2),t=d.I.padNumber(a,2);return"".concat(e," S").concat(r," • E").concat(t)}(y,C,E)),g.name),r.createElement("div",{className:"cv-splash-rating ".concat(h)},p)),r.createElement("div",{className:u.playButtonCircle},r.createElement("svg",{viewBox:"0 0 1800 1800"},r.createElement("path",{d:"M597.3333333333334 1418.6666666666665V373.3333333333333L1418.6666666666667 896z"}))),r.createElement("div",{className:"cv-splash-logo"},r.createElement(c.Yo,null)))}},61995:(e,a,n)=>{n.d(a,{_:()=>c});var r=n(45593),t=n(21938),i=n(76867),c={notFound:t.W,forbidden:{rating:r.F,yearLevel:r.F,region:i.z,privacy:r.F},badRequest:i.z}},66725:(e,a,n)=>{n.r(a),n.d(a,{EmbeddedLcsLoginView:()=>f});var r=n(32735),t=n(23481),i=n(97395),c=n(81886),o=n(20354),s=n(39151),d=n(1575),l=n(91286),u=n(75795),v=n(14919),m=n(6736),b=n(61995),g="embed.embeddedLcsLogin",p={forbidden:!0};function f(e){var a=o.a.useBasicFetch(s.L.config()),n=o.a.useBasicFetch(d.R.publicVideo(e.videoId));function f(){var e=u.O.getCurrentRoute().appLink,a=c.Q.C$.getHref(Object.assign(Object.assign({},e),{params:{a:!0}}));c.Q.Ab.PageLoad(a)}if((0,l.v)(n,b._,p),!a.data||!n.hasCompleted)return r.createElement(r.Fragment,null);var h=n.data;return n.hasError&&(h={name:t.T.getPhrase(g,"privateVideo")}),r.createElement(v.w,{onClick:function(){if(m.b.canUseCookies())m.b.renderSignInPopup({primaryUrl:a.data.primaryUrl,customerId:e.customerId,onClose:f});else{var n=i._.safeUrlConcat(a.data.primaryUrl,"/videos/".concat(e.videoId));window.open(n,"_blank")}},video:h})}},87984:(e,a,n)=>{function r(e){return e?function(e){switch(!0){case e<32:return"cv-rating-purple";case e<48:return"cv-rating-green";case e<80:return"cv-rating-blue";case e<96:return"cv-rating-red";case e<128:return"cv-rating-pink";case e>=128:return"cv-rating-yellow";default:return""}}(e):""}n.d(a,{C:()=>r})}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3081],{6736:(t,e,r)=>{r.d(e,{b:()=>k});var n=r(39202),o=r(97395),i=r(81886),c=r(23481),a=r(47663);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function l(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function f(t,e,r){return e=p(e),function(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var d="embed.protectiveBrowserSettingsError",v=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=f(this,e,[c.T.getPhrase(d,"title")])).url=t,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"ProtectiveBrowserSettingsError"}},{key:"dialogOptions",get:function(){return{title:c.T.getPhrase(d,"heading"),text:c.T.getPhrase(d,"description",{url:this.url}),buttons:[{text:c.T.getPhrase(d,"okay"),className:"btn btn-dark",success:!0}]}}}])&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(a.S);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function g(){g=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof w?e:w,c=Object.create(i.prototype),a=new I(n||[]);return o(c,"_invoke",{value:j(t,r,a)}),c}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function w(){}function b(){}function k(){}var _={};s(_,c,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(N([])));x&&x!==r&&n.call(x,c)&&(_=x);var O=k.prototype=w.prototype=Object.create(_);function P(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,c,a){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==m(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,c,a)}),(function(t){r("throw",t,c,a)})):e.resolve(l).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,a)}))}a(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=h;return function(i,c){if(o===y)throw Error("Generator is already running");if(o===d){if("throw"===i)throw c;return{value:t,done:!0}}for(n.method=i,n.arg=c;;){var a=n.delegate;if(a){var u=S(a,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var c=i.arg;return c?c.done?(r[e.resultName]=c.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(m(e)+" is not iterable")}return b.prototype=k,o(O,"constructor",{value:k,configurable:!0}),o(k,"constructor",{value:b,configurable:!0}),b.displayName=s(k,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,s(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},P(L.prototype),s(L.prototype,a,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var c=new L(l(t,r,n,o),i);return e.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},P(O),s(O,u,"Generator"),s(O,c,(function(){return this})),s(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),s=n.call(c,"finallyLoc");if(u&&s){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){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 i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}var w="_cookieTest";function b(t,e,r,n){var o=window.open(t,"_blank",function(t){var e="sm"===t?550:screen.availWidth,r="sm"===t?750:screen.availWidth,n=parseInt(screen.availWidth/2-e/2+""),o=parseInt(screen.availHeight/2-r/2+"");return["width=".concat(e),"height=".concat(r),"status","resizable","left=".concat(n),"top=".concat(o),"screenX=".concat(n),"screenY=".concat(o),"scrollbars=yes"].join(",")}(n));if(o)return _(o,r),o;i.Q.Ry.throw(new v(e))}var k={renderSignInPopup:function(t){var e=t.primaryUrl,i=t.shareId,c=t.isMicrosoftTeams,a=t.customerId,u=t.onClose,s=t.redirectUrl,l=void 0===s?"/embed-login-success":s,f=t.size,h=void 0===f?"sm":f,p=o._.safeUrlConcat(e,"/login"),y={redirectUrl:l,showSignUp:!0};i&&(y.shareId=i),a&&(y.customerId=a);var d=o._.urlBuilder(p,y);if(!c)return b(d,e,u,h);!function(t){r.e(4777).then(r.t.bind(r,94777,23)).then((function(e){e.initialize(),window.setTimeout((function(){e.authentication.authenticate({url:t,successCallback:function(){n.Ab.Reload()},failureCallback:function(){n.Ab.Reload()},height:1e3,width:1e3})}),0)}))}(d)},renderSignUpPopup:function(t){var e=t.primaryUrl,r=t.onClose,n=t.size,i=void 0===n?"sm":n;return b(o._.safeUrlConcat(e,"/sign-up"),e,r,i)},setPreloadCookie:function(){docCookies.setItem(w,"1",3600,null,null,!0,"none")},canUseCookies:function(){return docCookies.setItem(w,"1",10,null,null,!0,"none"),!!docCookies.getItem("_cookieTest")||(docCookies.setItem(w,"1",10),!!docCookies.getItem(w))},closePopup:function(t){return e=this,n=void 0,o=void 0,i=g().mark((function e(){var n,o;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=function(){try{n.initialize((function(){n.authentication.notifySuccess()}))}catch(t){}},e.next=3,r.e(4777).then(r.t.bind(r,94777,23));case 3:n=e.sent,t?(o(),window.close()):window.setTimeout((function(){o(),window.close()}),1e3),window.opener.postMessage({type:"authenticated"},"*");case 6:case"end":return e.stop()}}),e)})),new(o||(o=Promise))((function(t,r){function c(t){try{u(i.next(t))}catch(t){r(t)}}function a(t){try{u(i.throw(t))}catch(t){r(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(c,a)}u((i=i.apply(e,n||[])).next())}));var e,n,o,i}};function _(t,e){setTimeout((function(){t&&(!1===t.closed?_(t,e):e())}),500)}},13081:(t,e,r)=>{r.r(e),r.d(e,{CookiePreloadView:()=>i});var n=r(32735),o=r(6736);function i(){return n.useEffect((function(){o.b.setPreloadCookie(),window.close()}),[]),n.createElement(n.Fragment,null)}}}]);
|
|
1
|
+
/*! For license information please see 6736-6579bf1059-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6736],{6736:(t,e,r)=>{r.d(e,{b:()=>k});var n=r(39202),o=r(97395),i=r(81886),c=r(23481),a=r(47663);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function l(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function f(t,e,r){return e=p(e),function(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var v="embed.protectiveBrowserSettingsError",d=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=f(this,e,[c.T.getPhrase(v,"title")])).url=t,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"ProtectiveBrowserSettingsError"}},{key:"dialogOptions",get:function(){return{title:c.T.getPhrase(v,"heading"),text:c.T.getPhrase(v,"description",{url:this.url}),buttons:[{text:c.T.getPhrase(v,"okay"),className:"btn btn-dark",success:!0}]}}}])&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(a.S);function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function m(){m=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof w?e:w,c=Object.create(i.prototype),a=new C(n||[]);return o(c,"_invoke",{value:P(t,r,a)}),c}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",y="executing",v="completed",d={};function w(){}function b(){}function x(){}var k={};s(k,c,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(N([])));E&&E!==r&&n.call(E,c)&&(k=E);var O=x.prototype=w.prototype=Object.create(k);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,c,a){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==g(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,c,a)}),(function(t){r("throw",t,c,a)})):e.resolve(l).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,a)}))}a(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function P(e,r,n){var o=h;return function(i,c){if(o===y)throw Error("Generator is already running");if(o===v){if("throw"===i)throw c;return{value:t,done:!0}}for(n.method=i,n.arg=c;;){var a=n.delegate;if(a){var u=S(a,n);if(u){if(u===d)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?v:p,s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var c=i.arg;return c?c.done?(r[e.resultName]=c.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(g(e)+" is not iterable")}return b.prototype=x,o(O,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:b,configurable:!0}),b.displayName=s(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,s(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},L(j.prototype),s(j.prototype,a,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var c=new j(l(t,r,n,o),i);return e.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},L(O),s(O,u,"Generator"),s(O,c,(function(){return this})),s(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),s=n.call(c,"finallyLoc");if(u&&s){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){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 i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}var w=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function c(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,a)}u((n=n.apply(t,e||[])).next())}))},b="_cookieTest";function x(t,e,r,n){var o=window.open(t,"_blank",function(t){var e="sm"===t?550:screen.availWidth,r="sm"===t?750:screen.availWidth,n=parseInt(screen.availWidth/2-e/2+""),o=parseInt(screen.availHeight/2-r/2+"");return["width=".concat(e),"height=".concat(r),"status","resizable","left=".concat(n),"top=".concat(o),"screenX=".concat(n),"screenY=".concat(o),"scrollbars=yes"].join(",")}(n));if(o)return _(o,r),o;i.Q.Ry.throw(new d(e))}var k={renderSignInPopup:function(t){var e=t.primaryUrl,i=t.shareId,c=t.isMicrosoftTeams,a=t.customerId,u=t.onClose,s=t.redirectUrl,l=void 0===s?"/embed-login-success":s,f=t.size,h=void 0===f?"sm":f,p=o._.safeUrlConcat(e,"/login"),y={redirectUrl:l,showSignUp:!0};i&&(y.shareId=i),a&&(y.customerId=a);var v=o._.urlBuilder(p,y);if(!c)return x(v,e,u,h);!function(t){w(this,void 0,void 0,m().mark((function e(){var o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(4777).then(r.t.bind(r,94777,23));case 2:return o=e.sent,window.shale=o,e.prev=4,console.log("calling initialize"),e.next=8,o.app.initialize();case 8:return console.log("initalize returned"),console.log("calling authenticate"),e.next=12,o.authentication.authenticate({url:t,height:1e3,width:1e3});case 12:console.log("authenticate returned"),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(4),console.log("errored"),console.log(e.t0);case 19:return e.prev=19,n.Ab.Reload(),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[4,15,19,22]])})))}(v)},renderSignUpPopup:function(t){var e=t.primaryUrl,r=t.onClose,n=t.size,i=void 0===n?"sm":n;return x(o._.safeUrlConcat(e,"/sign-up"),e,r,i)},setPreloadCookie:function(){docCookies.setItem(b,"1",3600,null,null,!0,"none")},canUseCookies:function(){return docCookies.setItem(b,"1",10,null,null,!0,"none"),!!docCookies.getItem("_cookieTest")||(docCookies.setItem(b,"1",10),!!docCookies.getItem(b))},closePopup:function(t){return w(this,void 0,void 0,m().mark((function e(){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=function(){return w(this,void 0,void 0,m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.app.initialize();case 3:n.authentication.notifySuccess(),t.next=8;break;case 6:t.prev=6,t.t0=t.catch(0);case 8:case"end":return t.stop()}}),t,null,[[0,6]])})))},e.next=3,r.e(4777).then(r.t.bind(r,94777,23));case 3:n=e.sent,t?(o(),window.close()):window.setTimeout((function(){o(),window.close()}),1e3),window.opener.postMessage({type:"authenticated"},"*");case 6:case"end":return e.stop()}}),e)})))}};function _(t,e){setTimeout((function(){t&&(!1===t.closed?_(t,e):e())}),500)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6801],{86801:(t,n,e)=>{"use strict";e.r(n),e.d(n,{NotificationsView:()=>B});var i=e(71365),o=e(23481),r=e(81886),a=e(41546),s=e(18314),c=e(50723),l=e(60735),u=e(83905),p=e(39479),f=e(49985),h=e(65858),y=e(35454),v=e.n(y);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function g(t,n,e){return(n=m(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function d(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,m(i.key),i)}}function m(t){var n=function(t,n){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=b(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(n)?n:n+""}function k(t,n,e){return n=O(n),function(t,n){if(n&&("object"===b(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,w()?Reflect.construct(n,e||[],O(t).constructor):n.apply(t,e))}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function P(t,n){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},P(t,n)}var j=function(t){function n(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),k(this,n,[t])}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&P(t,n)}(n,t),e=n,(i=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return v()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var t={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var n=this.options.cursors.previous,e=this.buildCursor(this.options.cursors.previous,!0);+n<=1&&!0!==this.options.allowFirstPageCursor&&delete e.params.cursor,t[".previous-applink"]=e}return this.options.cursors.next&&(t[".next-applink"]=this.buildCursor(this.options.cursors.next)),t}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(t,n){var e=this.options.appLink.params;return n?(null==e?void 0:e.previous)?{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:{cursor:null==e?void 0:e.previous}}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:p.extend({},this.options.appLink.params,g(g({},this.options.cursorParamName,t),"previous",e.cursor))}}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var n=f.k.mergeOptions(this.options.analyticsOptions,{location:h.LZ.Pagination,entity:h.py.Pagination,actionType:h.Vw.Navigate}),e={id:this.options.collectionId,page:t};f.k.logUserAction(e,n)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&d(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,i}(r.Q.wA),C=e(65220),x=e(72264),L=e(89224),S=e.n(L),_=e(43454),E=e.n(_),I=e(58081);function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}function T(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,R(i.key),i)}}function R(t){var n=function(t,n){if("object"!=N(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=N(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==N(n)?n:n+""}function V(t,n,e){return n=A(n),function(t,n){if(n&&("object"===N(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,D()?Reflect.construct(n,e||[],A(t).constructor):n.apply(t,e))}function D(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(D=function(){return!!t})()}function A(t){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},A(t)}function U(t,n){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},U(t,n)}var B=function(t){function n(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),V(this,n,[t])}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&U(t,n)}(n,t),e=n,(p=[{key:"name",get:function(){return"NotificationsView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"notifications.notifications"}},{key:"template",get:function(){return E()}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:u.k.ComponentCollection,options:{collectionLength:5,childOptions:{template:S(),className:"px-1 py-2",viewOptions:{styles:I.Z}}}}},pagination:{replaceElement:!0,el:".pagination-region"}}}},{key:"initialize",value:function(){this.notificationService=i.u.getInstance(l.D.Notification,this),this.appVariables=i.u.getInstance(s.C.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new C.J(Object.assign({collectionPrefix:c.j.NOTIFICATIONS},this.options.params))}},{key:"renderNotificationList",value:function(){var t=new a.Z({collection:this.collection,childType:a.z.Default,liteUrl:this.config instanceof r.Q.Hn?this.config.get("liteUrl"):this.config.liteUrl,libraryEditorUrl:this.config instanceof r.Q.Hn?this.config.get("libraryEditorUrl"):this.config.libraryEditorUrl,hasLite:this.options.hasLite});this.showChildView("notifications",t)}},{key:"renderPagination",value:function(){if(this.collection.length){var t=this.notificationService.getNotificationsCursors(this.getCollectionIdentifier()),n=new j({cursors:t,appLink:Object.assign(Object.assign({},this.appVariables.appLinks.notifications),{args:[],params:this.getCollectionIdentifier().toParams()})});this.showChildView("pagination",n)}}},{key:"requiredResources",get:function(){return{config:x.p.config}}},{key:"viewOptions",value:function(){var t,n;return{containerClass:null!==(n=null===(t=this.appVariables)||void 0===t?void 0:t.notificationsViewClassNames)&&void 0!==n?n:""}}},{key:"onBeforeRender",value:function(){var t=this;return this.collection||this.notificationService.getNotifications(this.options.params,this.getCollectionIdentifier(),(function(n){return t.onData(n)})),!!this.collection}},{key:"onRender",value:function(){this.renderNotificationList(),this.renderPagination()}}])&&T(e.prototype,p),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,p}(r.Q.G7)},43454:(t,n,e)=>{var i=e(32227);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,n,e,i,o){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<div class="'+a(t.lambda(null!=(r=null!=n?n.options:n)?r.containerClass:r,n))+'">\n <h1 class="header border-bottom pb-2 m-0">'+a((e.lang||n&&n.lang||t.hooks.helperMissing).call(null!=n?n:t.nullContext||{},"notifications",{name:"lang",hash:{},data:o}))+'</h1>\n <div class="list-region"></div>\n <div class="pagination-region"></div>\n</div>'},useData:!0})},35454:(t,n,e)=>{var i=e(32227);t.exports=(i.default||i).template({1:function(t,n,e,i,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,n,e,i,o){t.propertyIsEnumerable;var r,a=null!=n?n:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="p-3">\n <a class="btn previous-applink btn-outline-dark '+(null!=(r=e.unless.call(a,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"previous",{name:"lang",hash:{},data:o}))+'</a>\n <a class="btn next-applink btn-outline-dark '+(null!=(r=e.unless.call(a,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"next",{name:"lang",hash:{},data:o}))+"</a>\n</div>"},useData:!0})}}]);
|
|
1
|
+
(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6801],{86801:(t,n,e)=>{"use strict";e.r(n),e.d(n,{NotificationsView:()=>B});var i=e(71365),o=e(23481),r=e(81886),a=e(41546),s=e(18314),c=e(50723),l=e(60735),u=e(83905),p=e(39479),f=e(49985),h=e(65858),y=e(35454),v=e.n(y);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function g(t,n,e){return(n=m(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function d(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,m(i.key),i)}}function m(t){var n=function(t,n){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=b(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(n)?n:n+""}function k(t,n,e){return n=O(n),function(t,n){if(n&&("object"===b(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,w()?Reflect.construct(n,e||[],O(t).constructor):n.apply(t,e))}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function P(t,n){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},P(t,n)}var j=function(t){function n(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),k(this,n,[t])}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&P(t,n)}(n,t),e=n,(i=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return v()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var t={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var n=this.options.cursors.previous,e=this.buildCursor(this.options.cursors.previous,!0);+n<=1&&!0!==this.options.allowFirstPageCursor&&delete e.params.cursor,t[".previous-applink"]=e}return this.options.cursors.next&&(t[".next-applink"]=this.buildCursor(this.options.cursors.next)),t}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(t,n){var e=this.options.appLink.params;return n?(null==e?void 0:e.previous)?{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:{cursor:null==e?void 0:e.previous}}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:p.extend({},this.options.appLink.params,g(g({},this.options.cursorParamName,t),"previous",e.cursor))}}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var n=f.k.mergeOptions(this.options.analyticsOptions,{location:h.LZ.Pagination,entity:h.py.Pagination,actionType:h.Vw.Navigate}),e={id:this.options.collectionId,page:t};f.k.logUserAction(e,n)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&d(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,i}(r.Q.wA),C=e(65220),x=e(72264),L=e(89224),S=e.n(L),_=e(43454),E=e.n(_),I=e(58081);function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}function T(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,R(i.key),i)}}function R(t){var n=function(t,n){if("object"!=N(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=N(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==N(n)?n:n+""}function V(t,n,e){return n=A(n),function(t,n){if(n&&("object"===N(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,D()?Reflect.construct(n,e||[],A(t).constructor):n.apply(t,e))}function D(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(D=function(){return!!t})()}function A(t){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},A(t)}function U(t,n){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},U(t,n)}var B=function(t){function n(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),V(this,n,[t])}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&U(t,n)}(n,t),e=n,(p=[{key:"name",get:function(){return"NotificationsView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"notifications.notifications"}},{key:"template",get:function(){return E()}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:u.k.ComponentCollection,options:{collectionLength:5,childOptions:{template:S(),className:"px-1 py-2",viewOptions:{styles:I.Z}}}}},pagination:{replaceElement:!0,el:".pagination-region"}}}},{key:"initialize",value:function(){this.notificationService=i.u.getInstance(l.D.Notification,this),this.appVariables=i.u.getInstance(s.C.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new C.J(Object.assign({collectionPrefix:c.j.NOTIFICATIONS},this.options.params))}},{key:"renderNotificationList",value:function(){var t=new a.Z({collection:this.collection,childType:a.z.Default,liteUrl:this.config instanceof r.Q.Hn?this.config.get("liteUrl"):this.config.liteUrl,libraryEditorUrl:this.config instanceof r.Q.Hn?this.config.get("libraryEditorUrl"):this.config.libraryEditorUrl,hasLite:this.options.hasLite});this.showChildView("notifications",t)}},{key:"renderPagination",value:function(){if(this.collection.length){var t=this.notificationService.getNotificationsCursors(this.getCollectionIdentifier()),n=new j({cursors:t,appLink:Object.assign(Object.assign({},this.appVariables.appLinks.notifications),{args:[],params:this.getCollectionIdentifier().toParams()})});this.showChildView("pagination",n)}}},{key:"requiredResources",get:function(){return{config:x.p.config}}},{key:"viewOptions",value:function(){var t,n;return{containerClass:null!==(n=null===(t=this.appVariables)||void 0===t?void 0:t.notificationsViewClassNames)&&void 0!==n?n:""}}},{key:"onBeforeRender",value:function(){var t=this;return this.collection||this.notificationService.getNotifications(this.options.params,this.getCollectionIdentifier(),(function(n){return t.onData(n)})),!!this.collection}},{key:"onRender",value:function(){this.renderNotificationList(),this.renderPagination()}}])&&T(e.prototype,p),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,p}(r.Q.G7)},43454:(t,n,e)=>{var i=e(32227);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,n,e,i,o){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<div class="'+a(t.lambda(null!=(r=null!=n?n.options:n)?r.containerClass:r,n))+'">\r\n <h1 class="header border-bottom pb-2 m-0">'+a((e.lang||n&&n.lang||t.hooks.helperMissing).call(null!=n?n:t.nullContext||{},"notifications",{name:"lang",hash:{},data:o}))+'</h1>\r\n <div class="list-region"></div>\r\n <div class="pagination-region"></div>\r\n</div>'},useData:!0})},35454:(t,n,e)=>{var i=e(32227);t.exports=(i.default||i).template({1:function(t,n,e,i,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,n,e,i,o){t.propertyIsEnumerable;var r,a=null!=n?n:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-outline-dark '+(null!=(r=e.unless.call(a,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"previous",{name:"lang",hash:{},data:o}))+'</a>\r\n <a class="btn next-applink btn-outline-dark '+(null!=(r=e.unless.call(a,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"next",{name:"lang",hash:{},data:o}))+"</a>\r\n</div>"},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6896],{36896:(e,n,r)=>{r.r(n),r.d(n,{PluginLoginView:()=>b});var t=r(32735),a=r(98269),i=r(60810),l=r(39202),c=r(97395),s=r(81886),o=r(20354),m=r(2786),u=r(83345),d=r(39151),p=r(62756),f=r(6736);const g={contentWidth:"Vm5ro"};var v="embed.pluginLogin";function b(e){var n=o.a.useBasicFetch(d.L.config()),r=function(e){var n=e.split("?");if(!n.length)return null;var r=n.slice(1).join("?");return l.Ab.DeserializeQueryParams(r)}(e.returnUrl),b=r.customerId,y=r.consumerKey,k=y===p.A.MicrosoftTeams,E=y===p.A.SmartEmbed;return t.createElement("div",{className:"d-flex justify-content-center align-items-center vh-100"},t.createElement("div",{className:"".concat(g.contentWidth," d-flex align-items-center flex-column justify-content-center p-4")},t.createElement("div",{className:"px-4"},t.createElement(m.$S,null)),t.createElement("p",{className:"my-3"},t.createElement(u.x,{namespace:v,phrase:"tagline"})),t.createElement(a.Z,{variant:"dark",className:"btn-lg w-100",onClick:function(){if(!f.b.canUseCookies()&&!k)return r=f.b.renderSignInPopup({primaryUrl:l.Ab.GetCurrentOrigin(),redirectUrl:c._.urlBuilder("/plugin",l.Ab.GetQuery()),customerId:b,onClose:function(){t.off("cv-lms-addvideo")},size:"lg"}),void(t=new i.CVEventsApi(r)).on("cv-lms-addvideo",(function(e,n){var r={type:"cv-lms-addvideo",data:n};window.parent.postMessage(JSON.stringify(r),"*")}));var r,t;f.b.renderSignInPopup({primaryUrl:n.data.primaryUrl,customerId:b,isMicrosoftTeams:k,onClose:function(){s.Q.Ab.PageLoad(e.returnUrl)}})}},t.createElement(u.x,{namespace:v,phrase:"signIn"})),E&&t.createElement(a.Z,{variant:"link",className:"btn-lg w-100 info-link mt-2",onClick:function(){f.b.renderSignUpPopup({primaryUrl:n.data.primaryUrl,onClose:function(){s.Q.Ab.PageLoad(e.returnUrl)}})}},t.createElement(u.x,{namespace:v,phrase:"signUp"}))))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7017],{17017:(e,t,c)=>{c.r(t),c.d(t,{EmbedLoginSuccessView:()=>o});var s=c(32735),a=c(2786),l=c(83345),m=c(99742);const n={logo:"EtNtX"};var r="embed.embedLoginSuccess";function u(){return s.createElement("div",{className:"mt-5"},s.createElement("div",{className:"".concat(n.logo," mx-auto")},s.createElement(a.$S,null)),s.createElement("img",{className:"img-fluid mx-auto d-block mt-4",alt:"Success",src:m.W.SUCCESS,style:{maxWidth:"18rem"}}),s.createElement("p",{className:"text-center mb-4 mt-2"},s.createElement(l.x,{namespace:r,phrase:"success"})))}var i=c(6736);function o(){return s.useEffect((function(){i.b.closePopup()}),[]),s.createElement(u,null)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[8772],{14919:(e,a,t)=>{t.d(a,{w:()=>m});var r=t(32735),c=t(64249),n=t(11607),s=t(2786),i=t(7733),l=t(9085),o=t(98084),d=t(87984);const u={playButtonCircle:"zima4"};function m(e){var a,t,m,v,p=e.onClick,b=e.video,g="rating"in b&&(null===(a=b.rating)||void 0===a?void 0:a.code),E="rating"in b&&(null===(t=b.rating)||void 0===t?void 0:t.value),h=(0,d.C)(E),f="series"in b&&(null===(m=b.series)||void 0===m?void 0:m.name),I="episodeNumber"in b&&b.episodeNumber,C="season"in b&&(null===(v=b.season)||void 0===v?void 0:v.number),k=c.I.getImageUrl(b),w="";k||(w=(0,l.x)(b.name,i.b));var N={backgroundImage:k?"url('".concat(k,"')"):"",backgroundColor:w};return r.createElement(n.L,{className:"cv-embed-splash ".concat(w||"cv-embed-splash-black"),style:N,onClick:p},!!k&&r.createElement("div",{className:"cv-splash-mask"}),r.createElement("div",{className:"cv-splash-metadata"},r.createElement("h1",null,r.createElement("div",{className:"cv-splash-series"},function(e,a,t){if(!e)return"";if(!t||!a)return e;var r=o.I.padNumber(t,2),c=o.I.padNumber(a,2);return"".concat(e," S").concat(r," • E").concat(c)}(f,I,C)),b.name),r.createElement("div",{className:"cv-splash-rating ".concat(h)},g)),r.createElement("div",{className:u.playButtonCircle},r.createElement("svg",{viewBox:"0 0 1800 1800"},r.createElement("path",{d:"M597.3333333333334 1418.6666666666665V373.3333333333333L1418.6666666666667 896z"}))),r.createElement("div",{className:"cv-splash-logo"},r.createElement(s.Yo,null)))}},58772:(e,a,t)=>{t.r(a),t.d(a,{EmbedLoginView:()=>E});var r=t(32735),c=t(97395),n=t(81886),s=t(20354),i=t(30439),l=t(39151),o=t(75795),d=t(14070),u=t(97291),m=t(62756),v=t(14919),p=t(6736),b=t(13746),g=t(75608);function E(e){var a=s.a.useBasicFetch(l.L.config()),t=s.a.useBasicFetch(i.o.getShareObject(e.shareId)),E=(0,g.a)(e.shareId);function h(){var e=o.O.getCurrentRoute().appLink,a=n.Q.C$.getHref(Object.assign(Object.assign({},e),{params:{a:!0}}));n.Q.Ab.PageLoad(a)}return r.useLayoutEffect((function(){b.R.remove()}),[]),a.data&&t.data&&E?r.createElement(v.w,{onClick:function(){if(t.data.isPasswordProtected){var r={application:u.O.EMBED,action:d.e.Embed.VIEW_EMBEDDED_RESOURCE,args:[e.shareId],params:n.Q.C$.getCurrentAppLink().params};n.Q.C$.trigger({application:u.O.LAUNCHPAD,action:d.e.Launchpad.PASSWORD_PROTECTED_SHARE_LINK,args:[e.shareId],params:{appLink:r}})}else if(p.b.canUseCookies())p.b.renderSignInPopup({primaryUrl:a.data.primaryUrl,shareId:e.shareId,customerId:e.customerId,isMicrosoftTeams:e.consumerKey===m.A.MicrosoftTeams,onClose:h});else{var s=c._.safeUrlConcat(a.data.primaryUrl,"/share/".concat(e.shareId));window.open(s,"_blank")}},video:E}):r.createElement(r.Fragment,null)}},75608:(e,a,t)=>{t.d(a,{a:()=>v});var r=t(20354),c=t(30439),n=t(4594),s=t(21750),i=t(43012),l=t(20768),o=t(5112),d=t(60011),u=t(31949),m=t(1575);function v(e){var a=r.a.useBasicFetch(u.N.currentUser()),t=r.a.useBasicFetch(c.o.getShareObject(e)),v=function(){if(!t.data||!a.data)return null;switch(t.data.objectTypeId){case n.E.Video:return m.R.publicVideo(t.data.objectId,e);case n.E.Clip:return i.e.publicClip(t.data.objectId,e);case n.E.Interactive:return l.b.publicInteractiveMetadata(t.data.objectId,e);case n.E.Playlist:return o.C.getSharedPlaylist(t.data.objectId,e);case n.E.Subject:return s.x.classification(t.data.objectId,a.data.id);case n.E.Series:return d.J.sharedSeries(t.data.objectId,e)}}();return r.a.useBasicFetch(v).data}},87984:(e,a,t)=>{function r(e){return e?function(e){switch(!0){case e<32:return"cv-rating-purple";case e<48:return"cv-rating-green";case e<80:return"cv-rating-blue";case e<96:return"cv-rating-red";case e<128:return"cv-rating-pink";case e>=128:return"cv-rating-yellow";default:return""}}(e):""}t.d(a,{C:()=>r})}}]);
|