@clickview/library-editor 1.29.0-rc.6 → 1.30.0-dev.0

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 (115) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{9305-library-editor-778f437313.chunk.css → 343-library-editor-b1a086bdd2.chunk.css} +1 -0
  3. package/dist/css/{5880-library-editor-03c1f0c1f4.chunk.css → 8330-library-editor-416f9a7109.chunk.css} +1 -0
  4. package/dist/scripts/{1010-eb374a9f8f.chunk.js → 1010-1b44625dc5.chunk.js} +1 -1
  5. package/dist/scripts/{1086-f5d06e0c5b.chunk.js → 1086-d21ab1571b.chunk.js} +1 -1
  6. package/dist/scripts/{1216-0952024fc9.chunk.js → 1216-179c1dca0d.chunk.js} +1 -1
  7. package/dist/scripts/{1269-5db1f3e32b.chunk.js → 1269-7750f731bb.chunk.js} +1 -1
  8. package/dist/scripts/{1364-f9039d1ee2.chunk.js → 1364-f309a5d8a4.chunk.js} +1 -1
  9. package/dist/scripts/1409-0f41bf4544.chunk.js +1 -0
  10. package/dist/scripts/{1492-347b4b5451.chunk.js → 1492-bd2f5f0464.chunk.js} +1 -1
  11. package/dist/scripts/1601-1de918406b.chunk.js +2 -0
  12. package/dist/scripts/{1832-fec109af6c.chunk.js → 1832-05fb3a513a.chunk.js} +1 -1
  13. package/dist/scripts/{1887-4c84bfbc2c.chunk.js → 1887-8a2b0eb883.chunk.js} +1 -1
  14. package/dist/scripts/{1911-d0d31b94d3.chunk.js → 1911-b6ed80578b.chunk.js} +1 -1
  15. package/dist/scripts/{1934-085c7af5db.chunk.js → 1934-cf519f798f.chunk.js} +1 -1
  16. package/dist/scripts/{2417-c1b7a71c00.chunk.js → 2417-534351f8ac.chunk.js} +1 -1
  17. package/dist/scripts/{243-0e4a585f6b.chunk.js → 243-0fcc0bd4aa.chunk.js} +1 -1
  18. package/dist/scripts/{259-80b903e07b.chunk.js → 259-b76f63a2ee.chunk.js} +1 -1
  19. package/dist/scripts/{2692-f32201422c.chunk.js → 2692-e74bb88cee.chunk.js} +1 -1
  20. package/dist/scripts/{2802-d2d07a2e14.chunk.js → 2802-fdc03b7cbd.chunk.js} +1 -1
  21. package/dist/scripts/{2888-3175201f04.chunk.js → 2888-60217b367b.chunk.js} +1 -1
  22. package/dist/scripts/2910-a9424e3008.chunk.js +2 -0
  23. package/dist/scripts/{299-eb697a2fe1.chunk.js → 299-a68c51dea1.chunk.js} +1 -1
  24. package/dist/scripts/{3096-30b780bfc3.chunk.js → 3096-f81291f39b.chunk.js} +1 -1
  25. package/dist/scripts/{3400-e1313032d6.chunk.js → 3400-89c8e91944.chunk.js} +1 -1
  26. package/dist/scripts/343-821094d1ed.chunk.js +1 -0
  27. package/dist/scripts/{3763-4a058d4401.chunk.js → 3763-d227ec26d4.chunk.js} +1 -1
  28. package/dist/scripts/{4177-8542f33a9e.chunk.js → 4177-bd859447e3.chunk.js} +1 -1
  29. package/dist/scripts/{4201-f94b39b95c.chunk.js → 4201-45a03056c5.chunk.js} +1 -1
  30. package/dist/scripts/{4245-24ff0831a9.chunk.js → 4245-4a9bc98dd1.chunk.js} +1 -1
  31. package/dist/scripts/{4591-e833ab486c.chunk.js → 4591-9c393bb4f0.chunk.js} +1 -1
  32. package/dist/scripts/{4784-dc3271a9b1.chunk.js → 4784-b9108dad5d.chunk.js} +1 -1
  33. package/dist/scripts/{4860-d7c8e49e0d.chunk.js → 4860-cee113f038.chunk.js} +1 -1
  34. package/dist/scripts/{4885-5fcb0b3d21.chunk.js → 4885-0d95be029d.chunk.js} +1 -1
  35. package/dist/scripts/{514-d673e4c14b.chunk.js → 514-7568d91f34.chunk.js} +1 -1
  36. package/dist/scripts/{5412-1265924394.chunk.js → 5412-a0dbe6535a.chunk.js} +1 -1
  37. package/dist/scripts/{5418-a7053d4a2c.chunk.js → 5418-e51bdb3d98.chunk.js} +1 -1
  38. package/dist/scripts/{5424-1b544811d8.chunk.js → 5424-bb8349e9cd.chunk.js} +1 -1
  39. package/dist/scripts/{546-59fc707522.chunk.js → 546-589df6c985.chunk.js} +1 -1
  40. package/dist/scripts/{5745-cec88916be.chunk.js → 5745-3c8daea973.chunk.js} +1 -1
  41. package/dist/scripts/{5747-c05ef8604b.chunk.js → 5747-a680b5805f.chunk.js} +1 -1
  42. package/dist/scripts/{6093-56f14abebe.chunk.js → 6093-8ccfabcb0f.chunk.js} +1 -1
  43. package/dist/scripts/{6220-d6790a5103.chunk.js → 6220-47defcafc9.chunk.js} +1 -1
  44. package/dist/scripts/{6357-d64273e6be.chunk.js → 6357-36bc959cdf.chunk.js} +1 -1
  45. package/dist/scripts/{6505-c885c92dd7.chunk.js → 6505-fb7b7b7e55.chunk.js} +1 -1
  46. package/dist/scripts/{6732-f42320176e.chunk.js → 6732-a735767a4b.chunk.js} +1 -1
  47. package/dist/scripts/{6756-fc2569ee11.chunk.js → 6756-08cd64d51a.chunk.js} +1 -1
  48. package/dist/scripts/{6774-05ef6b24a0.chunk.js → 6774-d375551111.chunk.js} +1 -1
  49. package/dist/scripts/{6995-643c2542a3.chunk.js → 6995-9a68473ffa.chunk.js} +1 -1
  50. package/dist/scripts/{6999-a2d2c853c7.chunk.js → 6999-6745720f22.chunk.js} +1 -1
  51. package/dist/scripts/{7002-5875ed0069.chunk.js → 7002-048146dccc.chunk.js} +1 -1
  52. package/dist/scripts/{7053-269864a2d6.chunk.js → 7053-d1bdf2217e.chunk.js} +1 -1
  53. package/dist/scripts/{708-c0692908d8.chunk.js → 708-da8e0bff2d.chunk.js} +1 -1
  54. package/dist/scripts/{7376-27b6790926.chunk.js → 7376-180679e905.chunk.js} +1 -1
  55. package/dist/scripts/{7634-96a8c961da.chunk.js → 7634-455f30db13.chunk.js} +1 -1
  56. package/dist/scripts/{5880-d14443da2e.chunk.js → 8330-15f3b76292.chunk.js} +1 -1
  57. package/dist/scripts/{8362-148a50f032.chunk.js → 8362-1c2f8107ad.chunk.js} +1 -1
  58. package/dist/scripts/{8727-abd1ecc0fa.chunk.js → 8727-476da527b7.chunk.js} +1 -1
  59. package/dist/scripts/{8762-4bce0c7009.chunk.js → 8762-a2ef356ce4.chunk.js} +1 -1
  60. package/dist/scripts/{8906-17fef7d1d4.chunk.js → 8906-ba9fbbbb83.chunk.js} +1 -1
  61. package/dist/scripts/{8947-ddae6c9c08.chunk.js → 8947-a6cab5c909.chunk.js} +1 -1
  62. package/dist/scripts/{9357-37ddba8d25.chunk.js → 9357-4817f7443a.chunk.js} +1 -1
  63. package/dist/scripts/9554-70701d089a.chunk.js +1 -0
  64. package/dist/scripts/{9695-067d97c1ad.chunk.js → 9695-8b51eba3e6.chunk.js} +1 -1
  65. package/dist/scripts/{9927-ab6248ad0e.chunk.js → 9927-76bba47293.chunk.js} +1 -1
  66. package/dist/scripts/9929-e02d0ea2ca.chunk.js +1 -0
  67. package/dist/scripts/{9976-72ce08e5c6.chunk.js → 9976-53ef9aa588.chunk.js} +1 -1
  68. package/dist/scripts/bundle-bdcc61abe9.min.js +2 -0
  69. package/package.json +73 -74
  70. package/typings/libs/CVEvents.d.ts +12 -12
  71. package/typings/libs/CVLanguages.d.ts +24 -24
  72. package/typings/libs/Environment.d.ts +10 -10
  73. package/typings/libs/LazyLoad.d.ts +29 -29
  74. package/typings/libs/LazyLoad.ts +27 -27
  75. package/typings/libs/backbone.validation.d.ts +99 -99
  76. package/typings/libs/cloneDeep.d.ts +4 -4
  77. package/typings/libs/cookiesjs.d.ts +24 -24
  78. package/typings/libs/google-api.d.ts +4 -4
  79. package/typings/libs/microsoft-teams.d.ts +2 -2
  80. package/typings/libs/trackjs.d.ts +2 -2
  81. package/typings/libs/videojs-contrib-quality-levels.d.ts +30 -30
  82. package/typings/utils/imports.d.ts +9 -9
  83. package/.eslintrc.json +0 -3
  84. package/dist/scripts/1203-c277e037c3.chunk.js +0 -1
  85. package/dist/scripts/1409-cb53d3702a.chunk.js +0 -1
  86. package/dist/scripts/1601-5195376e97.chunk.js +0 -2
  87. package/dist/scripts/2910-fb3077bbb3.chunk.js +0 -2
  88. package/dist/scripts/7825-07655e0a3a.chunk.js +0 -1
  89. package/dist/scripts/9305-4e91d6c9c5.chunk.js +0 -1
  90. package/dist/scripts/bundle-15485571a4.min.js +0 -2
  91. /package/dist/css/{1203-library-editor-36f0a42508.chunk.css → 9554-library-editor-36f0a42508.chunk.css} +0 -0
  92. /package/dist/scripts/{101-c79ad403db.chunk.js → 101-00e92a2abf.chunk.js} +0 -0
  93. /package/dist/scripts/{1601-5195376e97.chunk.js.LICENSE.txt → 1601-1de918406b.chunk.js.LICENSE.txt} +0 -0
  94. /package/dist/scripts/{1934-085c7af5db.chunk.js.LICENSE.txt → 1934-cf519f798f.chunk.js.LICENSE.txt} +0 -0
  95. /package/dist/scripts/{2802-d2d07a2e14.chunk.js.LICENSE.txt → 2802-fdc03b7cbd.chunk.js.LICENSE.txt} +0 -0
  96. /package/dist/scripts/{2803-2b7194894b.chunk.js → 2803-9bdf584e2d.chunk.js} +0 -0
  97. /package/dist/scripts/{2910-fb3077bbb3.chunk.js.LICENSE.txt → 2910-a9424e3008.chunk.js.LICENSE.txt} +0 -0
  98. /package/dist/scripts/{3511-7adc5f4104.chunk.js → 3511-a1cf32ed8a.chunk.js} +0 -0
  99. /package/dist/scripts/{3639-df89ef6c33.chunk.js → 3639-3b07fce6d4.chunk.js} +0 -0
  100. /package/dist/scripts/{3746-4ccea7acfa.chunk.js → 3746-74a690720e.chunk.js} +0 -0
  101. /package/dist/scripts/{3969-8aea96a0bb.chunk.js → 3969-d89f9b6851.chunk.js} +0 -0
  102. /package/dist/scripts/{4523-883e337fac.chunk.js → 4523-807065f612.chunk.js} +0 -0
  103. /package/dist/scripts/{5173-3ce30f3a17.chunk.js → 5173-2f800d0272.chunk.js} +0 -0
  104. /package/dist/scripts/{5235-79c40407fb.chunk.js → 5235-af56909b6a.chunk.js} +0 -0
  105. /package/dist/scripts/{5745-cec88916be.chunk.js.LICENSE.txt → 5745-3c8daea973.chunk.js.LICENSE.txt} +0 -0
  106. /package/dist/scripts/{5891-9dd6330101.chunk.js → 5891-8bf8f33952.chunk.js} +0 -0
  107. /package/dist/scripts/{6788-5a391d38ed.chunk.js → 6788-32797fffcf.chunk.js} +0 -0
  108. /package/dist/scripts/{6963-886e8b40b6.chunk.js → 6963-0786b00366.chunk.js} +0 -0
  109. /package/dist/scripts/{6991-75b3d8dc88.chunk.js → 6991-fe32e78e15.chunk.js} +0 -0
  110. /package/dist/scripts/{7190-a2e8d20ecf.chunk.js → 7190-d934189eb3.chunk.js} +0 -0
  111. /package/dist/scripts/{7433-abdbfcb6b7.chunk.js → 7433-993e53ded6.chunk.js} +0 -0
  112. /package/dist/scripts/{8495-42243eaf11.chunk.js → 8495-b933e1f2f9.chunk.js} +0 -0
  113. /package/dist/scripts/{9770-521b4d655d.chunk.js → 9770-0c60f23d09.chunk.js} +0 -0
  114. /package/dist/scripts/{bundle-15485571a4.min.js.LICENSE.txt → bundle-bdcc61abe9.min.js.LICENSE.txt} +0 -0
  115. /package/dist/scripts/{polyfills-4af83b8e50.min.js → polyfills-38dbf24865.min.js} +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6756],{18068:function(e,t,n){"use strict";n.r(t),n.d(t,{SuggestAnEditView:function(){return W}});var o=n(39479),a=n(57857),r=n(31647),i=n(21679),s=n(99249),l=n(70065),u=n(52076),c=n(61843);function d(e){return d="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},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(r,e);var t,n,o,a=(n=r,o=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(e){return!1}}(),function(){var e,t=p(n);if(o){var a=p(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),a.apply(this,arguments)}return t=r,Object.defineProperty(t,"prototype",{writable:!1}),t}(r.Q.Model),h=n(13102),y=n(67670),m=n(19226),v=n(48404),b=n(48090),w=n(83665),S=n(26357),M=n(88172),O=n(10101),T=n(75459),k=n(8371),E=n(48088),P=n(33192),V=n(29457),j=n(48726),R=n(40622),C=n(7190),_=n(19098),N=n.n(_),x={metadataValue:"mvVSS"};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 D(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,a=function(e,t){if("object"!==I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==I(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===I(a)?a:String(a)),o)}var a}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},B(e,t)}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}var F,L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(l,e);var t,n,o,i,s=(o=l,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(e){return!1}}(),function(){var e,t=U(o);if(i){var n=U(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),s.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"SuggestEditComponent"}},{key:"template",get:function(){return N()}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"mt-3"}},{key:"lang",get:function(){return"libraryEditor.suggestEdit"}},{key:"regions",value:function(){return{ratingSelect:{el:".rating-select-region",replaceElement:!0}}}},{key:"bindings",get:function(){return{"[name=suggestion]":{observe:"suggestion",setOptions:{validate:!0}},"[name=reason]":{observe:"reason",setOptions:{validate:!0}}}}},{key:"elements",get:function(){return{ratingValidation:".rating-form-feedback"}}},{key:"getMetadataValue",value:function(){return this.options.metadataType===R.MetadataType.BroadcastDate?this.options.metadataValue?P(this.options.metadataValue).format(V.K4.FULL_YEAR):a.T.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue instanceof r.Q.Collection?this.options.metadataValue.length?this.options.metadataValue.map((function(e){return e.get("name")})).join(", "):a.T.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue||a.T.getPhrase(this.lang,"noMetadataValue")}},{key:"getSuggestionPlaceholder",value:function(){return this.options.metadataType===R.MetadataType.Other?a.T.getPhrase(this.lang,"otherSuggestionPlaceholder"):a.T.getPhrase(this.lang,"suggestionPlaceholder",{metadataType:C.uB.translateMetadataName(this.options.metadataType).toLowerCase()})}},{key:"renderRatingSelect",value:function(){this.options.ratingValidationMessage?this.getUI("ratingValidation").text(this.options.ratingValidationMessage).attr("style","display: block;"):this.getUI("ratingValidation").hide(),this.options.metadataType===R.MetadataType.Rating&&this.showChildView("ratingSelect",new j.R({model:this.options.currentRating,collection:this.options.ratings,parentChannelName:this.options.channelName,hideHeaderText:!0,hideRemove:!0}))}},{key:"viewOptions",value:function(){return{styles:x,metadataValue:this.getMetadataValue(),useRatingSelect:this.options.metadataType===R.MetadataType.Rating,isOtherType:this.options.metadataType===R.MetadataType.Other,metadataType:C.uB.translateMetadataName(this.options.metadataType).toLowerCase(),suggestionPlaceholder:this.getSuggestionPlaceholder()}}},{key:"onRender",value:function(){this.renderRatingSelect(),this.stickit(),E.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),E.Validation.unbind(this)}}])&&D(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.Q.Component);!function(e){e[e.Email=0]="Email"}(F||(F={}));var A=n(60519),Z=n(68249),H=Object.assign(Object.assign({},A.c),{createSuggestEditNotification:function(e){return{_type:Z.k.SuggestEdit,groupId:e.groupId,receiverId:0,instanceRegion:e.instanceRegion,countryCode:e.countryCode,channels:[F.Email],data:{video:e.video,user:e.user,property:e.property,suggestion:e.suggestion,reason:e.reason,currentValue:e.currentValue}}}}),Q=n(34651),q=n.n(Q);function G(e){return G="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},G(e)}function J(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,a=function(e,t){if("object"!==G(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==G(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===G(a)?a:String(a)),o)}var a}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K(e,t)}(p,e);var t,n,r,d,f=(r=p,d=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(e){return!1}}(),function(){var e,t=z(r);if(d){var n=z(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===G(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),f.call(this,e)}return t=p,(n=[{key:"initialize",value:function(){this.getViewModel(),this.videoDataService=i.u.getInstance(b.Or.Video,this),this.ratingsDataService=i.u.getInstance(b.Or.Ratings,this),this.notificationDataService=i.u.getInstance(b.Or.Notifications,this),this.selectedMetadata=new g,this.bindListeners()}},{key:"name",get:function(){return"SuggestAnEditView"}},{key:"template",get:function(){return q()}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"lang",get:function(){return"libraryEditor.suggestAnEdit"}},{key:"title",get:function(){return a.T.getPhrase(this.lang,"title")}},{key:"channelName",get:function(){return c.N0.generateUniqueChannelName(this)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.videoId)}},{key:"regions",value:function(){return{dropdown:{el:".metadata-dropdown-region",replaceElement:!1},suggestEdit:{el:".suggest-edit-region",replaceElement:!0}}}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:O.Yw,title:a.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new y.v,channelName:this.channelName,buttonText:a.T.getPhrase(this.lang,"submit"),onClick:function(){return e.onSubmit()}}}]}},{key:"requiredResources",get:function(){return{config:v.p.config,currentUser:m.K.currentUser}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:option:selected",this.onMetadataSelect),this.listenTo(this.channelName,"select:rating",this.onSelectRating),this.listenTo(b.Vk.VIDEO,"".concat(b.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(b.Vk.NOTIFICATIONS,"".concat(b.M_.SUGGEST_EDIT,":error"),this.onError)}},{key:"onSubmit",value:function(){var e=this;if(this.validateForm()){this.spinnerModel.set(M.ZV.ShowSpinner,!0);var t=this.selectedMetadata.get("metadataType")===R.MetadataType.Rating?this.viewModel.get("ratingSuggestion"):this.viewModel.get("suggestion"),n=this.config.get("suggestEditMetadataGroupId"),o=H.createSuggestEditNotification({groupId:n,instanceRegion:this.currentUser.get("instanceRegion"),countryCode:this.currentUser.get("countryCode"),video:this.model.toJSON(),user:this.currentUser.toJSON(),property:this.selectedMetadata.get("metadataType").toLowerCase(),suggestion:t,reason:this.viewModel.get("reason"),currentValue:this.selectedMetadata.get("metadataValue")});this.notificationDataService.suggestEdit(o,(function(){e.triggerMethod("hide"),e.spinnerModel.set(M.ZV.ShowSpinner,!1),e.spinnerModel.set(M.ZV.Disabled,!0)})),this.logAction(),this.viewModel.clear()}}},{key:"onError",value:function(){this.spinnerModel.set(M.ZV.ShowSpinner,!1)}},{key:"onMetadataSelect",value:function(e){this.selectMetadata(e),this.renderSuggestEdit()}},{key:"onSelectRating",value:function(e){this.viewModel.set("ratingSuggestion",e.get("name")),this.renderSuggestEdit()}},{key:"selectMetadata",value:function(e){this.spinnerModel.set(M.ZV.Disabled,!1),c.yV.setSelected(e.get("id"),this.metadataCollection),this.selectedMetadata.set({metadataType:e.get("name"),metadataValue:e.get("name")!==R.MetadataType.Other?this.model.get(e.get("property")):null}),e.get("name")!==R.MetadataType.Rating&&this.viewModel.set("ratingSuggestion","")}},{key:"getMetadataCollection",value:function(){var e=Object.keys(R.MetadataTypes).map((function(e){return R.MetadataTypes[e]}));return this.currentUser.get("instanceRegion")===k.b.US&&(e=e.filter((function(e){return e.name!==R.MetadataType.Channel&&e.name!==R.MetadataType.BroadcastDate}))),new w.L(e)}},{key:"getMetadataByType",value:function(e){return this.metadataCollection.findWhere({name:e})}},{key:"getViewModel",value:function(){this.viewModel=s.r.get(this.viewModelName),this.viewModel.addValidation(C.xs)}},{key:"validateForm",value:function(){this.renderSuggestEdit(),this.viewModel.validate();var e=this.viewModel.toJSON(),t=e.reason,n=e.suggestion;return!(this.getRatingValidationMessage()||this.selectedMetadata.get("metadataType")!==R.MetadataType.Rating&&!n||!t)}},{key:"getRatingValidationMessage",value:function(){if(this.selectedMetadata.get("metadataType")!==R.MetadataType.Rating)return"";var e=this.selectedMetadata.get("metadataValue"),t=this.viewModel.get("ratingSuggestion");return t?e===t?C.nf.original():"":C.nf.empty()}},{key:"checkPreselection",value:function(){if(!this.selectedMetadata.get("metadataType")&&this.options.metadata&&this.dataFetched()){var e=this.getMetadataByType(this.options.metadata);this.selectMetadata(e)}}},{key:"logAction",value:function(){var e=c.M2.getSourceTypes(this.model);e=o.filter(e,(function(e){return e!==T.r.CustomLibrary}));var t={videoSourceTypes:o.sortBy(o.unique(e),(function(e){return e})).join(","),videoId:this.model.get("id"),metadataProperty:this.selectedMetadata.get("metadataType"),metadataPropertyValue:this.selectedMetadata.get("metadataValue"),suggestion:this.viewModel.get("suggestion"),reason:this.viewModel.get("reason")};u.k.logUserAction(t,{descriptor:l.SuggestionDescriptor.Edit,location:l.LocationContext.Popup,actionType:l.UserAction.Suggest,entity:l.EntityType.Video})}},{key:"dataFetched",value:function(){return!!this.model&&!!this.ratingCollection}},{key:"renderMetadataDropdown",value:function(){this.showChildView("dropdown",new S.H({collection:C.uB.translateMetadataCollectionNames(this.metadataCollection),channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click"},placeholderText:this.selectedMetadata.get("metadataType")||a.T.getPhrase(this.lang,"dropdownPlaceholder"),analyticsHelper:u.k}))}},{key:"renderSuggestEdit",value:function(){this.selectedMetadata.get("metadataType")&&this.showChildView("suggestEdit",new L({model:this.viewModel,channelName:this.channelName,ratings:this.ratingCollection,currentRating:this.viewModel.get("ratingSuggestion")?new h.i(this.ratingCollection.findWhere({name:this.viewModel.get("ratingSuggestion")})):null,metadataType:this.selectedMetadata.get("metadataType"),metadataValue:this.selectedMetadata.get("metadataValue"),ratingValidationMessage:this.getRatingValidationMessage()}))}},{key:"onBeforeRender",value:function(){this.dataFetched()||(this.model=this.videoDataService.getVideo(this.options.videoId),this.ratingCollection=this.ratingsDataService.getAllRatings()),this.metadataCollection||(this.metadataCollection=this.getMetadataCollection()),this.checkPreselection()}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:c.Kp.getSpinner({size:c.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.dataFetched()&&(this.renderMetadataDropdown(),this.renderSuggestEdit())}}])&&J(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(r.Q.View)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return d}});var o=n(31647),a=n(88172);function r(e){return r="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},r(e)}function i(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,l(o.key),o)}}function l(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===r(t)?t:String(t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(f,e);var t,n,o,l,d=(o=f,l=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(e){return!1}}(),function(){var e,t=c(o);if(l){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),d.apply(this,arguments)}return t=f,(n=[{key:"defaults",value:function(){var e;return i(e={},a.ZV.Disabled,!0),i(e,a.ZV.Hidden,!1),e}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(o.Q.Model)},19098:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,a){e.propertyIsEnumerable;var r,i=e.escapeExpression,s=e.lambda;return'<p class="font-weight-bold mb-0">'+i((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"currentType",{name:"lang",hash:{metadataType:null!=(r=null!=t?t.options:t)?r.metadataType:r},data:a}))+'</p>\n<p class="mb-3 '+i(s(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.metadataValue:r,t))+'">'+(null!=(r=s(null!=(r=null!=t?t.options:t)?r.metadataValue:r,t))?r:"")+"</p>\n"},3:function(e,t,n,o,a){var r;return e.propertyIsEnumerable,' <textarea\n id="suggest-edit"\n placeholder="'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.suggestionPlaceholder:r,t))+'"\n class="form-control"\n name="suggestion"\n ></textarea>\n <div class="form-feedback"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,a){e.propertyIsEnumerable;var r,i=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression;return(null!=(r=n.unless.call(i,null!=(r=null!=t?t.options:t)?r.isOtherType:r,{name:"unless",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+'\n<div class="dropdown-divider"></div>\n\n<div class="form-group">\n <label for="suggest-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(i,"suggestionSubheading",{name:"lang",hash:{},data:a}))+'</label>\n <div class="rating-select-region"></div>\n <div class="rating-form-feedback invalid-feedback"></div>\n'+(null!=(r=n.unless.call(i,null!=(r=null!=t?t.options:t)?r.useRatingSelect:r,{name:"unless",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a}))?r:"")+'</div>\n\n<div class="form-group">\n <label for="reason-for-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(i,"reasoningSubheading",{name:"lang",hash:{},data:a}))+'</label>\n <textarea\n id="reason-for-edit"\n placeholder="'+l((n.lang||t&&t.lang||s).call(i,"reasoningPlaceholder",{name:"lang",hash:{},data:a}))+'"\n class="form-control"\n name="reason"\n ></textarea>\n <div class="form-feedback"></div>\n</div>'},useData:!0})},34651:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,a){e.propertyIsEnumerable;var r=null!=t?t:e.nullContext||{},i=e.hooks.helperMissing,s=e.escapeExpression;return"<p>"+s((n.lang||t&&t.lang||i).call(r,"guidelines",{name:"lang",hash:{},data:a}))+'</p>\n<p class="font-weight-bold mb-1">'+s((n.lang||t&&t.lang||i).call(r,"dropdownHeading",{name:"lang",hash:{},data:a}))+'</p>\n<div class="metadata-dropdown-region position-relative"></div>\n<div class="suggest-edit-region"></div>\n'},3:function(e,t,n,o,a){var r;return e.propertyIsEnumerable,(null!=(r=e.lambda(null!=(r=null!=t?t.options:t)?r.spinnerEl:r,t))?r:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,a){var r;return e.propertyIsEnumerable,null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.dataFetched:r,{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a}))?r:""},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6756],{18068:function(e,t,n){"use strict";n.r(t),n.d(t,{SuggestAnEditView:function(){return W}});var r=n(39479),o=n(57857),a=n(31647),i=n(21679),s=n(99249),l=n(70065),u=n(52076),c=n(61843);function d(e){return d="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},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(a,e);var t,n,r,o=(n=a,r=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(e){return!1}}(),function(){var e,t=p(n);if(r){var o=p(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,Object.defineProperty(t,"prototype",{writable:!1}),t}(a.Q.Model),h=n(13102),y=n(67670),m=n(19226),v=n(48404),b=n(48090),w=n(83665),S=n(26357),M=n(88172),O=n(10101),T=n(75459),k=n(8371),E=n(48088),P=n(33192),V=n(29457),j=n(48726),R=n(40622),C=n(7190),_=n(19098),N=n.n(_),x={metadataValue:"mvVSS"};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 D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===I(o)?o:String(o)),r)}var o}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},B(e,t)}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}var F,L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(l,e);var t,n,r,i,s=(r=l,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(e){return!1}}(),function(){var e,t=U(r);if(i){var n=U(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),s.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"SuggestEditComponent"}},{key:"template",get:function(){return N()}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"mt-3"}},{key:"lang",get:function(){return"libraryEditor.suggestEdit"}},{key:"regions",value:function(){return{ratingSelect:{el:".rating-select-region",replaceElement:!0}}}},{key:"bindings",get:function(){return{"[name=suggestion]":{observe:"suggestion",setOptions:{validate:!0}},"[name=reason]":{observe:"reason",setOptions:{validate:!0}}}}},{key:"elements",get:function(){return{ratingValidation:".rating-form-feedback"}}},{key:"getMetadataValue",value:function(){return this.options.metadataType===R.MetadataType.BroadcastDate?this.options.metadataValue?P(this.options.metadataValue).format(V.K4.FULL_YEAR):o.T.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue instanceof a.Q.Collection?this.options.metadataValue.length?this.options.metadataValue.map((function(e){return e.get("name")})).join(", "):o.T.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue||o.T.getPhrase(this.lang,"noMetadataValue")}},{key:"getSuggestionPlaceholder",value:function(){return this.options.metadataType===R.MetadataType.Other?o.T.getPhrase(this.lang,"otherSuggestionPlaceholder"):o.T.getPhrase(this.lang,"suggestionPlaceholder",{metadataType:C.uB.translateMetadataName(this.options.metadataType).toLowerCase()})}},{key:"renderRatingSelect",value:function(){this.options.ratingValidationMessage?this.getUI("ratingValidation").text(this.options.ratingValidationMessage).attr("style","display: block;"):this.getUI("ratingValidation").hide(),this.options.metadataType===R.MetadataType.Rating&&this.showChildView("ratingSelect",new j.R({model:this.options.currentRating,collection:this.options.ratings,parentChannelName:this.options.channelName,hideHeaderText:!0,hideRemove:!0}))}},{key:"viewOptions",value:function(){return{styles:x,metadataValue:this.getMetadataValue(),useRatingSelect:this.options.metadataType===R.MetadataType.Rating,isOtherType:this.options.metadataType===R.MetadataType.Other,metadataType:C.uB.translateMetadataName(this.options.metadataType).toLowerCase(),suggestionPlaceholder:this.getSuggestionPlaceholder()}}},{key:"onRender",value:function(){this.renderRatingSelect(),this.stickit(),E.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),E.Validation.unbind(this)}}])&&D(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(a.Q.Component);!function(e){e[e.Email=0]="Email"}(F||(F={}));var A=n(60519),Z=n(68249),H=Object.assign(Object.assign({},A.c),{createSuggestEditNotification:function(e){return{_type:Z.k.SuggestEdit,groupId:e.groupId,receiverId:0,instanceRegion:e.instanceRegion,countryCode:e.countryCode,channels:[F.Email],data:{video:e.video,user:e.user,property:e.property,suggestion:e.suggestion,reason:e.reason,currentValue:e.currentValue}}}}),Q=n(34651),q=n.n(Q);function G(e){return G="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},G(e)}function J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==G(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==G(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===G(o)?o:String(o)),r)}var o}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K(e,t)}(p,e);var t,n,a,d,f=(a=p,d=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(e){return!1}}(),function(){var e,t=z(a);if(d){var n=z(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===G(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),f.call(this,e)}return t=p,(n=[{key:"initialize",value:function(){this.getViewModel(),this.videoDataService=i.u.getInstance(b.Or.Video,this),this.ratingsDataService=i.u.getInstance(b.Or.Ratings,this),this.notificationDataService=i.u.getInstance(b.Or.Notifications,this),this.selectedMetadata=new g,this.bindListeners()}},{key:"name",get:function(){return"SuggestAnEditView"}},{key:"template",get:function(){return q()}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"lang",get:function(){return"libraryEditor.suggestAnEdit"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"channelName",get:function(){return c.N0.generateUniqueChannelName(this)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.videoId)}},{key:"regions",value:function(){return{dropdown:{el:".metadata-dropdown-region",replaceElement:!1},suggestEdit:{el:".suggest-edit-region",replaceElement:!0}}}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:O.Yw,title:o.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new y.v,channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"submit"),onClick:function(){return e.onSubmit()}}}]}},{key:"requiredResources",get:function(){return{config:v.p.config,currentUser:m.K.currentUser}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:option:selected",this.onMetadataSelect),this.listenTo(this.channelName,"select:rating",this.onSelectRating),this.listenTo(b.Vk.VIDEO,"".concat(b.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(b.Vk.NOTIFICATIONS,"".concat(b.M_.SUGGEST_EDIT,":error"),this.onError)}},{key:"onSubmit",value:function(){var e=this;if(this.validateForm()){this.spinnerModel.set(M.ZV.ShowSpinner,!0);var t=this.selectedMetadata.get("metadataType")===R.MetadataType.Rating?this.viewModel.get("ratingSuggestion"):this.viewModel.get("suggestion"),n=this.config.get("suggestEditMetadataGroupId"),r=H.createSuggestEditNotification({groupId:n,instanceRegion:this.currentUser.get("instanceRegion"),countryCode:this.currentUser.get("countryCode"),video:this.model.toJSON(),user:this.currentUser.toJSON(),property:this.selectedMetadata.get("metadataType").toLowerCase(),suggestion:t,reason:this.viewModel.get("reason"),currentValue:this.selectedMetadata.get("metadataValue")});this.notificationDataService.suggestEdit(r,(function(){e.triggerMethod("hide"),e.spinnerModel.set(M.ZV.ShowSpinner,!1),e.spinnerModel.set(M.ZV.Disabled,!0)})),this.logAction(),this.viewModel.clear()}}},{key:"onError",value:function(){this.spinnerModel.set(M.ZV.ShowSpinner,!1)}},{key:"onMetadataSelect",value:function(e){this.selectMetadata(e),this.renderSuggestEdit()}},{key:"onSelectRating",value:function(e){this.viewModel.set("ratingSuggestion",e.get("name")),this.renderSuggestEdit()}},{key:"selectMetadata",value:function(e){this.spinnerModel.set(M.ZV.Disabled,!1),c.yV.setSelected(e.get("id"),this.metadataCollection),this.selectedMetadata.set({metadataType:e.get("name"),metadataValue:e.get("name")!==R.MetadataType.Other?this.model.get(e.get("property")):null}),e.get("name")!==R.MetadataType.Rating&&this.viewModel.set("ratingSuggestion","")}},{key:"getMetadataCollection",value:function(){var e=Object.keys(R.MetadataTypes).map((function(e){return R.MetadataTypes[e]}));return this.currentUser.get("instanceRegion")===k.b.US&&(e=e.filter((function(e){return e.name!==R.MetadataType.Channel&&e.name!==R.MetadataType.BroadcastDate}))),new w.L(e)}},{key:"getMetadataByType",value:function(e){return this.metadataCollection.findWhere({name:e})}},{key:"getViewModel",value:function(){this.viewModel=s.r.get(this.viewModelName),this.viewModel.addValidation(C.xs)}},{key:"validateForm",value:function(){this.renderSuggestEdit(),this.viewModel.validate();var e=this.viewModel.toJSON(),t=e.reason,n=e.suggestion;return!(this.getRatingValidationMessage()||this.selectedMetadata.get("metadataType")!==R.MetadataType.Rating&&!n||!t)}},{key:"getRatingValidationMessage",value:function(){if(this.selectedMetadata.get("metadataType")!==R.MetadataType.Rating)return"";var e=this.selectedMetadata.get("metadataValue"),t=this.viewModel.get("ratingSuggestion");return t?e===t?C.nf.original():"":C.nf.empty()}},{key:"checkPreselection",value:function(){if(!this.selectedMetadata.get("metadataType")&&this.options.metadata&&this.dataFetched()){var e=this.getMetadataByType(this.options.metadata);this.selectMetadata(e)}}},{key:"logAction",value:function(){var e=c.M2.getSourceTypes(this.model);e=r.filter(e,(function(e){return e!==T.r.CustomLibrary}));var t={videoSourceTypes:r.sortBy(r.unique(e),(function(e){return e})).join(","),videoId:this.model.get("id"),metadataProperty:this.selectedMetadata.get("metadataType"),metadataPropertyValue:this.selectedMetadata.get("metadataValue"),suggestion:this.viewModel.get("suggestion"),reason:this.viewModel.get("reason")};u.k.logUserAction(t,{descriptor:l.SuggestionDescriptor.Edit,location:l.LocationContext.Popup,actionType:l.UserAction.Suggest,entity:l.EntityType.Video})}},{key:"dataFetched",value:function(){return!!this.model&&!!this.ratingCollection}},{key:"renderMetadataDropdown",value:function(){this.showChildView("dropdown",new S.H({collection:C.uB.translateMetadataCollectionNames(this.metadataCollection),channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click"},placeholderText:this.selectedMetadata.get("metadataType")||o.T.getPhrase(this.lang,"dropdownPlaceholder"),analyticsHelper:u.k}))}},{key:"renderSuggestEdit",value:function(){this.selectedMetadata.get("metadataType")&&this.showChildView("suggestEdit",new L({model:this.viewModel,channelName:this.channelName,ratings:this.ratingCollection,currentRating:this.viewModel.get("ratingSuggestion")?new h.i(this.ratingCollection.findWhere({name:this.viewModel.get("ratingSuggestion")})):null,metadataType:this.selectedMetadata.get("metadataType"),metadataValue:this.selectedMetadata.get("metadataValue"),ratingValidationMessage:this.getRatingValidationMessage()}))}},{key:"onBeforeRender",value:function(){this.dataFetched()||(this.model=this.videoDataService.getVideo(this.options.videoId),this.ratingCollection=this.ratingsDataService.getAllRatings()),this.metadataCollection||(this.metadataCollection=this.getMetadataCollection()),this.checkPreselection()}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:c.Kp.getSpinner({size:c.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.dataFetched()&&(this.renderMetadataDropdown(),this.renderSuggestEdit())}}])&&J(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(a.Q.View)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return d}});var r=n(31647),o=n(88172);function a(e){return a="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},a(e)}function i(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(t)?t:String(t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(f,e);var t,n,r,l,d=(r=f,l=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(e){return!1}}(),function(){var e,t=c(r);if(l){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),d.apply(this,arguments)}return t=f,(n=[{key:"defaults",value:function(){var e;return i(e={},o.ZV.Disabled,!0),i(e,o.ZV.Hidden,!1),e}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(r.Q.Model)},19098:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var a,i=e.escapeExpression,s=e.lambda;return'<p class="font-weight-bold mb-0">'+i((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"currentType",{name:"lang",hash:{metadataType:null!=(a=null!=t?t.options:t)?a.metadataType:a},data:o}))+'</p>\r\n<p class="mb-3 '+i(s(null!=(a=null!=(a=null!=t?t.options:t)?a.styles:a)?a.metadataValue:a,t))+'">'+(null!=(a=s(null!=(a=null!=t?t.options:t)?a.metadataValue:a,t))?a:"")+"</p>\r\n"},3:function(e,t,n,r,o){var a;return e.propertyIsEnumerable,' <textarea\r\n id="suggest-edit"\r\n placeholder="'+e.escapeExpression(e.lambda(null!=(a=null!=t?t.options:t)?a.suggestionPlaceholder:a,t))+'"\r\n class="form-control"\r\n name="suggestion"\r\n ></textarea>\r\n <div class="form-feedback"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var a,i=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression;return(null!=(a=n.unless.call(i,null!=(a=null!=t?t.options:t)?a.isOtherType:a,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?a:"")+'\r\n<div class="dropdown-divider"></div>\r\n\r\n<div class="form-group">\r\n <label for="suggest-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(i,"suggestionSubheading",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="rating-select-region"></div>\r\n <div class="rating-form-feedback invalid-feedback"></div>\r\n'+(null!=(a=n.unless.call(i,null!=(a=null!=t?t.options:t)?a.useRatingSelect:a,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?a:"")+'</div>\r\n\r\n<div class="form-group">\r\n <label for="reason-for-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(i,"reasoningSubheading",{name:"lang",hash:{},data:o}))+'</label>\r\n <textarea\r\n id="reason-for-edit"\r\n placeholder="'+l((n.lang||t&&t.lang||s).call(i,"reasoningPlaceholder",{name:"lang",hash:{},data:o}))+'"\r\n class="form-control"\r\n name="reason"\r\n ></textarea>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},34651:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var a=null!=t?t:e.nullContext||{},i=e.hooks.helperMissing,s=e.escapeExpression;return"<p>"+s((n.lang||t&&t.lang||i).call(a,"guidelines",{name:"lang",hash:{},data:o}))+'</p>\r\n<p class="font-weight-bold mb-1">'+s((n.lang||t&&t.lang||i).call(a,"dropdownHeading",{name:"lang",hash:{},data:o}))+'</p>\r\n<div class="metadata-dropdown-region position-relative"></div>\r\n<div class="suggest-edit-region"></div>\r\n'},3:function(e,t,n,r,o){var a;return e.propertyIsEnumerable,(null!=(a=e.lambda(null!=(a=null!=t?t.options:t)?a.spinnerEl:a,t))?a:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var a;return e.propertyIsEnumerable,null!=(a=n.if.call(null!=t?t:e.nullContext||{},null!=(a=null!=t?t.options:t)?a.dataFetched:a,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?a:""},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6774],{86774:function(e,n,t){"use strict";t.r(n),t.d(n,{PublishLibraryView:function(){return w}});var r=t(48088),i=t(21679),o=t(31647),a=t(10101),l=t(48090),u=t(88172),c=t(61843),s=t(69184),f=t(57857),h=t(95061),p=t(48652),y=t.n(p),b=t(264);function g(e){return g="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},g(e)}function v(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,n){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===g(i)?i:String(i)),r)}var i}function d(e,n){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},d(e,n)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var w=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&d(e,n)}(k,e);var n,t,o,p,w=(o=k,p=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(e){return!1}}(),function(){var e,n=m(o);if(p){var t=m(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===g(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function k(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,k),w.apply(this,arguments)}return n=k,(t=[{key:"initialize",value:function(){this.libraryDataService=i.u.getInstance(l.Or.Library,this),this.videoDataService=i.u.getInstance(l.Or.Video,this)}},{key:"name",get:function(){return"PublishLibraryView"}},{key:"title",get:function(){return f.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.publishLibrary"}},{key:"template",get:function(){return y()}},{key:"channelName",get:function(){return c.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:f.T.getPhrase(this.lang,"heading"),behaviorClass:a.Yw,spinnerButtonOptions:{channelName:this.channelName,buttonText:f.T.getPhrase(this.lang,"continue"),onClick:function(){return e.onClickContinue()}}}]}},{key:"viewOptions",value:function(){return{hasLite:b.g.hasLite}}},{key:"onClickContinue",value:function(){var e=this;r.Radio.channel(this.channelName).trigger(u.I3.ShowSpinner);var n=0,t=function(){++n===e.libraries.length&&(e.triggerMethod("hide"),e.videoDataService.clearVideoCache(),r.Radio.channel(s.GL.LIBRARY_STATUS).trigger("status:changed"))};this.libraries.each((function(n){e.libraryDataService.publishLibrary(n.get("id"),t)}))}},{key:"requiredResources",get:function(){return{libraries:h.T.libraries}}}])&&v(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),k}(o.Q.View)},48652:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,i){return e.propertyIsEnumerable," <li>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"meaning2",{name:"lang",hash:{},data:i}))+"</li>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var o,a=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,u=e.escapeExpression;return"<p>"+u((t.lang||n&&n.lang||l).call(a,"infoHeading",{name:"lang",hash:{},data:i}))+"</p>\n<p>"+u((t.lang||n&&n.lang||l).call(a,"meaningSubheading",{name:"lang",hash:{},data:i}))+"</p>\n<ul>\n <li>"+u((t.lang||n&&n.lang||l).call(a,"meaning1",{name:"lang",hash:{},data:i}))+"</li>\n"+(null!=(o=t.unless.call(a,null!=(o=null!=n?n.options:n)?o.hasLite:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+" <li>"+u((t.lang||n&&n.lang||l).call(a,"meaning3",{name:"lang",hash:{},data:i}))+"</li>\n</ul>"},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6774],{86774:function(e,n,t){"use strict";t.r(n),t.d(n,{PublishLibraryView:function(){return w}});var r=t(48088),i=t(21679),o=t(31647),a=t(10101),l=t(48090),u=t(88172),c=t(61843),s=t(69184),f=t(57857),h=t(95061),p=t(48652),y=t.n(p),b=t(264);function g(e){return g="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},g(e)}function v(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,n){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===g(i)?i:String(i)),r)}var i}function d(e,n){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},d(e,n)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var w=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&d(e,n)}(k,e);var n,t,o,p,w=(o=k,p=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(e){return!1}}(),function(){var e,n=m(o);if(p){var t=m(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===g(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function k(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,k),w.apply(this,arguments)}return n=k,(t=[{key:"initialize",value:function(){this.libraryDataService=i.u.getInstance(l.Or.Library,this),this.videoDataService=i.u.getInstance(l.Or.Video,this)}},{key:"name",get:function(){return"PublishLibraryView"}},{key:"title",get:function(){return f.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.publishLibrary"}},{key:"template",get:function(){return y()}},{key:"channelName",get:function(){return c.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:f.T.getPhrase(this.lang,"heading"),behaviorClass:a.Yw,spinnerButtonOptions:{channelName:this.channelName,buttonText:f.T.getPhrase(this.lang,"continue"),onClick:function(){return e.onClickContinue()}}}]}},{key:"viewOptions",value:function(){return{hasLite:b.g.hasLite}}},{key:"onClickContinue",value:function(){var e=this;r.Radio.channel(this.channelName).trigger(u.I3.ShowSpinner);var n=0,t=function(){++n===e.libraries.length&&(e.triggerMethod("hide"),e.videoDataService.clearVideoCache(),r.Radio.channel(s.GL.LIBRARY_STATUS).trigger("status:changed"))};this.libraries.each((function(n){e.libraryDataService.publishLibrary(n.get("id"),t)}))}},{key:"requiredResources",get:function(){return{libraries:h.T.libraries}}}])&&v(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),k}(o.Q.View)},48652:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,i){return e.propertyIsEnumerable," <li>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"meaning2",{name:"lang",hash:{},data:i}))+"</li>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var o,a=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,u=e.escapeExpression;return"<p>"+u((t.lang||n&&n.lang||l).call(a,"infoHeading",{name:"lang",hash:{},data:i}))+"</p>\r\n<p>"+u((t.lang||n&&n.lang||l).call(a,"meaningSubheading",{name:"lang",hash:{},data:i}))+"</p>\r\n<ul>\r\n <li>"+u((t.lang||n&&n.lang||l).call(a,"meaning1",{name:"lang",hash:{},data:i}))+"</li>\r\n"+(null!=(o=t.unless.call(a,null!=(o=null!=n?n.options:n)?o.hasLite:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+" <li>"+u((t.lang||n&&n.lang||l).call(a,"meaning3",{name:"lang",hash:{},data:i}))+"</li>\r\n</ul>"},useData:!0})}}]);