@clickview/lite 0.37.6 → 0.37.7
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/scripts/{2703-b9c67faeaa-lite.chunk.js → 2703-d521598fbe-lite.chunk.js} +2 -2
- package/dist/scripts/5759-9ff744faa0-lite.chunk.js +2 -0
- package/dist/scripts/{6468-51d7555dc6-lite.chunk.js → 6468-7d33adfc1c-lite.chunk.js} +2 -2
- package/dist/scripts/{841-c047ad76ef-lite.chunk.js → 841-664bc280c3-lite.chunk.js} +2 -2
- package/dist/scripts/bundle-2e1000b775.min.js +2 -0
- package/package.json +1 -1
- package/dist/scripts/5759-ceb0cc6a27-lite.chunk.js +0 -2
- package/dist/scripts/bundle-6a63a8b95a.min.js +0 -2
- /package/dist/scripts/{2703-b9c67faeaa-lite.chunk.js.LICENSE.txt → 2703-d521598fbe-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5759-ceb0cc6a27-lite.chunk.js.LICENSE.txt → 5759-9ff744faa0-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6468-51d7555dc6-lite.chunk.js.LICENSE.txt → 6468-7d33adfc1c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{841-c047ad76ef-lite.chunk.js.LICENSE.txt → 841-664bc280c3-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-6a63a8b95a.min.js.LICENSE.txt → bundle-2e1000b775.min.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 5759-ceb0cc6a27-lite.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5759],{19808:(e,t,n)=>{var r;n.d(t,{b:()=>r}),function(e){e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1"}(r||(r={}))},74887:(e,t,n)=>{n.d(t,{f:()=>i});var r=n(32735),o=n(11607);const a={icon:"ohit6",description:"DmrW6",option:"KOzYf"};function i(e){return r.createElement("ul",{className:"list-unstyled mb-3"},e.options.map((function(t){return r.createElement("li",{key:t.id,className:"".concat(a.option," mb-2 border border-2 rounded-3 ").concat(e.selection===t.id?"border-dark bg-light-blue":"border-transparent")},r.createElement(o.L,{onClick:function(){return e.setSelection(t.id)},className:"d-flex align-items-center p-2"},r.createElement("div",{className:"rounded border border-dark ".concat(t.colourClass," ").concat(a.icon)},r.createElement("img",{src:t.imageUrl,className:"img-fluid"})),r.createElement("div",null,r.createElement("h2",{className:"mb-1 h6"},t.title),r.createElement("p",{className:"mb-0 ".concat(a.description)},t.description))))})))}},12058:(e,t,n)=>{n.d(t,{X:()=>o});var r=n(32735);function o(e){return r.createElement("p",{className:e.className},e.children)}},75919:(e,t,n)=>{n.d(t,{N:()=>a});var r=n(32735);const o={annotation:"LkdHB",above:"ROdbm",below:"OzyHx",left:"W9EBF",right:"zhio2",divider:"cdR_p",imageContainer:"QZZMF"};function a(e){return r.createElement("div",{className:(t="d-flex align-items-center text-center position-relative w-100 ".concat(o.imageContainer),"center"===e.contentPosition&&(t+=" px-5 justify-content-center"),"right"===e.contentPosition&&(t+=" me-n5 justify-content-end"),t)},!!e.annotationUrl&&r.createElement("div",{className:function(){var t=o.annotation;switch(e.annotationPosition){case"top-left":t+=" ".concat(o.above," ").concat(o.left);break;case"top-right":t+=" ".concat(o.above," ").concat(o.right);break;case"bottom-left":t+=" ".concat(o.below," ").concat(o.left);break;case"bottom-right":t+=" ".concat(o.below," ").concat(o.right)}return e.annotationClassName&&(t+=" ".concat(e.annotationClassName)),t}()},r.createElement("img",{className:"img-fluid",src:e.annotationUrl})),e.children,"right"===e.contentPosition&&r.createElement("div",{className:o.divider}));var t}a.defaultProps={contentPosition:"center"}},45038:(e,t,n)=>{n.d(t,{P:()=>i});var r=n(32735),o=n(57245);const a={playerContainer:"w7_Oy",fallback:"xcBuH"};function i(e){return r.createElement("div",{className:"".concat(a.playerContainer," w-100")},e.hasDataLoaded?r.createElement(o._,{config:e.config,video:e.video,currentUser:e.currentUser,shareLink:e.shareLink,viewKey:e.viewKey,onReady:e.onReady,allowPip:!1,allowCreateClip:!1}):r.createElement("div",{className:"".concat(a.fallback," w-100 h-100 bg-light rounded-3 overflow-hidden")}))}},98065:(e,t,n)=>{n.d(t,{x:()=>o});var r=n(19808),o={getWelcomeVideo:function(e){return e?e.primaryUrl.includes("staging")?{videoId:"43000110",shareId:"GgX4xD"}:{videoId:"78694940",shareId:"DNBPmD"}:null},getAdvisorVideo:function(e){if(!e)return null;if(e.primaryUrl.includes("staging"))return{videoId:"43002959",shareId:"b98KVj"};switch(e.instanceRegion){case r.b.US:return{videoId:"78658407",shareId:"GmoxQj"};case r.b.UK:return{videoId:"78647428",shareId:"bwaxkD"};case r.b.AU:default:return{videoId:"78647427",shareId:"Ggo8pG"}}}}},92560:(e,t,n)=>{n.r(t),n.d(t,{OnboardingAdvisorVideoView:()=>A});var r=n(32735),o=n(23481),a=n(20354),i=n(65858),c=n(50122),l=n(30439),s=n(83345),u=n(19808),d=n(60051),f=n(39151),h=n(47812),p=n(31949),m=n(1575),v=n(79967),y=n(99742),g=n(75359),b=n(74887),w=n(12058),E=n(40695),x=n(75919),N=n(45038),k=n(73190),L=n(90815),C=n(98065);const O={headingContainer:"NrAKd",partnerLogos:"jG9GO",infoContainer:"U79xU",options:"Ps0S0"};function I(e){return I="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},I(e)}function U(){U=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.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 u(e,t,n,r){var a=t&&t.prototype instanceof y?t:y,i=Object.create(a.prototype),c=new _(r||[]);return o(i,"_invoke",{value:C(e,n,c)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",v={};function y(){}function g(){}function b(){}var w={};s(w,i,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(j([])));x&&x!==n&&r.call(x,i)&&(w=x);var N=b.prototype=y.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,a,i,c){var l=d(e[o],e,a);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==I(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function C(t,n,r){var o=f;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?m:h,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=m,r.method="throw",r.arg=s.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=d(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function S(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 V(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(I(t)+" is not iterable")}return g.prototype=b,o(N,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(N),e},t.awrap=function(e){return{__await:e}},k(L.prototype),s(L.prototype,c,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new L(u(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(N),s(N,l,"Generator"),s(N,i,(function(){return this})),s(N,"toString",(function(){return"[object Generator]"})),t.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}},t.values=j,_.prototype={constructor:_,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(V),!t)for(var n in this)"t"===n.charAt(0)&&r.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 o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,v):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),v},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),V(n),v}},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;V(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function S(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 V=function(e,t,n,r){return 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())}))},_="onboarding.advisorVideo",j=o.T.encloseNamespace(_),P=[{id:"contact-us",imageUrl:y.W.OnboardingV2.AdvisorVideo.CONTACT_US_ICON,colourClass:"bg-yellow",title:j("contactUsTitle"),description:j("contactUsDescription")},{id:"check-out-clickview",imageUrl:y.W.OnboardingV2.AdvisorVideo.CHECK_OUT_CLICKVIEW_ICON,colourClass:"bg-purple",title:j("checkOutClickViewTitle"),description:j("checkOutClickViewDescription")}];function A(){var e,t,n,o=(0,k.Q)(),I=o.completeStepAsync,A=o.onSaveError,R=o.onClickBack,T=(0,L.H)().logEvent,G=a.a.useBasicFetch(f.L.config()),K=a.a.useBasicFetch(p.N.currentUser()),F=r.useRef(),B=C.x.getAdvisorVideo(G.data),D=a.a.useBasicFetch(B&&m.R.sharedVideo(B.videoId,B.shareId)),W=a.a.useBasicFetch(l.o.getShareObject(B.shareId)),z=a.a.useBasicFetch(h.k.createViewKey(B.shareId,d.f.Share)),H=(t=r.useState(),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,s=!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){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return S(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)?S(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.")}()),Q=H[0],X=H[1],Y={optionId:Q,optionName:null===(e=P.find((function(e){return e.id===Q})))||void 0===e?void 0:e.title,videoId:B.videoId,shareId:B.shareId},Z=(0,v.k)(),M=D.data&&K.hasCompleted&&G.hasCompleted&&W.hasCompleted&&z.hasCompleted,$=function(e){switch(e){case u.b.AU:return{heading:j("auPartners"),imageUrl:y.W.OnboardingV2.AdvisorVideo.PARTNERS_AU};case u.b.UK:return{heading:j("ukPartners"),imageUrl:y.W.OnboardingV2.AdvisorVideo.PARTNERS_UK};case u.b.US:return{heading:j("usPartners"),imageUrl:y.W.OnboardingV2.AdvisorVideo.PARTNERS_US};default:return null}}(K.data.instanceRegion),q=Z.lg||Z.xl||Z.xxl;return r.createElement(E.z,{namespace:_},r.createElement(E.z.Left,{className:"bg-blue d-flex justify-content-center flex-column"},q&&r.createElement(x.N,null,r.createElement(N.P,{hasDataLoaded:M,config:G.data,video:D.data,currentUser:K.data,shareLink:W.data,viewKey:z.data,onReady:function(e){F.current=e;var t=function(){T(i.Vw.Click,i.Ix.PlayVideo,Y)},n=function(){T(i.Vw.Click,i.Ix.PauseVideo,Y)},r=function(){T(i.Vw.Complete,i.Ix.FinishVideo,Y)};e.on("play",t),e.on("pause",n),e.on("ended",r),e.one("dispose",(function(){e.off("play",t),e.off("pause",n),e.off("ended",r)}))}}))),r.createElement(E.z.Right,{hasCustomButtons:!1,onClickNext:function(){return V(this,void 0,void 0,U().mark((function e(){return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(i.Vw.Click,i.Ix.Next,Y),c.m.setAdvisorVideoSelection(Q),e.prev=2,e.next=5,I({isExiting:"check-out-clickview"===Q});case 5:e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(2),A(),e.abrupt("return",Promise.reject());case 11:case"end":return e.stop()}}),e,null,[[2,7]])})))},onClickBack:function(){c.m.removeUsageIntention(),R()},disableNext:!Q,className:"position-relative"},r.createElement(g.W,{className:"".concat(O.headingContainer)},r.createElement(s.x,{phrase:"heading"})),!q&&r.createElement(N.P,{hasDataLoaded:M,config:G.data,video:D.data,currentUser:K.data,shareLink:W.data,viewKey:z.data}),r.createElement(w.X,{className:O.infoContainer},r.createElement(s.x,{phrase:"description"})),r.createElement("div",{className:O.options},r.createElement(b.f,{options:P,selection:Q,setSelection:function(e){var t;T(i.Vw.Select,i.Ix.SelectOption,Object.assign(Object.assign({},Y),{optionId:e,optionName:null===(t=P.find((function(t){return t.id===e})))||void 0===t?void 0:t.title})),X(e)}})),!!$&&r.createElement("div",{className:"".concat(O.partnerLogos)},r.createElement("h2",{className:"h6 text-center"},$.heading),r.createElement("div",{className:"w-100 d-flex justify-content-center"},r.createElement("img",{className:"img-fluid",src:$.imageUrl})))))}}}]);
|