@clickview/library-editor 1.8.1-dev.0 → 1.8.1-rc.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.
- package/dist/bundles.json +3 -3
- package/dist/css/{8179-library-editor-df33c921f0.chunk.css → 2704-library-editor-8067d27c56.chunk.css} +4 -0
- package/dist/css/{7295-library-editor-b0c43d2c79.chunk.css → 3427-library-editor-8442ad6453.chunk.css} +1 -1
- package/dist/css/{1132-library-editor-c1a116496b.chunk.css → 3803-library-editor-c08c7cc096.chunk.css} +1 -1
- package/dist/css/{2284-library-editor-436a0d1ce1.chunk.css → 409-library-editor-38562d76cd.chunk.css} +1 -1
- package/dist/css/{6220-library-editor-e66d80c18a.chunk.css → 4810-library-editor-740619bb9d.chunk.css} +1 -11
- package/dist/css/{6181-library-editor-db9baf23c2.chunk.css → 5047-library-editor-3ed99ac07f.chunk.css} +0 -4
- package/dist/css/{4177-library-editor-4cba18186c.chunk.css → 5248-library-editor-c06823703f.chunk.css} +8 -4
- package/dist/css/{6999-library-editor-c9c844221a.chunk.css → 5356-library-editor-075fbedf48.chunk.css} +0 -12
- package/dist/css/{1911-library-editor-f7158ba599.chunk.css → 6625-library-editor-89b6e935f3.chunk.css} +0 -4
- package/dist/css/{1521-library-editor-b3d6d791c2.chunk.css → 8343-library-editor-10baca49f5.chunk.css} +0 -4
- package/dist/css/{1887-library-editor-2e57df189d.chunk.css → 8420-library-editor-3bb4952bab.chunk.css} +8 -4
- package/dist/css/{8929-library-editor-2cba3474fe.chunk.css → 9195-library-editor-14f7d9be38.chunk.css} +1 -1
- package/dist/css/{library-editor-app-1cd9634b7b.css → library-editor-app-4e790b757d.css} +10 -10
- package/dist/en.json +1 -1
- package/dist/scripts/{1010-cd4e715098.chunk.js → 1010-cb37772c49.chunk.js} +1 -1
- package/dist/scripts/{1086-b559030dcf.chunk.js → 1086-a8cf020218.chunk.js} +1 -1
- package/dist/scripts/{1203-b828105755.chunk.js → 1203-14ae840d6b.chunk.js} +1 -1
- package/dist/scripts/{1409-8f5c1c9d0e.chunk.js → 1409-32bd85885e.chunk.js} +1 -1
- package/dist/scripts/{1832-d4427bb6f5.chunk.js → 1832-86cd9ad582.chunk.js} +1 -1
- package/dist/scripts/{1934-3b82bbbc99.chunk.js → 1934-3f8be23263.chunk.js} +1 -1
- package/dist/scripts/{2098-31d99bc407.chunk.js → 2098-96f81af824.chunk.js} +1 -1
- package/dist/scripts/2417-b87afd64a5.chunk.js +1 -0
- package/dist/scripts/{243-c9fdd938fd.chunk.js → 243-f01e965f4b.chunk.js} +1 -1
- package/dist/scripts/259-004621af29.chunk.js +1 -0
- package/dist/scripts/{2692-9ebe6d1ea4.chunk.js → 2692-61fa0956f7.chunk.js} +1 -1
- package/dist/scripts/2704-2acb36a8e6.chunk.js +2 -0
- package/dist/scripts/{2733-e8cc6e3610.chunk.js → 2733-b894e791d4.chunk.js} +1 -1
- package/dist/scripts/{2802-160b25677d.chunk.js → 2802-b27bcc7922.chunk.js} +1 -1
- package/dist/scripts/2803-a61efc3928.chunk.js +1 -0
- package/dist/scripts/{2888-80050720b2.chunk.js → 2888-aa8575c95a.chunk.js} +1 -1
- package/dist/scripts/{299-d19e77b508.chunk.js → 299-f783c04b9f.chunk.js} +1 -1
- package/dist/scripts/3096-7b76aacf1b.chunk.js +1 -0
- package/dist/scripts/3427-69e041b58f.chunk.js +1 -0
- package/dist/scripts/{3639-36a34d483b.chunk.js → 3639-49cbb7726d.chunk.js} +1 -1
- package/dist/scripts/3746-035d2a375b.chunk.js +1 -0
- package/dist/scripts/{3763-3bef6ac728.chunk.js → 3763-42330d8e14.chunk.js} +1 -1
- package/dist/scripts/3803-ddb6cb3af0.chunk.js +1 -0
- package/dist/scripts/409-4d3f47dde3.chunk.js +1 -0
- package/dist/scripts/{4201-25e82e2429.chunk.js → 4201-934449ecc8.chunk.js} +1 -1
- package/dist/scripts/{435-fb19753c8d.chunk.js → 435-15245a31f0.chunk.js} +1 -1
- package/dist/scripts/{4353-c7a0df4214.chunk.js → 4353-2cc9f63986.chunk.js} +1 -1
- package/dist/scripts/{4591-9a2868f8a0.chunk.js → 4591-5170be25a2.chunk.js} +1 -1
- package/dist/scripts/4703-d6f96abde3.chunk.js +1 -0
- package/dist/scripts/4810-abc1d10673.chunk.js +1 -0
- package/dist/scripts/{4860-b3e5cb9cbd.chunk.js → 4860-59a185099c.chunk.js} +1 -1
- package/dist/scripts/{4885-9e4ce006c8.chunk.js → 4885-5e746feb33.chunk.js} +1 -1
- package/dist/scripts/5047-fede824a7a.chunk.js +1 -0
- package/dist/scripts/{514-59d9a9a7bd.chunk.js → 514-4d8b3e1241.chunk.js} +1 -1
- package/dist/scripts/{6220-984f02c732.chunk.js → 5248-f08a510a35.chunk.js} +1 -1
- package/dist/scripts/{1887-d306fab87c.chunk.js → 5356-e72cc7d540.chunk.js} +1 -1
- package/dist/scripts/{5412-a1721cffc4.chunk.js → 5412-f7addc660e.chunk.js} +1 -1
- package/dist/scripts/5431-5878626ffc.chunk.js +1 -0
- package/dist/scripts/{546-81473f1035.chunk.js → 546-0a0da54e49.chunk.js} +1 -1
- package/dist/scripts/5665-652f2d5ce2.chunk.js +1 -0
- package/dist/scripts/{5747-8a168b816b.chunk.js → 5747-1c103faee6.chunk.js} +1 -1
- package/dist/scripts/5967-7f52d83b9d.chunk.js +1 -0
- package/dist/scripts/6093-e8c8ee685e.chunk.js +1 -0
- package/dist/scripts/{6420-1537f8f587.chunk.js → 6420-e6a2a2f8e1.chunk.js} +1 -1
- package/dist/scripts/{1911-41bf677d7e.chunk.js → 6625-dad5409d21.chunk.js} +1 -1
- package/dist/scripts/{6774-185468f6f5.chunk.js → 6774-65575c493f.chunk.js} +1 -1
- package/dist/scripts/{6788-2368a122f1.chunk.js → 6788-5a4f2eb9cc.chunk.js} +1 -1
- package/dist/scripts/7002-93a4fa2a41.chunk.js +1 -0
- package/dist/scripts/7053-367c9fd75e.chunk.js +1 -0
- package/dist/scripts/{7251-a247842ccb.chunk.js → 7251-6f904debb4.chunk.js} +2 -2
- package/dist/scripts/{8074-b610b1ba63.chunk.js → 8074-f41783a736.chunk.js} +1 -1
- package/dist/scripts/{1521-0c23d44c5e.chunk.js → 8343-744924c708.chunk.js} +1 -1
- package/dist/scripts/{8362-195c5ba6c3.chunk.js → 8362-bd0a827fd1.chunk.js} +1 -1
- package/dist/scripts/8420-feedc1737c.chunk.js +1 -0
- package/dist/scripts/8727-bcd1353109.chunk.js +1 -0
- package/dist/scripts/{8762-b445a592a5.chunk.js → 8762-44030384bd.chunk.js} +1 -1
- package/dist/scripts/{8906-efcc846fad.chunk.js → 8906-9c897538cc.chunk.js} +1 -1
- package/dist/scripts/{8947-4df5e81810.chunk.js → 8947-361fa0bb45.chunk.js} +1 -1
- package/dist/scripts/{9167-9c54b36e3a.chunk.js → 9167-653b78f15a.chunk.js} +1 -1
- package/dist/scripts/9195-86ea4a2c6e.chunk.js +1 -0
- package/dist/scripts/{9298-d8c9ed5471.chunk.js → 9298-e7d4c8cdcd.chunk.js} +1 -1
- package/dist/scripts/9355-805decfc74.chunk.js +1 -0
- package/dist/scripts/{9357-2e288289f3.chunk.js → 9357-24309fbc82.chunk.js} +1 -1
- package/dist/scripts/9383-db31c7a3f4.chunk.js +1 -0
- package/dist/scripts/{9695-4bb132be57.chunk.js → 9695-3b345f10c3.chunk.js} +1 -1
- package/dist/scripts/{9927-25579dff18.chunk.js → 9927-e6b59f3a6c.chunk.js} +1 -1
- package/dist/scripts/bundle-5523d17860.min.js +2 -0
- package/package.json +1 -1
- package/dist/css/101-library-editor-808f785991.chunk.css +0 -4
- package/dist/css/2011-library-editor-9b9cd091d0.chunk.css +0 -62
- package/dist/css/2119-library-editor-1d6a95fb9f.chunk.css +0 -4
- package/dist/css/3969-library-editor-3382f0875b.chunk.css +0 -4
- package/dist/css/3987-library-editor-2271e5262a.chunk.css +0 -56
- package/dist/css/5891-library-editor-76fe7e394b.chunk.css +0 -2
- package/dist/css/6963-library-editor-76fe7e394b.chunk.css +0 -2
- package/dist/scripts/101-98e020bd6f.chunk.js +0 -1
- package/dist/scripts/1132-3f29e51c9d.chunk.js +0 -1
- package/dist/scripts/2011-f178a6dabf.chunk.js +0 -1
- package/dist/scripts/2119-cbaa6000b1.chunk.js +0 -1
- package/dist/scripts/2284-a57db3563f.chunk.js +0 -1
- package/dist/scripts/2417-48687b3eeb.chunk.js +0 -1
- package/dist/scripts/259-e1d9ce07f4.chunk.js +0 -1
- package/dist/scripts/2803-86fc1b1e3f.chunk.js +0 -1
- package/dist/scripts/3096-ca9e2f0dfd.chunk.js +0 -1
- package/dist/scripts/3746-46e0073a46.chunk.js +0 -1
- package/dist/scripts/3969-258fca82a8.chunk.js +0 -1
- package/dist/scripts/3987-e3a4ade0c9.chunk.js +0 -1
- package/dist/scripts/4177-0be8ceed3c.chunk.js +0 -1
- package/dist/scripts/5173-e1b904c06c.chunk.js +0 -1
- package/dist/scripts/5235-abc8ea83ed.chunk.js +0 -1
- package/dist/scripts/5263-38198ed595.chunk.js +0 -1
- package/dist/scripts/5664-d6cbc77d63.chunk.js +0 -1
- package/dist/scripts/5891-63973f5678.chunk.js +0 -1
- package/dist/scripts/6093-a62d8ebc86.chunk.js +0 -1
- package/dist/scripts/6181-fa5e7bcbf9.chunk.js +0 -1
- package/dist/scripts/6963-a576fd9c4d.chunk.js +0 -1
- package/dist/scripts/6999-1fe379ca99.chunk.js +0 -1
- package/dist/scripts/7002-9b2aad8369.chunk.js +0 -1
- package/dist/scripts/7053-643499a3a6.chunk.js +0 -1
- package/dist/scripts/708-9e2ef23c87.chunk.js +0 -1
- package/dist/scripts/7295-96fcbaa176.chunk.js +0 -1
- package/dist/scripts/7376-21f5de2ce6.chunk.js +0 -1
- package/dist/scripts/8179-f5cc87ded7.chunk.js +0 -2
- package/dist/scripts/8495-0a9a71f2dc.chunk.js +0 -1
- package/dist/scripts/8727-20ae545e12.chunk.js +0 -1
- package/dist/scripts/8929-6fac19a7a3.chunk.js +0 -1
- package/dist/scripts/9383-6d0392b17f.chunk.js +0 -1
- package/dist/scripts/9770-9eaef2c966.chunk.js +0 -1
- package/dist/scripts/995-3a6de1eec1.chunk.js +0 -1
- package/dist/scripts/bundle-2b73fa6c21.min.js +0 -2
- /package/dist/css/{708-library-editor-7417a89428.chunk.css → 5967-library-editor-7417a89428.chunk.css} +0 -0
- /package/dist/scripts/{1934-3b82bbbc99.chunk.js.LICENSE.txt → 1934-3f8be23263.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8179-f5cc87ded7.chunk.js.LICENSE.txt → 2704-2acb36a8e6.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2802-160b25677d.chunk.js.LICENSE.txt → 2802-b27bcc7922.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3019-8c7fdaf749.chunk.js → 3019-756f3418e1.chunk.js} +0 -0
- /package/dist/scripts/{3400-3a56ad67d9.chunk.js → 3400-77e28c9a26.chunk.js} +0 -0
- /package/dist/scripts/{400-00070f1714.chunk.js → 400-245e50bb8b.chunk.js} +0 -0
- /package/dist/scripts/{4245-4d98c3f676.chunk.js → 4245-7ca37805e2.chunk.js} +0 -0
- /package/dist/scripts/{5418-bfa546cf33.chunk.js → 5418-eab2a58869.chunk.js} +0 -0
- /package/dist/scripts/{693-0ae38e2ba5.chunk.js → 693-4e5dfe0a0a.chunk.js} +0 -0
- /package/dist/scripts/{7173-a4f745b0ed.chunk.js → 7173-f13a6eaf95.chunk.js} +0 -0
- /package/dist/scripts/{7190-d294d5b67c.chunk.js → 7190-663dc02699.chunk.js} +0 -0
- /package/dist/scripts/{7251-a247842ccb.chunk.js.LICENSE.txt → 7251-6f904debb4.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-2b73fa6c21.min.js.LICENSE.txt → bundle-5523d17860.min.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{polyfills-c62d0e7aec.min.js → polyfills-513148dd03.min.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9770],{91969:function(e,t,n){"use strict";var o=n(47033),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,u,s,a,l,c=!1;t||(t={}),n=t.debug||!1;try{if(u=o(),s=document.createRange(),a=document.getSelection(),(l=document.createElement("span")).textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),void 0===o.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(l),s.selectNodeContents(l),a.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(s):a.removeAllRanges()),l&&document.body.removeChild(l),u()}return c}},51541:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(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,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(1024),u=g(i),s=g(n(60216)),a=g(n(19897)),l=g(n(44826)),c=n(42662);function g(e){return e&&e.__esModule?e:{default:e}}var f=function(){return!0},d=function(e){function t(e){var n=e.alwaysRenderSuggestions;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return p.call(o),o.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},o.justPressedUpDown=!1,o.justMouseEntered=!1,o.pressedSuggestion=null,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"componentWillReceiveProps",value:function(e){(0,a.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered&&this.highlightFirstSuggestion():this.willRenderSuggestions(e)?this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions():this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.suggestions,r=n.onSuggestionHighlighted,i=n.highlightFirstSuggestion;if(!(0,a.default)(o,e.suggestions)&&o.length>0&&i)this.highlightFirstSuggestion();else if(r){var u=this.getHighlightedSuggestion();u!=t.highlightedSuggestion&&r({suggestion:u})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var o=this;this.setState((function(r){var i=r.valueBeforeUpDown;return null===t?i=null:null===i&&void 0!==n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:o.getSuggestion(e,t),valueBeforeUpDown:i}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,o=n.suggestions,r=n.multiSection,i=n.getSectionSuggestions;return r?i(o[e])[t]:o[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var o=this.props.inputProps,r=o.value,i=o.onChange;t!==r&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e){var t=e.suggestions,n=e.inputProps,o=e.shouldRenderSuggestions,r=n.value;return t.length>0&&o(r)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,r=t.renderInputComponent,i=t.onSuggestionsFetchRequested,s=t.renderSuggestion,a=t.inputProps,g=t.multiSection,d=t.renderSectionTitle,p=t.id,h=t.getSectionSuggestions,m=t.theme,y=t.getSuggestionValue,v=t.alwaysRenderSuggestions,S=t.highlightFirstSuggestion,b=this.state,w=b.isFocused,I=b.isCollapsed,C=b.highlightedSectionIndex,x=b.highlightedSuggestionIndex,O=b.valueBeforeUpDown,_=v?f:this.props.shouldRenderSuggestions,j=a.value,P=a.onFocus,k=a.onKeyDown,E=this.willRenderSuggestions(this.props),D=v||w&&!I&&E,R=D?n:[],T=o({},a,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=_(j);e.setState({isFocused:!0,isCollapsed:!n}),P&&P(t),n&&i({value:j,reason:"input-focused"})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,r=_(n);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(o({},S?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!r})),r?i({value:n,reason:"input-changed"}):e.onSuggestionsClearRequested()},onKeyDown:function(t,o){var r=t.keyCode;switch(r){case 40:case 38:if(I)_(j)&&(i({value:j,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var u,s=o.newHighlightedSectionIndex,a=o.newHighlightedItemIndex;u=null===a?null===O?j:O:e.getSuggestionValueByIndex(s,a),e.updateHighlightedSuggestion(s,a,j),e.maybeCallOnChange(t,u,40===r?"down":"up")}t.preventDefault(),e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var l=e.getHighlightedSuggestion();if(D&&!v&&e.closeSuggestions(),null!=l){var c=y(l);e.maybeCallOnChange(t,c,"enter"),e.onSuggestionSelected(t,{suggestion:l,suggestionValue:c,suggestionIndex:x,sectionIndex:C,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:D&&t.preventDefault();var g=D&&!v;null===O?g||(e.maybeCallOnChange(t,"","escape"),_("")?i({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,O,"escape"),g?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}k&&k(t)}}),M={query:this.getQuery()};return u.default.createElement(l.default,{multiSection:g,items:R,renderInputComponent:r,renderItemsContainer:this.renderSuggestionsContainer,renderItem:s,renderItemData:M,renderSectionTitle:d,getSectionItems:h,highlightedSectionIndex:C,highlightedItemIndex:x,inputProps:T,itemProps:this.itemProps,theme:(0,c.mapToAutowhateverTheme)(m),id:p,ref:this.storeAutowhateverRef})}}]),t}(i.Component);d.propTypes={suggestions:s.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){if("function"!=typeof e[t])throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},onSuggestionSelected:s.default.func,onSuggestionHighlighted:s.default.func,renderInputComponent:s.default.func,renderSuggestionsContainer:s.default.func,getSuggestionValue:s.default.func.isRequired,renderSuggestion:s.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n.hasOwnProperty("value"))throw new Error("'inputProps' must have 'value'.");if(!n.hasOwnProperty("onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:s.default.func,alwaysRenderSuggestions:s.default.bool,multiSection:s.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:s.default.bool,highlightFirstSuggestion:s.default.bool,theme:s.default.object,id:s.default.string},d.defaultProps={renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return u.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:c.defaultTheme,id:"1"};var p=function(){var e=this;this.onDocumentMouseDown=function(t){e.justClickedOnSuggestionsContainer=!1;for(var n=t.detail&&t.detail.target||t.target;null!==n&&n!==document;){if(null!==n.getAttribute("data-suggestion-index"))return;if(n===e.suggestionsContainer)return void(e.justClickedOnSuggestionsContainer=!0);n=n.parentNode}},this.storeAutowhateverRef=function(t){null!==t&&(e.autowhatever=t)},this.onSuggestionMouseEnter=function(t,n){var o=n.sectionIndex,r=n.itemIndex;e.updateHighlightedSuggestion(o,r),t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!0),e.justMouseEntered=!0,setTimeout((function(){e.justMouseEntered=!1}))},this.highlightFirstSuggestion=function(){e.updateHighlightedSuggestion(e.props.multiSection?0:null,0)},this.onDocumentMouseUp=function(){e.pressedSuggestion&&!e.justSelectedSuggestion&&e.input.focus(),e.pressedSuggestion=null},this.onSuggestionMouseDown=function(t){e.justSelectedSuggestion||(e.justSelectedSuggestion=!0,e.pressedSuggestion=t.target)},this.onSuggestionsClearRequested=function(){var t=e.props.onSuggestionsClearRequested;t&&t()},this.onSuggestionSelected=function(t,n){var o=e.props,r=o.alwaysRenderSuggestions,i=o.onSuggestionSelected,u=o.onSuggestionsFetchRequested;i&&i(t,n),r?u({value:n.suggestionValue,reason:"suggestion-selected"}):e.onSuggestionsClearRequested(),e.resetHighlightedSuggestion()},this.onSuggestionClick=function(t){var n=e.props,o=n.alwaysRenderSuggestions,r=n.focusInputOnSuggestionClick,i=e.getSuggestionIndices(e.findSuggestionElement(t.target)),u=i.sectionIndex,s=i.suggestionIndex,a=e.getSuggestion(u,s),l=e.props.getSuggestionValue(a);e.maybeCallOnChange(t,l,"click"),e.onSuggestionSelected(t,{suggestion:a,suggestionValue:l,suggestionIndex:s,sectionIndex:u,method:"click"}),o||e.closeSuggestions(),!0===r?e.input.focus():e.onBlur(),setTimeout((function(){e.justSelectedSuggestion=!1}))},this.onBlur=function(){var t=e.props,n=t.inputProps,o=t.shouldRenderSuggestions,r=n.value,i=n.onBlur,u=e.getHighlightedSuggestion(),s=o(r);e.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!s}),i&&i(e.blurEvent,{highlightedSuggestion:u})},this.onSuggestionMouseLeave=function(t){e.resetHighlightedSuggestion(!1),e.justSelectedSuggestion&&t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!1)},this.onSuggestionTouchStart=function(){e.justSelectedSuggestion=!0},this.onSuggestionTouchMove=function(){e.justSelectedSuggestion=!1,e.pressedSuggestion=null,e.input.focus()},this.itemProps=function(t){return{"data-section-index":t.sectionIndex,"data-suggestion-index":t.itemIndex,onMouseEnter:e.onSuggestionMouseEnter,onMouseLeave:e.onSuggestionMouseLeave,onMouseDown:e.onSuggestionMouseDown,onTouchStart:e.onSuggestionTouchStart,onTouchMove:e.onSuggestionTouchMove,onClick:e.onSuggestionClick}},this.renderSuggestionsContainer=function(t){var n=t.containerProps,o=t.children;return(0,e.props.renderSuggestionsContainer)({containerProps:n,children:o,query:e.getQuery()})}};t.default=d},8952:function(e,t,n){"use strict";e.exports=n(51541).default},42662:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},82266:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(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,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(1024),u=f(i),s=f(n(60216)),a=f(n(91661)),l=f(n(97818)),c=f(n(40838)),g=f(n(86581));function f(e){return e&&e.__esModule?e:{default:e}}var d={},p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.storeInputReference=function(e){null!==e&&(n.input=e)},n.storeItemsContainerReference=function(e){null!==e&&(n.itemsContainer=e)},n.onHighlightedItemChange=function(e){n.highlightedItem=e},n.getItemId=function(e,t){return null===t?null:"react-autowhatever-"+n.props.id+"-"+(null===e?"":"section-"+e)+"-item-"+t},n.onFocus=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!0}),t.onFocus&&t.onFocus(e)},n.onBlur=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!1}),t.onBlur&&t.onBlur(e)},n.onKeyDown=function(e){var t=n.props,o=t.inputProps,r=t.highlightedSectionIndex,i=t.highlightedItemIndex;switch(e.key){case"ArrowDown":case"ArrowUp":var u="ArrowDown"===e.key?"next":"prev",s=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var u,s=e[Symbol.iterator]();!(o=(u=s.next()).done)&&(n.push(u.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(n.sectionIterator[u]([r,i]),2),a=s[0],l=s[1];o.onKeyDown(e,{newHighlightedSectionIndex:a,newHighlightedItemIndex:l});break;default:o.onKeyDown(e,{highlightedSectionIndex:r,highlightedItemIndex:i})}},n.highlightedItem=null,n.state={isInputFocused:!1},n.setSectionsItems(e),n.setSectionIterator(e),n.setTheme(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,a.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,l.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,o=n.id,r=n.items,i=n.renderItem,s=n.renderItemData,a=n.renderSectionTitle,l=n.highlightedSectionIndex,f=n.highlightedItemIndex,d=n.itemProps;return r.map((function(n,r){var p="react-autowhatever-"+o+"-",h=p+"section-"+r+"-",m=0===r;return u.default.createElement("div",t(h+"container","sectionContainer",m&&"sectionContainerFirst"),u.default.createElement(c.default,{section:n,renderSectionTitle:a,theme:t,sectionKeyPrefix:h}),u.default.createElement(g.default,{items:e.sectionsItems[r],itemProps:d,renderItem:i,renderItemData:s,sectionIndex:r,highlightedItemIndex:l===r?f:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:p,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,o=n.id,r=n.renderItem,i=n.renderItemData,s=n.highlightedSectionIndex,a=n.highlightedItemIndex,l=n.itemProps;return u.default.createElement(g.default,{items:e,itemProps:l,renderItem:r,renderItemData:i,highlightedItemIndex:null===s?a:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-"+o+"-"})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,o=t.scrollTop;n<o?o=n:n+e.offsetHeight>o+t.offsetHeight&&(o=n+e.offsetHeight-t.offsetHeight),o!==t.scrollTop&&(t.scrollTop=o)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,r=t.multiSection,i=t.renderInputComponent,s=t.renderItemsContainer,a=t.highlightedSectionIndex,l=t.highlightedItemIndex,c=this.state.isInputFocused,g=r?this.renderSections():this.renderItems(),f=null!==g,d=this.getItemId(a,l),p="react-autowhatever-"+n,h=o({role:"combobox","aria-haspopup":"listbox","aria-owns":p,"aria-expanded":f},e("react-autowhatever-"+n+"-container","container",f&&"containerOpen"),this.props.containerProps),m=i(o({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":p,"aria-activedescendant":d},e("react-autowhatever-"+n+"-input","input",f&&"inputOpen",c&&"inputFocused"),this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),y=s({containerProps:o({id:p,role:"listbox"},e("react-autowhatever-"+n+"-items-container","itemsContainer",f&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:g});return u.default.createElement("div",h,m,y)}}]),t}(i.Component);p.propTypes={id:s.default.string,multiSection:s.default.bool,renderInputComponent:s.default.func,renderItemsContainer:s.default.func,items:s.default.array.isRequired,renderItem:s.default.func,renderItemData:s.default.object,renderSectionTitle:s.default.func,getSectionItems:s.default.func,containerProps:s.default.object,inputProps:s.default.object,itemProps:s.default.oneOfType([s.default.object,s.default.func]),highlightedSectionIndex:s.default.number,highlightedItemIndex:s.default.number,theme:s.default.oneOfType([s.default.object,s.default.array])},p.defaultProps={id:"1",multiSection:!1,renderInputComponent:function(e){return u.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return u.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:d,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:d,inputProps:d,itemProps:d,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}},t.default=p},78660:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(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,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(1024),u=l(i),s=l(n(60216)),a=l(n(13124));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(){var e,n,o;c(this,t);for(var r=arguments.length,i=Array(r),u=0;u<r;u++)i[u]=arguments[u];return n=o=g(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),o.storeItemReference=function(e){null!==e&&(o.item=e)},o.onMouseEnter=function(e){var t=o.props,n=t.sectionIndex,r=t.itemIndex;o.props.onMouseEnter(e,{sectionIndex:n,itemIndex:r})},o.onMouseLeave=function(e){var t=o.props,n=t.sectionIndex,r=t.itemIndex;o.props.onMouseLeave(e,{sectionIndex:n,itemIndex:r})},o.onMouseDown=function(e){var t=o.props,n=t.sectionIndex,r=t.itemIndex;o.props.onMouseDown(e,{sectionIndex:n,itemIndex:r})},o.onClick=function(e){var t=o.props,n=t.sectionIndex,r=t.itemIndex;o.props.onClick(e,{sectionIndex:n,itemIndex:r})},g(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"shouldComponentUpdate",value:function(e){return(0,a.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,r=e.renderItem,i=e.renderItemData,s=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["isHighlighted","item","renderItem","renderItemData"]);return delete s.sectionIndex,delete s.itemIndex,"function"==typeof s.onMouseEnter&&(s.onMouseEnter=this.onMouseEnter),"function"==typeof s.onMouseLeave&&(s.onMouseLeave=this.onMouseLeave),"function"==typeof s.onMouseDown&&(s.onMouseDown=this.onMouseDown),"function"==typeof s.onClick&&(s.onClick=this.onClick),u.default.createElement("li",o({role:"option"},s,{ref:this.storeItemReference}),r(n,o({isHighlighted:t},i)))}}]),t}(i.Component);f.propTypes={sectionIndex:s.default.number,isHighlighted:s.default.bool.isRequired,itemIndex:s.default.number.isRequired,item:s.default.any.isRequired,renderItem:s.default.func.isRequired,renderItemData:s.default.object.isRequired,onMouseEnter:s.default.func,onMouseLeave:s.default.func,onMouseDown:s.default.func,onClick:s.default.func},t.default=f},86581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(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,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(1024),u=c(i),s=c(n(60216)),a=c(n(78660)),l=c(n(13124));function c(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var e,n,o;g(this,t);for(var r=arguments.length,i=Array(r),u=0;u<r;u++)i[u]=arguments[u];return n=o=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),o.storeHighlightedItemReference=function(e){o.props.onHighlightedItemChange(null===e?null:e.item)},f(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"shouldComponentUpdate",value:function(e){return(0,l.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,r=t.itemProps,i=t.renderItem,s=t.renderItemData,l=t.sectionIndex,c=t.highlightedItemIndex,g=t.getItemId,f=t.theme,d=t.keyPrefix,p=null===l?d:d+"section-"+l+"-",h="function"==typeof r;return u.default.createElement("ul",o({role:"listbox"},f(p+"items-list","itemsList")),n.map((function(t,n){var d=0===n,m=n===c,y=p+"item-"+n,v=h?r({sectionIndex:l,itemIndex:n}):r,S=o({id:g(l,n),"aria-selected":m},f(y,"item",d&&"itemFirst",m&&"itemHighlighted"),v);return m&&(S.ref=e.storeHighlightedItemReference),u.default.createElement(a.default,o({},S,{sectionIndex:l,isHighlighted:m,itemIndex:n,item:t,renderItem:i,renderItemData:s}))})))}}]),t}(i.Component);d.propTypes={items:s.default.array.isRequired,itemProps:s.default.oneOfType([s.default.object,s.default.func]),renderItem:s.default.func.isRequired,renderItemData:s.default.object.isRequired,sectionIndex:s.default.number,highlightedItemIndex:s.default.number,onHighlightedItemChange:s.default.func.isRequired,getItemId:s.default.func.isRequired,theme:s.default.func.isRequired,keyPrefix:s.default.string.isRequired},d.defaultProps={sectionIndex:null},t.default=d},40838:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(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,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(1024),i=a(r),u=a(n(60216)),s=a(n(13124));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e){return(0,s.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,o=e.theme,r=e.sectionKeyPrefix,u=n(t);return u?i.default.createElement("div",o(r+"title","sectionTitle"),u):null}}]),t}(r.Component);g.propTypes={section:u.default.any.isRequired,renderSectionTitle:u.default.func.isRequired,theme:u.default.func.isRequired,sectionKeyPrefix:u.default.string.isRequired},t.default=g},13124:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="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};t.default=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!0;var u={},s=void 0,a=void 0;for(s=0,a=o.length;s<a;s++)u[o[s]]=!0;for(s=0,a=r.length;s<a;s++){var l=r[s],c=e[l],g=t[l];if(c!==g){if(!u[l]||null===c||null===g||"object"!==(void 0===c?"undefined":n(c))||"object"!==(void 0===g?"undefined":n(g)))return!0;var f=Object.keys(c),d=Object.keys(g);if(f.length!==d.length)return!0;for(var p=0,h=f.length;p<h;p++){var m=f[p];if(c[m]!==g[m])return!0}}}return!1}},44826:function(e,t,n){"use strict";e.exports=n(82266).default},44818:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=i(n(1024)),r=i(n(91969));function i(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="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},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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,o.key,o)}}function c(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?f(e):t}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){function t(){var e,n;a(this,t);for(var i=arguments.length,u=new Array(i),s=0;s<i;s++)u[s]=arguments[s];return p(f(n=c(this,(e=g(t)).call.apply(e,[this].concat(u)))),"onClick",(function(e){var t=n.props,i=t.text,u=t.onCopy,s=t.children,a=t.options,l=o.default.Children.only(s),c=(0,r.default)(i,a);u&&u(i,c),l&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(e)})),n}var n,i;return 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}}),t&&d(e,t)}(t,e),n=t,i=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["text","onCopy","options","children"]),r=o.default.Children.only(t);return o.default.cloneElement(r,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{onClick:this.onClick}))}}],i&&l(n.prototype,i),t}(o.default.PureComponent);t.CopyToClipboard=h,p(h,"defaultProps",{onCopy:void 0,options:void 0})},59087:function(e,t,n){"use strict";var o=n(44818).CopyToClipboard;o.CopyToClipboard=o,e.exports=o},97818:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var r,i=(r=n(91565))&&r.__esModule?r:{default:r},u=function(e){return e};t.default=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var u,s=e[Symbol.iterator]();!(o=(u=s.next()).done)&&(n.push(u.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(Array.isArray(e)&&2===e.length?e:[e,null],2),n=t[0],r=t[1];return function(e){for(var t=arguments.length,s=Array(t>1?t-1:0),a=1;a<t;a++)s[a-1]=arguments[a];var l=s.map((function(e){return n[e]})).filter(u);return"string"==typeof l[0]||"function"==typeof r?{key:e,className:r?r.apply(void 0,o(l)):l.join(" ")}:{key:e,style:i.default.apply(void 0,[{}].concat(o(l)))}}},e.exports=t.default},91565:function(e){"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var r,i,u=n(e),s=1;s<arguments.length;s++){r=arguments[s],i=o(Object(r));for(var a=0;a<i.length;a++)u[i[a]]=r[i[a]]}return u}},91661:function(e){"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var u,s=e[Symbol.iterator]();!(o=(u=s.next()).done)&&(n.push(u.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,o=e.multiSection;function r(e){var r=t(e,2),i=r[0],u=r[1];return o?null===u||u===n[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(i))?[null,null]:[i,0]:[i,u+1]:0===n||u===n-1?[null,null]:null===u?[null,0]:[null,u+1]}return{next:r,prev:function(e){var r=t(e,2),i=r[0],u=r[1];return o?null===u||0===u?null===(i=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,n[i]-1]:[i,u-1]:0===n||0===u?[null,null]:null===u?[null,n-1]:[null,u-1]},isLast:function(e){return null===r(e)[1]}}}},19897:function(e){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}},47033:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},448:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[995],{54096:function(e,t,n){n.d(t,{G:function(){return i}});var r=n(1024),o=n(21679);function i(e){var t,n;return t=e,n=o.u.getInstance(t),r.useEffect((function(){return function(){o.u.releaseInstance(t)}})),n}},86242:function(e,t,n){n.d(t,{Oo:function(){return u},b2:function(){return a}});var r=n(1024),o=n(54753),i=n(89146),c=function(e){var t=e.breadcrumb,n=t.name,i=t.appLink,c=t.active;return r.createElement("li",{className:"breadcrumb-item".concat(c?" active":"")},c?r.createElement("strong",null,n):r.createElement(o.F,{appLink:i},n))},u=function(e){var t=e.breadcrumbs;return r.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return r.createElement(c,{key:t,breadcrumb:e})})))},a=r.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb m-0 p-0"},i.u.getPartialLoadingItems({numItems:n}).map((function(e,t){var n=e.width;return r.createElement("li",{key:t,className:"breadcrumb-item"},r.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},58424:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(1024),o=n.n(r),i=o().forwardRef((function(e,t){return o().createElement("div",Object.assign({},e,{ref:t,role:"button",tabIndex:0,className:"".concat(e.className?e.className:""," cursor-pointer"),onKeyDown:e.onKeyDown?e.onKeyDown:function(t){return"Enter"===t.key&&e.onClick(t)},onClick:e.onClick,style:e.style?e.style:{}}),e.children)}))},66703:function(e,t,n){n.d(t,{D:function(){return c},x:function(){return u}});var r=n(1024),o=n(57857),i=n(85887),c=r.createContext(""),u=r.memo((function(e){var t=e.phrase,n=e.namespace,i=e.options,u=r.useContext(c),a=n||u,f=Object.assign({escapeText:!0},i),s=o.T.getPhrase(a,t,f);return r.createElement("span",{dangerouslySetInnerHTML:{__html:s}})}),(function(e,t){return e.namespace===t.namespace&&e.phrase===t.phrase&&i.t.isEqual(e.options,t.options)}))},84657:function(e,t,n){n.d(t,{v:function(){return r}});var r={BASE_VIDEO_COLLECTION:"thumbnail,tags,rating,series,season,owner",VIDEO_COLLECTION:"(videoCollection)",SERIES:"tallposter,rating,banner",FOLDER:"banner,thumbnail",CLASSIFICATION_COLLECTION:"banner,cover,tallPoster",CLASSIFICATION:function(e){return"banner,cover,tallPoster,followers{id:".concat(e,"},pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0}")},VIDEO:"series,season,rating,producers,glance,distributors,owner,resources[thumbnail,pdf],tags,productionCompanies,directors,links,thumbnail,interactives[thumbnail,_canBeConsumed],clips[_canBeConsumed],_canUpdate,_videoProgress,_canBeConsumed,categories,libraries,_canAddToLibrary",PLAYLIST:"cover,banner,owner,videos[count()]{limit:0},clips[count()]{limit:0},interactives[count()]{limit:0},followers[count()]{limit:0}",PLAYLIST_COLLECTION:"videos[count()]{limit:0},interactives[count()]{limit:0},clips[count()]{limit:0},cover",CLIP:"(clip)",CLIP_COLLECTION:"(clipCollection)",INTERACTIVE:"(interactive)",LIBRARY_COLLECTION:"owner[logo]",LIBRARY:"owner[logo],categorytree"}},2491:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(54096),o=n(21186),i=n(92159);function c(){var e=(0,r.G)(i.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:o.NK.Warning,heading:o.R6.Warning,message:t})}}}},30317:function(e,t,n){n.d(t,{v:function(){return D}});var r=n(1024),o=n(31647),i=n(35656),c=n(57857),u=n(88070);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 f(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,r.key,r)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function l(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)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var y="shared.notFoundError",b=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&&s(e,t)}(u,e);var t,n,r,o,i=(r=u,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(r);if(o){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(y,"title"))}return t=u,(n=[{key:"name",get:function(){return"NotFoundError"}},{key:"heading",get:function(){return c.T.getPhrase(y,"heading")}},{key:"description",get:function(){return c.T.getPhrase(y,"description")}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(u.H);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 m(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,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function v(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)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var O="shared.unspecifiedError",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&&h(e,t)}(u,e);var t,n,r,o,i=(r=u,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=g(r);if(o){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(O,"title"))}return t=u,(n=[{key:"name",get:function(){return"UnspecifiedError"}},{key:"heading",get:function(){return c.T.getPhrase(O,"heading")}},{key:"description",get:function(){return c.T.getPhrase(O,"description")}},{key:"cta",get:function(){return!1}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(u.H);function E(e){return E="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},E(e)}function P(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,r.key,r)}}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function j(e,t){if(t&&("object"===E(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)}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var R="shared.privateResourceError",S=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&&_(e,t)}(u,e);var t,n,r,o,i=(r=u,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=T(r);if(o){var n=T(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return j(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(R,"title"))}return t=u,(n=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return c.T.getPhrase(R,"heading")}},{key:"description",get:function(){return c.T.getPhrase(R,"description")}}])&&P(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(u.H);function C(e){return C="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},C(e)}function I(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,r.key,r)}}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function L(e,t){if(t&&("object"===C(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)}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}var N="shared.regionLockedResourceError",x={notFound:b,forbidden:{rating:S,yearLevel:S,region: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)}(u,e);var t,n,r,o,i=(r=u,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=A(r);if(o){var n=A(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return L(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,c.T.getPhrase(N,"title"))}return t=u,(n=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return c.T.getPhrase(N,"heading")}},{key:"description",get:function(){return c.T.getPhrase(N,"description")}}])&&I(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(u.H),privacy:S},badRequest:w};function B(e){return e.map((function(e){return e.statusCode})).join(":")}function D(e,t,n){var c=Array.isArray(e)?e:[e];(0,r.useEffect)((function(){c.forEach((function(e){!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var r;r="number"==typeof e?e:e.status;var c=Object.assign(Object.assign({},x),t);r&&o.Q.ErrorHelper.isStatusCodeError(r)&&(r!==i.o.NotFound?r!==i.o.Forbidden?n.badRequest||o.Q.ErrorHelper.throw(new c.badRequest):n.forbidden||o.Q.ErrorHelper.throw(new c.forbidden.privacy):n.notFound||o.Q.ErrorHelper.throw(new c.notFound))}}(e.statusCode,t,n)}))}),[B(c),t,n])}},89146:function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(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}n.d(t,{u:function(){return c}});var i={numItems:5,minWidth:50,maxWidth:100},c={getPartialLoadingItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},i),e),n=function(){return Math.max(Math.floor(Math.random()*t.maxWidth),t.minWidth)};return r(Array(t.numItems)).map((function(){return{width:"".concat(n(),"px")}}))}}}}]);
|