@clickview/lite 0.32.2-dev.0 → 0.32.2-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.
Files changed (78) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/css/{1064-lite-59a16939e8.chunk.css → 1064-lite-26b39440c2.chunk.css} +1 -1
  3. package/dist/css/{1366-lite-b72d921f1e.chunk.css → 1366-lite-6f12312543.chunk.css} +1 -1
  4. package/dist/css/{1781-lite-9fedb2ab96.chunk.css → 1781-lite-f09d44460a.chunk.css} +1 -1
  5. package/dist/css/{2066-lite-c233c76cc4.chunk.css → 2066-lite-b075dd170f.chunk.css} +1 -1
  6. package/dist/css/{2477-lite-fa6aaa98c3.chunk.css → 2477-lite-f7cda08fb2.chunk.css} +1 -1
  7. package/dist/css/{2729-lite-fa4fb49101.chunk.css → 2729-lite-b8ec771ed1.chunk.css} +1 -1
  8. package/dist/css/{275-lite-fd3ed98b81.chunk.css → 275-lite-62b59223b1.chunk.css} +1 -1
  9. package/dist/css/{3091-lite-cddbfa53f1.chunk.css → 3091-lite-3a9ef7f2f7.chunk.css} +1 -1
  10. package/dist/css/{3755-lite-0ec2ffa5f6.chunk.css → 3755-lite-6f3f0f2a8d.chunk.css} +1 -1
  11. package/dist/css/{4052-lite-f566a65783.chunk.css → 4052-lite-c3de5a82cc.chunk.css} +1 -1
  12. package/dist/css/{4145-lite-cf3e6372a1.chunk.css → 4145-lite-1cb96b833b.chunk.css} +1 -1
  13. package/dist/css/{4229-lite-4b9630590b.chunk.css → 4229-lite-cd6940eb5a.chunk.css} +1 -1
  14. package/dist/css/{8556-lite-2dcab9195a.chunk.css → 4380-lite-e4688ef686.chunk.css} +1 -1
  15. package/dist/css/{4874-lite-fa4fb49101.chunk.css → 4874-lite-b8ec771ed1.chunk.css} +1 -1
  16. package/dist/css/{5171-lite-745a332db8.chunk.css → 5171-lite-72725120a3.chunk.css} +1 -1
  17. package/dist/css/{8035-lite-59a16939e8.chunk.css → 5590-lite-26b39440c2.chunk.css} +1 -1
  18. package/dist/css/{6154-lite-25b908a436.chunk.css → 6154-lite-5b46992519.chunk.css} +1 -1
  19. package/dist/css/{6254-lite-c8ec7cb964.chunk.css → 6254-lite-b3b6e03570.chunk.css} +1 -1
  20. package/dist/css/{6822-lite-6b24fbd8d1.chunk.css → 6822-lite-e6009d7a35.chunk.css} +1 -1
  21. package/dist/css/{6932-lite-e9285e56d1.chunk.css → 6932-lite-720e76a514.chunk.css} +1 -1
  22. package/dist/css/{7286-lite-17dccc0a4e.chunk.css → 7286-lite-140c0a1d94.chunk.css} +1 -1
  23. package/dist/css/{7484-lite-baf2a693fc.chunk.css → 7484-lite-ebedea81cd.chunk.css} +1 -1
  24. package/dist/css/{7952-lite-0033f51a63.chunk.css → 7952-lite-31d475bc5d.chunk.css} +1 -1
  25. package/dist/css/{5590-lite-59a16939e8.chunk.css → 8035-lite-26b39440c2.chunk.css} +1 -1
  26. package/dist/css/{8500-lite-1bd4c4493f.chunk.css → 8500-lite-82cdc84d20.chunk.css} +1 -1
  27. package/dist/css/{4380-lite-2dcab9195a.chunk.css → 8556-lite-e4688ef686.chunk.css} +1 -1
  28. package/dist/css/{9714-lite-78d2fff247.chunk.css → 9714-lite-5e35963ae2.chunk.css} +1 -1
  29. package/dist/css/{9744-lite-cddbfa53f1.chunk.css → 9744-lite-3a9ef7f2f7.chunk.css} +1 -1
  30. package/dist/scripts/{1366-54f9e51541-lite.chunk.js → 1366-a3577264ec-lite.chunk.js} +1 -1
  31. package/dist/scripts/{2066-f1ee632b62-lite.chunk.js → 2066-f7d6966aaa-lite.chunk.js} +1 -1
  32. package/dist/scripts/355-8f8b026298-lite.chunk.js +1 -0
  33. package/dist/scripts/4441-43cbec88d8-lite.chunk.js +2 -0
  34. package/dist/scripts/5986-f1dc977a9e-lite.chunk.js +1 -0
  35. package/dist/scripts/{6154-107ea02e45-lite.chunk.js → 6154-23f1a8b802-lite.chunk.js} +1 -1
  36. package/dist/scripts/7045-2d86063c1c-lite.chunk.js +1 -0
  37. package/dist/scripts/8056-6b8ff9ffda-lite.chunk.js +1 -0
  38. package/dist/scripts/{8564-9474bdbd5f-lite.chunk.js → 8564-b8383ff4c7-lite.chunk.js} +1 -1
  39. package/dist/scripts/8955-93725cfefc-lite.chunk.js +1 -0
  40. package/dist/scripts/9016-1beef54d93-lite.chunk.js +1 -0
  41. package/dist/scripts/bundle-8108193b17.min.js +2 -0
  42. package/package.json +2 -2
  43. package/dist/scripts/355-43835ac290-lite.chunk.js +0 -1
  44. package/dist/scripts/4441-f884e52e1e-lite.chunk.js +0 -2
  45. package/dist/scripts/5986-1fb9fdf8c4-lite.chunk.js +0 -1
  46. package/dist/scripts/7045-8f704951d9-lite.chunk.js +0 -1
  47. package/dist/scripts/8056-0044639a66-lite.chunk.js +0 -1
  48. package/dist/scripts/8955-9823de95f3-lite.chunk.js +0 -1
  49. package/dist/scripts/9016-07dd0022ce-lite.chunk.js +0 -1
  50. package/dist/scripts/bundle-005f181609.min.js +0 -2
  51. /package/dist/scripts/{1064-c89603c84c-lite.chunk.js → 1064-a1f870fbb7-lite.chunk.js} +0 -0
  52. /package/dist/scripts/{1366-54f9e51541-lite.chunk.js.LICENSE.txt → 1366-a3577264ec-lite.chunk.js.LICENSE.txt} +0 -0
  53. /package/dist/scripts/{1781-40d8e94385-lite.chunk.js → 1781-2881f10a07-lite.chunk.js} +0 -0
  54. /package/dist/scripts/{2066-f1ee632b62-lite.chunk.js.LICENSE.txt → 2066-f7d6966aaa-lite.chunk.js.LICENSE.txt} +0 -0
  55. /package/dist/scripts/{2477-f33ce337bd-lite.chunk.js → 2477-20b1d79e0f-lite.chunk.js} +0 -0
  56. /package/dist/scripts/{2729-feeb22f8a9-lite.chunk.js → 2729-ac2464eb7a-lite.chunk.js} +0 -0
  57. /package/dist/scripts/{275-5654ff7e21-lite.chunk.js → 275-92442df106-lite.chunk.js} +0 -0
  58. /package/dist/scripts/{3091-a2f1657bfd-lite.chunk.js → 3091-44c0f4f8d2-lite.chunk.js} +0 -0
  59. /package/dist/scripts/{3755-51bd37a5c6-lite.chunk.js → 3755-b9477924cc-lite.chunk.js} +0 -0
  60. /package/dist/scripts/{4052-4548ee2a0c-lite.chunk.js → 4052-066ef4f645-lite.chunk.js} +0 -0
  61. /package/dist/scripts/{4145-806167788f-lite.chunk.js → 4145-8ed5a4af61-lite.chunk.js} +0 -0
  62. /package/dist/scripts/{4229-bd0e714844-lite.chunk.js → 4229-4cc2aa8c2c-lite.chunk.js} +0 -0
  63. /package/dist/scripts/{4380-719146155f-lite.chunk.js → 4380-33cb3f0526-lite.chunk.js} +0 -0
  64. /package/dist/scripts/{4441-f884e52e1e-lite.chunk.js.LICENSE.txt → 4441-43cbec88d8-lite.chunk.js.LICENSE.txt} +0 -0
  65. /package/dist/scripts/{5171-926c0772a6-lite.chunk.js → 5171-9a85107c26-lite.chunk.js} +0 -0
  66. /package/dist/scripts/{5590-f5dbe096c3-lite.chunk.js → 5590-6a64b6cb33-lite.chunk.js} +0 -0
  67. /package/dist/scripts/{6254-24a065bf5a-lite.chunk.js → 6254-ba0881321f-lite.chunk.js} +0 -0
  68. /package/dist/scripts/{6822-15e9977d1f-lite.chunk.js → 6822-2e8721d1b6-lite.chunk.js} +0 -0
  69. /package/dist/scripts/{6932-09d613876a-lite.chunk.js → 6932-5e097ccfa7-lite.chunk.js} +0 -0
  70. /package/dist/scripts/{7286-cb1923e134-lite.chunk.js → 7286-09ce9d727a-lite.chunk.js} +0 -0
  71. /package/dist/scripts/{7484-6bc5cab7dd-lite.chunk.js → 7484-92bfb995f7-lite.chunk.js} +0 -0
  72. /package/dist/scripts/{7952-6052b549c4-lite.chunk.js → 7952-277f93313c-lite.chunk.js} +0 -0
  73. /package/dist/scripts/{8035-6096b3ef41-lite.chunk.js → 8035-81000f6ea7-lite.chunk.js} +0 -0
  74. /package/dist/scripts/{8500-bd98031e24-lite.chunk.js → 8500-0ab904565d-lite.chunk.js} +0 -0
  75. /package/dist/scripts/{8556-f6d1f3fe46-lite.chunk.js → 8556-38dc1bafb0-lite.chunk.js} +0 -0
  76. /package/dist/scripts/{9714-d0bcd64c24-lite.chunk.js → 9714-480c4a13e8-lite.chunk.js} +0 -0
  77. /package/dist/scripts/{9744-1034ec01a4-lite.chunk.js → 9744-55a72aedd8-lite.chunk.js} +0 -0
  78. /package/dist/scripts/{bundle-005f181609.min.js.LICENSE.txt → bundle-8108193b17.min.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/lite",
3
- "version": "0.32.2-dev.0",
3
+ "version": "0.32.2-dev.1",
4
4
  "description": "ClickView Lite",
5
5
  "main": "dist/scripts/bundle.js",
6
6
  "types": "dist/projects/lite/src/index.d.ts",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@clickview/braze-client": "1.2.1",
34
- "@clickview/styles": "1.31.1-dev.0",
34
+ "@clickview/styles": "1.31.1-dev.1",
35
35
  "@googlemaps/js-api-loader": "1.15.1",
36
36
  "@microsoft/immersive-reader-sdk": "1.0.0",
37
37
  "@microsoft/teams-js": "1.5.2",
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[355,8960],{36199:(t,e,n)=>{var r;n.d(e,{V:()=>r}),function(t){t[t.Original=0]="Original",t[t.Copy=1]="Copy"}(r||(r={}))},94644:(t,e,n)=>{n.d(e,{r:()=>f});var r=n(50242),i=n(81886),o=n(67058),a=n(14553),c=n(49267),u=n(49075),l={notFound:o.d,forbidden:{rating:a.q,yearLevel:a.q,region:c.a,privacy:a.q},badRequest:u._};function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t){var o;o="number"==typeof t?t:t.status;var a=Object.assign(Object.assign({},l),e);o&&i.Q.Ry.isStatusCodeError(o)&&(o!==r.o.NotFound?o!==r.o.Forbidden?n.badRequest||i.Q.Ry.throw(new a.badRequest):n.forbidden||i.Q.Ry.throw(new a.forbidden.privacy):n.notFound||i.Q.Ry.throw(new a.notFound))}}},91286:(t,e,n)=>{n.d(e,{v:()=>a});var r=n(32735),i=n(94644);function o(t){return t.map((function(t){return t.statusCode})).join(":")}function a(t,e,n){var a=Array.isArray(t)?t:[t];(0,r.useEffect)((function(){a.forEach((function(t){(0,i.r)(t.statusCode,e,n)}))}),[o(a),e,n])}},63649:(t,e,n)=>{n.d(e,{X:()=>o});var r=n(32735);const i={video:"ekpg6",notice:"lQs4F",heading:"Gt6uV",interaction:"LEfYX",button:"caHP7",edit:"de4DP",questions:"XelbS"};function o(t){var e=t.isEdit;return r.createElement("div",{className:"px-3 w-100 ".concat(e?i.edit:"")},e?r.createElement("div",{className:"d-flex justify-content-between align-items-center mb-3"},r.createElement("div",{className:"partial-loading-background ".concat(i.heading)}),r.createElement("div",null,r.createElement("div",{className:"partial-loading-background d-inline-block ".concat(i.button)}),r.createElement("div",{className:"partial-loading-background d-inline-block ms-2 ".concat(i.button)}))):r.createElement("div",{className:"partial-loading-background ".concat(i.notice)}),r.createElement("div",{className:"partial-loading-background mb-3 ".concat(i.video)},r.createElement("div",{className:"partial-loading-background ".concat(i.questions)})),r.createElement("div",{className:"partial-loading-background mb-3 ".concat(i.heading)}),r.createElement("div",null,Array(5).fill(null).map((function(t,e){return r.createElement("div",{key:e,className:"partial-loading-background my-2 ".concat(i.interaction)})}))))}},9064:(t,e,n)=>{function r(t){var e,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return null;var a=Object.assign(Object.assign(Object.assign({},t),o),{id:t.id,interactiveId:t.interactiveId,name:t.name});return(null===(e=null==t?void 0:t._parentClip)||void 0===e?void 0:e.id)&&(a.clip={id:null===(n=null==t?void 0:t._parentClip)||void 0===n?void 0:n.id}),(null===(r=null==t?void 0:t._parentVideo)||void 0===r?void 0:r.id)&&(a.video={id:null===(i=null==t?void 0:t._parentVideo)||void 0===i?void 0:i.id}),a}n.d(e,{T:()=>r})},9897:(t,e,n)=>{n.r(e),n.d(e,{EditInteractiveView:()=>G});var r=n(32735),i=n(17082),o=n(81886),a=n(20354),c=n(49985),u=n(65858),l=n(5960),f=n(60051),s=n(61990),d=n(33803),y=n(39151),p=n(20768),b=n(47812),v=n(31949),m=n(91286),g=n(38314),h=n(57052),w=n(14070),E=n(97291),O=n(23481),j=n(64364);function P(t){return P="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},P(t)}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==P(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===P(i)?i:String(i)),r)}var i}function k(t,e){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},k(t,e)}function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}var R="shared.cannotEditPublishedInteractive",T=function(t){!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&&k(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=I(r);if(i){var n=I(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===P(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)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,O.T.getPhrase(R,"title"))}return e=a,(n=[{key:"name",get:function(){return"CannotEditPublishedInteractiveError"}},{key:"heading",get:function(){return O.T.getPhrase(R,"heading")}},{key:"description",get:function(){return O.T.getPhrase(R,"description")}}])&&S(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(j.H),_=n(44960),A=n(63649),C=n(9064),N=n(70680),F=n(36199);function V(t){return V="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},V(t)}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==V(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==V(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===V(i)?i:String(i)),r)}var i}function L(t,e){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},L(t,e)}function Q(t){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Q(t)}var U="shared.cannotEditInteractive",q=function(t){!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&&L(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Q(r);if(i){var n=Q(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===V(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)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,O.T.getPhrase(U,"title"))}return e=a,(n=[{key:"name",get:function(){return"CannnotEditInteractiveError"}},{key:"heading",get:function(){return O.T.getPhrase(U,"heading")}},{key:"description",get:function(){return O.T.getPhrase(U,"description")}}])&&x(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(j.H);function B(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return D(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var M=function(t){var e=(0,N.I0)(),n=B(r.useState(!1),2),i=n[0],c=n[1],u=B(r.useState(!1),2),l=u[0],f=u[1];return r.useEffect((function(){if(t&&!l&&!i)if(t.originType!==F.V.Original){var n=function(){o.Q.Ry.throw(new q)};c(!0),a.a.fetch(e,p.b.copyInteractive(t.interactiveId,(function(r){var i={originType:F.V.Original,interactiveId:r.id};a.a.fetch(e,p.b.updateInteractiveMetadata(t.id,i,(function(){return f(!0)}),n))}),n))}else f(!0)}),[t]),l};function X(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return $(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var H={application:E.O.INTERACTIVES,action:w.e.Interactives.EDIT_INTERACTIVE_DETAILS},K={notFound:s.l,forbidden:{privacy:d.G}};function G(t){var e=X(r.useState(!1),2),n=e[0],s=e[1],d=X(r.useState(!1),2),w=d[0],E=d[1],O=r.useRef(),j=a.a.useBasicFetch(y.L.config()),P=a.a.useBasicFetch(v.N.currentUser()),S=a.a.useBasicFetch(!!P.data&&p.b.interactiveMetadata(t.id)),k=M(S.data),I=a.a.useBasicFetch(k?b.k.createViewKey(S.data.id,f.f.MasterObject):null),R=a.a.useBasicFetch(v.N.token()),N=r.useMemo((function(){return(0,i.oD)()}),[]),F=r.useMemo((function(){return(0,i.oD)()}),[]),V=r.useRef();if((0,m.v)(S,K),!(I.data&&j.data&&S.data&&R.data))return r.createElement(A.X,{isEdit:!0});if(!w&&(E(!0),S.data.status!==l.X.Draft))return o.Q.Ry.throw(new T),null;var x=(0,C.T)(S.data),L={entity:u.py.Interactive,location:u.LZ.EditInteractive,workflowPhase:u.eu.Start};return r.createElement(r.Fragment,null,!n&&r.createElement(A.X,{isEdit:!0}),r.createElement("div",{className:"px-3 ".concat(n?"":"d-none")},r.createElement("div",{className:"d-flex justify-content-between align-items-center mb-3"},r.createElement("h1",{className:"h3 text-truncate mb-0 pb-1"},S.data.name),r.createElement("div",{className:"flex-shrink-0"},r.createElement(i.t0,{node:N}))),r.createElement(h.ClickViewInteractivePlayer,{viewKey:I.data.viewKey,imageApi:new URL(j.data.imageCdnUrl),playerApi:new URL(j.data.playerApiUrl),hotkeyElQuerySelector:"body",autoplay:!0,onReady:function(t){O.current=t,s(!0),V.current=new _.M({player:t,video:S.data,analyticsLocation:u.LZ.EditInteractive})},currentUser:P.data,mode:g.A.Create,actionsPortalNode:N,questionListPortalNode:F,authToken:R.data.value,onClickEditDetails:function(){c.k.logUserAction(x,Object.assign({actionType:u.Vw.Edit},L)),o.Q.C$.trigger(Object.assign(Object.assign({},H),{args:[t.id]}))},onClickPublish:function(){c.k.logUserAction(x,Object.assign({actionType:u.Vw.Publish},L)),o.Q.C$.trigger(Object.assign(Object.assign({},H),{args:[t.id],params:{publish:!0}}))},enableImmersiveReader:!0}),r.createElement(i.t0,{node:F})))}}}]);