From 05c4207b22a84b46ab002f6b202ca9f00f18231d Mon Sep 17 00:00:00 2001 From: camdendotlol Date: Tue, 17 Oct 2023 15:41:14 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20177dd?= =?UTF-8?q?59c22d1bfdf610f7933c673869763064459=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/1196.864acedf.iframe.bundle.js | 1 - docs/1196.868f7a3b.iframe.bundle.js | 1 + ...6112c9.iframe.bundle.js => 4125.39f03400.iframe.bundle.js} | 2 +- docs/5200.108b42ff.iframe.bundle.js | 2 -- docs/5200.670207b1.iframe.bundle.js | 2 ++ ...LICENSE.txt => 5200.670207b1.iframe.bundle.js.LICENSE.txt} | 0 docs/iframe.html | 4 ++-- docs/main.8fbc3465.iframe.bundle.js | 1 + docs/main.f4553d3e.iframe.bundle.js | 1 - docs/project.json | 2 +- ...frame.bundle.js => runtime~main.01f4354e.iframe.bundle.js} | 2 +- ...tic-ui-AccordionDataList-stories.cde38589.iframe.bundle.js | 1 - ...tic-ui-AccordionDataList-stories.d0b27f49.iframe.bundle.js | 1 + ...ntic-ui-BibliographyList-stories.6ca53624.iframe.bundle.js | 1 - ...ntic-ui-BibliographyList-stories.f5b0b93b.iframe.bundle.js | 1 + ...semantic-ui-EmbeddedList-stories.396b2168.iframe.bundle.js | 1 - ...semantic-ui-EmbeddedList-stories.e9e9ac00.iframe.bundle.js | 1 + docs/semantic-ui-Selectize-stories.879fb2ea.iframe.bundle.js | 1 + docs/semantic-ui-Selectize-stories.c3d036d3.iframe.bundle.js | 1 - 19 files changed, 13 insertions(+), 13 deletions(-) delete mode 100644 docs/1196.864acedf.iframe.bundle.js create mode 100644 docs/1196.868f7a3b.iframe.bundle.js rename docs/{4125.706112c9.iframe.bundle.js => 4125.39f03400.iframe.bundle.js} (50%) delete mode 100644 docs/5200.108b42ff.iframe.bundle.js create mode 100644 docs/5200.670207b1.iframe.bundle.js rename docs/{5200.108b42ff.iframe.bundle.js.LICENSE.txt => 5200.670207b1.iframe.bundle.js.LICENSE.txt} (100%) create mode 100644 docs/main.8fbc3465.iframe.bundle.js delete mode 100644 docs/main.f4553d3e.iframe.bundle.js rename docs/{runtime~main.a551bcb2.iframe.bundle.js => runtime~main.01f4354e.iframe.bundle.js} (96%) delete mode 100644 docs/semantic-ui-AccordionDataList-stories.cde38589.iframe.bundle.js create mode 100644 docs/semantic-ui-AccordionDataList-stories.d0b27f49.iframe.bundle.js delete mode 100644 docs/semantic-ui-BibliographyList-stories.6ca53624.iframe.bundle.js create mode 100644 docs/semantic-ui-BibliographyList-stories.f5b0b93b.iframe.bundle.js delete mode 100644 docs/semantic-ui-EmbeddedList-stories.396b2168.iframe.bundle.js create mode 100644 docs/semantic-ui-EmbeddedList-stories.e9e9ac00.iframe.bundle.js create mode 100644 docs/semantic-ui-Selectize-stories.879fb2ea.iframe.bundle.js delete mode 100644 docs/semantic-ui-Selectize-stories.c3d036d3.iframe.bundle.js diff --git a/docs/1196.864acedf.iframe.bundle.js b/docs/1196.864acedf.iframe.bundle.js deleted file mode 100644 index 309bcfbd..00000000 --- a/docs/1196.864acedf.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_performant_software_storybook=self.webpackChunk_performant_software_storybook||[]).push([[1196],{"../semantic-ui/src/components/Items.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>src_components_Items});var react=__webpack_require__("../../node_modules/react/index.js"),Card=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/views/Card/Card.js"),Button=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),Segment=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Segment/Segment.js"),Header=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Header/Header.js"),Icon=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Icon/Icon.js"),Item=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/views/Item/Item.js"),Checkbox=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/modules/Checkbox/Checkbox.js"),index_all=__webpack_require__("../../node_modules/underscore/modules/index-all.js"),i18n=__webpack_require__("../semantic-ui/src/i18n/i18n.js"),List=__webpack_require__("../semantic-ui/src/components/List.js"),ItemsToggle=__webpack_require__("../semantic-ui/src/components/ItemsToggle.js"),Draggable=__webpack_require__("../semantic-ui/src/components/Draggable.js"),injectStylesIntoStyleTag=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Items=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].use[1]!../semantic-ui/src/components/Items.css"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Items.Z,options);Items.Z&&Items.Z.locals&&Items.Z.locals;var jsx_runtime=__webpack_require__("../../node_modules/react/jsx-runtime.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;iItems component is used as the presentation for a list of records. The component renders\nboth a List and\nCard views.',displayName:"ItemsClass",methods:[{name:"getActions",docblock:"Returns the list of actions for the passed item.\n\n@param item\n\n@returns {Array<*>}",modifiers:[],params:[{name:"item",optional:!1}],returns:{type:{name:"Array",elements:[{name:"mixed"}]}},description:"Returns the list of actions for the passed item."},{name:"getClassName",docblock:"Returns a space delimited string of class names.\n\n@returns {string}",modifiers:[],params:[],returns:{type:{name:"string"}},description:"Returns a space delimited string of class names."},{name:"getItemProps",docblock:"Returns as asProps function value for the passed item, if provided.\n\n@param item\n\n@returns {*|{}}",modifiers:[],params:[{name:"item",optional:!1}],returns:{type:{name:"union",elements:[{name:"mixed"}]}},description:"Returns as asProps function value for the passed item, if provided."},{name:"isSelectable",docblock:'Returns true if the component has the necessary props to render itself in the "selectable" state.\n\n@returns {boolean}',modifiers:[],params:[],returns:{type:{name:"boolean"}},description:'Returns true if the component has the necessary props to render itself in the "selectable" state.'},{name:"renderCard",docblock:"Renders the card for the passed item.\n\n@param item\n@param index\n\n@returns {*}",modifiers:[],params:[{name:"item",optional:!1},{name:"index",optional:!1}],returns:{type:{name:"mixed"}},description:"Renders the card for the passed item."},{name:"renderEmptyList",docblock:"Renders the empty list.\n\n@returns {null|*}",modifiers:[],params:[],returns:{type:{name:"union",elements:[{name:"mixed"}]}},description:"Renders the empty list."},{name:"renderGrid",docblock:"Renders the grid view.\n\n@returns {null|*}",modifiers:[],params:[],returns:{type:{name:"union",elements:[{name:"mixed"}]}},description:"Renders the grid view."},{name:"renderItem",docblock:"Renders the list item for the passed item.\n\n@param item\n@param index\n\n@returns {*}",modifiers:[],params:[{name:"item",optional:!1},{name:"index",optional:!1}],returns:{type:{name:"mixed"}},description:"Renders the list item for the passed item."},{name:"renderList",docblock:"Renders the list view.\n\n@returns {null|*}",modifiers:[],params:[],returns:{type:{name:"union",elements:[{name:"mixed"}]}},description:"Renders the list view."}],props:{actions:{required:!1,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{\n accept: (item: any) => boolean,\n color?: string,\n icon?: string,\n name: string,\n onClick?: (item: any) => void,\n popup: {\n content: string,\n title: string\n },\n render?: (item: any, index: number) => Element,\n title?: string\n}",signature:{properties:[{key:"accept",value:{name:"signature",type:"function",raw:"(item: any) => boolean",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"boolean"}},required:!0}},{key:"color",value:{name:"string",required:!1}},{key:"icon",value:{name:"string",required:!1}},{key:"name",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}},required:!1}},{key:"popup",value:{name:"signature",type:"object",raw:"{\n content: string,\n title: string\n}",signature:{properties:[{key:"content",value:{name:"string",required:!0}},{key:"title",value:{name:"string",required:!0}}]},required:!0}},{key:"render",value:{name:"signature",type:"function",raw:"(item: any, index: number) => Element",signature:{arguments:[{name:"item",type:{name:"any"}},{name:"index",type:{name:"number"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}},required:!1}},{key:"title",value:{name:"string",required:!1}}]}}],raw:"Array"},description:'A list of actions to render for each element in the row. Actions with the names "edit" and "delete" will be\nhandled specially by the List higher-order component.',defaultValue:{value:"[]",computed:!1}},addButton:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n basic: boolean,\n color: string,\n content?: string,\n inverted?: boolean,\n location: string,\n onClick?: () => void,\n secondary?: boolean\n}",signature:{properties:[{key:"basic",value:{name:"boolean",required:!0}},{key:"color",value:{name:"string",required:!0}},{key:"content",value:{name:"string",required:!1}},{key:"inverted",value:{name:"boolean",required:!1}},{key:"location",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}},{key:"secondary",value:{name:"boolean",required:!1}}]}},description:"If provided, a button will display in the list header allowing the addition of items to the list. When clicked,\nthe modal prop will be rendered."},buttons:{required:!1,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{\n accept?: () => boolean,\n render: (index?: number) => Element\n}",signature:{properties:[{key:"accept",value:{name:"signature",type:"function",raw:"() => boolean",signature:{arguments:[],return:{name:"boolean"}},required:!1}},{key:"render",value:{name:"signature",type:"function",raw:"(index?: number) => Element",signature:{arguments:[{name:"index",type:{name:"number"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}},required:!0}}]}}],raw:"Array"},description:'A list of arbitrary buttons to the display in the list header. All actions will be handled by the consuming\ncomponent.\n
\n
\n\nIn addition to the props listed here for each button, buttons will also accept any of the Semantic UI\nButton props.'},count:{required:!1,flowType:{name:"number"},description:"The number of total records in the list (not just the current page)."},className:{required:!1,flowType:{name:"string"},description:"CSS class name to append to the div container."},csvExportButton:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n color: string,\n location: string,\n onClick?: () => void\n}",signature:{properties:[{key:"color",value:{name:"string",required:!0}},{key:"location",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}},description:"If provided, a CSV export button will be rendered in the list header."},deleteButton:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n color: string,\n location: string,\n onClick?: () => void\n}",signature:{properties:[{key:"color",value:{name:"string",required:!0}},{key:"location",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}},description:'If provided, a "delete all" button will be rendered in the list header.'},filters:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n active: boolean,\n component: Component<{}>,\n props?: any,\n state?: any,\n onChange: (params: any) => Promise,\n showLabels?: boolean\n}",signature:{properties:[{key:"active",value:{name:"boolean",required:!0}},{key:"component",value:{name:"Component",elements:[{name:"signature",type:"object",raw:"{}",signature:{properties:[]}}],raw:"Component<{}>",required:!0}},{key:"props",value:{name:"any",required:!1}},{key:"state",value:{name:"any",required:!1}},{key:"onChange",value:{name:"signature",type:"function",raw:"(params: any) => Promise",signature:{arguments:[{name:"params",type:{name:"any"}}],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}},required:!0}},{key:"showLabels",value:{name:"boolean",required:!1}}]}},description:"If provided, the passed component will be rendered when the filter button is clicked.\n
\n
\n\nValues passed in the defaults and props properties will be made available in the\npassed component.\n
\n
\n\nThe onChange callback will fire when the filters are modified. This action will also reload the list,\npassing the new filters the onLoad callback."},modal:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n component: ComponentType,\n props: any,\n state: any\n}",signature:{properties:[{key:"component",value:{name:"ComponentType",elements:[{name:"any"}],raw:"ComponentType",required:!0}},{key:"props",value:{name:"any",required:!0}},{key:"state",value:{name:"any",required:!0}}]}},description:'If provided, the passed modal will be rendered when the "add" button is clicked.'},onCopy:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => any",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"any"}}},description:'If provided, this callback is fired when the "copy" action is clicked for an item. The consuming component\nshould generate a copy of the selected item and return that value. The return value is then set at the\ncurrent item in the edit modal.'},onDelete:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}}},description:'Callback fired when the "delete" action is clicked for an item.'},onDeleteAll:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Promise",signature:{arguments:[],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}}},description:"Callback fired when the delete all button is clicked. This prop expects a Promise as the return value."},onPageChange:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Callback fired when the page is changed via the pagination component."},onPerPageChange:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Callback fired when the per page value is changed."},onSave:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Promise",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}}},description:"Callback fired when the save button is clicked in the add/edit modal. This function expects a Promise as the\nreturn value."},page:{required:!1,flowType:{name:"number"},description:"Current page number."},pages:{required:!1,flowType:{name:"number"},description:"Number of pages in the list."},perPage:{required:!1,flowType:{name:"number"},description:"The number of records to display per page."},perPageOptions:{required:!1,flowType:{name:"Array",elements:[{name:"number"}],raw:"Array"},description:"The options to display in the dropdown for the per page selector."},renderDeleteModal:{required:!1,flowType:{name:"signature",type:"function",raw:"({ selectedItem: any, onCancel: () => void, onConfirm: () => void }) => Element",signature:{arguments:[{name:"",type:{name:"signature",type:"object",raw:"{ selectedItem: any, onCancel: () => void, onConfirm: () => void }",signature:{properties:[{key:"selectedItem",value:{name:"any",required:!0}},{key:"onCancel",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}},{key:"onConfirm",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'Custom render function for the modal that appears on the "delete" action.'},renderListHeader:{required:!1,flowType:{name:"signature",type:"function",raw:"() => ?Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element",nullable:!0}}},description:"If provided, this function will return a JSX element that will prepend to the list header."},renderSearch:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"If provided, this function will return a JSX element that will replace the default search input."},selectable:{required:!1,flowType:{name:"boolean"},description:"If set to true, checkboxes will render as the first table column, allowing each row to be selectable.\nThe consuming component is responsible for tracking the selected items."},showRecordCount:{required:!1,flowType:{name:"boolean"},description:"If true, the total number of records will display in the list header."},as:{required:!1,flowType:{name:"Element",elements:[{name:"any"}],raw:"Element"},description:"Renders the Card/Item component as the passed component."},asProps:{required:!1,flowType:{name:"any"},description:"Props to supply to the Card/Item component."},children:{required:!1,flowType:{name:"Element",elements:[{name:"any"}],raw:"Element"},description:"Child elements to append below the list content."},isRowSelected:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => boolean",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"boolean"}}},description:"Callback returning true if the row for the passed item is selected."},items:{required:!0,flowType:{name:"Array",elements:[{name:"any"}],raw:"Array"},description:"An array of objects to render as rows in the list."},link:{required:!1,flowType:{name:"boolean"},description:"If true, the list items will be formatted as a link."},onDrag:{required:!1,flowType:{name:"signature",type:"function",raw:"(dragIndex: number, hoverIndex: number) => void",signature:{arguments:[{name:"dragIndex",type:{name:"number"}},{name:"hoverIndex",type:{name:"number"}}],return:{name:"void"}}},description:"Callback fired when a table row is dragged"},onRowSelect:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}}},description:"Callback fired when the passed item is selected. This callback is only fired if the selectable\nprop is passed as true."},onSelectAllRows:{required:!1,flowType:{name:"signature",type:"function",raw:"(items: Array) => void",signature:{arguments:[{name:"items",type:{name:"Array",elements:[{name:"any"}],raw:"Array"}}],return:{name:"void"}}},description:"Callback fired when the select all checkbox is checked."},renderAdditionalContent:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"A function that returns a JSX element to render as additional card content."},renderDescription:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card description.\nSee Semantic UI Card.'},renderEmptyList:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"A function that returns a JSX element to render when the list has no items."},renderExtra:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card extra content.\nSee Semantic UI Card.'},renderHeader:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card header.\nSee Semantic UI Card.'},renderImage:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card image.\nSee Semantic UI Card.'},renderMeta:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card meta.\nSee Semantic UI Card.'},view:{required:!0,flowType:{name:"number"},description:"Toggles between list view and grid view. This prop is provided by the ItemsToggle higher-order\ncomponent."}}};const src_components_Items=Items_Items},"../semantic-ui/src/components/ItemsToggle.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__,k:()=>Views});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/react/index.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/modules/Dropdown/Dropdown.js"),underscore__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../node_modules/underscore/modules/index-all.js"),_DataList__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../semantic-ui/src/components/DataList.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../node_modules/react/jsx-runtime.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".item-list {\n margin: 1em 0em 1em 0em;\n}\n\n.item-list .ui.icon.header {\n display: block;\n}\n\n.item-list .ui.items > .item > .checkbox-container {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding-right: 100px;\n width: 20%;\n}\n","",{version:3,sources:["webpack://./../semantic-ui/src/components/Items.css"],names:[],mappings:"AAAA;EACE,uBAAuB;AACzB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,yBAAyB;EACzB,oBAAoB;EACpB,UAAU;AACZ",sourcesContent:[".item-list {\n margin: 1em 0em 1em 0em;\n}\n\n.item-list .ui.icon.header {\n display: block;\n}\n\n.item-list .ui.items > .item > .checkbox-container {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding-right: 100px;\n width: 20%;\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/docs/1196.868f7a3b.iframe.bundle.js b/docs/1196.868f7a3b.iframe.bundle.js new file mode 100644 index 00000000..07056f63 --- /dev/null +++ b/docs/1196.868f7a3b.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_performant_software_storybook=self.webpackChunk_performant_software_storybook||[]).push([[1196],{"../semantic-ui/src/components/Items.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>src_components_Items});var react=__webpack_require__("../../node_modules/react/index.js"),Card=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/views/Card/Card.js"),Button=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),Segment=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Segment/Segment.js"),Header=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Header/Header.js"),Icon=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Icon/Icon.js"),Item=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/views/Item/Item.js"),Checkbox=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/modules/Checkbox/Checkbox.js"),index_all=__webpack_require__("../../node_modules/underscore/modules/index-all.js"),i18n=__webpack_require__("../semantic-ui/src/i18n/i18n.js"),List=__webpack_require__("../semantic-ui/src/components/List.js"),ItemsToggle=__webpack_require__("../semantic-ui/src/components/ItemsToggle.js"),Draggable=__webpack_require__("../semantic-ui/src/components/Draggable.js"),injectStylesIntoStyleTag=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Items=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].use[1]!../semantic-ui/src/components/Items.css"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Items.Z,options);Items.Z&&Items.Z.locals&&Items.Z.locals;var jsx_runtime=__webpack_require__("../../node_modules/react/jsx-runtime.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;iItems component is used as the presentation for a list of records. The component renders\nboth a List and\nCard views.',displayName:"ItemsClass",methods:[{name:"getActions",docblock:"Returns the list of actions for the passed item.\n\n@param item\n\n@returns {Array<*>}",modifiers:[],params:[{name:"item",optional:!1}],returns:{type:{name:"Array",elements:[{name:"mixed"}]}},description:"Returns the list of actions for the passed item."},{name:"getClassName",docblock:"Returns a space delimited string of class names.\n\n@returns {string}",modifiers:[],params:[],returns:{type:{name:"string"}},description:"Returns a space delimited string of class names."},{name:"getItemProps",docblock:"Returns as asProps function value for the passed item, if provided.\n\n@param item\n\n@returns {*|{}}",modifiers:[],params:[{name:"item",optional:!1}],returns:{type:{name:"union",elements:[{name:"mixed"}]}},description:"Returns as asProps function value for the passed item, if provided."},{name:"isSelectable",docblock:'Returns true if the component has the necessary props to render itself in the "selectable" state.\n\n@returns {boolean}',modifiers:[],params:[],returns:{type:{name:"boolean"}},description:'Returns true if the component has the necessary props to render itself in the "selectable" state.'},{name:"renderCard",docblock:"Renders the card for the passed item.\n\n@param item\n@param index\n\n@returns {*}",modifiers:[],params:[{name:"item",optional:!1},{name:"index",optional:!1}],returns:{type:{name:"mixed"}},description:"Renders the card for the passed item."},{name:"renderEmptyList",docblock:"Renders the empty list.\n\n@returns {null|*}",modifiers:[],params:[],returns:{type:{name:"union",elements:[{name:"mixed"}]}},description:"Renders the empty list."},{name:"renderGrid",docblock:"Renders the grid view.\n\n@returns {null|*}",modifiers:[],params:[],returns:{type:{name:"union",elements:[{name:"mixed"}]}},description:"Renders the grid view."},{name:"renderItem",docblock:"Renders the list item for the passed item.\n\n@param item\n@param index\n\n@returns {*}",modifiers:[],params:[{name:"item",optional:!1},{name:"index",optional:!1}],returns:{type:{name:"mixed"}},description:"Renders the list item for the passed item."},{name:"renderList",docblock:"Renders the list view.\n\n@returns {null|*}",modifiers:[],params:[],returns:{type:{name:"union",elements:[{name:"mixed"}]}},description:"Renders the list view."}],props:{actions:{required:!1,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{\n accept: (item: any) => boolean,\n color?: string,\n icon?: string,\n name: string,\n onClick?: (item: any) => void,\n popup: {\n content: string,\n title: string\n },\n render?: (item: any, index: number) => Element,\n title?: string\n}",signature:{properties:[{key:"accept",value:{name:"signature",type:"function",raw:"(item: any) => boolean",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"boolean"}},required:!0}},{key:"color",value:{name:"string",required:!1}},{key:"icon",value:{name:"string",required:!1}},{key:"name",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}},required:!1}},{key:"popup",value:{name:"signature",type:"object",raw:"{\n content: string,\n title: string\n}",signature:{properties:[{key:"content",value:{name:"string",required:!0}},{key:"title",value:{name:"string",required:!0}}]},required:!0}},{key:"render",value:{name:"signature",type:"function",raw:"(item: any, index: number) => Element",signature:{arguments:[{name:"item",type:{name:"any"}},{name:"index",type:{name:"number"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}},required:!1}},{key:"title",value:{name:"string",required:!1}}]}}],raw:"Array"},description:'A list of actions to render for each element in the row. Actions with the names "edit" and "delete" will be\nhandled specially by the List higher-order component.',defaultValue:{value:"[]",computed:!1}},addButton:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n basic: boolean,\n color: string,\n content?: string,\n inverted?: boolean,\n location: string,\n onClick?: () => void,\n secondary?: boolean\n}",signature:{properties:[{key:"basic",value:{name:"boolean",required:!0}},{key:"color",value:{name:"string",required:!0}},{key:"content",value:{name:"string",required:!1}},{key:"inverted",value:{name:"boolean",required:!1}},{key:"location",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}},{key:"secondary",value:{name:"boolean",required:!1}}]}},description:"If provided, a button will display in the list header allowing the addition of items to the list. When clicked,\nthe modal prop will be rendered."},buttons:{required:!1,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{\n accept?: () => boolean,\n render: (index?: number) => Element\n}",signature:{properties:[{key:"accept",value:{name:"signature",type:"function",raw:"() => boolean",signature:{arguments:[],return:{name:"boolean"}},required:!1}},{key:"render",value:{name:"signature",type:"function",raw:"(index?: number) => Element",signature:{arguments:[{name:"index",type:{name:"number"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}},required:!0}}]}}],raw:"Array"},description:'A list of arbitrary buttons to the display in the list header. All actions will be handled by the consuming\ncomponent.\n
\n
\n\nIn addition to the props listed here for each button, buttons will also accept any of the Semantic UI\nButton props.'},count:{required:!1,flowType:{name:"number"},description:"The number of total records in the list (not just the current page)."},className:{required:!1,flowType:{name:"string"},description:"CSS class name to append to the div container."},csvExportButton:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n basic: boolean,\n color: string,\n location: string,\n onClick?: () => void\n}",signature:{properties:[{key:"basic",value:{name:"boolean",required:!0}},{key:"color",value:{name:"string",required:!0}},{key:"location",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}},description:"If provided, a CSV export button will be rendered in the list header."},deleteButton:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n color: string,\n location: string,\n onClick?: () => void\n}",signature:{properties:[{key:"color",value:{name:"string",required:!0}},{key:"location",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}},description:'If provided, a "delete all" button will be rendered in the list header.'},filters:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n active: boolean,\n component: Component<{}>,\n props?: any,\n state?: any,\n onChange: (params: any) => Promise,\n showLabels?: boolean\n}",signature:{properties:[{key:"active",value:{name:"boolean",required:!0}},{key:"component",value:{name:"Component",elements:[{name:"signature",type:"object",raw:"{}",signature:{properties:[]}}],raw:"Component<{}>",required:!0}},{key:"props",value:{name:"any",required:!1}},{key:"state",value:{name:"any",required:!1}},{key:"onChange",value:{name:"signature",type:"function",raw:"(params: any) => Promise",signature:{arguments:[{name:"params",type:{name:"any"}}],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}},required:!0}},{key:"showLabels",value:{name:"boolean",required:!1}}]}},description:"If provided, the passed component will be rendered when the filter button is clicked.\n
\n
\n\nValues passed in the defaults and props properties will be made available in the\npassed component.\n
\n
\n\nThe onChange callback will fire when the filters are modified. This action will also reload the list,\npassing the new filters the onLoad callback."},modal:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n component: ComponentType,\n props: any,\n state: any\n}",signature:{properties:[{key:"component",value:{name:"ComponentType",elements:[{name:"any"}],raw:"ComponentType",required:!0}},{key:"props",value:{name:"any",required:!0}},{key:"state",value:{name:"any",required:!0}}]}},description:'If provided, the passed modal will be rendered when the "add" button is clicked.'},onCopy:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => any",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"any"}}},description:'If provided, this callback is fired when the "copy" action is clicked for an item. The consuming component\nshould generate a copy of the selected item and return that value. The return value is then set at the\ncurrent item in the edit modal.'},onDelete:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}}},description:'Callback fired when the "delete" action is clicked for an item.'},onDeleteAll:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Promise",signature:{arguments:[],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}}},description:"Callback fired when the delete all button is clicked. This prop expects a Promise as the return value."},onPageChange:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Callback fired when the page is changed via the pagination component."},onPerPageChange:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Callback fired when the per page value is changed."},onSave:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Promise",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}}},description:"Callback fired when the save button is clicked in the add/edit modal. This function expects a Promise as the\nreturn value."},page:{required:!1,flowType:{name:"number"},description:"Current page number."},pages:{required:!1,flowType:{name:"number"},description:"Number of pages in the list."},perPage:{required:!1,flowType:{name:"number"},description:"The number of records to display per page."},perPageOptions:{required:!1,flowType:{name:"Array",elements:[{name:"number"}],raw:"Array"},description:"The options to display in the dropdown for the per page selector."},renderDeleteModal:{required:!1,flowType:{name:"signature",type:"function",raw:"({ selectedItem: any, onCancel: () => void, onConfirm: () => void }) => Element",signature:{arguments:[{name:"",type:{name:"signature",type:"object",raw:"{ selectedItem: any, onCancel: () => void, onConfirm: () => void }",signature:{properties:[{key:"selectedItem",value:{name:"any",required:!0}},{key:"onCancel",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}},{key:"onConfirm",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'Custom render function for the modal that appears on the "delete" action.'},renderListHeader:{required:!1,flowType:{name:"signature",type:"function",raw:"() => ?Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element",nullable:!0}}},description:"If provided, this function will return a JSX element that will prepend to the list header."},renderSearch:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"If provided, this function will return a JSX element that will replace the default search input."},selectable:{required:!1,flowType:{name:"boolean"},description:"If set to true, checkboxes will render as the first table column, allowing each row to be selectable.\nThe consuming component is responsible for tracking the selected items."},showRecordCount:{required:!1,flowType:{name:"boolean"},description:"If true, the total number of records will display in the list header."},as:{required:!1,flowType:{name:"Element",elements:[{name:"any"}],raw:"Element"},description:"Renders the Card/Item component as the passed component."},asProps:{required:!1,flowType:{name:"any"},description:"Props to supply to the Card/Item component."},children:{required:!1,flowType:{name:"Element",elements:[{name:"any"}],raw:"Element"},description:"Child elements to append below the list content."},isRowSelected:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => boolean",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"boolean"}}},description:"Callback returning true if the row for the passed item is selected."},items:{required:!0,flowType:{name:"Array",elements:[{name:"any"}],raw:"Array"},description:"An array of objects to render as rows in the list."},link:{required:!1,flowType:{name:"boolean"},description:"If true, the list items will be formatted as a link."},onDrag:{required:!1,flowType:{name:"signature",type:"function",raw:"(dragIndex: number, hoverIndex: number) => void",signature:{arguments:[{name:"dragIndex",type:{name:"number"}},{name:"hoverIndex",type:{name:"number"}}],return:{name:"void"}}},description:"Callback fired when a table row is dragged"},onRowSelect:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}}},description:"Callback fired when the passed item is selected. This callback is only fired if the selectable\nprop is passed as true."},onSelectAllRows:{required:!1,flowType:{name:"signature",type:"function",raw:"(items: Array) => void",signature:{arguments:[{name:"items",type:{name:"Array",elements:[{name:"any"}],raw:"Array"}}],return:{name:"void"}}},description:"Callback fired when the select all checkbox is checked."},renderAdditionalContent:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"A function that returns a JSX element to render as additional card content."},renderDescription:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card description.\nSee Semantic UI Card.'},renderEmptyList:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"A function that returns a JSX element to render when the list has no items."},renderExtra:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card extra content.\nSee Semantic UI Card.'},renderHeader:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card header.\nSee Semantic UI Card.'},renderImage:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card image.\nSee Semantic UI Card.'},renderMeta:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card meta.\nSee Semantic UI Card.'},view:{required:!0,flowType:{name:"number"},description:"Toggles between list view and grid view. This prop is provided by the ItemsToggle higher-order\ncomponent."}}};const src_components_Items=Items_Items},"../semantic-ui/src/components/ItemsToggle.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__,k:()=>Views});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/react/index.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/modules/Dropdown/Dropdown.js"),underscore__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../node_modules/underscore/modules/index-all.js"),_DataList__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../semantic-ui/src/components/DataList.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../node_modules/react/jsx-runtime.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".item-list {\n margin: 1em 0em 1em 0em;\n}\n\n.item-list .ui.icon.header {\n display: block;\n}\n\n.item-list .ui.items > .item > .checkbox-container {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding-right: 100px;\n width: 20%;\n}\n","",{version:3,sources:["webpack://./../semantic-ui/src/components/Items.css"],names:[],mappings:"AAAA;EACE,uBAAuB;AACzB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,yBAAyB;EACzB,oBAAoB;EACpB,UAAU;AACZ",sourcesContent:[".item-list {\n margin: 1em 0em 1em 0em;\n}\n\n.item-list .ui.icon.header {\n display: block;\n}\n\n.item-list .ui.items > .item > .checkbox-container {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding-right: 100px;\n width: 20%;\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/docs/4125.706112c9.iframe.bundle.js b/docs/4125.39f03400.iframe.bundle.js similarity index 50% rename from docs/4125.706112c9.iframe.bundle.js rename to docs/4125.39f03400.iframe.bundle.js index fdf8caf8..e98e81b7 100644 --- a/docs/4125.706112c9.iframe.bundle.js +++ b/docs/4125.39f03400.iframe.bundle.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_performant_software_storybook=self.webpackChunk_performant_software_storybook||[]).push([[4125],{"../semantic-ui/src/components/ItemCollection.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>src_components_ItemCollection});var build=__webpack_require__("../shared/build/index.js"),react=__webpack_require__("../../node_modules/react/index.js"),uuid=__webpack_require__("../../node_modules/react-uuid/uuid.js"),uuid_default=__webpack_require__.n(uuid),Loader=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Loader/Loader.js"),index_all=__webpack_require__("../../node_modules/underscore/modules/index-all.js"),i18n=__webpack_require__("../semantic-ui/src/i18n/i18n.js"),Items=__webpack_require__("../semantic-ui/src/components/Items.js"),injectStylesIntoStyleTag=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),ItemCollection=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].use[1]!../semantic-ui/src/components/ItemCollection.css"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(ItemCollection.Z,options);ItemCollection.Z&&ItemCollection.Z.locals&&ItemCollection.Z.locals;var jsx_runtime=__webpack_require__("../../node_modules/react/jsx-runtime.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;iItemCollection component can be used to render a list of records stored on an object in memory. This\ncomponent is responsible for handling infinite scroll and rendering the Items component, which handles\nthe presentation.",displayName:"ItemCollection",methods:[{name:"getClassName",docblock:"Returns the concatenated class names.\n\n@returns {string}",modifiers:[],params:[],returns:{type:{name:"string"}},description:"Returns the concatenated class names."},{name:"getItems",docblock:"Returns the list of items to render based on the current page.\n\n@returns {Array|*[]}",modifiers:[],params:[],returns:{type:{name:"Array",elements:[{name:"any"}],raw:"Array"}},description:"Returns the list of items to render based on the current page."},{name:"onBottomReached",docblock:"Increments the page number and fetches the data.",modifiers:[],params:[],returns:null,description:"Increments the page number and fetches the data."},{name:"onDelete",docblock:"Calls the onDelete prop and returns a promise.\n\n@param item\n\n@returns {Promise}",modifiers:[],params:[{name:"item",optional:!1,type:{name:"any"}}],returns:{type:{name:"Promise",elements:[{name:"unknown"}]}},description:"Calls the onDelete prop and returns a promise."},{name:"onSave",docblock:"Calls the onSave prop and returns a promise.\n\n@param item\n\n@returns {Promise}",modifiers:[],params:[{name:"item",optional:!1,type:{name:"any"}}],returns:{type:{name:"Promise",elements:[{name:"unknown"}]}},description:"Calls the onSave prop and returns a promise."}],props:{actions:{required:!1,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{\n accept: (item: any) => boolean,\n color?: string,\n icon?: string,\n name: string,\n onClick?: (item: any) => void,\n popup: {\n content: string,\n title: string\n },\n render?: (item: any, index: number) => Element,\n title?: string\n}",signature:{properties:[{key:"accept",value:{name:"signature",type:"function",raw:"(item: any) => boolean",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"boolean"}},required:!0}},{key:"color",value:{name:"string",required:!1}},{key:"icon",value:{name:"string",required:!1}},{key:"name",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}},required:!1}},{key:"popup",value:{name:"signature",type:"object",raw:"{\n content: string,\n title: string\n}",signature:{properties:[{key:"content",value:{name:"string",required:!0}},{key:"title",value:{name:"string",required:!0}}]},required:!0}},{key:"render",value:{name:"signature",type:"function",raw:"(item: any, index: number) => Element",signature:{arguments:[{name:"item",type:{name:"any"}},{name:"index",type:{name:"number"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}},required:!1}},{key:"title",value:{name:"string",required:!1}}]}}],raw:"Array"},description:'A list of actions to render for each element in the row. Actions with the names "edit" and "delete" will be\nhandled specially by the List higher-order component.'},addButton:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n basic: boolean,\n color: string,\n content?: string,\n inverted?: boolean,\n location: string,\n onClick?: () => void,\n secondary?: boolean\n}",signature:{properties:[{key:"basic",value:{name:"boolean",required:!0}},{key:"color",value:{name:"string",required:!0}},{key:"content",value:{name:"string",required:!1}},{key:"inverted",value:{name:"boolean",required:!1}},{key:"location",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}},{key:"secondary",value:{name:"boolean",required:!1}}]}},description:"If provided, a button will display in the list header allowing the addition of items to the list. When clicked,\nthe modal prop will be rendered.",defaultValue:{value:"{\n location: 'top'\n}",computed:!1}},buttons:{required:!1,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{\n accept?: () => boolean,\n render: (index?: number) => Element\n}",signature:{properties:[{key:"accept",value:{name:"signature",type:"function",raw:"() => boolean",signature:{arguments:[],return:{name:"boolean"}},required:!1}},{key:"render",value:{name:"signature",type:"function",raw:"(index?: number) => Element",signature:{arguments:[{name:"index",type:{name:"number"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}},required:!0}}]}}],raw:"Array"},description:'A list of arbitrary buttons to the display in the list header. All actions will be handled by the consuming\ncomponent.\n
\n
\n\nIn addition to the props listed here for each button, buttons will also accept any of the Semantic UI\nButton props.',defaultValue:{value:"[]",computed:!1}},count:{required:!1,flowType:{name:"number"},description:"The number of total records in the list (not just the current page)."},className:{required:!1,flowType:{name:"string"},description:"CSS class name to append to the div container.",defaultValue:{value:"''",computed:!1}},csvExportButton:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n color: string,\n location: string,\n onClick?: () => void\n}",signature:{properties:[{key:"color",value:{name:"string",required:!0}},{key:"location",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}},description:"If provided, a CSV export button will be rendered in the list header."},deleteButton:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n color: string,\n location: string,\n onClick?: () => void\n}",signature:{properties:[{key:"color",value:{name:"string",required:!0}},{key:"location",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}},description:'If provided, a "delete all" button will be rendered in the list header.'},filters:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n active: boolean,\n component: Component<{}>,\n props?: any,\n state?: any,\n onChange: (params: any) => Promise,\n showLabels?: boolean\n}",signature:{properties:[{key:"active",value:{name:"boolean",required:!0}},{key:"component",value:{name:"Component",elements:[{name:"signature",type:"object",raw:"{}",signature:{properties:[]}}],raw:"Component<{}>",required:!0}},{key:"props",value:{name:"any",required:!1}},{key:"state",value:{name:"any",required:!1}},{key:"onChange",value:{name:"signature",type:"function",raw:"(params: any) => Promise",signature:{arguments:[{name:"params",type:{name:"any"}}],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}},required:!0}},{key:"showLabels",value:{name:"boolean",required:!1}}]}},description:"If provided, the passed component will be rendered when the filter button is clicked.\n
\n
\n\nValues passed in the defaults and props properties will be made available in the\npassed component.\n
\n
\n\nThe onChange callback will fire when the filters are modified. This action will also reload the list,\npassing the new filters the onLoad callback."},modal:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n component: ComponentType,\n props: any,\n state: any\n}",signature:{properties:[{key:"component",value:{name:"ComponentType",elements:[{name:"any"}],raw:"ComponentType",required:!0}},{key:"props",value:{name:"any",required:!0}},{key:"state",value:{name:"any",required:!0}}]}},description:'If provided, the passed modal will be rendered when the "add" button is clicked.',defaultValue:{value:"undefined",computed:!0}},onCopy:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => any",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"any"}}},description:'If provided, this callback is fired when the "copy" action is clicked for an item. The consuming component\nshould generate a copy of the selected item and return that value. The return value is then set at the\ncurrent item in the edit modal.',defaultValue:{value:"undefined",computed:!0}},onDelete:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}}},description:'Callback fired when the "delete" action is clicked for an item.'},onDeleteAll:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Promise",signature:{arguments:[],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}}},description:"Callback fired when the delete all button is clicked. This prop expects a Promise as the return value."},onPageChange:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Callback fired when the page is changed via the pagination component."},onPerPageChange:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Callback fired when the per page value is changed."},onSave:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}}},description:"Callback fired when the save button is clicked in the add/edit modal. This function expects a Promise as the\nreturn value.",defaultValue:{value:"() => {}",computed:!1}},page:{required:!1,flowType:{name:"number"},description:"Current page number."},pages:{required:!1,flowType:{name:"number"},description:"Number of pages in the list."},perPage:{required:!1,flowType:{name:"number"},description:"The number of records to display per page.",defaultValue:{value:"Number.MAX_SAFE_INTEGER",computed:!0}},perPageOptions:{required:!1,flowType:{name:"Array",elements:[{name:"number"}],raw:"Array"},description:"The options to display in the dropdown for the per page selector."},renderDeleteModal:{required:!1,flowType:{name:"signature",type:"function",raw:"({ selectedItem: any, onCancel: () => void, onConfirm: () => void }) => Element",signature:{arguments:[{name:"",type:{name:"signature",type:"object",raw:"{ selectedItem: any, onCancel: () => void, onConfirm: () => void }",signature:{properties:[{key:"selectedItem",value:{name:"any",required:!0}},{key:"onCancel",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}},{key:"onConfirm",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'Custom render function for the modal that appears on the "delete" action.',defaultValue:{value:"undefined",computed:!0}},renderListHeader:{required:!1,flowType:{name:"signature",type:"function",raw:"() => ?Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element",nullable:!0}}},description:"If provided, this function will return a JSX element that will prepend to the list header."},renderSearch:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"If provided, this function will return a JSX element that will replace the default search input."},selectable:{required:!1,flowType:{name:"boolean"},description:"If set to true, checkboxes will render as the first table column, allowing each row to be selectable.\nThe consuming component is responsible for tracking the selected items."},showRecordCount:{required:!1,flowType:{name:"boolean"},description:"If true, the total number of records will display in the list header."},as:{required:!1,flowType:{name:"Element",elements:[{name:"any"}],raw:"Element"},description:"Renders the Card/Item component as the passed component."},asProps:{required:!1,flowType:{name:"any"},description:"Props to supply to the Card/Item component."},children:{required:!1,flowType:{name:"Element",elements:[{name:"any"}],raw:"Element"},description:"Child elements to append below the list content."},isRowSelected:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => boolean",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"boolean"}}},description:"Callback returning true if the row for the passed item is selected."},items:{required:!0,flowType:{name:"Array",elements:[{name:"any"}],raw:"Array"},description:"An array of objects to render as rows in the list."},link:{required:!1,flowType:{name:"boolean"},description:"If true, the list items will be formatted as a link."},onDrag:{required:!1,flowType:{name:"signature",type:"function",raw:"(dragIndex: number, hoverIndex: number) => void",signature:{arguments:[{name:"dragIndex",type:{name:"number"}},{name:"hoverIndex",type:{name:"number"}}],return:{name:"void"}}},description:"Callback fired when a table row is dragged",defaultValue:{value:"undefined",computed:!0}},onRowSelect:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}}},description:"Callback fired when the passed item is selected. This callback is only fired if the selectable\nprop is passed as true."},onSelectAllRows:{required:!1,flowType:{name:"signature",type:"function",raw:"(items: Array) => void",signature:{arguments:[{name:"items",type:{name:"Array",elements:[{name:"any"}],raw:"Array"}}],return:{name:"void"}}},description:"Callback fired when the select all checkbox is checked."},renderAdditionalContent:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"A function that returns a JSX element to render as additional card content."},renderDescription:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card description.\nSee Semantic UI Card.'},renderEmptyList:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"A function that returns a JSX element to render when the list has no items."},renderExtra:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card extra content.\nSee Semantic UI Card.'},renderHeader:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card header.\nSee Semantic UI Card.'},renderImage:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card image.\nSee Semantic UI Card.'},renderMeta:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card meta.\nSee Semantic UI Card.'},view:{required:!0,flowType:{name:"number"},description:"Toggles between list view and grid view. This prop is provided by the ItemsToggle higher-order\ncomponent."},context:{required:!0,flowType:{name:"signature",type:"object",raw:"{\n current: HTMLElement\n}",signature:{properties:[{key:"current",value:{name:"HTMLElement",required:!0}}]}},description:"The DOM element responsible for infinite scrolling. If no context is provided, the document body\nwill be assumed."},loading:{required:!1,flowType:{name:"boolean"},description:"If true, the list will display a loading indicator."},onBottomReached:{required:!1,flowType:{name:"signature",type:"function",raw:"(page: number) => void",signature:{arguments:[{name:"page",type:{name:"number"}}],return:{name:"void"}}},description:"Callback fired when the bottom of the scroll container is reached."},scrollOffset:{required:!1,flowType:{name:"number"},description:"The number of pixels from the bottom of the scroll container the onBottomReached callback\nshould fire.",defaultValue:{value:"0",computed:!1}},configurable:{defaultValue:{value:"true",computed:!1},required:!1},renderEmptyRow:{defaultValue:{value:"undefined",computed:!0},required:!1}}};const src_components_ItemCollection=ItemCollection_ItemCollection},"../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].use[1]!../semantic-ui/src/components/ItemCollection.css":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".item-collection > .ui.loader.active {\n position: fixed;\n}\n","",{version:3,sources:["webpack://./../semantic-ui/src/components/ItemCollection.css"],names:[],mappings:"AAAA;EACE,eAAe;AACjB",sourcesContent:[".item-collection > .ui.loader.active {\n position: fixed;\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file +"use strict";(self.webpackChunk_performant_software_storybook=self.webpackChunk_performant_software_storybook||[]).push([[4125],{"../semantic-ui/src/components/ItemCollection.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>src_components_ItemCollection});var build=__webpack_require__("../shared/build/index.js"),react=__webpack_require__("../../node_modules/react/index.js"),uuid=__webpack_require__("../../node_modules/react-uuid/uuid.js"),uuid_default=__webpack_require__.n(uuid),Loader=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Loader/Loader.js"),index_all=__webpack_require__("../../node_modules/underscore/modules/index-all.js"),i18n=__webpack_require__("../semantic-ui/src/i18n/i18n.js"),Items=__webpack_require__("../semantic-ui/src/components/Items.js"),injectStylesIntoStyleTag=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),ItemCollection=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].use[1]!../semantic-ui/src/components/ItemCollection.css"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(ItemCollection.Z,options);ItemCollection.Z&&ItemCollection.Z.locals&&ItemCollection.Z.locals;var jsx_runtime=__webpack_require__("../../node_modules/react/jsx-runtime.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;iItemCollection component can be used to render a list of records stored on an object in memory. This\ncomponent is responsible for handling infinite scroll and rendering the Items component, which handles\nthe presentation.",displayName:"ItemCollection",methods:[{name:"getClassName",docblock:"Returns the concatenated class names.\n\n@returns {string}",modifiers:[],params:[],returns:{type:{name:"string"}},description:"Returns the concatenated class names."},{name:"getItems",docblock:"Returns the list of items to render based on the current page.\n\n@returns {Array|*[]}",modifiers:[],params:[],returns:{type:{name:"Array",elements:[{name:"any"}],raw:"Array"}},description:"Returns the list of items to render based on the current page."},{name:"onBottomReached",docblock:"Increments the page number and fetches the data.",modifiers:[],params:[],returns:null,description:"Increments the page number and fetches the data."},{name:"onDelete",docblock:"Calls the onDelete prop and returns a promise.\n\n@param item\n\n@returns {Promise}",modifiers:[],params:[{name:"item",optional:!1,type:{name:"any"}}],returns:{type:{name:"Promise",elements:[{name:"unknown"}]}},description:"Calls the onDelete prop and returns a promise."},{name:"onSave",docblock:"Calls the onSave prop and returns a promise.\n\n@param item\n\n@returns {Promise}",modifiers:[],params:[{name:"item",optional:!1,type:{name:"any"}}],returns:{type:{name:"Promise",elements:[{name:"unknown"}]}},description:"Calls the onSave prop and returns a promise."}],props:{actions:{required:!1,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{\n accept: (item: any) => boolean,\n color?: string,\n icon?: string,\n name: string,\n onClick?: (item: any) => void,\n popup: {\n content: string,\n title: string\n },\n render?: (item: any, index: number) => Element,\n title?: string\n}",signature:{properties:[{key:"accept",value:{name:"signature",type:"function",raw:"(item: any) => boolean",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"boolean"}},required:!0}},{key:"color",value:{name:"string",required:!1}},{key:"icon",value:{name:"string",required:!1}},{key:"name",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}},required:!1}},{key:"popup",value:{name:"signature",type:"object",raw:"{\n content: string,\n title: string\n}",signature:{properties:[{key:"content",value:{name:"string",required:!0}},{key:"title",value:{name:"string",required:!0}}]},required:!0}},{key:"render",value:{name:"signature",type:"function",raw:"(item: any, index: number) => Element",signature:{arguments:[{name:"item",type:{name:"any"}},{name:"index",type:{name:"number"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}},required:!1}},{key:"title",value:{name:"string",required:!1}}]}}],raw:"Array"},description:'A list of actions to render for each element in the row. Actions with the names "edit" and "delete" will be\nhandled specially by the List higher-order component.'},addButton:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n basic: boolean,\n color: string,\n content?: string,\n inverted?: boolean,\n location: string,\n onClick?: () => void,\n secondary?: boolean\n}",signature:{properties:[{key:"basic",value:{name:"boolean",required:!0}},{key:"color",value:{name:"string",required:!0}},{key:"content",value:{name:"string",required:!1}},{key:"inverted",value:{name:"boolean",required:!1}},{key:"location",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}},{key:"secondary",value:{name:"boolean",required:!1}}]}},description:"If provided, a button will display in the list header allowing the addition of items to the list. When clicked,\nthe modal prop will be rendered.",defaultValue:{value:"{\n location: 'top'\n}",computed:!1}},buttons:{required:!1,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{\n accept?: () => boolean,\n render: (index?: number) => Element\n}",signature:{properties:[{key:"accept",value:{name:"signature",type:"function",raw:"() => boolean",signature:{arguments:[],return:{name:"boolean"}},required:!1}},{key:"render",value:{name:"signature",type:"function",raw:"(index?: number) => Element",signature:{arguments:[{name:"index",type:{name:"number"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}},required:!0}}]}}],raw:"Array"},description:'A list of arbitrary buttons to the display in the list header. All actions will be handled by the consuming\ncomponent.\n
\n
\n\nIn addition to the props listed here for each button, buttons will also accept any of the Semantic UI\nButton props.',defaultValue:{value:"[]",computed:!1}},count:{required:!1,flowType:{name:"number"},description:"The number of total records in the list (not just the current page)."},className:{required:!1,flowType:{name:"string"},description:"CSS class name to append to the div container.",defaultValue:{value:"''",computed:!1}},csvExportButton:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n basic: boolean,\n color: string,\n location: string,\n onClick?: () => void\n}",signature:{properties:[{key:"basic",value:{name:"boolean",required:!0}},{key:"color",value:{name:"string",required:!0}},{key:"location",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}},description:"If provided, a CSV export button will be rendered in the list header."},deleteButton:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n color: string,\n location: string,\n onClick?: () => void\n}",signature:{properties:[{key:"color",value:{name:"string",required:!0}},{key:"location",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}},description:'If provided, a "delete all" button will be rendered in the list header.'},filters:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n active: boolean,\n component: Component<{}>,\n props?: any,\n state?: any,\n onChange: (params: any) => Promise,\n showLabels?: boolean\n}",signature:{properties:[{key:"active",value:{name:"boolean",required:!0}},{key:"component",value:{name:"Component",elements:[{name:"signature",type:"object",raw:"{}",signature:{properties:[]}}],raw:"Component<{}>",required:!0}},{key:"props",value:{name:"any",required:!1}},{key:"state",value:{name:"any",required:!1}},{key:"onChange",value:{name:"signature",type:"function",raw:"(params: any) => Promise",signature:{arguments:[{name:"params",type:{name:"any"}}],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}},required:!0}},{key:"showLabels",value:{name:"boolean",required:!1}}]}},description:"If provided, the passed component will be rendered when the filter button is clicked.\n
\n
\n\nValues passed in the defaults and props properties will be made available in the\npassed component.\n
\n
\n\nThe onChange callback will fire when the filters are modified. This action will also reload the list,\npassing the new filters the onLoad callback."},modal:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n component: ComponentType,\n props: any,\n state: any\n}",signature:{properties:[{key:"component",value:{name:"ComponentType",elements:[{name:"any"}],raw:"ComponentType",required:!0}},{key:"props",value:{name:"any",required:!0}},{key:"state",value:{name:"any",required:!0}}]}},description:'If provided, the passed modal will be rendered when the "add" button is clicked.',defaultValue:{value:"undefined",computed:!0}},onCopy:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => any",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"any"}}},description:'If provided, this callback is fired when the "copy" action is clicked for an item. The consuming component\nshould generate a copy of the selected item and return that value. The return value is then set at the\ncurrent item in the edit modal.',defaultValue:{value:"undefined",computed:!0}},onDelete:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}}},description:'Callback fired when the "delete" action is clicked for an item.'},onDeleteAll:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Promise",signature:{arguments:[],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}}},description:"Callback fired when the delete all button is clicked. This prop expects a Promise as the return value."},onPageChange:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Callback fired when the page is changed via the pagination component."},onPerPageChange:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Callback fired when the per page value is changed."},onSave:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}}},description:"Callback fired when the save button is clicked in the add/edit modal. This function expects a Promise as the\nreturn value.",defaultValue:{value:"() => {}",computed:!1}},page:{required:!1,flowType:{name:"number"},description:"Current page number."},pages:{required:!1,flowType:{name:"number"},description:"Number of pages in the list."},perPage:{required:!1,flowType:{name:"number"},description:"The number of records to display per page.",defaultValue:{value:"Number.MAX_SAFE_INTEGER",computed:!0}},perPageOptions:{required:!1,flowType:{name:"Array",elements:[{name:"number"}],raw:"Array"},description:"The options to display in the dropdown for the per page selector."},renderDeleteModal:{required:!1,flowType:{name:"signature",type:"function",raw:"({ selectedItem: any, onCancel: () => void, onConfirm: () => void }) => Element",signature:{arguments:[{name:"",type:{name:"signature",type:"object",raw:"{ selectedItem: any, onCancel: () => void, onConfirm: () => void }",signature:{properties:[{key:"selectedItem",value:{name:"any",required:!0}},{key:"onCancel",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}},{key:"onConfirm",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'Custom render function for the modal that appears on the "delete" action.',defaultValue:{value:"undefined",computed:!0}},renderListHeader:{required:!1,flowType:{name:"signature",type:"function",raw:"() => ?Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element",nullable:!0}}},description:"If provided, this function will return a JSX element that will prepend to the list header."},renderSearch:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"If provided, this function will return a JSX element that will replace the default search input."},selectable:{required:!1,flowType:{name:"boolean"},description:"If set to true, checkboxes will render as the first table column, allowing each row to be selectable.\nThe consuming component is responsible for tracking the selected items."},showRecordCount:{required:!1,flowType:{name:"boolean"},description:"If true, the total number of records will display in the list header."},as:{required:!1,flowType:{name:"Element",elements:[{name:"any"}],raw:"Element"},description:"Renders the Card/Item component as the passed component."},asProps:{required:!1,flowType:{name:"any"},description:"Props to supply to the Card/Item component."},children:{required:!1,flowType:{name:"Element",elements:[{name:"any"}],raw:"Element"},description:"Child elements to append below the list content."},isRowSelected:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => boolean",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"boolean"}}},description:"Callback returning true if the row for the passed item is selected."},items:{required:!0,flowType:{name:"Array",elements:[{name:"any"}],raw:"Array"},description:"An array of objects to render as rows in the list."},link:{required:!1,flowType:{name:"boolean"},description:"If true, the list items will be formatted as a link."},onDrag:{required:!1,flowType:{name:"signature",type:"function",raw:"(dragIndex: number, hoverIndex: number) => void",signature:{arguments:[{name:"dragIndex",type:{name:"number"}},{name:"hoverIndex",type:{name:"number"}}],return:{name:"void"}}},description:"Callback fired when a table row is dragged",defaultValue:{value:"undefined",computed:!0}},onRowSelect:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}}},description:"Callback fired when the passed item is selected. This callback is only fired if the selectable\nprop is passed as true."},onSelectAllRows:{required:!1,flowType:{name:"signature",type:"function",raw:"(items: Array) => void",signature:{arguments:[{name:"items",type:{name:"Array",elements:[{name:"any"}],raw:"Array"}}],return:{name:"void"}}},description:"Callback fired when the select all checkbox is checked."},renderAdditionalContent:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"A function that returns a JSX element to render as additional card content."},renderDescription:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card description.\nSee Semantic UI Card.'},renderEmptyList:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"A function that returns a JSX element to render when the list has no items."},renderExtra:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card extra content.\nSee Semantic UI Card.'},renderHeader:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card header.\nSee Semantic UI Card.'},renderImage:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card image.\nSee Semantic UI Card.'},renderMeta:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'A function that returns a JSX element to render as the card meta.\nSee Semantic UI Card.'},view:{required:!0,flowType:{name:"number"},description:"Toggles between list view and grid view. This prop is provided by the ItemsToggle higher-order\ncomponent."},context:{required:!0,flowType:{name:"signature",type:"object",raw:"{\n current: HTMLElement\n}",signature:{properties:[{key:"current",value:{name:"HTMLElement",required:!0}}]}},description:"The DOM element responsible for infinite scrolling. If no context is provided, the document body\nwill be assumed."},loading:{required:!1,flowType:{name:"boolean"},description:"If true, the list will display a loading indicator."},onBottomReached:{required:!1,flowType:{name:"signature",type:"function",raw:"(page: number) => void",signature:{arguments:[{name:"page",type:{name:"number"}}],return:{name:"void"}}},description:"Callback fired when the bottom of the scroll container is reached."},scrollOffset:{required:!1,flowType:{name:"number"},description:"The number of pixels from the bottom of the scroll container the onBottomReached callback\nshould fire.",defaultValue:{value:"0",computed:!1}},configurable:{defaultValue:{value:"true",computed:!1},required:!1},renderEmptyRow:{defaultValue:{value:"undefined",computed:!0},required:!1}}};const src_components_ItemCollection=ItemCollection_ItemCollection},"../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].use[1]!../semantic-ui/src/components/ItemCollection.css":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_storybook_builder_webpack5_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".item-collection > .ui.loader.active {\n position: fixed;\n}\n","",{version:3,sources:["webpack://./../semantic-ui/src/components/ItemCollection.css"],names:[],mappings:"AAAA;EACE,eAAe;AACjB",sourcesContent:[".item-collection > .ui.loader.active {\n position: fixed;\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___}}]); \ No newline at end of file diff --git a/docs/5200.108b42ff.iframe.bundle.js b/docs/5200.108b42ff.iframe.bundle.js deleted file mode 100644 index a4ee346a..00000000 --- a/docs/5200.108b42ff.iframe.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 5200.108b42ff.iframe.bundle.js.LICENSE.txt */ -(self.webpackChunk_performant_software_storybook=self.webpackChunk_performant_software_storybook||[]).push([[5200],{"../semantic-ui/build/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);ie.length)&&(t=e.length);for(var n=0,r=new Array(t);nAdd files or drop files here","errors":{"fileType":"Unable to upload {{name}} because {{type}} files are not allowed.","maxSize":"Unable to upload {{name}} because it exceeds 10 MB."}},"FileUploadModal":{"errors":{"header":"There was an error processing your files","required":"File {{filename}} - The following fields are required: {{fields}}","upload":{"content":"Check the status on each file to see which were unsuccessful.","header":"Some of the files did not upload"}},"loader":"Uploading files...","title":"Upload Files"},"FilterLabels":{"buttons":{"clear":"Clear all"}},"FuzzyDate":{"accuracy":{"date":"Date","month":"Month","year":"Year"},"buttons":{"addRange":"Add Range","removeRange":"Remove Range"},"labels":{"accuracy":"Accuracy","date":"Date","description":"Description","month":"Month","year":"Year"},"title":"Fuzzy Date"},"ItemList":{"actions":{"copy":"Copy","delete":"Remove","edit":"Edit"},"buttons":{"clear":"Clear selected","deselectAll":"Deselect all","selectAll":"Select all"}},"KeyboardField":{"labels":{"hideKeyboard":"Hide Keyboard","showKeyboard":"Show Keyboard"}},"KeyValuePairs":{"labels":{"key":"Key","value":"Value"}},"LazyAudio":{"buttons":{"play":"Play"}},"LazyImage":{"buttons":{"view":"View image"}},"LazyMedia":{"messages":{"uploaded":"Your {{type}} has been received"}},"LazyVideo":{"buttons":{"play":"Play video"}},"List":{"buttons":{"add":"Add","csvExport":"CSV Export","deleteAll":"Delete all"},"deleteAllContent":"Are you sure you want to remove all records? This action cannot be undone.","deleteAllHeader":"Confirm Remove All","deleteContent":"Are you sure you want to remove this record?","deleteHeader":"Confirm Remove","emptyList":"No matching records found.","emptyListAdd":"You haven\'t added any yet. Click <1><0><0><1> to get started.","labels":{"perPage":"Show {{perPage}}"},"record":"Record","record_plural":"Records"},"ListFilters":{"buttons":{"add":"Add","reset":"Reset filters"},"operators":{"contain":"Contains","empty":"Is empty","equal":"Equals","greaterThan":"Is greater than","lessThan":"Is less than","notContain":"Does not contain","notEmpty":"Is not empty","notEqual":"Does not equal"},"title":"Filters"},"LoginModal":{"buttonCancel":"Cancel","buttonLogin":"Login","email":"Email","header":"Login","loginErrorContent":"The username and/or password you entered is invalid. Please double check and try again.","loginErrorHeader":"Invalid Credentials","password":"Password"},"PhotoViewer":{"errors":{"path":{"content":"Please check the image path: {{path}}","header":"There was a problem loading the image"}}},"RemoteDropdown":{"labels":{"add":"Add","loadMore":"Load more"}},"SearchResultsPerPage":{"labels":{"show":"Show {{value}}"}},"SearchStats":{"labels":{"results":"{{count}} results in {{seconds}} seconds"}},"Selectize":{"messages":{"maxSelected":{"content":"You have already selected the maximum number of items allowed.","header":"Maximum items selected"},"noRecords":"No matching records."}},"VideoFrameSelector":{"buttons":{"select":"Select frame"},"labels":{"interval":"Interval: {{count}} second","interval_plural":"Interval: {{count}} seconds"},"title":"Select Frame"},"VideoPlayer":{"errors":{"path":{"content":"Please check the video path: {{path}}","header":"There was a problem loading the video"}}},"ViewXML":{"buttons":{"view":"View XML"},"title":"XML"}}')}},O=E().createInstance();O.init({debug:!0,fallbackLng:"en",lng:"en",interpolation:{escapeValue:!1},resources:w});var S=O;function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&i().delay((function(){u(!1)}),t.timeout),(0,r.useEffect)((function(){!s&&t.onDismiss&&i().delay(t.onDismiss.bind(void 0),700)}),[s]),o().createElement(l.Transition,{animation:"slide down",duration:700,transitionOnMount:!0,visible:s},o().createElement(l.Message,{className:"toaster",info:t.type===e.MessageTypes.info,negative:t.type===e.MessageTypes.negative,onDismiss:function onDismiss(){return u(!1)},positive:t.type===e.MessageTypes.positive,warning:t.type===e.MessageTypes.warning},t.children))};k.defaultProps={onDismiss:void 0,timeout:3e3,type:(k.MessageTypes={info:"info",negative:"negative",positive:"positive",warning:"warning"}).info};var j=k;function P(e){return P="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)},P(e)}function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?e.page-1:1}}),this.fetchData.bind(this)):this.fetchData()}},{key:"afterDeleteAll",value:function value(){this.setState({page:1},this.fetchData.bind(this))}},{key:"fetchData",value:function value(){var e=this;this.setSession(),this.setState({loading:!0},(function(){var t=e.state,n=t.page,r=t.perPage,o=t.search,a=t.sortColumn,i=t.sortDirection,l=D(D({},e.state.filters),{},{page:n,search:o,per_page:r,sort_by:a,sort_direction:i});e.props.onLoad(l).then((function(t){var r=t.data,o=r[e.props.collectionName],a=r.list,i=a.pages,l=a.count;e.setState({count:l,items:o,page:n,pages:i,loading:!1})}))}))}},{key:"getDefaultFilters",value:function value(e){var t=this,n=[];return e.filters&&e.filters.defaults&&i().each(e.filters.defaults.filters,(function(r){var o=i().findWhere(e.filters.props.filters,{key:r.key});o&&n.push(t.onCreateFilter(D(D({},o),r)))})),{filters:n}}},{key:"getSessionKey",value:function value(){return this.props.session?"".concat("DataList",".").concat(this.props.session.key):null}},{key:"initializeState",value:function value(e){var t=this.restoreSession(),n=t.filters||this.getDefaultFilters(e),r=t.page||1,o=t.perPage||e.defaultPerPage||i().first(e.perPageOptions),a=t.search||e.defaultSearch||null,l=t.sortColumn||e.defaultSort||null,c=t.sortDirection||e.defaultSortDirection||null;return{count:0,error:null,filters:n,items:[],loading:!1,page:r,pages:1,perPage:o,saved:e.saved||!1,search:a,sortColumn:l,sortDirection:c}}},{key:"isFilterActive",value:function value(){var e=!1;return i().each(i().values(this.state.filters),(function(t){y.Object.isEmpty(t)||(e=!0)})),e}},{key:"onClearSearch",value:function value(e){var t;this.onSearchChange(e,{value:""}),null===(t=this.searchRef)||void 0===t||null===(t=t.inputRef)||void 0===t||null===(t=t.current)||void 0===t||t.focus(),this.onSearch()}},{key:"onCreateFilter",value:function value(e){return D(D({},e),{},{uid:v()()})}},{key:"onDelete",value:function value(e){return this.props.onDelete?this.props.onDelete(e).then(this.afterDelete.bind(this)).catch(this.onError.bind(this)):Promise.resolve()}},{key:"onDeleteAll",value:function value(){return this.props.onDeleteAll?this.props.onDeleteAll().then(this.afterDeleteAll.bind(this)):Promise.resolve()}},{key:"onError",value:function value(e){return this.props.resolveErrors&&this.setState({error:e})}},{key:"onFilterChange",value:function value(e){var t=this;return new Promise((function(n){t.props.filters&&t.props.filters.onChange&&t.props.filters.onChange(e),t.setState({filters:e,page:1},(function(){t.fetchData(),n()}))}))}},{key:"onPageChange",value:function value(e,t){var n=t.activePage;this.setState({page:n},this.fetchData.bind(this))}},{key:"onPerPageChange",value:function value(e,t){var n=t.value;this.setState({perPage:n},this.fetchData.bind(this))}},{key:"onSave",value:function value(e){var t=this;return this.props.onSave?Promise.resolve(this.props.onSave(e)).then((function(){return t.setState({saved:!0},t.fetchData.bind(t))})):Promise.resolve()}},{key:"onSearch",value:function value(){this.setState({page:1},this.fetchData.bind(this))}},{key:"onSearchChange",value:function value(e,t){var n=t.value;this.setState({search:n})}},{key:"onSort",value:function value(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=t;r||(r=this.state.sortColumn===e&&this.state.sortDirection===B?L:B),this.setState({sortColumn:e,sortDirection:r,page:n},this.fetchData.bind(this))}},{key:"onInit",value:function value(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.setState({sortColumn:"",sortDirection:"",page:e},this.fetchData.bind(this))}},{key:"render",value:function value(){var t=this,n=this.props.filters,r=void 0===n?{}:n,a=r.component,i=r.props,c=r.showLabels;return o().createElement(o().Fragment,null,o().createElement(e,I({},this.props,{count:this.state.count,filters:{active:this.isFilterActive(),component:a,onChange:this.onFilterChange.bind(this),showLabels:c,props:D(D({},i),{},{onCreateFilter:this.onCreateFilter.bind(this),item:this.state.filters})},items:this.state.items,loading:this.state.loading,page:this.state.page,pages:this.state.pages,perPage:this.state.perPage,onDelete:this.onDelete.bind(this),onDeleteAll:this.onDeleteAll.bind(this),onPageChange:this.onPageChange.bind(this),onPerPageChange:this.onPerPageChange.bind(this),onSave:this.onSave.bind(this),onSort:this.onSort.bind(this),onInit:this.onInit.bind(this),renderSearch:this.renderSearch.bind(this),sortColumn:this.state.sortColumn,sortDirection:this.state.sortDirection})),this.state.saved&&o().createElement(j,{onDismiss:function onDismiss(){return t.setState({saved:!1})},type:j.MessageTypes.positive},o().createElement(l.Message.Header,{content:S.t("Common.messages.save.header")}),o().createElement(l.Message.Content,{content:S.t("Common.messages.save.content")})),this.state.error&&o().createElement(j,{onDismiss:function onDismiss(){return t.setState({error:!1})},timeout:0,type:j.MessageTypes.negative},o().createElement(l.Message.Header,{content:S.t("Common.messages.error.header")}),o().createElement(l.Message.List,{items:this.props.resolveErrors&&this.props.resolveErrors(this.state.error)})))}},{key:"renderSearch",value:function value(){var e=this;return this.props.searchable?o().createElement(l.Input,{"aria-label":"Search",type:"text",icon:o().createElement(l.Icon,{link:!i().isEmpty(this.state.search),name:i().isEmpty(this.state.search)?"search":"times",onClick:this.onClearSearch.bind(this)}),input:{"aria-label":"search"},ref:function ref(t){e.searchRef=t},loading:this.state.loading,onKeyDown:y.Timer.clearSearchTimer.bind(this),onKeyUp:y.Timer.setSearchTimer.bind(this,this.onSearch.bind(this)),onChange:this.onSearchChange.bind(this),size:"small",value:this.state.search}):null}},{key:"restoreSession",value:function value(){var e=this.getSessionKey();if(!e)return{};var t=sessionStorage.getItem(e)||"{}";return JSON.parse(t)}},{key:"setSession",value:function value(){var e=this.getSessionKey();if(e){var t=this.state,n=t.filters,r=t.page,o=t.perPage,a=t.search,i=t.sortColumn,l=t.sortDirection;sessionStorage.setItem(e,JSON.stringify({filters:n,page:r,perPage:o,search:a,sortColumn:i,sortDirection:l}))}}}],r&&function T(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n6||this.setState((function(t){return oe({},e,re(re({},t[e]),{},{year:parseInt(r,10)}))}),this.setEndDate.bind(this))}},{key:"render",value:function value(){var e=this;return o().createElement(o().Fragment,null,o().createElement(Z,{display:this.state.display,onClick:this.onEdit.bind(this),onChange:this.onClear.bind(this)}),o().createElement(ee.Consumer,null,(function(t){return o().createElement(l.Modal,{as:l.Form,className:"fuzzy-date-modal",mountNode:t,open:e.state.modal,onClose:e.onClose.bind(e)},o().createElement(l.Modal.Header,{content:e.props.title||S.t("FuzzyDate.title")}),o().createElement(l.Modal.Content,null,o().createElement(l.Form.Input,{className:"accuracy-container",label:S.t("FuzzyDate.labels.accuracy")},o().createElement(l.Checkbox,{checked:0===e.state.accuracy,id:"accuracy-year",label:S.t("FuzzyDate.accuracy.year"),name:"accuracy",onChange:e.onAccuracyChange.bind(e),radio:!0,value:0}),o().createElement(l.Checkbox,{checked:1===e.state.accuracy,id:"accuracy-month",label:S.t("FuzzyDate.accuracy.month"),name:"accuracy",onChange:e.onAccuracyChange.bind(e),radio:!0,value:1}),o().createElement(l.Checkbox,{checked:2===e.state.accuracy,id:"accuracy-date",label:S.t("FuzzyDate.accuracy.date"),name:"accuracy",onChange:e.onAccuracyChange.bind(e),radio:!0,value:2})),o().createElement(l.Form.Group,null,e.renderYear("startDate"),e.renderMonth("startDate"),e.renderDate("startDate"),!e.state.range&&o().createElement("div",{className:"button-container"},o().createElement(l.Button,{basic:!0,content:S.t("FuzzyDate.buttons.addRange"),icon:"plus",onClick:e.onRangeChange.bind(e)}))),e.state.range&&o().createElement(l.Form.Group,null,e.renderYear("endDate"),e.renderMonth("endDate"),e.renderDate("endDate"),o().createElement("div",{className:"button-container"},o().createElement(l.Button,{basic:!0,content:S.t("FuzzyDate.buttons.removeRange"),icon:"times",onClick:e.onRangeChange.bind(e)}))),e.props.description&&o().createElement(l.Form.Input,{id:"description",label:S.t("FuzzyDate.labels.description")},o().createElement(l.TextArea,{id:"description",onChange:e.onDescriptionChange.bind(e),value:e.state.description}))),o().createElement(l.Modal.Actions,null,o().createElement(l.Button,{onClick:e.onSave.bind(e),primary:!0,size:"medium",type:"submit"},S.t("Common.buttons.save")),o().createElement(l.Button,{basic:!0,onClick:e.onClose.bind(e),size:"medium",type:"button"},S.t("Common.buttons.cancel"))))})))}},{key:"renderDate",value:function value(e){if(2!==this.state.accuracy)return null;var t=this.state[e],n=this.state.calendar.daysInMonth(t.year,t.month);return o().createElement(l.Form.Input,{id:"date-dropdown",label:S.t("FuzzyDate.labels.date")},o().createElement(l.Dropdown,{id:"date-dropdown",onChange:this.onDateChange.bind(this,e),options:i().range(1,n+1).map((function(e){return{key:e,value:e,text:e}})),selection:!0,value:t.date||this.state.calendar.getDefaultDate()}))}},{key:"renderMonth",value:function value(e){return 2!==this.state.accuracy&&1!==this.state.accuracy?null:o().createElement(l.Form.Input,{id:"month-dropdown",label:S.t("FuzzyDate.labels.month")},o().createElement(l.Dropdown,{id:"month-dropdown",onChange:this.onMonthChange.bind(this,e),options:i().map(this.state.calendar.listMonths(),(function(e,t){return{key:t,value:t,text:e}})),selection:!0,value:this.state[e].month||this.state.calendar.getDefaultMonth()}))}},{key:"renderYear",value:function value(e){return o().createElement(l.Form.Input,{id:"year",label:S.t("FuzzyDate.labels.year")},o().createElement(l.Input,{id:"year",onChange:this.onYearChange.bind(this,e),type:"number",value:this.state[e].year||""}))}},{key:"setDisplay",value:function value(){var e=[];this.state.startDate&&!i().isEmpty(this.state.startDate)&&e.push(this.getDisplayDate(this.state.startDate)),this.state.range&&this.state.endDate&&!i().isEmpty(this.state.endDate)&&(e.push(" - "),e.push(this.getDisplayDate(this.state.endDate))),this.setState({display:e.join(" ")})}},{key:"setEndDate",value:function value(){this.state.range||!this.state.startDate||i().isEmpty(this.state.startDate)||this.setState((function(e){var t=e.calendar.convertToDate(e.startDate);return 0===e.accuracy?t=e.calendar.addYear(t,1):1===e.accuracy?t=e.calendar.addMonth(t,1):2===e.accuracy&&(t=e.calendar.addDate(t,1)),{endDate:e.calendar.parseDate(t)}}))}}])&&function ae(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1;n&&(e=!0);var r=this.props.count&&this.props.showRecordCount;return r&&(e=!0),e?o().createElement("div",{className:"footer"},o().createElement(l.Grid,{columns:2},o().createElement(l.Grid.Column,{textAlign:"left"},r?this.renderRecordCount():"",i().map(t,(function(e){return e.render()}))),o().createElement(l.Grid.Column,{textAlign:"right"},n?this.renderPagination():""))):null}},{key:"renderHeader",value:function value(){var e=this,t=!1,n=this.getButtons("top");n&&n.length&&(t=!0);var r=this.props,a=r.filters,c=r.perPageOptions,s=r.renderListHeader,u=r.renderSearch;(a||c||s||u)&&(t=!0);var f=a&&a.showLabels&&!i().isEmpty(a.props.item.filters);return t?o().createElement("div",{className:"header"},o().createElement(l.Grid,{className:f?"filter-labels":void 0,verticalAlign:"top"},o().createElement(l.Grid.Row,{columns:2},o().createElement(l.Grid.Column,{textAlign:"left"},i().map(n,this.renderButton.bind(this))),o().createElement(l.Grid.Column,{textAlign:"right"},o().createElement(l.Menu,{compact:!0,borderless:!0,secondary:!0,className:"flex-end-menu"},s&&o().createElement(l.Menu.Menu,{className:"list-header-menu"},s()),o().createElement(l.Menu.Menu,null,a&&this.renderFilterButton()),c&&o().createElement(l.Menu.Menu,{className:"per-page-menu"},this.renderPerPage()),o().createElement(l.Menu.Menu,null,u&&u())))),f&&o().createElement(l.Grid.Row,{columns:1},o().createElement(l.Grid.Column,null,o().createElement(Ee,{filters:a.props.item.filters,onClear:function onClear(){return a.onChange({filters:[]})},onClick:function onClick(t){return e.onRemoveFilter(t)}}))))):null}},{key:"renderPagination",value:function value(){return o().createElement(l.Pagination,{activePage:this.props.page,firstItem:null,lastItem:null,onPageChange:this.props.onPageChange.bind(this),size:"mini",totalPages:this.props.pages})}},{key:"renderPerPage",value:function value(){var e=this.props.perPage;return o().createElement(U,{basic:!0,icon:"list",onChange:this.props.onPerPageChange.bind(this),options:i().map(this.props.perPageOptions,(function(e){return{key:e,value:e,text:e}})),text:S.t("List.labels.perPage",{perPage:e}),value:e})}},{key:"renderRecordCount",value:function value(){var e=this.props.count;return o().createElement("p",{className:"record-count"},"".concat(Number(e).toLocaleString()," ").concat(S.t("List.record",{count:e})))}}])&&function Ce(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:null;return this.props.onSearch(t,this.state.searchQuery).then((function(n){var r=n.data[e.props.collectionName];e.setState((function(e){return t?{items:[].concat(et(e.items||[]),et(r))}:{items:r}}))}))}},{key:"onSearchChange",value:function value(e,t){var n=t.value;this.setState({searchQuery:n})}},{key:"render",value:function value(){var e=this;return o().createElement(ee.Consumer,null,(function(t){return o().createElement(l.Modal,{className:"accordion-selector",mountNode:t,open:e.props.open,size:"small"},o().createElement(l.Modal.Header,null,o().createElement(l.Grid,{columns:2,verticalAlign:"middle"},o().createElement(l.Grid.Column,{textAlign:"left",width:7},o().createElement(l.Header,{content:e.props.title?e.props.title:S.t("AccordionSelector.title")})),o().createElement(l.Grid.Column,{textAlign:"right",width:9},o().createElement(l.Input,{"aria-label":"Search",autoFocus:!0,icon:"search",onKeyDown:y.Timer.clearSearchTimer.bind(e),onKeyUp:y.Timer.setSearchTimer.bind(e,e.onSearch.bind(e)),onChange:e.onSearchChange.bind(e),size:"mini",type:"text",value:e.state.searchQuery}),e.renderAddButton()))),o().createElement(l.Modal.Content,null,o().createElement(Qe,{isSelected:function isSelected(t){return e.state.selectedItem===t},items:e.state.selectedItems,onItemClick:e.onItemSelection.bind(e),renderItem:e.props.renderItem.bind(e)}),o().createElement(h,{getChildItems:e.props.getChildItems.bind(e,e.state.items),onItemClick:e.onItemClick.bind(e),onItemToggle:e.onItemToggle.bind(e),renderItem:e.props.renderItem.bind(e),renderRight:e.renderRight.bind(e),rootItems:e.props.getRootItems(e.state.items),showToggle:e.props.showToggle.bind(e)}),e.renderAddModal(),e.state.saved&&o().createElement(j,{onDismiss:function onDismiss(){return e.setState({saved:!1})},type:j.MessageTypes.positive},o().createElement(l.Message.Header,{content:S.t("Common.messages.save.header")}),o().createElement(l.Message.Content,{content:S.t("Common.messages.save.content")}))),o().createElement(l.Modal.Actions,null,o().createElement(l.Button,{onClick:e.props.onSave.bind(e,e.state.selectedItems),primary:!0,size:"medium",type:"submit"},S.t("Common.buttons.save")),o().createElement(l.Button,{basic:!0,onClick:e.props.onClose.bind(e),size:"medium",type:"button"},S.t("Common.buttons.cancel"))))}))}},{key:"renderAddButton",value:function value(){var e=this;return this.props.modal?o().createElement(l.Button,{basic:!0,className:"add-button",content:S.t("Common.buttons.add"),icon:"plus",onClick:function onClick(){return e.setState({modalAdd:!0})}}):null}},{key:"renderAddModal",value:function value(){var e=this;if(!this.state.modalAdd||!this.props.modal)return null;var t=this.props.modal,n=t.component,r=t.props,a=t.onSave;return o().createElement(V,Ye({component:n,onClose:function onClose(){return e.setState({modalAdd:!1,selectedItem:null})},onSave:function onSave(t){return a(t).then((function(t){return e.setState({modalAdd:!1,saved:!0,searchQuery:"",selectedItems:[t]},e.onSearch.bind(e))}))}},r))}},{key:"renderRight",value:function value(e){return this.isSelected(e)?o().createElement(l.Icon,{color:"green",name:"check"}):null}}],n&&function nt(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),u}},catch:function _catch(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function bt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||gt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vt(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function gt(e,t){if(e){if("string"==typeof e)return Et(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)?Et(e,t):void 0}}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==f[1])||f[1],e.prev=1,e.next=4,Promise.all([dt()().itemTypes().get({cache:St("itemTypes")?"force-cache":"default"}),dt()().itemTypeFields(t).get({cache:St("itemTypeFields-".concat(t))?"force-cache":"default"}),dt()().itemTypeCreatorTypes(t).get({cache:St("itemTypeCreatorTypes-".concat(t))?"force-cache":"default"})]);case 4:i=e.sent,l=bt(i,3),c=l[0],s=l[1],u=l[2],r=c.getData(),o=s.getData(),a=u.getData(),e.next=20;break;case 14:if(e.prev=14,e.t0=e.catch(1),localStorage.removeItem("zotero-bib-api-cache"),!n){e.next=19;break}return e.abrupt("return",Ct(t,!1));case 19:throw e.t0;case 20:return e.abrupt("return",{itemTypes:r,itemTypeFields:o,itemTypeCreatorTypes:a});case 21:case"end":return e.stop()}}),e,null,[[1,14]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){vt(a,r,o,i,l,"next",e)}function l(e){vt(a,r,o,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),kt={getFieldsAndItem:function getFieldsAndItem(e,t,n){var r;if(!e||!t||!n)return{item:e,fields:[]};var o,a=e.itemType in mt&&(null===(r=mt[e.itemType])||void 0===r?void 0:r.title)||"title",l=[{field:"itemType",localized:"Item Type"},t.find((function(e){return e.field===a})),{field:"creators",localized:"Creators"}].concat((o=t.filter((function(e){return e.field!==a})),function(e){if(Array.isArray(e))return Et(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||gt(o)||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.")}())).filter((function(e){return e&&!wt.includes(e.field)})).concat([t.find((function(e){return"abstractNote"===e.field})),t.find((function(e){return"extra"===e.field}))]);if(["book","bookSection"].includes(e.itemType)){var c=l.findIndex((function(e){return"date"===e.field}));l.splice(c+1,0,{field:"original-date",localized:"Original Date"});var s="extra"in e&&e.extra.match(/^original-date:\s*(.*?)$/);s&&i().extend(e,{"original-date":s[1],extra:e.extra.replace(/^original-date:\s*.*?$/,"")})}if(["webpage"].includes(e.itemType)){var u=l.findIndex((function(e){return"websiteType"===e.field}));l.splice(u+1,0,{field:"publisher",localized:"Publisher"});var f="extra"in e&&e.extra.match(/^publisher:\s*(.*?)$/i);f&&i().extend(e,{publisher:f[1],extra:e.extra.replace(/^publisher:\s*.*?$/,"")})}return l=l.map((function(t){return{options:"itemType"===t.field?n:null,key:t.field,label:t.localized,readonly:Ot.includes(t.field),processing:!1,value:t.field in e?e[t.field]:null}})),{item:e,fields:l}},getItemTypeMeta:Ct,isUrl:function isUrl(e){return!!e.match(/^(https?:\/\/)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b(\S*)$/i)}},jt=void 0;function Pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,creator:t,creatorTypes:e.creatorTypes,key:r,onAdd:function onAdd(){return n()},onDelete:function onDelete(){return a(r)},onUpdate:function onUpdate(e){return l(r,e)}})}))},Lt=void 0;function Ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zt(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)?zt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.items.length&&e.onShowMore&&o().createElement(l.Label,{as:l.Button,content:"+".concat(e.count-e.items.length),onClick:e.onShowMore}))};An.defaultProps={count:void 0,onShowMore:void 0};var Dn=An,xn=function xn(e){return o().createElement(l.Modal,{centered:!1,open:e.open},o().createElement(l.Modal.Header,{content:S.t("CurrentFacetsModal.title")}),o().createElement(l.Modal.Content,null,o().createElement(Dn,{items:e.items})),o().createElement(l.Modal.Actions,null,o().createElement(l.Button,{content:S.t("Common.buttons.done"),onClick:e.onClose,primary:!0})))};xn.defaultProps={open:void 0};var Tn=xn,Mn=["useCurrentRefinements"];function Rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Mn),c=(2,function(e){if(Array.isArray(e))return e}(t=(0,r.useState)(!1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(t)||function(e,t){if(e){if("string"==typeof e)return Rn(e,2);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)?Rn(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],u=c[1],f=a(l).items,p=(0,r.useMemo)((function(){return i().flatten(i().map(f,(function(e){return i().map(e.refinements,(function(t){return{label:"".concat(e.label,": ").concat(t.label),onClick:function onClick(){return e.refine(t)}}}))})))}),[f]),d=(0,r.useMemo)((function(){return i().filter(p,(function(e,t){return!l.limit||te.length)&&(t=e.length);for(var n=0,r=new Array(t);na&&s>l||(e.onDrag(o,a),n.index=a)}}}}),2)[1],u=zn((0,Fn.useDrag)({item:{type:"any",id:n,index:t},begin:function begin(){return e.onDragStart&&e.onDragStart()},end:function end(){return e.onDragEnd&&e.onDragEnd()},collect:function collect(e){return{isDragging:e.isDragging()}}}),2),f=u[0].isDragging;return(0,u[1])(s(c)),c&&c.current&&(c.current.style.opacity=f?0:1),o().createElement(l.Ref,{innerRef:c},e.children)};function Gn(e){return Gn="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)},Gn(e)}function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,yr),c=(0,r.useCallback)((function(e,t){return o().createElement(l.Dropdown.Item,br({key:t},e))}),[]),s=(0,r.useCallback)((function(e,t){return o().createElement(l.Menu.Item,br({key:t},e))}),[]),u=(0,r.useCallback)((function(e,t){return o().createElement(hr,{"aria-label":e.content,item:!0,key:t,role:"group",text:e.content},i().map(e.items,(function(e){return e.items?u(e):c(e)})))}),[]),f=(0,r.useCallback)((function(e){return e.items?u(e):s(e)}),[]);return o().createElement(l.Menu,br({},a,{className:"menu-bar"}),o().createElement(l.Menu.Item,br({},t,{header:!0})),i().map(n,(function(e){return f(e)})))},gr=["contextRef","header","items"];function Er(){return Er=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,gr),s=(0,r.useCallback)((function(e,t){return o().createElement(l.Menu.Item,{key:t},o().createElement(l.Menu.Header,e),o().createElement(l.Menu.Menu,null,i().map(e.items,(function(e){return f(e)}))))}),[]),u=(0,r.useCallback)((function(e,t){return o().createElement(l.Menu.Item,Er({key:t},e))}),[]),f=(0,r.useCallback)((function(e){return e.items?s(e):u(e)}),[]);return o().createElement(l.Ref,{innerRef:t},o().createElement(l.Menu,Er({},c,{fixed:"left",vertical:!0}),o().createElement(l.Menu.Item,null,o().createElement(l.Header,n)),i().map(a,(function(e){return f(e)}))))};function Or(e){return function(e){if(Array.isArray(e))return Ar(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ir(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 Sr(){return Sr=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.columnCount,index:r};return i().extend(a,o)}));return o=[].concat(Or(o),Or(i().reject(n.columns,(function(e){return i().contains(r,e.name)})))),i().sortBy(o,"index")}),[n]),P=(0,r.useCallback)((function(e){n&&fr().get("".concat(n.url,"/").concat(e.id)).then((function(e){var t=e.data,n=i().first(i().keys(t));u(t[n])})).catch((function(){u(e)}))}),[n]),I=(0,r.useCallback)((function(e){return n?fr().get(n.url,{params:e}).then((function(e){var t=e.data[k];return d(j(t)),e})):Promise.resolve()}),[n]),A=(0,r.useCallback)((function(e,t){var n=e[t];return i().isArray(n)?n=i().size(n):i().isBoolean(n)?n=Boolean(n).toString():i().isObject(n)&&(n=n[i().first(i().keys(n))]),n}),[]);return(0,r.useEffect)((function(){if(i().every(e.items,(function(e){return!!e.group}))){var t=i().groupBy(e.items,"group"),r=i().keys(t);y(i().map(r,(function(e){return{content:e,items:i().map(t[e],(function(e){return{active:n&&n.id===e.id,content:e.label,onClick:function onClick(){return a(e)}}}))}})))}else y(e.items)}),[n,e.items]),(0,r.useEffect)((function(){e.items&&e.items.length&&a(i().first(e.items))}),[e.items]),(0,r.useEffect)((function(){"left"===e.layout&&C&&C.current&&g(C.current.offsetWidth)}),[C,e.layout]),(0,r.useEffect)((function(){var e=[];n&&e.push(n.id),p&&p.length&&e.push.apply(e,Or(i().pluck(p,"name"))),O(e.join(""))}),[n,p]),o().createElement("div",{className:"data-view"},"top"===e.layout&&o().createElement(vr,{header:{content:e.title},items:h}),"left"===e.layout&&o().createElement(wr,{contextRef:C,header:{content:e.title},items:h}),o().createElement("div",{style:{marginLeft:v}},n&&o().createElement(Dr,{actions:[{name:"details",icon:"info",onClick:P}],collectionName:k,columns:p,key:w,onLoad:I,perPageOptions:[10,25,50,100],searchable:!0,sorts:n.sorts})),s&&o().createElement(ee.Consumer,null,(function(e){return o().createElement(l.Modal,{as:l.Form,centered:!1,className:"data-view-modal",closeIcon:!0,mountNode:e,onClose:function onClose(){return u(null)},open:!0},o().createElement(l.Modal.Header,{content:S.t("DataView.labels.details")}),o().createElement(l.Modal.Content,null,o().createElement(l.Grid,{columns:3,doubling:!0},i().map(j([s]),(function(e){return o().createElement(l.Grid.Column,{as:l.Form.Field,key:e.name},o().createElement("span",{className:"label"},e.label),A(s,e.name))})))))})))};xr.defaultProps={columnCount:5,layout:"left"};var Tr=xr;function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.columnCount}}))}),[n,h,e.columnCount]);return o().createElement("div",{className:"database-view"},o().createElement(wr,{contextRef:d,header:{content:e.title,inverted:!0},inverted:!0,items:[{items:i().map(f,(function(e){return{active:c===e,content:e.table_name,onClick:function onClick(){return s(e)}}}))}],style:{overflow:"auto",width:"250px"}}),o().createElement("div",{style:{marginLeft:"250px"}},c&&o().createElement(Nr,{collectionName:"items",columns:y,onLoad:function onLoad(e){return m.getData(Lr(Lr({},e),{},{table_name:c.table_name}))},perPageOptions:[10,25,50,100],searchable:!0})))};Ur.defaultProps={columnCount:Number.MAX_SAFE_INTEGER};var Hr=Ur,Gr=__webpack_require__("../../node_modules/react-calendar/dist/esm/index.js"),Vr=n.n(Gr);function qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:bo;if(!this.props.onDrag&&!1!==e.sortable){var n=e.name,r=t||bo;e.name===this.state.sortColumn&&(r=this.state.sortDirection===bo?vo:bo),this.setState({sortColumn:n,sortDirection:r})}}},{key:"onDelete",value:function value(e){return this.props.onDelete(e),Promise.resolve()}},{key:"onSave",value:function value(e){var t=e.uid?e.uid:v()();return this.props.onSave&&this.props.onSave(uo(uo({},e),{},{uid:t})),Promise.resolve()}},{key:"render",value:function value(){return o().createElement(lr,co({},this.props,{actions:this.props.actions,addButton:this.props.addButton,buttons:this.props.buttons,className:"embedded-list ".concat(this.props.className?this.props.className:""),configurable:this.props.configurable,columns:this.props.columns,count:this.props.items.length,items:this.getItems(),modal:this.props.modal,onColumnClick:this.onColumnClick.bind(this),onCopy:this.props.onCopy,onDrag:this.props.onDrag,onDelete:this.onDelete.bind(this),onSave:this.onSave.bind(this),renderDeleteModal:this.props.renderDeleteModal,renderEmptyRow:this.props.renderEmptyRow,renderItem:this.renderItem.bind(this),sortColumn:this.state.sortColumn,sortDirection:this.state.sortDirection,tableProps:{celled:!0,sortable:!this.props.onDrag},selectable:this.props.selectable,onRowSelect:this.props.onRowSelect,selectedRows:this.props.selectedRows,showRecordCount:this.props.showRecordCount}))}},{key:"renderItem",value:function value(e,t,n){if(this.props.onDrag){var r=e.id||e.uid;return o().createElement(Hn,{id:r,index:t,item:e,key:r,onDrag:this.props.onDrag.bind(this)},o().createElement(l.Table.Row,null,n))}return o().createElement(l.Table.Row,{key:t},n)}}],n&&function po(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Co),r=t(n),a=r.refine,i=r.canRefine;return o().createElement(l.Button,ko({},n,{disabled:!i,onClick:function onClick(){return a()}}))},Po=function Po(e){return o().createElement(l.Button,{basic:!0,className:"link-button",compact:!0,content:e.content,onClick:e.onClick.bind(void 0),type:"button"})},Io=["useRefinementList"];function Ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Do(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Io),c=To((0,r.useState)(a.defaultOperator||Ro),2),s=c[0],u=c[1],f=n(Do(Do({},a),{},{operator:s})),p=f.canRefine,d=f.canToggleShowMore,m=f.isShowingMore,h=f.items,b=f.refine,v=f.searchForItems,g=f.toggleShowMore,E=(0,r.useRef)(),w=To((0,r.useState)(""),2),O=w[0],C=w[1],k=(0,r.useCallback)((function(){C(""),v();var e=E.current;e&&e.focus()}),[]),j=(0,r.useCallback)((function(){return v(O)}),[O,v]),P=(0,r.useCallback)((function(){u((function(e){return e===Ro?"and":Ro}))}),[]),I=(0,r.useMemo)((function(){return!(p&&i().isEmpty(h)&&i().isEmpty(O))}),[h,O]);return(0,r.useEffect)((function(){a.defaultValue&&b(a.defaultValue)}),[a.defaultValue]),(0,r.useEffect)((function(){O&&v(O)}),[h]),o().createElement(So,{className:"facet-list",defaultActive:a.defaultActive,divided:a.divided,innerRef:t,title:a.title,visible:I},a.searchable&&o().createElement(l.Input,{icon:O&&o().createElement(l.Icon,{link:!0,name:"times",onClick:k}),fluid:!0,onChange:function onChange(e,t){var n=t.value;return C(n)},onKeyDown:function onKeyDown(){return y.Timer.clearSearchTimer()},onKeyUp:function onKeyUp(){return y.Timer.setSearchTimer(j)},placeholder:S.t("FacetList.labels.search"),ref:E,value:O}),o().createElement(l.List,{className:"facet-list"},i().map(h,(function(e,t){return o().createElement(l.List.Item,{key:t},o().createElement(l.Checkbox,{checked:e.isRefined,label:{children:o().createElement(o().Fragment,null,o().createElement("span",null,e.label),o().createElement(l.Label,{circular:!0,content:e.count,size:"small"}))},onClick:function onClick(){return b(e.value)}}))}))),d&&o().createElement(o().Fragment,null,o().createElement(l.Icon,{name:m?"angle up":"angle down"}),o().createElement(Po,{content:m?S.t("FacetList.buttons.showLess"):S.t("FacetList.buttons.showMore"),onClick:function onClick(){return g()}})),a.toggleable&&o().createElement(l.Checkbox,{className:"toggleable",checked:"and"===s,label:s===Ro?S.t("FacetList.labels.matchAny"):S.t("FacetList.labels.matchAll"),onChange:P,toggle:!0}))}));No.defaultProps=Do(Do({},So.defaultProps),{},{defaultOperator:Ro});var Bo=No,Lo=__webpack_require__("../../node_modules/rc-slider/es/index.js"),Fo=n.n(Lo);__webpack_require__("../../node_modules/rc-slider/assets/index.css");var zo=["useRangeSlider"];function _o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,zo),s=i(c),u=s.start,f=s.range,p=s.refine,d=(2,function(e){if(Array.isArray(e))return e}(n=(0,r.useState)([f.min,f.max]))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(n)||function(e,t){if(e){if("string"==typeof e)return _o(e,2);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,2):void 0}}(n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=d[0],h=d[1],y=(0,r.useMemo)((function(){return 0===f.min&&0===f.max}),[f.min,f.max]);return(0,r.useEffect)((function(){u[0]<=f.min&&u[1]>=f.max&&h([f.min,f.max])}),[f,u]),o().createElement(So,{defaultActive:c.defaultActive,divided:c.divided,innerRef:t,title:c.title,visible:y},o().createElement("div",{className:"facet-slider"},o().createElement("div",{className:"range-container"},o().createElement(Fo(),{allowCross:!1,defaultValue:u,max:f.max,min:f.min,onAfterChange:function onAfterChange(e){return p(e)},onChange:function onChange(e){return h(e)},range:!0,value:m})),o().createElement(l.Grid,{columns:2},o().createElement(l.Grid.Column,null,m[0]),o().createElement(l.Grid.Column,{textAlign:"right"},m[1]))))}));Uo.defaultProps=So.defaultProps;var Ho=Uo,Go=["useToggleRefinement"],Vo=(0,r.forwardRef)((function(e,t){var n=e.useToggleRefinement,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Go),i=n(a),c=i.value,s=c.isRefined,u=c.count,f=i.refine,p=(0,r.useMemo)((function(){return!!u}),[u]);return o().createElement(So,{defaultActive:a.defaultActive,divided:a.divided,innerRef:t,title:a.title,visible:p},o().createElement(l.Checkbox,{checked:s,label:{children:o().createElement(l.Label,{circular:!0,content:u,size:"small"})},onClick:function onClick(){return f({isRefined:s})},toggle:!0}))}));Vo.defaultProps=So.defaultProps;var qo=Vo,$o=["onSelection","multiple"];function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,$o),i=(0,r.useRef)();return o().createElement(o().Fragment,null,o().createElement(l.Button,Ko({},a,{onClick:function onClick(){return i.current&&i.current.click()}})),o().createElement("input",{ref:i,type:"file",multiple:n,onChange:function onChange(e){return t(function(e){for(var t=[],n=0;nt.props.maxSize&&(o=!1,r.push(S.t("FileUpload.errors.maxSize",{name:e.name}))),t.filePattern&&!e.name.match(t.filePattern)&&(o=!1,r.push(S.t("FileUpload.errors.fileType",{name:e.name,type:/[^.]+$/.exec(e.name)}))),o&&n.push(e)})),this.setState({errors:r}),n}}])&&function Xo(e,t){for(var n=0;n0&&e.completed===e.total}),[e.completed,e.total]),n=(0,r.useMemo)((function(){return e.total>0?e.completed/e.total:0}),[e.completed,e.total]),a=(0,r.useMemo)((function(){return Number(n).toLocaleString(void 0,{style:"percent",minimumFractionDigits:0})}),[n]);return o().createElement("div",{className:"file-upload-progress"},o().createElement(l.Icon,{color:"blue",name:"cloud upload",size:"big"}),o().createElement("div",{className:"progress-container"},o().createElement(l.Header,null,o().createElement(l.Header.Content,{content:a}),o().createElement(l.Header.Subheader,null,!(e.uploading||t)&&"Getting Started",e.uploading&&"Uploading...",t&&"Completed")),o().createElement(l.Progress,{color:"blue",percent:100*n})))};function ha(e){return ha="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)},ha(e)}var ya=void 0;function ba(){ba=function ba(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function l(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),i=new S(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=E(i,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function f(){}function p(){}function d(){}var m={};l(m,o,(function(){return this}));var h=Object.getPrototypeOf,y=h&&h(h(C([])));y&&y!==t&&n.call(y,o)&&(m=y);var b=d.prototype=f.prototype=Object.create(m);function v(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){function r(o,a,i,l){var c=s(e[o],e,a);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==ha(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(f).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,l)}))}l(c.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),u}},catch:function _catch(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function va(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wa(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0||i().isEmpty(n),icon:"cloud upload",loading:p&&!e.showPageLoader,onClick:T,primary:!0}),o().createElement(l.Button,{content:s>0?S.t("Common.buttons.close"):S.t("Common.buttons.cancel"),disabled:p,onClick:e.onClose})))}))};Da.defaultProps={closeOnComplete:!0,strategy:Pa,showPageLoader:!0};var xa=Da,Ta=__webpack_require__("../../node_modules/@react-google-maps/api/dist/esm.js");function Ma(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ra(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)?Ra(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ra(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null,n=[];return t&&n.push(t),e&&n.push(e),n.join(" ")}),[]),E=(0,r.useCallback)((function(e){var t=b.current;if(t){var n=t.clientWidth,r=t.scrollWidth;u(n),y(Math.ceil(r/n)),e||d(0);var o=t.firstChild;if(o){var i=window.getComputedStyle(o),l=parseFloat(i.marginLeft)||0,c=parseFloat(i.marginRight)||0;a(l+c)}}}),[b,e.items]),w=(0,r.useCallback)((function(e){var t=p+e;t<0?t=h:t>=h&&(t=0),d(t)}),[p,h]);(0,r.useEffect)((function(){return window.addEventListener("resize",E),function(){return window.removeEventListener("resize",E)}}),[]),(0,r.useEffect)((function(){return E()}),[E,e.items]),(0,r.useEffect)((function(){var e=b.current;if(e){var t=e.scrollWidth;y(Math.ceil(t/s))}}),[s]),(0,r.useEffect)((function(){var e=b.current;e&&e.scrollTo({left:p*s,behavior:"smooth"})}),[p,s]);var O=(0,r.useCallback)((function(t){var n=e.renderImage(t);return i().isString(n)||!n?o().createElement(l.Image,{alt:t.alt,className:"image-placeholder",src:n,style:{objectFit:"cover"}}):n}),[e.renderImage]);return o().createElement("div",{className:g(e.className,"horizontal-cards")},o().createElement(l.Ref,{innerRef:b},o().createElement(l.Card.Group,{className:g(e.cardsClassName)},i().map(e.items,function(t,n){var r=o().createElement(l.Card,{className:g(e.cardClassName),link:!0,onClick:e.onClick&&e.onClick.bind(za,t,n),style:v},!e.inlineImage&&O(t),(e.renderHeader||e.renderMeta||e.renderDescription)&&o().createElement(l.Card.Content,null,e.inlineImage&&O(t),e.renderHeader&&o().createElement(l.Card.Header,{as:l.Header,size:"small"},e.renderHeader(t)),e.renderMeta&&o().createElement(l.Card.Meta,null,e.renderMeta(t)),e.renderDescription&&o().createElement(l.Card.Description,null,e.renderDescription(t))),e.renderExtra&&o().createElement(l.Card.Content,{extra:!0},e.renderExtra(t)));if(e.onDrag){var a=t.id||t.uid;r=o().createElement(Hn,{direction:"horizontal",id:a,index:n,item:t,key:a,onDrag:e.onDrag},r)}return r}.bind(za)))),o().createElement("div",{className:"button-container"},h>1&&o().createElement("div",{className:"pagination"},o().createElement(l.Button,{"aria-label":"Left",basic:!0,circular:!0,icon:"angle left",onClick:w.bind(za,-1)}),o().createElement(l.Button,{"aria-label":"Right",basic:!0,circular:!0,icon:"angle right",onClick:w.bind(za,1)}))))};Ha.defaultProps={perPage:4};var Ga=Ha,Va=["onClose"],qa=function qa(e){var t=e.onClose,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Va);return o().createElement(l.Modal,{centered:!1,closeIcon:!0,onClose:t,open:!0},o().createElement(l.Modal.Content,null,o().createElement(y.IIIFViewer,n)))};function $a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ka(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)?Ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nn&&(t=e.images[n]),t}),[n,e.images]),f=(0,r.useCallback)((function(t){var r=n+t;r>=0&&r1&&o().createElement(l.Button,{disabled:0===n,icon:"chevron left",onClick:function onClick(){return f(-1)},size:"massive"})),o().createElement(l.Grid.Column,{className:"image-container"},!c&&o().createElement(l.Loader,{active:!0}),o().createElement(l.Transition,{animation:"fade",duration:500,visible:c},o().createElement(l.Image,{src:null==u?void 0:u.src,onLoad:function onLoad(){return s(!0)}}))),o().createElement(l.Grid.Column,null,e.images&&e.images.length>1&&o().createElement(l.Button,{disabled:n===e.images.length-1,icon:"chevron right",onClick:function onClick(){return f(1)},size:"massive"}))),o().createElement(l.Grid.Row,null,o().createElement(l.Grid.Column,{textAlign:"center"},null==u?void 0:u.caption))))};function Wa(e){return Wa="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)},Wa(e)}function Ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xa(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:null,t=[];return e&&t.push(e),f||t.push("hidden"),t.join(" ")}),[f]);return m?o().createElement(o().Fragment,null,o().createElement(l.Transition,{duration:e.duration,visible:!0},o().createElement(l.Dimmer.Dimmable,{as:l.Segment,className:"lazy-document",compact:!0,onBlur:function onBlur(){return a(!1)},onMouseEnter:function onMouseEnter(){return a(!0)},onMouseLeave:function onMouseLeave(){return a(!1)}},!f&&o().createElement(Qi,{active:!0,size:e.size}),!c&&e.preview&&o().createElement(l.Image,tl({},e.image,{className:y(),onError:function onError(){s(!0),p(!0)},onLoad:function onLoad(){s(!1),p(!0)},src:e.preview,size:e.size})),!c&&f&&!e.preview&&e.src&&e.pdf&&o().createElement(l.Image,tl({},e.image,{className:y(),size:e.size}),o().createElement(el.Document,{file:e.src,onLoadError:function onLoadError(e){return console.log(e.message)}},o().createElement(el.Page,{pageNumber:1}))),(c||!e.preview&&!(e.src&&e.pdf))&&o().createElement(l.Image,tl({},e.image,{className:y("placeholder-image"),size:e.size}),o().createElement(l.Icon,{name:"file alternate outline",size:"big"})),(e.download||e.src||e.children)&&e.dimmable&&o().createElement(l.Dimmer,{active:n},o().createElement("div",{className:"buttons"},e.download&&o().createElement(Xr,{primary:!0,url:e.download||e.src}),e.children))))):o().createElement(l.Visibility,{as:"span",fireOnMount:!0,onTopVisible:function onTopVisible(){return h(!0)}},o().createElement(l.Loader,{active:!0,inline:"centered",size:e.size}))};ol.defaultProps={dimmable:!0,duration:1e3,pdf:!1,preview:void 0,size:"medium",src:void 0};var al=ol;function il(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:null,t=[];return e&&t.push(e),f||t.push("hidden"),t.join(" ")}),[f]);return b?o().createElement(o().Fragment,null,o().createElement(l.Transition,{duration:e.duration,visible:!0},o().createElement(l.Dimmer.Dimmable,{as:l.Segment,className:"lazy-image",compact:!0,onBlur:function onBlur(){return a(!1)},onMouseEnter:function onMouseEnter(){return a(!0)},onMouseLeave:function onMouseLeave(){return a(!1)}},!f&&o().createElement(Qi,{active:!0,size:e.size}),!c&&(e.preview||e.src)&&o().createElement(l.Image,sl({},e.image,{className:g(),onError:function onError(){s(!0),p(!0)},onLoad:function onLoad(){s(!1),p(!0)},size:e.size,src:e.preview||e.src})),(c||!(e.preview||e.src))&&o().createElement(l.Image,sl({},e.image,{className:g("placeholder-image"),size:e.size}),o().createElement(l.Icon,{name:"image",size:"big"})),(e.src||e.children)&&e.dimmable&&o().createElement(l.Dimmer,{active:n},o().createElement("div",{className:"buttons"},e.src&&o().createElement(l.Button,{content:S.t("LazyImage.buttons.view"),icon:"photo",onClick:function onClick(){return h(!0)},primary:!0}),e.download&&o().createElement(Xr,{color:"green",filename:e.name,url:e.download}),e.children)))),e.src&&o().createElement(cl,{image:e.src,onClose:function onClose(){return h(!1)},open:m,size:"large"})):o().createElement(l.Visibility,{as:"span",fireOnMount:!0,onTopVisible:function onTopVisible(){return v(!0)}},o().createElement(l.Loader,{active:!0,inline:"centered",size:e.size}))};pl.defaultProps={dimmable:!0,duration:1e3,size:"medium"};var dl=pl;function ml(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:null,t=[];return e&&t.push(e),f||t.push("hidden"),t.join(" ")}),[f]);return b?o().createElement(o().Fragment,null,o().createElement(l.Transition,{duration:e.duration,visible:!0},o().createElement(l.Dimmer.Dimmable,{as:l.Segment,className:"lazy-video",compact:!0,onBlur:function onBlur(){return a(!1)},onMouseEnter:function onMouseEnter(){return a(!0)},onMouseLeave:function onMouseLeave(){return a(!1)}},!f&&o().createElement(Qi,{active:!0,size:e.size}),!c&&e.preview&&o().createElement(l.Image,bl({},e.image,{className:g(),onError:function onError(){s(!0),p(!0)},onLoad:function onLoad(){s(!1),p(!0)},src:e.preview,size:e.size})),!c&&!e.preview&&e.src&&o().createElement(l.Image,bl({},e.image,{className:g(),size:e.size}),o().createElement("video",{onError:function onError(){s(!0),p(!0)},onLoadedData:function onLoadedData(){s(!1),p(!0)},src:e.src})),(c||!e.preview&&!e.src)&&o().createElement(l.Image,bl({},e.image,{className:g("placeholder-image"),size:e.size}),o().createElement(l.Icon,{name:"image",size:"big"})),(e.src||e.children)&&e.dimmable&&o().createElement(l.Dimmer,{active:n},o().createElement("div",{className:"buttons"},e.src&&o().createElement(l.Button,{content:S.t("LazyVideo.buttons.play"),icon:"video",onClick:function onClick(){return h(!0)},primary:!0}),e.download&&o().createElement(Xr,{color:"green",filename:e.name,url:e.download}),e.children)))),e.src&&o().createElement(yl,{autoPlay:e.autoPlay,embedded:e.embedded,icon:e.icon,onClose:function onClose(){return h(!1)},open:m,placeholder:e.preview,size:"large",video:e.src})):o().createElement(l.Visibility,{as:"span",fireOnMount:!0,onTopVisible:function onTopVisible(){return v(!0)}},o().createElement(l.Loader,{active:!0,inline:"centered",size:e.size}))};El.defaultProps={autoPlay:!1,dimmable:!0,duration:1e3,embedded:!1,icon:"right circle arrow",size:"medium"};var wl=El;function Ol(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Sl(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)?Sl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{{type}} has been received",i18n:S,i18nKey:"LazyMedia.messages.uploaded",values:{type:b}}))):null}),[b]);return(0,r.useEffect)((function(){e.contentType&&a(e.contentType),e.name&&u(e.name),e.preview&&d(e.preview),e.src?y(e.src):y(null)}),[e.contentType,e.name,e.preview,e.src]),o().createElement("div",{className:"lazy-media"},E(),w())};Pl.defaultProps={dimmable:!0,size:"medium"};var Il=Pl,Al=["manifest","options"];function Dl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Al),f=(2,function(e){if(Array.isArray(e))return e}(t=(0,r.useState)(!1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(t)||function(e,t){if(e){if("string"==typeof e)return Dl(e,2);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)?Dl(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],d=f[1];return o().createElement(o().Fragment,null,o().createElement(Il,u,a&&o().createElement(l.Button,{color:u.color,content:u.content||S.t("Common.buttons.iiif"),icon:"images outline",onClick:function onClick(){return d(!0)}}),u.children),p&&o().createElement(qa,{manifestId:a,onClose:function onClose(){return d(!1)},options:i().defaults(s,{showIIIFBadge:!1})}))},Tl=function Tl(e){return o().createElement(l.Dimmer.Dimmable,{as:l.Segment,className:"listLoader",dimmed:e.active,style:{opacity:e.active?"0.8":"0"}},o().createElement(l.Dimmer,{active:e.active,inverted:!0},o().createElement(l.Loader,{content:S.t("Common.messages.loading")})))},Ml=void 0,Rl=function Rl(e){return o().createElement(ee.Consumer,null,(function(t){return o().createElement(l.Modal,{as:l.Form,className:"login-modal",error:e.loginFailed,mountNode:t,open:e.open,size:"small",trigger:e.trigger},o().createElement(l.Header,{icon:"user circle",content:S.t("LoginModal.header")}),o().createElement(l.Message,{error:!0,header:S.t("LoginModal.loginErrorHeader"),content:S.t("LoginModal.loginErrorContent")}),o().createElement(l.Grid,{padded:"vertically",textAlign:"center"},o().createElement(l.Grid.Column,null,o().createElement(l.Grid.Row,null,o().createElement(l.Input,{autoFocus:!0,className:"form-field",icon:o().createElement(l.Icon,{name:"at"}),onChange:e.onUsernameChange.bind(Ml),placeholder:e.placeholder,size:"huge"})),o().createElement(l.Grid.Row,{className:"row"},o().createElement(l.Input,{className:"form-field",icon:o().createElement(l.Icon,{name:"lock"}),onChange:e.onPasswordChange.bind(Ml),placeholder:S.t("LoginModal.password"),size:"huge",type:"password"})))),o().createElement(l.Modal.Actions,null,o().createElement(l.Button,{disabled:e.disabled,onClick:e.onLogin.bind(Ml),primary:!0,size:"large",type:"submit"},S.t("LoginModal.buttonLogin")),e.onClose&&o().createElement(l.Button,{basic:!0,onClick:e.onClose.bind(Ml),size:"large"},S.t("LoginModal.buttonCancel"))))}))};Rl.defaultProps={placeholder:S.t("LoginModal.email")};var Nl=Rl;function Bl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ll(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)?Ll(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ll(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?e.gap:0,"px")}},t["column".concat(l)]));return o().createElement("div",{className:"masonryGrid"},n)},zl=function zl(e){var t=Bl((0,r.useState)(!1),2),n=t[0],a=t[1],i=Bl((0,r.useState)(0),2),c=i[0],s=i[1];return(0,r.useEffect)((function(){s(175+Math.ceil(350*Math.random()))}),[]),o().createElement(l.Dimmer.Dimmable,{className:"item",dimmed:n,onClick:function onClick(){return e.onClick&&e.onClick(e.item)},onMouseEnter:function onMouseEnter(){return a(!0)},onMouseLeave:function onMouseLeave(){return a(!1)},style:{cursor:e.onClick?"pointer":void 0,height:"".concat(c,"px")}},o().createElement(l.Transition,{duration:800,visible:n},o().createElement(l.Dimmer.Inner,{active:n},o().createElement(l.Header,{content:e.item.title,inverted:!0,subheader:e.item.subtitle}),e.item.extra&&o().createElement("div",{className:"extraContainer"},e.item.extra))),o().createElement(l.Image,{alt:e.item.alt,className:"image",src:e.item.image}),e.renderContent&&e.renderContent(e.item))},_l=function _l(e){return o().createElement("div",{className:"masonry-grid"},o().createElement(l.Loader,{active:e.loading}),o().createElement("div",null,o().createElement(Fl,{columns:e.columns,gap:e.gap},i().map(e.items,(function(t,n){return o().createElement(zl,{key:n,item:t,onClick:e.onClick,renderContent:e.renderContent})}))),e.pages>1&&e.onPageChange&&o().createElement(l.Segment,{basic:!0,textAlign:"center"},o().createElement(l.Pagination,{activePage:e.page,firstItem:null,lastItem:null,onPageChange:function onPageChange(t,n){var r=n.activePage;return e.onPageChange&&e.onPageChange(r)},totalPages:e.pages,size:"small"}))),!e.loading&&!(e.items&&e.items.length)&&e.renderEmpty&&e.renderEmpty())},Ul=function Ul(e){return o().createElement(l.Button,{className:"play-button",color:"black",icon:"play",onClick:function onClick(t){e.onClick&&(t.stopPropagation(),e.onClick())},size:e.size,style:e.style})};Ul.defaultProps={onClick:void 0,size:"massive",style:void 0};var Hl=Ul,Gl=function Gl(){return o().createElement("div",{className:"icon video-player-button"},o().createElement("div",null,o().createElement(Hl,null)))};function Vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&e.options||[]),rc(o)),page:n,pages:a}}))}))}))}},{key:"onSearchChange",value:function value(e,t){var n=t.searchQuery;this.setState({page:1,pages:1,search:n})}},{key:"render",value:function value(){var e=this;return o().createElement(l.Dropdown,{className:this.getClassNames(),clearable:!0,fluid:this.props.fluid,loading:this.state.loading,multiple:this.props.multiple,onBlur:this.onReset.bind(this),onClose:this.onReset.bind(this),onChange:this.onOptionSelection.bind(this),onOpen:this.onSearch.bind(this),onSearchChange:this.onSearchChange.bind(this),options:this.getOptions(),placeholder:this.props.placeholder,ref:this.dropdown,scrolling:!0,search:function search(){return e.getSearchOptions()},searchInput:{"aria-label":"Search",className:"remote-dropdown-search-input",onKeyDown:y.Timer.clearSearchTimer.bind(this),onKeyUp:y.Timer.setSearchTimer.bind(this,this.onSearch.bind(this))},searchQuery:this.state.search,selectOnBlur:!1,selection:!0,value:this.props.value})}},{key:"renderAddOption",value:function value(){return o().createElement("div",{className:"extra-option"},o().createElement(l.Icon,{name:"plus circle"}),"".concat(S.t("RemoteDropdown.labels.add")," ").concat(this.state.search))}},{key:"renderLoadMoreOption",value:function value(){return o().createElement("div",{className:"extra-option"},o().createElement(l.Icon,{name:"refresh"}),S.t("RemoteDropdown.labels.loadMore"))}}])&&function ac(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,fc),s=a(c),u=s.query,f=s.refine,p=s.clear,d=s.isSearchStalled,m=(2,function(e){if(Array.isArray(e))return e}(t=(0,r.useState)(u))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(t)||function(e,t){if(e){if("string"==typeof e)return dc(e,2);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)?dc(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=m[0],b=m[1],v=(0,r.useRef)(),g=(0,r.useCallback)((function(){b(""),p();var e=v.current;e&&e.focus()}),[p]),E=(0,r.useCallback)((function(){return f(h)}),[f,h]);return o().createElement(l.Input,pc({},c,{"aria-label":"Search",icon:o().createElement(l.Icon,{link:!i().isEmpty(u),name:i().isEmpty(u)?"search":"times",onClick:g}),input:{"aria-label":"search"},loading:d,onChange:function onChange(e,t){var n=t.value;return b(n)},onKeyDown:function onKeyDown(){return y.Timer.clearSearchTimer()},onKeyUp:function onKeyUp(){return y.Timer.setSearchTimer(E)},ref:v,type:"text",value:h}))},hc=["usePagination"],yc=function yc(e){var t=e.usePagination,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,hc),a=t(n),i=a.currentRefinement,c=a.nbPages,s=a.refine,u=(0,r.useCallback)((function(e,t){var n=t.activePage;return s(n-1)}),[s]);return(0,r.useEffect)((function(){n.scrollToTop&&window.scroll({top:0,behavior:"smooth"})}),[i,n.scrollToTop]),0===c?null:o().createElement(l.Pagination,{activePage:i+1,onPageChange:u,totalPages:c})};yc.defaultProps={scrollToTop:!1};var bc=yc,vc=["useHits"],gc=function gc(e){var t=e.useHits,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,vc),r=t(n).hits,a=n.as,i=n.asProps,l=n.link,c=n.renderDescription,s=n.renderEmptyList,u=n.renderExtra,f=n.renderHeader,p=n.renderImage,d=n.renderMeta;return o().createElement(Ci,{as:a,asProps:i,hideToggle:!0,items:r,link:l,renderDescription:c,renderEmptyList:s,renderExtra:u,renderHeader:f,renderImage:p,renderMeta:d})};gc.defaultProps={as:void 0,asProps:void 0,link:void 0,renderDescription:void 0,renderEmptyList:void 0,renderExtra:void 0,renderHeader:void 0,renderImage:void 0,renderMeta:void 0};var Ec=gc,wc=function wc(e){var t=e.useHitsPerPage,n=e.options,r=t({items:i().map(n,(function(e,t){return{label:e,value:e,default:0===t}}))}),a=r.items,l=r.refine,c=i().findWhere(a,{isRefined:!0}).value;return o().createElement(U,{basic:!0,icon:"list",onChange:function onChange(e,t){return l(t.value)},options:i().map(a,(function(e){return{key:e.value,value:e.value,text:e.label}})),text:S.t("SearchResultsPerPage.labels.show",{value:c}),value:c})},Oc=["useSortBy"],Sc=function Sc(e){var t=(0,e.useSortBy)(function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Oc)),n=t.currentRefinement,a=t.options,l=t.refine,c=i().findWhere(a,{value:n})||i().first(a),s=c.label,u=c.value,f=(0,r.useMemo)((function(){return u&&u.endsWith("desc")?"sort alphabet down":"sort alphabet up"}),[u]);return o().createElement(U,{basic:!0,icon:f,onChange:function onChange(e,t){return l(t.value)},options:i().map(a,(function(e){return{key:e.value,value:e.value,text:e.description||e.label}})),text:s,value:u})},Cc=["useStats"],kc=function kc(e){var t=(0,e.useStats)(function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Cc)),n=t.nbHits,r=(t.processingTimeMS/1e3).toFixed(2);return o().createElement("div",null,S.t("SearchStats.labels.results",{count:n,seconds:r}))},jc=function jc(e){return e.visible?o().createElement("div",{className:"section"},e.header&&o().createElement(l.Header,{content:e.header}),e.children,o().createElement(l.Divider,{hidden:!e.divided})):null};jc.defaultProps={divided:!0,header:void 0,visible:!0};var Pc=jc,Ic=void 0;function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=h?a(!0):d((function(t){return[].concat(function(e){if(Array.isArray(e))return Tc(e)}(n=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||xc(n)||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.")}(),[e]);var n})):d([e])}),[y,e.multiple]),v=(0,r.useCallback)((function(e){s===e?(u(null),b(e)):u(e)}),[s,b]),g=(0,r.useCallback)((function(t){return e.modal&&e.modal.onSave?e.modal.onSave(t).then((function(e){return b(e)})):Promise.resolve()}),[b,e.modal]);return o().createElement(ee.Consumer,null,(function(t){return o().createElement(l.Modal,{as:l.Form,centered:e.centered,className:"selectize",mountNode:t,noValidate:!0,open:!0,size:"small"},o().createElement(l.Modal.Header,{content:e.title}),o().createElement(l.Modal.Content,null,o().createElement(l.Message,{content:S.t("Selectize.messages.maxSelected.content"),error:!0,header:S.t("Selectize.messages.maxSelected.header"),onDismiss:function onDismiss(){return a(!1)},visible:n}),o().createElement(Mc,Ac({},e,{actions:[],isSelected:y,onDelete:function onDelete(){return Promise.resolve()},onDeleteAll:function onDeleteAll(){return Promise.resolve()},onItemSelection:v,onSave:g,onSelect:b,selectedItem:s,selectedItems:p}))),o().createElement(l.Modal.Actions,null,o().createElement(l.Button,{onClick:e.onSave.bind(Ic,p),primary:!0,size:"medium",type:"submit"},S.t("Common.buttons.save")),o().createElement(l.Button,{basic:!0,onClick:e.onClose.bind(Ic),size:"medium",type:"button"},S.t("Common.buttons.cancel"))))}))};Rc.defaultProps={centered:!1,modal:void 0,multiple:!0,searchable:!0,selectedItems:[]};var Nc=Rc;function Lc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fc(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)?Fc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ns&&(t=1),a(t)}),[n,s]);return(0,r.useEffect)((function(){e.perPage&&e.selectedItems&&u(Math.ceil(e.selectedItems.length/e.perPage))}),[e.perPage,e.selectedItems]),(0,r.useEffect)((function(){(!m||!m.length)&&e.selectedItems&&e.selectedItems.length&&n>1&&a(n-1)}),[m,n,e.selectedItems]),i().isEmpty(m)?null:o().createElement(l.Segment,{className:"selectize-image-header"},o().createElement(l.Transition,{visible:!p},o().createElement("div",null,o().createElement("div",{className:"container"},o().createElement(l.Button,{basic:!0,circular:!0,disabled:s<=1,icon:"arrow left",onClick:y.bind(undefined,-1)}),o().createElement(l.Card.Group,{itemsPerRow:e.perPage},i().map(m,(function(t){return o().createElement(zc,{description:e.renderDescription&&e.renderDescription(t),extra:e.renderExtra&&e.renderExtra(t),header:e.renderHeader&&e.renderHeader(t),image:e.renderImage&&e.renderImage(t),meta:e.renderMeta&&e.renderMeta(t),key:t.id,onClick:function onClick(){return e.selectedItem===t?e.onItemClick(null):e.onItemClick(t)},onDelete:function onDelete(){return e.onItemClick(t)},selected:t===e.selectedItem})}))),o().createElement(l.Button,{basic:!0,circular:!0,disabled:s<=1,icon:"arrow right",onClick:y.bind(undefined,1)})))),o().createElement("div",{className:"bottom-container"},o().createElement("div",null),o().createElement("div",null,h),o().createElement("div",null,e.collapsable&&o().createElement(l.Button,{as:"a",basic:!0,circular:!0,className:"link",compact:!0,content:p?S.t("Common.buttons.show"):S.t("Common.buttons.hide"),onClick:function onClick(){return d((function(e){return!e}))}}))))};_c.defaultProps={collapsable:!0,onItemClick:function onItemClick(){},perPage:5,renderExtra:void 0};var Uc=_c;function Hc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Gc(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)?Gc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&i().map(d,(function(e){return o().createElement(l.Menu.Item,{active:e.key===a,disabled:t.loading||t.saving,key:e.key,name:e.props.name,onClick:function onClick(){return b(e)}})})),o().createElement(l.Menu.Menu,{position:"right"},o().createElement(l.Menu.Item,{className:"button-container"},t.editable&&o().createElement(l.Button,{content:S.t("Common.buttons.save"),disabled:t.loading||t.saving,onClick:t.onSave,primary:!0}),o().createElement(l.Button,{basic:!0,content:S.t("Common.buttons.cancel"),disabled:t.loading||t.saving,onClick:t.onCancel}))));return t.stickyMenu?o().createElement(l.Sticky,{context:p,offset:20},e):e}));return(0,r.useEffect)((function(){var e;(e=t.defaultTab?{key:t.defaultTab}:i().first(d))&&b(e),t.saved&&f(!0)}),[]),o().createElement(l.Grid,{className:h},o().createElement(l.Grid.Row,null,o().createElement(l.Grid.Column,null,v())),o().createElement(l.Grid.Row,null,o().createElement(l.Grid.Column,null,o().createElement(l.Ref,{innerRef:p},o().createElement("div",null,o().createElement(l.Form,{error:!i().isEmpty(t.errors),loading:t.loading||t.saving,noValidate:!0},o().createElement(l.Message,{error:!0,header:S.t("Common.errors.save"),list:t.errors}),m&&m.props.children),u&&o().createElement(j,{onDismiss:function onDismiss(){return f(!1)},type:j.MessageTypes.positive},o().createElement(l.Message.Header,{content:S.t("Common.messages.save.header")}),o().createElement(l.Message.Content,{content:S.t("Common.messages.save.content")})))))))};Vc.defaultProps={editable:!0,menuProps:{pointing:!0,secondary:!0}};var qc=function qc(e){return e.children};qc.displayName="Tab";var $c=Object.assign(Vc,{Tab:qc});function Kc(e){return Kc="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)},Kc(e)}function Qc(){return Qc=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=a)&&Object.keys(r.O).every((function(e){return r.O[e](n[c])}))?n.splice(c--,1):(l=!1,a0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[n,o,a]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={179:0,44:0};r.O.j=function(t){return 0===e[t]};var t=function t(_t2,n){var o,a,_n2=_slicedToArray(n,3),i=_n2[0],l=_n2[1],c=_n2[2],s=0;if(i.some((function(t){return 0!==e[t]}))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);if(c)var u=c(r)}for(_t2&&_t2(n);s{},"?a1ca":()=>{},"?8821":()=>{},"?23a8":()=>{},"?553e":()=>{},"?55b5":()=>{}}]); \ No newline at end of file diff --git a/docs/5200.670207b1.iframe.bundle.js b/docs/5200.670207b1.iframe.bundle.js new file mode 100644 index 00000000..cdef0b54 --- /dev/null +++ b/docs/5200.670207b1.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 5200.670207b1.iframe.bundle.js.LICENSE.txt */ +(self.webpackChunk_performant_software_storybook=self.webpackChunk_performant_software_storybook||[]).push([[5200],{"../semantic-ui/build/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);ie.length)&&(t=e.length);for(var n=0,r=new Array(t);nAdd files or drop files here","errors":{"fileType":"Unable to upload {{name}} because {{type}} files are not allowed.","maxSize":"Unable to upload {{name}} because it exceeds 10 MB."}},"FileUploadModal":{"errors":{"header":"There was an error processing your files","required":"File {{filename}} - The following fields are required: {{fields}}","upload":{"content":"Check the status on each file to see which were unsuccessful.","header":"Some of the files did not upload"}},"loader":"Uploading files...","title":"Upload Files"},"FilterLabels":{"buttons":{"clear":"Clear all"}},"FuzzyDate":{"accuracy":{"date":"Date","month":"Month","year":"Year"},"buttons":{"addRange":"Add Range","removeRange":"Remove Range"},"labels":{"accuracy":"Accuracy","date":"Date","description":"Description","month":"Month","year":"Year"},"title":"Fuzzy Date"},"ItemList":{"actions":{"copy":"Copy","delete":"Remove","edit":"Edit"},"buttons":{"clear":"Clear selected","deselectAll":"Deselect all","selectAll":"Select all"}},"KeyboardField":{"labels":{"hideKeyboard":"Hide Keyboard","showKeyboard":"Show Keyboard"}},"KeyValuePairs":{"labels":{"key":"Key","value":"Value"}},"LazyAudio":{"buttons":{"play":"Play"}},"LazyImage":{"buttons":{"view":"View image"}},"LazyMedia":{"messages":{"uploaded":"Your {{type}} has been received"}},"LazyVideo":{"buttons":{"play":"Play video"}},"List":{"buttons":{"add":"Add","csvExport":"CSV Export","deleteAll":"Delete all"},"deleteAllContent":"Are you sure you want to remove all records? This action cannot be undone.","deleteAllHeader":"Confirm Remove All","deleteContent":"Are you sure you want to remove this record?","deleteHeader":"Confirm Remove","emptyList":"No matching records found.","emptyListAdd":"You haven\'t added any yet. Click <1><0><0><1> to get started.","labels":{"perPage":"Show {{perPage}}"},"record":"Record","record_plural":"Records"},"ListFilters":{"buttons":{"add":"Add","reset":"Reset filters"},"operators":{"contain":"Contains","empty":"Is empty","equal":"Equals","greaterThan":"Is greater than","lessThan":"Is less than","notContain":"Does not contain","notEmpty":"Is not empty","notEqual":"Does not equal"},"title":"Filters"},"LoginModal":{"buttonCancel":"Cancel","buttonLogin":"Login","email":"Email","header":"Login","loginErrorContent":"The username and/or password you entered is invalid. Please double check and try again.","loginErrorHeader":"Invalid Credentials","password":"Password"},"PhotoViewer":{"errors":{"path":{"content":"Please check the image path: {{path}}","header":"There was a problem loading the image"}}},"RemoteDropdown":{"labels":{"add":"Add","loadMore":"Load more"}},"SearchResultsPerPage":{"labels":{"show":"Show {{value}}"}},"SearchStats":{"labels":{"results":"{{count}} results in {{seconds}} seconds"}},"Selectize":{"messages":{"maxSelected":{"content":"You have already selected the maximum number of items allowed.","header":"Maximum items selected"},"noRecords":"No matching records."}},"VideoFrameSelector":{"buttons":{"select":"Select frame"},"labels":{"interval":"Interval: {{count}} second","interval_plural":"Interval: {{count}} seconds"},"title":"Select Frame"},"VideoPlayer":{"errors":{"path":{"content":"Please check the video path: {{path}}","header":"There was a problem loading the video"}}},"ViewXML":{"buttons":{"view":"View XML"},"title":"XML"}}')}},O=E().createInstance();O.init({debug:!0,fallbackLng:"en",lng:"en",interpolation:{escapeValue:!1},resources:w});var S=O;function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&i().delay((function(){u(!1)}),t.timeout),(0,r.useEffect)((function(){!s&&t.onDismiss&&i().delay(t.onDismiss.bind(void 0),700)}),[s]),o().createElement(l.Transition,{animation:"slide down",duration:700,transitionOnMount:!0,visible:s},o().createElement(l.Message,{className:"toaster",info:t.type===e.MessageTypes.info,negative:t.type===e.MessageTypes.negative,onDismiss:function onDismiss(){return u(!1)},positive:t.type===e.MessageTypes.positive,warning:t.type===e.MessageTypes.warning},t.children))};k.defaultProps={onDismiss:void 0,timeout:3e3,type:(k.MessageTypes={info:"info",negative:"negative",positive:"positive",warning:"warning"}).info};var j=k;function P(e){return P="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)},P(e)}function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?e.page-1:1}}),this.fetchData.bind(this)):this.fetchData()}},{key:"afterDeleteAll",value:function value(){this.setState({page:1},this.fetchData.bind(this))}},{key:"fetchData",value:function value(){var e=this;this.setSession(),this.setState({loading:!0},(function(){var t=e.state,n=t.page,r=t.perPage,o=t.search,a=t.sortColumn,i=t.sortDirection,l=D(D({},e.state.filters),{},{page:n,search:o,per_page:r,sort_by:a,sort_direction:i});e.props.onLoad(l).then((function(t){var r=t.data,o=r[e.props.collectionName],a=r.list,i=a.pages,l=a.count;e.setState({count:l,items:o,page:n,pages:i,loading:!1})}))}))}},{key:"getDefaultFilters",value:function value(e){var t=this,n=[];return e.filters&&e.filters.defaults&&i().each(e.filters.defaults.filters,(function(r){var o=i().findWhere(e.filters.props.filters,{key:r.key});o&&n.push(t.onCreateFilter(D(D({},o),r)))})),{filters:n}}},{key:"getSessionKey",value:function value(){return this.props.session?"".concat("DataList",".").concat(this.props.session.key):null}},{key:"initializeState",value:function value(e){var t=this.restoreSession(),n=t.filters||this.getDefaultFilters(e),r=t.page||1,o=t.perPage||e.defaultPerPage||i().first(e.perPageOptions),a=t.search||e.defaultSearch||null,l=t.sortColumn||e.defaultSort||null,c=t.sortDirection||e.defaultSortDirection||null;return{count:0,error:null,filters:n,items:[],loading:!1,page:r,pages:1,perPage:o,saved:e.saved||!1,search:a,sortColumn:l,sortDirection:c}}},{key:"isFilterActive",value:function value(){var e=!1;return i().each(i().values(this.state.filters),(function(t){y.Object.isEmpty(t)||(e=!0)})),e}},{key:"onClearSearch",value:function value(e){var t;this.onSearchChange(e,{value:""}),null===(t=this.searchRef)||void 0===t||null===(t=t.inputRef)||void 0===t||null===(t=t.current)||void 0===t||t.focus(),this.onSearch()}},{key:"onCreateFilter",value:function value(e){return D(D({},e),{},{uid:v()()})}},{key:"onDelete",value:function value(e){return this.props.onDelete?this.props.onDelete(e).then(this.afterDelete.bind(this)).catch(this.onError.bind(this)):Promise.resolve()}},{key:"onDeleteAll",value:function value(){return this.props.onDeleteAll?this.props.onDeleteAll().then(this.afterDeleteAll.bind(this)):Promise.resolve()}},{key:"onError",value:function value(e){return this.props.resolveErrors&&this.setState({error:e})}},{key:"onFilterChange",value:function value(e){var t=this;return new Promise((function(n){t.props.filters&&t.props.filters.onChange&&t.props.filters.onChange(e),t.setState({filters:e,page:1},(function(){t.fetchData(),n()}))}))}},{key:"onPageChange",value:function value(e,t){var n=t.activePage;this.setState({page:n},this.fetchData.bind(this))}},{key:"onPerPageChange",value:function value(e,t){var n=t.value;this.setState({perPage:n},this.fetchData.bind(this))}},{key:"onSave",value:function value(e){var t=this;return this.props.onSave?Promise.resolve(this.props.onSave(e)).then((function(){return t.setState({saved:!0},t.fetchData.bind(t))})):Promise.resolve()}},{key:"onSearch",value:function value(){this.setState({page:1},this.fetchData.bind(this))}},{key:"onSearchChange",value:function value(e,t){var n=t.value;this.setState({search:n})}},{key:"onSort",value:function value(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=t;r||(r=this.state.sortColumn===e&&this.state.sortDirection===B?L:B),this.setState({sortColumn:e,sortDirection:r,page:n},this.fetchData.bind(this))}},{key:"onInit",value:function value(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.setState({sortColumn:"",sortDirection:"",page:e},this.fetchData.bind(this))}},{key:"render",value:function value(){var t=this,n=this.props.filters,r=void 0===n?{}:n,a=r.component,i=r.props,c=r.showLabels;return o().createElement(o().Fragment,null,o().createElement(e,I({},this.props,{count:this.state.count,filters:{active:this.isFilterActive(),component:a,onChange:this.onFilterChange.bind(this),showLabels:c,props:D(D({},i),{},{onCreateFilter:this.onCreateFilter.bind(this),item:this.state.filters})},items:this.state.items,loading:this.state.loading,page:this.state.page,pages:this.state.pages,perPage:this.state.perPage,onDelete:this.onDelete.bind(this),onDeleteAll:this.onDeleteAll.bind(this),onPageChange:this.onPageChange.bind(this),onPerPageChange:this.onPerPageChange.bind(this),onSave:this.onSave.bind(this),onSort:this.onSort.bind(this),onInit:this.onInit.bind(this),renderSearch:this.renderSearch.bind(this),sortColumn:this.state.sortColumn,sortDirection:this.state.sortDirection})),this.state.saved&&o().createElement(j,{onDismiss:function onDismiss(){return t.setState({saved:!1})},type:j.MessageTypes.positive},o().createElement(l.Message.Header,{content:S.t("Common.messages.save.header")}),o().createElement(l.Message.Content,{content:S.t("Common.messages.save.content")})),this.state.error&&o().createElement(j,{onDismiss:function onDismiss(){return t.setState({error:!1})},timeout:0,type:j.MessageTypes.negative},o().createElement(l.Message.Header,{content:S.t("Common.messages.error.header")}),o().createElement(l.Message.List,{items:this.props.resolveErrors&&this.props.resolveErrors(this.state.error)})))}},{key:"renderSearch",value:function value(){var e=this;return this.props.searchable?o().createElement(l.Input,{"aria-label":"Search",type:"text",icon:o().createElement(l.Icon,{link:!i().isEmpty(this.state.search),name:i().isEmpty(this.state.search)?"search":"times",onClick:this.onClearSearch.bind(this)}),input:{"aria-label":"search"},ref:function ref(t){e.searchRef=t},loading:this.state.loading,onKeyDown:y.Timer.clearSearchTimer.bind(this),onKeyUp:y.Timer.setSearchTimer.bind(this,this.onSearch.bind(this)),onChange:this.onSearchChange.bind(this),size:"small",value:this.state.search}):null}},{key:"restoreSession",value:function value(){var e=this.getSessionKey();if(!e)return{};var t=sessionStorage.getItem(e)||"{}";return JSON.parse(t)}},{key:"setSession",value:function value(){var e=this.getSessionKey();if(e){var t=this.state,n=t.filters,r=t.page,o=t.perPage,a=t.search,i=t.sortColumn,l=t.sortDirection;sessionStorage.setItem(e,JSON.stringify({filters:n,page:r,perPage:o,search:a,sortColumn:i,sortDirection:l}))}}}],r&&function T(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n6||this.setState((function(t){return oe({},e,re(re({},t[e]),{},{year:parseInt(r,10)}))}),this.setEndDate.bind(this))}},{key:"render",value:function value(){var e=this;return o().createElement(o().Fragment,null,o().createElement(Z,{display:this.state.display,onClick:this.onEdit.bind(this),onChange:this.onClear.bind(this)}),o().createElement(ee.Consumer,null,(function(t){return o().createElement(l.Modal,{as:l.Form,className:"fuzzy-date-modal",mountNode:t,open:e.state.modal,onClose:e.onClose.bind(e)},o().createElement(l.Modal.Header,{content:e.props.title||S.t("FuzzyDate.title")}),o().createElement(l.Modal.Content,null,o().createElement(l.Form.Input,{className:"accuracy-container",label:S.t("FuzzyDate.labels.accuracy")},o().createElement(l.Checkbox,{checked:0===e.state.accuracy,id:"accuracy-year",label:S.t("FuzzyDate.accuracy.year"),name:"accuracy",onChange:e.onAccuracyChange.bind(e),radio:!0,value:0}),o().createElement(l.Checkbox,{checked:1===e.state.accuracy,id:"accuracy-month",label:S.t("FuzzyDate.accuracy.month"),name:"accuracy",onChange:e.onAccuracyChange.bind(e),radio:!0,value:1}),o().createElement(l.Checkbox,{checked:2===e.state.accuracy,id:"accuracy-date",label:S.t("FuzzyDate.accuracy.date"),name:"accuracy",onChange:e.onAccuracyChange.bind(e),radio:!0,value:2})),o().createElement(l.Form.Group,null,e.renderYear("startDate"),e.renderMonth("startDate"),e.renderDate("startDate"),!e.state.range&&o().createElement("div",{className:"button-container"},o().createElement(l.Button,{basic:!0,content:S.t("FuzzyDate.buttons.addRange"),icon:"plus",onClick:e.onRangeChange.bind(e)}))),e.state.range&&o().createElement(l.Form.Group,null,e.renderYear("endDate"),e.renderMonth("endDate"),e.renderDate("endDate"),o().createElement("div",{className:"button-container"},o().createElement(l.Button,{basic:!0,content:S.t("FuzzyDate.buttons.removeRange"),icon:"times",onClick:e.onRangeChange.bind(e)}))),e.props.description&&o().createElement(l.Form.Input,{id:"description",label:S.t("FuzzyDate.labels.description")},o().createElement(l.TextArea,{id:"description",onChange:e.onDescriptionChange.bind(e),value:e.state.description}))),o().createElement(l.Modal.Actions,null,o().createElement(l.Button,{onClick:e.onSave.bind(e),primary:!0,size:"medium",type:"submit"},S.t("Common.buttons.save")),o().createElement(l.Button,{basic:!0,onClick:e.onClose.bind(e),size:"medium",type:"button"},S.t("Common.buttons.cancel"))))})))}},{key:"renderDate",value:function value(e){if(2!==this.state.accuracy)return null;var t=this.state[e],n=this.state.calendar.daysInMonth(t.year,t.month);return o().createElement(l.Form.Input,{id:"date-dropdown",label:S.t("FuzzyDate.labels.date")},o().createElement(l.Dropdown,{id:"date-dropdown",onChange:this.onDateChange.bind(this,e),options:i().range(1,n+1).map((function(e){return{key:e,value:e,text:e}})),selection:!0,value:t.date||this.state.calendar.getDefaultDate()}))}},{key:"renderMonth",value:function value(e){return 2!==this.state.accuracy&&1!==this.state.accuracy?null:o().createElement(l.Form.Input,{id:"month-dropdown",label:S.t("FuzzyDate.labels.month")},o().createElement(l.Dropdown,{id:"month-dropdown",onChange:this.onMonthChange.bind(this,e),options:i().map(this.state.calendar.listMonths(),(function(e,t){return{key:t,value:t,text:e}})),selection:!0,value:this.state[e].month||this.state.calendar.getDefaultMonth()}))}},{key:"renderYear",value:function value(e){return o().createElement(l.Form.Input,{id:"year",label:S.t("FuzzyDate.labels.year")},o().createElement(l.Input,{id:"year",onChange:this.onYearChange.bind(this,e),type:"number",value:this.state[e].year||""}))}},{key:"setDisplay",value:function value(){var e=[];this.state.startDate&&!i().isEmpty(this.state.startDate)&&e.push(this.getDisplayDate(this.state.startDate)),this.state.range&&this.state.endDate&&!i().isEmpty(this.state.endDate)&&(e.push(" - "),e.push(this.getDisplayDate(this.state.endDate))),this.setState({display:e.join(" ")})}},{key:"setEndDate",value:function value(){this.state.range||!this.state.startDate||i().isEmpty(this.state.startDate)||this.setState((function(e){var t=e.calendar.convertToDate(e.startDate);return 0===e.accuracy?t=e.calendar.addYear(t,1):1===e.accuracy?t=e.calendar.addMonth(t,1):2===e.accuracy&&(t=e.calendar.addDate(t,1)),{endDate:e.calendar.parseDate(t)}}))}}])&&function ae(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1;n&&(e=!0);var r=this.props.count&&this.props.showRecordCount;return r&&(e=!0),e?o().createElement("div",{className:"footer"},o().createElement(l.Grid,{columns:2},o().createElement(l.Grid.Column,{textAlign:"left"},r?this.renderRecordCount():"",i().map(t,(function(e){return e.render()}))),o().createElement(l.Grid.Column,{textAlign:"right"},n?this.renderPagination():""))):null}},{key:"renderHeader",value:function value(){var e=this,t=!1,n=this.getButtons("top");n&&n.length&&(t=!0);var r=this.props,a=r.filters,c=r.perPageOptions,s=r.renderListHeader,u=r.renderSearch;(a||c||s||u)&&(t=!0);var f=a&&a.showLabels&&!i().isEmpty(a.props.item.filters);return t?o().createElement("div",{className:"header"},o().createElement(l.Grid,{className:f?"filter-labels":void 0,verticalAlign:"top"},o().createElement(l.Grid.Row,{columns:2},o().createElement(l.Grid.Column,{textAlign:"left"},i().map(n,this.renderButton.bind(this))),o().createElement(l.Grid.Column,{textAlign:"right"},o().createElement(l.Menu,{compact:!0,borderless:!0,secondary:!0,className:"flex-end-menu"},s&&o().createElement(l.Menu.Menu,{className:"list-header-menu"},s()),o().createElement(l.Menu.Menu,null,a&&this.renderFilterButton()),c&&o().createElement(l.Menu.Menu,{className:"per-page-menu"},this.renderPerPage()),o().createElement(l.Menu.Menu,null,u&&u())))),f&&o().createElement(l.Grid.Row,{columns:1},o().createElement(l.Grid.Column,null,o().createElement(Ee,{filters:a.props.item.filters,onClear:function onClear(){return a.onChange({filters:[]})},onClick:function onClick(t){return e.onRemoveFilter(t)}}))))):null}},{key:"renderPagination",value:function value(){return o().createElement(l.Pagination,{activePage:this.props.page,firstItem:null,lastItem:null,onPageChange:this.props.onPageChange.bind(this),size:"mini",totalPages:this.props.pages})}},{key:"renderPerPage",value:function value(){var e=this.props.perPage;return o().createElement(U,{basic:!0,icon:"list",onChange:this.props.onPerPageChange.bind(this),options:i().map(this.props.perPageOptions,(function(e){return{key:e,value:e,text:e}})),text:S.t("List.labels.perPage",{perPage:e}),value:e})}},{key:"renderRecordCount",value:function value(){var e=this.props.count;return o().createElement("p",{className:"record-count"},"".concat(Number(e).toLocaleString()," ").concat(S.t("List.record",{count:e})))}}])&&function Ce(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:null;return this.props.onSearch(t,this.state.searchQuery).then((function(n){var r=n.data[e.props.collectionName];e.setState((function(e){return t?{items:[].concat(et(e.items||[]),et(r))}:{items:r}}))}))}},{key:"onSearchChange",value:function value(e,t){var n=t.value;this.setState({searchQuery:n})}},{key:"render",value:function value(){var e=this;return o().createElement(ee.Consumer,null,(function(t){return o().createElement(l.Modal,{className:"accordion-selector",mountNode:t,open:e.props.open,size:"small"},o().createElement(l.Modal.Header,null,o().createElement(l.Grid,{columns:2,verticalAlign:"middle"},o().createElement(l.Grid.Column,{textAlign:"left",width:7},o().createElement(l.Header,{content:e.props.title?e.props.title:S.t("AccordionSelector.title")})),o().createElement(l.Grid.Column,{textAlign:"right",width:9},o().createElement(l.Input,{"aria-label":"Search",autoFocus:!0,icon:"search",onKeyDown:y.Timer.clearSearchTimer.bind(e),onKeyUp:y.Timer.setSearchTimer.bind(e,e.onSearch.bind(e)),onChange:e.onSearchChange.bind(e),size:"mini",type:"text",value:e.state.searchQuery}),e.renderAddButton()))),o().createElement(l.Modal.Content,null,o().createElement(Qe,{isSelected:function isSelected(t){return e.state.selectedItem===t},items:e.state.selectedItems,onItemClick:e.onItemSelection.bind(e),renderItem:e.props.renderItem.bind(e)}),o().createElement(h,{getChildItems:e.props.getChildItems.bind(e,e.state.items),onItemClick:e.onItemClick.bind(e),onItemToggle:e.onItemToggle.bind(e),renderItem:e.props.renderItem.bind(e),renderRight:e.renderRight.bind(e),rootItems:e.props.getRootItems(e.state.items),showToggle:e.props.showToggle.bind(e)}),e.renderAddModal(),e.state.saved&&o().createElement(j,{onDismiss:function onDismiss(){return e.setState({saved:!1})},type:j.MessageTypes.positive},o().createElement(l.Message.Header,{content:S.t("Common.messages.save.header")}),o().createElement(l.Message.Content,{content:S.t("Common.messages.save.content")}))),o().createElement(l.Modal.Actions,null,o().createElement(l.Button,{onClick:e.props.onSave.bind(e,e.state.selectedItems),primary:!0,size:"medium",type:"submit"},S.t("Common.buttons.save")),o().createElement(l.Button,{basic:!0,onClick:e.props.onClose.bind(e),size:"medium",type:"button"},S.t("Common.buttons.cancel"))))}))}},{key:"renderAddButton",value:function value(){var e=this;return this.props.modal?o().createElement(l.Button,{basic:!0,className:"add-button",content:S.t("Common.buttons.add"),icon:"plus",onClick:function onClick(){return e.setState({modalAdd:!0})}}):null}},{key:"renderAddModal",value:function value(){var e=this;if(!this.state.modalAdd||!this.props.modal)return null;var t=this.props.modal,n=t.component,r=t.props,a=t.onSave;return o().createElement(V,Ye({component:n,onClose:function onClose(){return e.setState({modalAdd:!1,selectedItem:null})},onSave:function onSave(t){return a(t).then((function(t){return e.setState({modalAdd:!1,saved:!0,searchQuery:"",selectedItems:[t]},e.onSearch.bind(e))}))}},r))}},{key:"renderRight",value:function value(e){return this.isSelected(e)?o().createElement(l.Icon,{color:"green",name:"check"}):null}}],n&&function nt(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),u}},catch:function _catch(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function bt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||gt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vt(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function gt(e,t){if(e){if("string"==typeof e)return Et(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)?Et(e,t):void 0}}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==f[1])||f[1],e.prev=1,e.next=4,Promise.all([dt()().itemTypes().get({cache:St("itemTypes")?"force-cache":"default"}),dt()().itemTypeFields(t).get({cache:St("itemTypeFields-".concat(t))?"force-cache":"default"}),dt()().itemTypeCreatorTypes(t).get({cache:St("itemTypeCreatorTypes-".concat(t))?"force-cache":"default"})]);case 4:i=e.sent,l=bt(i,3),c=l[0],s=l[1],u=l[2],r=c.getData(),o=s.getData(),a=u.getData(),e.next=20;break;case 14:if(e.prev=14,e.t0=e.catch(1),localStorage.removeItem("zotero-bib-api-cache"),!n){e.next=19;break}return e.abrupt("return",Ct(t,!1));case 19:throw e.t0;case 20:return e.abrupt("return",{itemTypes:r,itemTypeFields:o,itemTypeCreatorTypes:a});case 21:case"end":return e.stop()}}),e,null,[[1,14]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){vt(a,r,o,i,l,"next",e)}function l(e){vt(a,r,o,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),kt={getFieldsAndItem:function getFieldsAndItem(e,t,n){var r;if(!e||!t||!n)return{item:e,fields:[]};var o,a=e.itemType in mt&&(null===(r=mt[e.itemType])||void 0===r?void 0:r.title)||"title",l=[{field:"itemType",localized:"Item Type"},t.find((function(e){return e.field===a})),{field:"creators",localized:"Creators"}].concat((o=t.filter((function(e){return e.field!==a})),function(e){if(Array.isArray(e))return Et(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||gt(o)||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.")}())).filter((function(e){return e&&!wt.includes(e.field)})).concat([t.find((function(e){return"abstractNote"===e.field})),t.find((function(e){return"extra"===e.field}))]);if(["book","bookSection"].includes(e.itemType)){var c=l.findIndex((function(e){return"date"===e.field}));l.splice(c+1,0,{field:"original-date",localized:"Original Date"});var s="extra"in e&&e.extra.match(/^original-date:\s*(.*?)$/);s&&i().extend(e,{"original-date":s[1],extra:e.extra.replace(/^original-date:\s*.*?$/,"")})}if(["webpage"].includes(e.itemType)){var u=l.findIndex((function(e){return"websiteType"===e.field}));l.splice(u+1,0,{field:"publisher",localized:"Publisher"});var f="extra"in e&&e.extra.match(/^publisher:\s*(.*?)$/i);f&&i().extend(e,{publisher:f[1],extra:e.extra.replace(/^publisher:\s*.*?$/,"")})}return l=l.map((function(t){return{options:"itemType"===t.field?n:null,key:t.field,label:t.localized,readonly:Ot.includes(t.field),processing:!1,value:t.field in e?e[t.field]:null}})),{item:e,fields:l}},getItemTypeMeta:Ct,isUrl:function isUrl(e){return!!e.match(/^(https?:\/\/)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b(\S*)$/i)}},jt=void 0;function Pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,creator:t,creatorTypes:e.creatorTypes,key:r,onAdd:function onAdd(){return n()},onDelete:function onDelete(){return a(r)},onUpdate:function onUpdate(e){return l(r,e)}})}))},Lt=void 0;function Ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zt(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)?zt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.items.length&&e.onShowMore&&o().createElement(l.Label,{as:l.Button,content:"+".concat(e.count-e.items.length),onClick:e.onShowMore}))};An.defaultProps={count:void 0,onShowMore:void 0};var Dn=An,xn=function xn(e){return o().createElement(l.Modal,{centered:!1,open:e.open},o().createElement(l.Modal.Header,{content:S.t("CurrentFacetsModal.title")}),o().createElement(l.Modal.Content,null,o().createElement(Dn,{items:e.items})),o().createElement(l.Modal.Actions,null,o().createElement(l.Button,{content:S.t("Common.buttons.done"),onClick:e.onClose,primary:!0})))};xn.defaultProps={open:void 0};var Tn=xn,Mn=["useCurrentRefinements"];function Rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Mn),c=(2,function(e){if(Array.isArray(e))return e}(t=(0,r.useState)(!1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(t)||function(e,t){if(e){if("string"==typeof e)return Rn(e,2);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)?Rn(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],u=c[1],f=a(l).items,p=(0,r.useMemo)((function(){return i().flatten(i().map(f,(function(e){return i().map(e.refinements,(function(t){return{label:"".concat(e.label,": ").concat(t.label),onClick:function onClick(){return e.refine(t)}}}))})))}),[f]),d=(0,r.useMemo)((function(){return i().filter(p,(function(e,t){return!l.limit||te.length)&&(t=e.length);for(var n=0,r=new Array(t);na&&s>l||(e.onDrag(o,a),n.index=a)}}}}),2)[1],u=zn((0,Fn.useDrag)({item:{type:"any",id:n,index:t},begin:function begin(){return e.onDragStart&&e.onDragStart()},end:function end(){return e.onDragEnd&&e.onDragEnd()},collect:function collect(e){return{isDragging:e.isDragging()}}}),2),f=u[0].isDragging;return(0,u[1])(s(c)),c&&c.current&&(c.current.style.opacity=f?0:1),o().createElement(l.Ref,{innerRef:c},e.children)};function Gn(e){return Gn="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)},Gn(e)}function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,yr),c=(0,r.useCallback)((function(e,t){return o().createElement(l.Dropdown.Item,br({key:t},e))}),[]),s=(0,r.useCallback)((function(e,t){return o().createElement(l.Menu.Item,br({key:t},e))}),[]),u=(0,r.useCallback)((function(e,t){return o().createElement(hr,{"aria-label":e.content,item:!0,key:t,role:"group",text:e.content},i().map(e.items,(function(e){return e.items?u(e):c(e)})))}),[]),f=(0,r.useCallback)((function(e){return e.items?u(e):s(e)}),[]);return o().createElement(l.Menu,br({},a,{className:"menu-bar"}),o().createElement(l.Menu.Item,br({},t,{header:!0})),i().map(n,(function(e){return f(e)})))},gr=["contextRef","header","items"];function Er(){return Er=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,gr),s=(0,r.useCallback)((function(e,t){return o().createElement(l.Menu.Item,{key:t},o().createElement(l.Menu.Header,e),o().createElement(l.Menu.Menu,null,i().map(e.items,(function(e){return f(e)}))))}),[]),u=(0,r.useCallback)((function(e,t){return o().createElement(l.Menu.Item,Er({key:t},e))}),[]),f=(0,r.useCallback)((function(e){return e.items?s(e):u(e)}),[]);return o().createElement(l.Ref,{innerRef:t},o().createElement(l.Menu,Er({},c,{fixed:"left",vertical:!0}),o().createElement(l.Menu.Item,null,o().createElement(l.Header,n)),i().map(a,(function(e){return f(e)}))))};function Or(e){return function(e){if(Array.isArray(e))return Ar(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ir(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 Sr(){return Sr=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.columnCount,index:r};return i().extend(a,o)}));return o=[].concat(Or(o),Or(i().reject(n.columns,(function(e){return i().contains(r,e.name)})))),i().sortBy(o,"index")}),[n]),P=(0,r.useCallback)((function(e){n&&fr().get("".concat(n.url,"/").concat(e.id)).then((function(e){var t=e.data,n=i().first(i().keys(t));u(t[n])})).catch((function(){u(e)}))}),[n]),I=(0,r.useCallback)((function(e){return n?fr().get(n.url,{params:e}).then((function(e){var t=e.data[k];return d(j(t)),e})):Promise.resolve()}),[n]),A=(0,r.useCallback)((function(e,t){var n=e[t];return i().isArray(n)?n=i().size(n):i().isBoolean(n)?n=Boolean(n).toString():i().isObject(n)&&(n=n[i().first(i().keys(n))]),n}),[]);return(0,r.useEffect)((function(){if(i().every(e.items,(function(e){return!!e.group}))){var t=i().groupBy(e.items,"group"),r=i().keys(t);y(i().map(r,(function(e){return{content:e,items:i().map(t[e],(function(e){return{active:n&&n.id===e.id,content:e.label,onClick:function onClick(){return a(e)}}}))}})))}else y(e.items)}),[n,e.items]),(0,r.useEffect)((function(){e.items&&e.items.length&&a(i().first(e.items))}),[e.items]),(0,r.useEffect)((function(){"left"===e.layout&&C&&C.current&&g(C.current.offsetWidth)}),[C,e.layout]),(0,r.useEffect)((function(){var e=[];n&&e.push(n.id),p&&p.length&&e.push.apply(e,Or(i().pluck(p,"name"))),O(e.join(""))}),[n,p]),o().createElement("div",{className:"data-view"},"top"===e.layout&&o().createElement(vr,{header:{content:e.title},items:h}),"left"===e.layout&&o().createElement(wr,{contextRef:C,header:{content:e.title},items:h}),o().createElement("div",{style:{marginLeft:v}},n&&o().createElement(Dr,{actions:[{name:"details",icon:"info",onClick:P}],collectionName:k,columns:p,key:w,onLoad:I,perPageOptions:[10,25,50,100],searchable:!0,sorts:n.sorts})),s&&o().createElement(ee.Consumer,null,(function(e){return o().createElement(l.Modal,{as:l.Form,centered:!1,className:"data-view-modal",closeIcon:!0,mountNode:e,onClose:function onClose(){return u(null)},open:!0},o().createElement(l.Modal.Header,{content:S.t("DataView.labels.details")}),o().createElement(l.Modal.Content,null,o().createElement(l.Grid,{columns:3,doubling:!0},i().map(j([s]),(function(e){return o().createElement(l.Grid.Column,{as:l.Form.Field,key:e.name},o().createElement("span",{className:"label"},e.label),A(s,e.name))})))))})))};xr.defaultProps={columnCount:5,layout:"left"};var Tr=xr;function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.columnCount}}))}),[n,h,e.columnCount]);return o().createElement("div",{className:"database-view"},o().createElement(wr,{contextRef:d,header:{content:e.title,inverted:!0},inverted:!0,items:[{items:i().map(f,(function(e){return{active:c===e,content:e.table_name,onClick:function onClick(){return s(e)}}}))}],style:{overflow:"auto",width:"250px"}}),o().createElement("div",{style:{marginLeft:"250px"}},c&&o().createElement(Nr,{collectionName:"items",columns:y,onLoad:function onLoad(e){return m.getData(Lr(Lr({},e),{},{table_name:c.table_name}))},perPageOptions:[10,25,50,100],searchable:!0})))};Ur.defaultProps={columnCount:Number.MAX_SAFE_INTEGER};var Hr=Ur,Gr=__webpack_require__("../../node_modules/react-calendar/dist/esm/index.js"),Vr=n.n(Gr);function qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:bo;if(!this.props.onDrag&&!1!==e.sortable){var n=e.name,r=t||bo;e.name===this.state.sortColumn&&(r=this.state.sortDirection===bo?vo:bo),this.setState({sortColumn:n,sortDirection:r})}}},{key:"onDelete",value:function value(e){return this.props.onDelete(e),Promise.resolve()}},{key:"onSave",value:function value(e){var t=e.uid?e.uid:v()();return this.props.onSave&&this.props.onSave(uo(uo({},e),{},{uid:t})),Promise.resolve()}},{key:"render",value:function value(){return o().createElement(lr,co({},this.props,{actions:this.props.actions,addButton:this.props.addButton,buttons:this.props.buttons,className:"embedded-list ".concat(this.props.className?this.props.className:""),configurable:this.props.configurable,columns:this.props.columns,count:this.props.items.length,items:this.getItems(),modal:this.props.modal,onColumnClick:this.onColumnClick.bind(this),onCopy:this.props.onCopy,onDrag:this.props.onDrag,onDelete:this.onDelete.bind(this),onSave:this.onSave.bind(this),renderDeleteModal:this.props.renderDeleteModal,renderEmptyRow:this.props.renderEmptyRow,renderItem:this.renderItem.bind(this),sortColumn:this.state.sortColumn,sortDirection:this.state.sortDirection,tableProps:{celled:!0,sortable:!this.props.onDrag},selectable:this.props.selectable,onRowSelect:this.props.onRowSelect,selectedRows:this.props.selectedRows,showRecordCount:this.props.showRecordCount}))}},{key:"renderItem",value:function value(e,t,n){if(this.props.onDrag){var r=e.id||e.uid;return o().createElement(Hn,{id:r,index:t,item:e,key:r,onDrag:this.props.onDrag.bind(this)},o().createElement(l.Table.Row,null,n))}return o().createElement(l.Table.Row,{key:t},n)}}],n&&function po(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Co),r=t(n),a=r.refine,i=r.canRefine;return o().createElement(l.Button,ko({},n,{disabled:!i,onClick:function onClick(){return a()}}))},Po=function Po(e){return o().createElement(l.Button,{basic:!0,className:"link-button",compact:!0,content:e.content,onClick:e.onClick.bind(void 0),type:"button"})},Io=["useRefinementList"];function Ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Do(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Io),c=To((0,r.useState)(a.defaultOperator||Ro),2),s=c[0],u=c[1],f=n(Do(Do({},a),{},{operator:s})),p=f.canRefine,d=f.canToggleShowMore,m=f.isShowingMore,h=f.items,b=f.refine,v=f.searchForItems,g=f.toggleShowMore,E=(0,r.useRef)(),w=To((0,r.useState)(""),2),O=w[0],C=w[1],k=(0,r.useCallback)((function(){C(""),v();var e=E.current;e&&e.focus()}),[]),j=(0,r.useCallback)((function(){return v(O)}),[O,v]),P=(0,r.useCallback)((function(){u((function(e){return e===Ro?"and":Ro}))}),[]),I=(0,r.useMemo)((function(){return!(p&&i().isEmpty(h)&&i().isEmpty(O))}),[h,O]);return(0,r.useEffect)((function(){a.defaultValue&&b(a.defaultValue)}),[a.defaultValue]),(0,r.useEffect)((function(){O&&v(O)}),[h]),o().createElement(So,{className:"facet-list",defaultActive:a.defaultActive,divided:a.divided,innerRef:t,title:a.title,visible:I},a.searchable&&o().createElement(l.Input,{icon:O&&o().createElement(l.Icon,{link:!0,name:"times",onClick:k}),fluid:!0,onChange:function onChange(e,t){var n=t.value;return C(n)},onKeyDown:function onKeyDown(){return y.Timer.clearSearchTimer()},onKeyUp:function onKeyUp(){return y.Timer.setSearchTimer(j)},placeholder:S.t("FacetList.labels.search"),ref:E,value:O}),o().createElement(l.List,{className:"facet-list"},i().map(h,(function(e,t){return o().createElement(l.List.Item,{key:t},o().createElement(l.Checkbox,{checked:e.isRefined,label:{children:o().createElement(o().Fragment,null,o().createElement("span",null,e.label),o().createElement(l.Label,{circular:!0,content:e.count,size:"small"}))},onClick:function onClick(){return b(e.value)}}))}))),d&&o().createElement(o().Fragment,null,o().createElement(l.Icon,{name:m?"angle up":"angle down"}),o().createElement(Po,{content:m?S.t("FacetList.buttons.showLess"):S.t("FacetList.buttons.showMore"),onClick:function onClick(){return g()}})),a.toggleable&&o().createElement(l.Checkbox,{className:"toggleable",checked:"and"===s,label:s===Ro?S.t("FacetList.labels.matchAny"):S.t("FacetList.labels.matchAll"),onChange:P,toggle:!0}))}));No.defaultProps=Do(Do({},So.defaultProps),{},{defaultOperator:Ro});var Bo=No,Lo=__webpack_require__("../../node_modules/rc-slider/es/index.js"),Fo=n.n(Lo);__webpack_require__("../../node_modules/rc-slider/assets/index.css");var zo=["useRangeSlider"];function _o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,zo),s=i(c),u=s.start,f=s.range,p=s.refine,d=(2,function(e){if(Array.isArray(e))return e}(n=(0,r.useState)([f.min,f.max]))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(n)||function(e,t){if(e){if("string"==typeof e)return _o(e,2);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,2):void 0}}(n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=d[0],h=d[1],y=(0,r.useMemo)((function(){return 0===f.min&&0===f.max}),[f.min,f.max]);return(0,r.useEffect)((function(){u[0]<=f.min&&u[1]>=f.max&&h([f.min,f.max])}),[f,u]),o().createElement(So,{defaultActive:c.defaultActive,divided:c.divided,innerRef:t,title:c.title,visible:y},o().createElement("div",{className:"facet-slider"},o().createElement("div",{className:"range-container"},o().createElement(Fo(),{allowCross:!1,defaultValue:u,max:f.max,min:f.min,onAfterChange:function onAfterChange(e){return p(e)},onChange:function onChange(e){return h(e)},range:!0,value:m})),o().createElement(l.Grid,{columns:2},o().createElement(l.Grid.Column,null,m[0]),o().createElement(l.Grid.Column,{textAlign:"right"},m[1]))))}));Uo.defaultProps=So.defaultProps;var Ho=Uo,Go=["useToggleRefinement"],Vo=(0,r.forwardRef)((function(e,t){var n=e.useToggleRefinement,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Go),i=n(a),c=i.value,s=c.isRefined,u=c.count,f=i.refine,p=(0,r.useMemo)((function(){return!!u}),[u]);return o().createElement(So,{defaultActive:a.defaultActive,divided:a.divided,innerRef:t,title:a.title,visible:p},o().createElement(l.Checkbox,{checked:s,label:{children:o().createElement(l.Label,{circular:!0,content:u,size:"small"})},onClick:function onClick(){return f({isRefined:s})},toggle:!0}))}));Vo.defaultProps=So.defaultProps;var qo=Vo,$o=["onSelection","multiple"];function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,$o),i=(0,r.useRef)();return o().createElement(o().Fragment,null,o().createElement(l.Button,Ko({},a,{onClick:function onClick(){return i.current&&i.current.click()}})),o().createElement("input",{ref:i,type:"file",multiple:n,onChange:function onChange(e){return t(function(e){for(var t=[],n=0;nt.props.maxSize&&(o=!1,r.push(S.t("FileUpload.errors.maxSize",{name:e.name}))),t.filePattern&&!e.name.match(t.filePattern)&&(o=!1,r.push(S.t("FileUpload.errors.fileType",{name:e.name,type:/[^.]+$/.exec(e.name)}))),o&&n.push(e)})),this.setState({errors:r}),n}}])&&function Xo(e,t){for(var n=0;n0&&e.completed===e.total}),[e.completed,e.total]),n=(0,r.useMemo)((function(){return e.total>0?e.completed/e.total:0}),[e.completed,e.total]),a=(0,r.useMemo)((function(){return Number(n).toLocaleString(void 0,{style:"percent",minimumFractionDigits:0})}),[n]);return o().createElement("div",{className:"file-upload-progress"},o().createElement(l.Icon,{color:"blue",name:"cloud upload",size:"big"}),o().createElement("div",{className:"progress-container"},o().createElement(l.Header,null,o().createElement(l.Header.Content,{content:a}),o().createElement(l.Header.Subheader,null,!(e.uploading||t)&&"Getting Started",e.uploading&&"Uploading...",t&&"Completed")),o().createElement(l.Progress,{color:"blue",percent:100*n})))};function ha(e){return ha="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)},ha(e)}var ya=void 0;function ba(){ba=function ba(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function l(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),i=new S(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=E(i,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function f(){}function p(){}function d(){}var m={};l(m,o,(function(){return this}));var h=Object.getPrototypeOf,y=h&&h(h(C([])));y&&y!==t&&n.call(y,o)&&(m=y);var b=d.prototype=f.prototype=Object.create(m);function v(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){function r(o,a,i,l){var c=s(e[o],e,a);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==ha(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(f).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,l)}))}l(c.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),u}},catch:function _catch(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function va(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wa(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0||i().isEmpty(n),icon:"cloud upload",loading:p&&!e.showPageLoader,onClick:T,primary:!0}),o().createElement(l.Button,{content:s>0?S.t("Common.buttons.close"):S.t("Common.buttons.cancel"),disabled:p,onClick:e.onClose})))}))};Da.defaultProps={closeOnComplete:!0,strategy:Pa,showPageLoader:!0};var xa=Da,Ta=__webpack_require__("../../node_modules/@react-google-maps/api/dist/esm.js");function Ma(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ra(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)?Ra(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ra(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null,n=[];return t&&n.push(t),e&&n.push(e),n.join(" ")}),[]),E=(0,r.useCallback)((function(e){var t=b.current;if(t){var n=t.clientWidth,r=t.scrollWidth;u(n),y(Math.ceil(r/n)),e||d(0);var o=t.firstChild;if(o){var i=window.getComputedStyle(o),l=parseFloat(i.marginLeft)||0,c=parseFloat(i.marginRight)||0;a(l+c)}}}),[b,e.items]),w=(0,r.useCallback)((function(e){var t=p+e;t<0?t=h:t>=h&&(t=0),d(t)}),[p,h]);(0,r.useEffect)((function(){return window.addEventListener("resize",E),function(){return window.removeEventListener("resize",E)}}),[]),(0,r.useEffect)((function(){return E()}),[E,e.items]),(0,r.useEffect)((function(){var e=b.current;if(e){var t=e.scrollWidth;y(Math.ceil(t/s))}}),[s]),(0,r.useEffect)((function(){var e=b.current;e&&e.scrollTo({left:p*s,behavior:"smooth"})}),[p,s]);var O=(0,r.useCallback)((function(t){var n=e.renderImage(t);return i().isString(n)||!n?o().createElement(l.Image,{alt:t.alt,className:"image-placeholder",src:n,style:{objectFit:"cover"}}):n}),[e.renderImage]);return o().createElement("div",{className:g(e.className,"horizontal-cards")},o().createElement(l.Ref,{innerRef:b},o().createElement(l.Card.Group,{className:g(e.cardsClassName)},i().map(e.items,function(t,n){var r=o().createElement(l.Card,{className:g(e.cardClassName),link:!0,onClick:e.onClick&&e.onClick.bind(za,t,n),style:v},!e.inlineImage&&O(t),(e.renderHeader||e.renderMeta||e.renderDescription)&&o().createElement(l.Card.Content,null,e.inlineImage&&O(t),e.renderHeader&&o().createElement(l.Card.Header,{as:l.Header,size:"small"},e.renderHeader(t)),e.renderMeta&&o().createElement(l.Card.Meta,null,e.renderMeta(t)),e.renderDescription&&o().createElement(l.Card.Description,null,e.renderDescription(t))),e.renderExtra&&o().createElement(l.Card.Content,{extra:!0},e.renderExtra(t)));if(e.onDrag){var a=t.id||t.uid;r=o().createElement(Hn,{direction:"horizontal",id:a,index:n,item:t,key:a,onDrag:e.onDrag},r)}return r}.bind(za)))),o().createElement("div",{className:"button-container"},h>1&&o().createElement("div",{className:"pagination"},o().createElement(l.Button,{"aria-label":"Left",basic:!0,circular:!0,icon:"angle left",onClick:w.bind(za,-1)}),o().createElement(l.Button,{"aria-label":"Right",basic:!0,circular:!0,icon:"angle right",onClick:w.bind(za,1)}))))};Ha.defaultProps={perPage:4};var Ga=Ha,Va=["onClose"],qa=function qa(e){var t=e.onClose,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Va);return o().createElement(l.Modal,{centered:!1,closeIcon:!0,onClose:t,open:!0},o().createElement(l.Modal.Content,null,o().createElement(y.IIIFViewer,n)))};function $a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ka(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)?Ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nn&&(t=e.images[n]),t}),[n,e.images]),f=(0,r.useCallback)((function(t){var r=n+t;r>=0&&r1&&o().createElement(l.Button,{disabled:0===n,icon:"chevron left",onClick:function onClick(){return f(-1)},size:"massive"})),o().createElement(l.Grid.Column,{className:"image-container"},!c&&o().createElement(l.Loader,{active:!0}),o().createElement(l.Transition,{animation:"fade",duration:500,visible:c},o().createElement(l.Image,{src:null==u?void 0:u.src,onLoad:function onLoad(){return s(!0)}}))),o().createElement(l.Grid.Column,null,e.images&&e.images.length>1&&o().createElement(l.Button,{disabled:n===e.images.length-1,icon:"chevron right",onClick:function onClick(){return f(1)},size:"massive"}))),o().createElement(l.Grid.Row,null,o().createElement(l.Grid.Column,{textAlign:"center"},null==u?void 0:u.caption))))};function Wa(e){return Wa="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)},Wa(e)}function Ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xa(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:null,t=[];return e&&t.push(e),f||t.push("hidden"),t.join(" ")}),[f]);return m?o().createElement(o().Fragment,null,o().createElement(l.Transition,{duration:e.duration,visible:!0},o().createElement(l.Dimmer.Dimmable,{as:l.Segment,className:"lazy-document",compact:!0,onBlur:function onBlur(){return a(!1)},onMouseEnter:function onMouseEnter(){return a(!0)},onMouseLeave:function onMouseLeave(){return a(!1)}},!f&&o().createElement(Qi,{active:!0,size:e.size}),!c&&e.preview&&o().createElement(l.Image,tl({},e.image,{className:y(),onError:function onError(){s(!0),p(!0)},onLoad:function onLoad(){s(!1),p(!0)},src:e.preview,size:e.size})),!c&&f&&!e.preview&&e.src&&e.pdf&&o().createElement(l.Image,tl({},e.image,{className:y(),size:e.size}),o().createElement(el.Document,{file:e.src,onLoadError:function onLoadError(e){return console.log(e.message)}},o().createElement(el.Page,{pageNumber:1}))),(c||!e.preview&&!(e.src&&e.pdf))&&o().createElement(l.Image,tl({},e.image,{className:y("placeholder-image"),size:e.size}),o().createElement(l.Icon,{name:"file alternate outline",size:"big"})),(e.download||e.src||e.children)&&e.dimmable&&o().createElement(l.Dimmer,{active:n},o().createElement("div",{className:"buttons"},e.download&&o().createElement(Xr,{primary:!0,url:e.download||e.src}),e.children))))):o().createElement(l.Visibility,{as:"span",fireOnMount:!0,onTopVisible:function onTopVisible(){return h(!0)}},o().createElement(l.Loader,{active:!0,inline:"centered",size:e.size}))};ol.defaultProps={dimmable:!0,duration:1e3,pdf:!1,preview:void 0,size:"medium",src:void 0};var al=ol;function il(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:null,t=[];return e&&t.push(e),f||t.push("hidden"),t.join(" ")}),[f]);return b?o().createElement(o().Fragment,null,o().createElement(l.Transition,{duration:e.duration,visible:!0},o().createElement(l.Dimmer.Dimmable,{as:l.Segment,className:"lazy-image",compact:!0,onBlur:function onBlur(){return a(!1)},onMouseEnter:function onMouseEnter(){return a(!0)},onMouseLeave:function onMouseLeave(){return a(!1)}},!f&&o().createElement(Qi,{active:!0,size:e.size}),!c&&(e.preview||e.src)&&o().createElement(l.Image,sl({},e.image,{className:g(),onError:function onError(){s(!0),p(!0)},onLoad:function onLoad(){s(!1),p(!0)},size:e.size,src:e.preview||e.src})),(c||!(e.preview||e.src))&&o().createElement(l.Image,sl({},e.image,{className:g("placeholder-image"),size:e.size}),o().createElement(l.Icon,{name:"image",size:"big"})),(e.src||e.children)&&e.dimmable&&o().createElement(l.Dimmer,{active:n},o().createElement("div",{className:"buttons"},e.src&&o().createElement(l.Button,{content:S.t("LazyImage.buttons.view"),icon:"photo",onClick:function onClick(){return h(!0)},primary:!0}),e.download&&o().createElement(Xr,{color:"green",filename:e.name,url:e.download}),e.children)))),e.src&&o().createElement(cl,{image:e.src,onClose:function onClose(){return h(!1)},open:m,size:"large"})):o().createElement(l.Visibility,{as:"span",fireOnMount:!0,onTopVisible:function onTopVisible(){return v(!0)}},o().createElement(l.Loader,{active:!0,inline:"centered",size:e.size}))};pl.defaultProps={dimmable:!0,duration:1e3,size:"medium"};var dl=pl;function ml(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:null,t=[];return e&&t.push(e),f||t.push("hidden"),t.join(" ")}),[f]);return b?o().createElement(o().Fragment,null,o().createElement(l.Transition,{duration:e.duration,visible:!0},o().createElement(l.Dimmer.Dimmable,{as:l.Segment,className:"lazy-video",compact:!0,onBlur:function onBlur(){return a(!1)},onMouseEnter:function onMouseEnter(){return a(!0)},onMouseLeave:function onMouseLeave(){return a(!1)}},!f&&o().createElement(Qi,{active:!0,size:e.size}),!c&&e.preview&&o().createElement(l.Image,bl({},e.image,{className:g(),onError:function onError(){s(!0),p(!0)},onLoad:function onLoad(){s(!1),p(!0)},src:e.preview,size:e.size})),!c&&!e.preview&&e.src&&o().createElement(l.Image,bl({},e.image,{className:g(),size:e.size}),o().createElement("video",{onError:function onError(){s(!0),p(!0)},onLoadedData:function onLoadedData(){s(!1),p(!0)},src:e.src})),(c||!e.preview&&!e.src)&&o().createElement(l.Image,bl({},e.image,{className:g("placeholder-image"),size:e.size}),o().createElement(l.Icon,{name:"image",size:"big"})),(e.src||e.children)&&e.dimmable&&o().createElement(l.Dimmer,{active:n},o().createElement("div",{className:"buttons"},e.src&&o().createElement(l.Button,{content:S.t("LazyVideo.buttons.play"),icon:"video",onClick:function onClick(){return h(!0)},primary:!0}),e.download&&o().createElement(Xr,{color:"green",filename:e.name,url:e.download}),e.children)))),e.src&&o().createElement(yl,{autoPlay:e.autoPlay,embedded:e.embedded,icon:e.icon,onClose:function onClose(){return h(!1)},open:m,placeholder:e.preview,size:"large",video:e.src})):o().createElement(l.Visibility,{as:"span",fireOnMount:!0,onTopVisible:function onTopVisible(){return v(!0)}},o().createElement(l.Loader,{active:!0,inline:"centered",size:e.size}))};El.defaultProps={autoPlay:!1,dimmable:!0,duration:1e3,embedded:!1,icon:"right circle arrow",size:"medium"};var wl=El;function Ol(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Sl(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)?Sl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{{type}} has been received",i18n:S,i18nKey:"LazyMedia.messages.uploaded",values:{type:b}}))):null}),[b]);return(0,r.useEffect)((function(){e.contentType&&a(e.contentType),e.name&&u(e.name),e.preview&&d(e.preview),e.src?y(e.src):y(null)}),[e.contentType,e.name,e.preview,e.src]),o().createElement("div",{className:"lazy-media"},E(),w())};Pl.defaultProps={dimmable:!0,size:"medium"};var Il=Pl,Al=["manifest","options"];function Dl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Al),f=(2,function(e){if(Array.isArray(e))return e}(t=(0,r.useState)(!1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(t)||function(e,t){if(e){if("string"==typeof e)return Dl(e,2);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)?Dl(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],d=f[1];return o().createElement(o().Fragment,null,o().createElement(Il,u,a&&o().createElement(l.Button,{color:u.color,content:u.content||S.t("Common.buttons.iiif"),icon:"images outline",onClick:function onClick(){return d(!0)}}),u.children),p&&o().createElement(qa,{manifestId:a,onClose:function onClose(){return d(!1)},options:i().defaults(s,{showIIIFBadge:!1})}))},Tl=function Tl(e){return o().createElement(l.Dimmer.Dimmable,{as:l.Segment,className:"listLoader",dimmed:e.active,style:{opacity:e.active?"0.8":"0"}},o().createElement(l.Dimmer,{active:e.active,inverted:!0},o().createElement(l.Loader,{content:S.t("Common.messages.loading")})))},Ml=void 0,Rl=function Rl(e){return o().createElement(ee.Consumer,null,(function(t){return o().createElement(l.Modal,{as:l.Form,className:"login-modal",error:e.loginFailed,mountNode:t,open:e.open,size:"small",trigger:e.trigger},o().createElement(l.Header,{icon:"user circle",content:S.t("LoginModal.header")}),o().createElement(l.Message,{error:!0,header:S.t("LoginModal.loginErrorHeader"),content:S.t("LoginModal.loginErrorContent")}),o().createElement(l.Grid,{padded:"vertically",textAlign:"center"},o().createElement(l.Grid.Column,null,o().createElement(l.Grid.Row,null,o().createElement(l.Input,{autoFocus:!0,className:"form-field",icon:o().createElement(l.Icon,{name:"at"}),onChange:e.onUsernameChange.bind(Ml),placeholder:e.placeholder,size:"huge"})),o().createElement(l.Grid.Row,{className:"row"},o().createElement(l.Input,{className:"form-field",icon:o().createElement(l.Icon,{name:"lock"}),onChange:e.onPasswordChange.bind(Ml),placeholder:S.t("LoginModal.password"),size:"huge",type:"password"})))),o().createElement(l.Modal.Actions,null,o().createElement(l.Button,{disabled:e.disabled,onClick:e.onLogin.bind(Ml),primary:!0,size:"large",type:"submit"},S.t("LoginModal.buttonLogin")),e.onClose&&o().createElement(l.Button,{basic:!0,onClick:e.onClose.bind(Ml),size:"large"},S.t("LoginModal.buttonCancel"))))}))};Rl.defaultProps={placeholder:S.t("LoginModal.email")};var Nl=Rl;function Bl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ll(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)?Ll(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ll(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?e.gap:0,"px")}},t["column".concat(l)]));return o().createElement("div",{className:"masonryGrid"},n)},zl=function zl(e){var t=Bl((0,r.useState)(!1),2),n=t[0],a=t[1],i=Bl((0,r.useState)(0),2),c=i[0],s=i[1];return(0,r.useEffect)((function(){s(175+Math.ceil(350*Math.random()))}),[]),o().createElement(l.Dimmer.Dimmable,{className:"item",dimmed:n,onClick:function onClick(){return e.onClick&&e.onClick(e.item)},onMouseEnter:function onMouseEnter(){return a(!0)},onMouseLeave:function onMouseLeave(){return a(!1)},style:{cursor:e.onClick?"pointer":void 0,height:"".concat(c,"px")}},o().createElement(l.Transition,{duration:800,visible:n},o().createElement(l.Dimmer.Inner,{active:n},o().createElement(l.Header,{content:e.item.title,inverted:!0,subheader:e.item.subtitle}),e.item.extra&&o().createElement("div",{className:"extraContainer"},e.item.extra))),o().createElement(l.Image,{alt:e.item.alt,className:"image",src:e.item.image}),e.renderContent&&e.renderContent(e.item))},_l=function _l(e){return o().createElement("div",{className:"masonry-grid"},o().createElement(l.Loader,{active:e.loading}),o().createElement("div",null,o().createElement(Fl,{columns:e.columns,gap:e.gap},i().map(e.items,(function(t,n){return o().createElement(zl,{key:n,item:t,onClick:e.onClick,renderContent:e.renderContent})}))),e.pages>1&&e.onPageChange&&o().createElement(l.Segment,{basic:!0,textAlign:"center"},o().createElement(l.Pagination,{activePage:e.page,firstItem:null,lastItem:null,onPageChange:function onPageChange(t,n){var r=n.activePage;return e.onPageChange&&e.onPageChange(r)},totalPages:e.pages,size:"small"}))),!e.loading&&!(e.items&&e.items.length)&&e.renderEmpty&&e.renderEmpty())},Ul=function Ul(e){return o().createElement(l.Button,{className:"play-button",color:"black",icon:"play",onClick:function onClick(t){e.onClick&&(t.stopPropagation(),e.onClick())},size:e.size,style:e.style})};Ul.defaultProps={onClick:void 0,size:"massive",style:void 0};var Hl=Ul,Gl=function Gl(){return o().createElement("div",{className:"icon video-player-button"},o().createElement("div",null,o().createElement(Hl,null)))};function Vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&e.options||[]),rc(o)),page:n,pages:a}}))}))}))}},{key:"onSearchChange",value:function value(e,t){var n=t.searchQuery;this.setState({page:1,pages:1,search:n})}},{key:"render",value:function value(){var e=this;return o().createElement(l.Dropdown,{className:this.getClassNames(),clearable:!0,fluid:this.props.fluid,loading:this.state.loading,multiple:this.props.multiple,onBlur:this.onReset.bind(this),onClose:this.onReset.bind(this),onChange:this.onOptionSelection.bind(this),onOpen:this.onSearch.bind(this),onSearchChange:this.onSearchChange.bind(this),options:this.getOptions(),placeholder:this.props.placeholder,ref:this.dropdown,scrolling:!0,search:function search(){return e.getSearchOptions()},searchInput:{"aria-label":"Search",className:"remote-dropdown-search-input",onKeyDown:y.Timer.clearSearchTimer.bind(this),onKeyUp:y.Timer.setSearchTimer.bind(this,this.onSearch.bind(this))},searchQuery:this.state.search,selectOnBlur:!1,selection:!0,value:this.props.value})}},{key:"renderAddOption",value:function value(){return o().createElement("div",{className:"extra-option"},o().createElement(l.Icon,{name:"plus circle"}),"".concat(S.t("RemoteDropdown.labels.add")," ").concat(this.state.search))}},{key:"renderLoadMoreOption",value:function value(){return o().createElement("div",{className:"extra-option"},o().createElement(l.Icon,{name:"refresh"}),S.t("RemoteDropdown.labels.loadMore"))}}])&&function ac(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,fc),s=a(c),u=s.query,f=s.refine,p=s.clear,d=s.isSearchStalled,m=(2,function(e){if(Array.isArray(e))return e}(t=(0,r.useState)(u))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(t)||function(e,t){if(e){if("string"==typeof e)return dc(e,2);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)?dc(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=m[0],b=m[1],v=(0,r.useRef)(),g=(0,r.useCallback)((function(){b(""),p();var e=v.current;e&&e.focus()}),[p]),E=(0,r.useCallback)((function(){return f(h)}),[f,h]);return o().createElement(l.Input,pc({},c,{"aria-label":"Search",icon:o().createElement(l.Icon,{link:!i().isEmpty(u),name:i().isEmpty(u)?"search":"times",onClick:g}),input:{"aria-label":"search"},loading:d,onChange:function onChange(e,t){var n=t.value;return b(n)},onKeyDown:function onKeyDown(){return y.Timer.clearSearchTimer()},onKeyUp:function onKeyUp(){return y.Timer.setSearchTimer(E)},ref:v,type:"text",value:h}))},hc=["usePagination"],yc=function yc(e){var t=e.usePagination,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,hc),a=t(n),i=a.currentRefinement,c=a.nbPages,s=a.refine,u=(0,r.useCallback)((function(e,t){var n=t.activePage;return s(n-1)}),[s]);return(0,r.useEffect)((function(){n.scrollToTop&&window.scroll({top:0,behavior:"smooth"})}),[i,n.scrollToTop]),0===c?null:o().createElement(l.Pagination,{activePage:i+1,onPageChange:u,totalPages:c})};yc.defaultProps={scrollToTop:!1};var bc=yc,vc=["useHits"],gc=function gc(e){var t=e.useHits,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,vc),r=t(n).hits,a=n.as,i=n.asProps,l=n.link,c=n.renderDescription,s=n.renderEmptyList,u=n.renderExtra,f=n.renderHeader,p=n.renderImage,d=n.renderMeta;return o().createElement(Ci,{as:a,asProps:i,hideToggle:!0,items:r,link:l,renderDescription:c,renderEmptyList:s,renderExtra:u,renderHeader:f,renderImage:p,renderMeta:d})};gc.defaultProps={as:void 0,asProps:void 0,link:void 0,renderDescription:void 0,renderEmptyList:void 0,renderExtra:void 0,renderHeader:void 0,renderImage:void 0,renderMeta:void 0};var Ec=gc,wc=function wc(e){var t=e.useHitsPerPage,n=e.options,r=t({items:i().map(n,(function(e,t){return{label:e,value:e,default:0===t}}))}),a=r.items,l=r.refine,c=i().findWhere(a,{isRefined:!0}).value;return o().createElement(U,{basic:!0,icon:"list",onChange:function onChange(e,t){return l(t.value)},options:i().map(a,(function(e){return{key:e.value,value:e.value,text:e.label}})),text:S.t("SearchResultsPerPage.labels.show",{value:c}),value:c})},Oc=["useSortBy"],Sc=function Sc(e){var t=(0,e.useSortBy)(function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Oc)),n=t.currentRefinement,a=t.options,l=t.refine,c=i().findWhere(a,{value:n})||i().first(a),s=c.label,u=c.value,f=(0,r.useMemo)((function(){return u&&u.endsWith("desc")?"sort alphabet down":"sort alphabet up"}),[u]);return o().createElement(U,{basic:!0,icon:f,onChange:function onChange(e,t){return l(t.value)},options:i().map(a,(function(e){return{key:e.value,value:e.value,text:e.description||e.label}})),text:s,value:u})},Cc=["useStats"],kc=function kc(e){var t=(0,e.useStats)(function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Cc)),n=t.nbHits,r=(t.processingTimeMS/1e3).toFixed(2);return o().createElement("div",null,S.t("SearchStats.labels.results",{count:n,seconds:r}))},jc=function jc(e){return e.visible?o().createElement("div",{className:"section"},e.header&&o().createElement(l.Header,{content:e.header}),e.children,o().createElement(l.Divider,{hidden:!e.divided})):null};jc.defaultProps={divided:!0,header:void 0,visible:!0};var Pc=jc,Ic=void 0;function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=h?a(!0):d((function(t){return[].concat(function(e){if(Array.isArray(e))return Tc(e)}(n=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||xc(n)||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.")}(),[e]);var n})):d([e])}),[y,e.multiple]),v=(0,r.useCallback)((function(e){s===e?(u(null),b(e)):u(e)}),[s,b]),g=(0,r.useCallback)((function(t){return e.modal&&e.modal.onSave?e.modal.onSave(t).then((function(e){return b(e)})):Promise.resolve()}),[b,e.modal]);return o().createElement(ee.Consumer,null,(function(t){return o().createElement(l.Modal,{as:l.Form,centered:e.centered,className:"selectize",mountNode:t,noValidate:!0,open:!0,size:"small"},o().createElement(l.Modal.Header,{content:e.title}),o().createElement(l.Modal.Content,null,o().createElement(l.Message,{content:S.t("Selectize.messages.maxSelected.content"),error:!0,header:S.t("Selectize.messages.maxSelected.header"),onDismiss:function onDismiss(){return a(!1)},visible:n}),o().createElement(Mc,Ac({},e,{actions:[],isSelected:y,onDelete:function onDelete(){return Promise.resolve()},onDeleteAll:function onDeleteAll(){return Promise.resolve()},onItemSelection:v,onSave:g,onSelect:b,selectedItem:s,selectedItems:p}))),o().createElement(l.Modal.Actions,null,o().createElement(l.Button,{onClick:e.onSave.bind(Ic,p),primary:!0,size:"medium",type:"submit"},S.t("Common.buttons.save")),o().createElement(l.Button,{basic:!0,onClick:e.onClose.bind(Ic),size:"medium",type:"button"},S.t("Common.buttons.cancel"))))}))};Rc.defaultProps={centered:!1,modal:void 0,multiple:!0,searchable:!0,selectedItems:[]};var Nc=Rc;function Lc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fc(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)?Fc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ns&&(t=1),a(t)}),[n,s]);return(0,r.useEffect)((function(){e.perPage&&e.selectedItems&&u(Math.ceil(e.selectedItems.length/e.perPage))}),[e.perPage,e.selectedItems]),(0,r.useEffect)((function(){(!m||!m.length)&&e.selectedItems&&e.selectedItems.length&&n>1&&a(n-1)}),[m,n,e.selectedItems]),i().isEmpty(m)?null:o().createElement(l.Segment,{className:"selectize-image-header"},o().createElement(l.Transition,{visible:!p},o().createElement("div",null,o().createElement("div",{className:"container"},o().createElement(l.Button,{basic:!0,circular:!0,disabled:s<=1,icon:"arrow left",onClick:y.bind(undefined,-1)}),o().createElement(l.Card.Group,{itemsPerRow:e.perPage},i().map(m,(function(t){return o().createElement(zc,{description:e.renderDescription&&e.renderDescription(t),extra:e.renderExtra&&e.renderExtra(t),header:e.renderHeader&&e.renderHeader(t),image:e.renderImage&&e.renderImage(t),meta:e.renderMeta&&e.renderMeta(t),key:t.id,onClick:function onClick(){return e.selectedItem===t?e.onItemClick(null):e.onItemClick(t)},onDelete:function onDelete(){return e.onItemClick(t)},selected:t===e.selectedItem})}))),o().createElement(l.Button,{basic:!0,circular:!0,disabled:s<=1,icon:"arrow right",onClick:y.bind(undefined,1)})))),o().createElement("div",{className:"bottom-container"},o().createElement("div",null),o().createElement("div",null,h),o().createElement("div",null,e.collapsable&&o().createElement(l.Button,{as:"a",basic:!0,circular:!0,className:"link",compact:!0,content:p?S.t("Common.buttons.show"):S.t("Common.buttons.hide"),onClick:function onClick(){return d((function(e){return!e}))}}))))};_c.defaultProps={collapsable:!0,onItemClick:function onItemClick(){},perPage:5,renderExtra:void 0};var Uc=_c;function Hc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Gc(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)?Gc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&i().map(d,(function(e){return o().createElement(l.Menu.Item,{active:e.key===a,disabled:t.loading||t.saving,key:e.key,name:e.props.name,onClick:function onClick(){return b(e)}})})),o().createElement(l.Menu.Menu,{position:"right"},o().createElement(l.Menu.Item,{className:"button-container"},t.editable&&o().createElement(l.Button,{content:S.t("Common.buttons.save"),disabled:t.loading||t.saving,onClick:t.onSave,primary:!0}),o().createElement(l.Button,{basic:!0,content:S.t("Common.buttons.cancel"),disabled:t.loading||t.saving,onClick:t.onCancel}))));return t.stickyMenu?o().createElement(l.Sticky,{context:p,offset:20},e):e}));return(0,r.useEffect)((function(){var e;(e=t.defaultTab?{key:t.defaultTab}:i().first(d))&&b(e),t.saved&&f(!0)}),[]),o().createElement(l.Grid,{className:h},o().createElement(l.Grid.Row,null,o().createElement(l.Grid.Column,null,v())),o().createElement(l.Grid.Row,null,o().createElement(l.Grid.Column,null,o().createElement(l.Ref,{innerRef:p},o().createElement("div",null,o().createElement(l.Form,{error:!i().isEmpty(t.errors),loading:t.loading||t.saving,noValidate:!0},o().createElement(l.Message,{error:!0,header:S.t("Common.errors.save"),list:t.errors}),m&&m.props.children),u&&o().createElement(j,{onDismiss:function onDismiss(){return f(!1)},type:j.MessageTypes.positive},o().createElement(l.Message.Header,{content:S.t("Common.messages.save.header")}),o().createElement(l.Message.Content,{content:S.t("Common.messages.save.content")})))))))};Vc.defaultProps={editable:!0,menuProps:{pointing:!0,secondary:!0}};var qc=function qc(e){return e.children};qc.displayName="Tab";var $c=Object.assign(Vc,{Tab:qc});function Kc(e){return Kc="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)},Kc(e)}function Qc(){return Qc=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=a)&&Object.keys(r.O).every((function(e){return r.O[e](n[c])}))?n.splice(c--,1):(l=!1,a0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[n,o,a]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={179:0,44:0};r.O.j=function(t){return 0===e[t]};var t=function t(_t2,n){var o,a,_n2=_slicedToArray(n,3),i=_n2[0],l=_n2[1],c=_n2[2],s=0;if(i.some((function(t){return 0!==e[t]}))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);if(c)var u=c(r)}for(_t2&&_t2(n);s{},"?a1ca":()=>{},"?8821":()=>{},"?23a8":()=>{},"?553e":()=>{},"?55b5":()=>{}}]); \ No newline at end of file diff --git a/docs/5200.108b42ff.iframe.bundle.js.LICENSE.txt b/docs/5200.670207b1.iframe.bundle.js.LICENSE.txt similarity index 100% rename from docs/5200.108b42ff.iframe.bundle.js.LICENSE.txt rename to docs/5200.670207b1.iframe.bundle.js.LICENSE.txt diff --git a/docs/iframe.html b/docs/iframe.html index 457ee4f0..102e285d 100644 --- a/docs/iframe.html +++ b/docs/iframe.html @@ -348,8 +348,8 @@ window['DOCS_OPTIONS'] = {"defaultName":"Docs","autodocs":true}; \ No newline at end of file + import './main.8fbc3465.iframe.bundle.js'; \ No newline at end of file diff --git a/docs/main.8fbc3465.iframe.bundle.js b/docs/main.8fbc3465.iframe.bundle.js new file mode 100644 index 00000000..5bf15995 --- /dev/null +++ b/docs/main.8fbc3465.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunk_performant_software_storybook=self.webpackChunk_performant_software_storybook||[]).push([[179],{"../semantic-ui/src/components/AssociatedDropdown.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>src_components_AssociatedDropdown});var build=__webpack_require__("../shared/build/index.js"),react=__webpack_require__("../../node_modules/react/index.js"),Dropdown=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/modules/Dropdown/Dropdown.js"),Button=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),Message=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/collections/Message/Message.js"),index_all=__webpack_require__("../../node_modules/underscore/modules/index-all.js"),EditModal=__webpack_require__("../semantic-ui/src/components/EditModal.js"),i18n=__webpack_require__("../semantic-ui/src/i18n/i18n.js"),Toaster=__webpack_require__("../semantic-ui/src/components/Toaster.js"),injectStylesIntoStyleTag=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),AssociatedDropdown=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].use[1]!../semantic-ui/src/components/AssociatedDropdown.css"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(AssociatedDropdown.Z,options);AssociatedDropdown.Z&&AssociatedDropdown.Z.locals&&AssociatedDropdown.Z.locals;var jsx_runtime=__webpack_require__("../../node_modules/react/jsx-runtime.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _defineProperties(target,props){for(var i=0;i,\n props: any,\n onSave: (item: any) => Promise,\n state: any\n}",signature:{properties:[{key:"component",value:{name:"Component",elements:[{name:"signature",type:"object",raw:"{}",signature:{properties:[]}}],raw:"Component<{}>",required:!0}},{key:"props",value:{name:"any",required:!0}},{key:"onSave",value:{name:"signature",type:"function",raw:"(item: any) => Promise",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}},required:!0}},{key:"state",value:{name:"any",required:!0}}]}},description:"",defaultValue:{value:"null",computed:!1}},onSearch:{required:!0,flowType:{name:"signature",type:"function",raw:"(search: string) => Promise",signature:{arguments:[{name:"search",type:{name:"string"}}],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}}},description:""},onSelection:{required:!0,flowType:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}}},description:""},placeholder:{required:!1,flowType:{name:"string"},description:"",defaultValue:{value:"null",computed:!1}},renderOption:{required:!0,flowType:{name:"signature",type:"function",raw:"(option: any) => Option",signature:{arguments:[{name:"option",type:{name:"any"}}],return:{name:"signature",type:"object",raw:"{\n key: number | string,\n value: number | string,\n text: string\n}",signature:{properties:[{key:"key",value:{name:"union",raw:"number | string",elements:[{name:"number"},{name:"string"}],required:!0}},{key:"value",value:{name:"union",raw:"number | string",elements:[{name:"number"},{name:"string"}],required:!0}},{key:"text",value:{name:"string",required:!0}}]}}}},description:""},required:{required:!1,flowType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},searchQuery:{required:!0,flowType:{name:"string"},description:""},value:{required:!0,flowType:{name:"number",nullable:!0},description:""},upward:{required:!1,flowType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}}}};const src_components_AssociatedDropdown=AssociatedDropdown_AssociatedDropdown},"../semantic-ui/src/components/DataTable.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>src_components_DataTable});var build=__webpack_require__("../shared/build/index.js"),react=__webpack_require__("../../node_modules/react/index.js"),Table=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/collections/Table/Table.js"),Button=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),Popup=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/modules/Popup/Popup.js"),Ref=__webpack_require__("../../node_modules/@fluentui/react-component-ref/dist/es/Ref.js"),Loader=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Loader/Loader.js"),Checkbox=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/modules/Checkbox/Checkbox.js"),index_all=__webpack_require__("../../node_modules/underscore/modules/index-all.js"),i18n=__webpack_require__("../semantic-ui/src/i18n/i18n.js"),injectStylesIntoStyleTag=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),ColumnResize=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].use[1]!../semantic-ui/src/components/ColumnResize.css"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(ColumnResize.Z,options);ColumnResize.Z&&ColumnResize.Z.locals&&ColumnResize.Z.locals;var jsx_runtime=__webpack_require__("../../node_modules/react/jsx-runtime.js"),ColumnResize_ColumnResize=function ColumnResize(props){return(0,jsx_runtime.jsx)("div",{className:"column-resize",onMouseDown:props.onMouseDown.bind(undefined),role:"presentation",children:" "})};ColumnResize_ColumnResize.displayName="ColumnResize",ColumnResize_ColumnResize.__docgenInfo={description:"",displayName:"ColumnResize",methods:[],props:{onMouseDown:{required:!0,flowType:{name:"signature",type:"function",raw:"(e: MouseEvent) => void",signature:{arguments:[{name:"e",type:{name:"MouseEvent"}}],return:{name:"void"}}},description:""}}};const src_components_ColumnResize=ColumnResize_ColumnResize;var Dropdown=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/modules/Dropdown/Dropdown.js"),Icon=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Icon/Icon.js"),Draggable=__webpack_require__("../semantic-ui/src/components/Draggable.js"),DataTableColumnSelector=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].use[1]!../semantic-ui/src/components/DataTableColumnSelector.css"),DataTableColumnSelector_options={};DataTableColumnSelector_options.styleTagTransform=styleTagTransform_default(),DataTableColumnSelector_options.setAttributes=setAttributesWithoutAttributes_default(),DataTableColumnSelector_options.insert=insertBySelector_default().bind(null,"head"),DataTableColumnSelector_options.domAPI=styleDomAPI_default(),DataTableColumnSelector_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(DataTableColumnSelector.Z,DataTableColumnSelector_options);DataTableColumnSelector.Z&&DataTableColumnSelector.Z.locals&&DataTableColumnSelector.Z.locals;function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i\ncontaining the
used to resize the column. Since the already provides a 'click' event, this makes for\nan awkward user experience because it will trigger a column sort each time a column is resized.\n\nThis function will capture the onclick prior to it bubbling to the element and prevent it from happening. It\nwill also remove the event listener from the document so that clicks elsewhere in the document are not prevented.\n\n@param e",modifiers:[],params:[{name:"e",optional:!1,type:{name:"Event",alias:"Event"}}],returns:null,description:"Stops progagation of the onclick event. The column resizing seems to trigger the 'click' event on the \ncontaining the
used to resize the column. Since the already provides a 'click' event, this makes for\nan awkward user experience because it will trigger a column sort each time a column is resized.\n\nThis function will capture the onclick prior to it bubbling to the element and prevent it from happening. It\nwill also remove the event listener from the document so that clicks elsewhere in the document are not prevented."},{name:"onSelectAll",docblock:"Selects all of the items in the current collection.\n\n@param allSelected",modifiers:[],params:[{name:"allSelected",optional:!1}],returns:null,description:"Selects all of the items in the current collection."},{name:"renderActionButton",docblock:"Renders the action button for the passed item and action.\n\n@param item\n@param action\n@param index\n\n@returns {*}",modifiers:[],params:[{name:"item",optional:!1,type:{name:"any"}},{name:"index",optional:!1,type:{name:"number"}},{name:"action",optional:!1,type:{name:"signature",type:"object",raw:"{\n accept: (item: any) => boolean,\n color?: string,\n icon?: string,\n name: string,\n onClick?: (item: any) => void,\n popup: {\n content: string,\n title: string\n },\n render?: (item: any, index: number) => Element,\n title?: string\n}",signature:{properties:[{key:"accept",value:{name:"signature",type:"function",raw:"(item: any) => boolean",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"boolean"}},required:!0}},{key:"color",value:{name:"string",required:!1}},{key:"icon",value:{name:"string",required:!1}},{key:"name",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}},required:!1}},{key:"popup",value:{name:"signature",type:"object",raw:"{\n content: string,\n title: string\n}",signature:{properties:[{key:"content",value:{name:"string",required:!0}},{key:"title",value:{name:"string",required:!0}}]},required:!0}},{key:"render",value:{name:"signature",type:"function",raw:"(item: any, index: number) => Element",signature:{arguments:[{name:"item",type:{name:"any"}},{name:"index",type:{name:"number"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}},required:!1}},{key:"title",value:{name:"string",required:!1}}]},alias:"Action"}}],returns:{type:{name:"mixed"}},description:"Renders the action button for the passed item and action."},{name:"renderActions",docblock:"Renders the actions for the passed item.\n\n@param item\n@param index\n\n@returns {null|*}",modifiers:[],params:[{name:"item",optional:!1,type:{name:"any"}},{name:"index",optional:!1,type:{name:"number"}}],returns:{type:{name:"union",elements:[{name:"mixed"}]}},description:"Renders the actions for the passed item."},{name:"renderActionsHeader",docblock:"Renders the action list header.\n\n@returns {null|*}",modifiers:[],params:[],returns:{type:{name:"union",elements:[{name:"mixed"}]}},description:"Renders the action list header."},{name:"renderCell",docblock:"Renders the table cell for the passed item/column.\n\n@param item\n@param column\n\n@returns {*}",modifiers:[],params:[{name:"item",optional:!1,type:{name:"any"}},{name:"column",optional:!1,type:{name:"Column",alias:"Column"}}],returns:{type:{name:"mixed"}},description:"Renders the table cell for the passed item/column."},{name:"renderEmptyTableRow",docblock:"Renders the empty table row.\n\n@returns {null|*}",modifiers:[],params:[],returns:{type:{name:"union",elements:[{name:"mixed"}]}},description:"Renders the empty table row."},{name:"renderHeaderCell",docblock:"Renders the table header cell for the passed column.\n\n@param column\n\n@returns {*}",modifiers:[],params:[{name:"column",optional:!1,type:{name:"Column",alias:"Column"}}],returns:{type:{name:"mixed"}},description:"Renders the table header cell for the passed column."},{name:"renderItem",docblock:"Renders the table row for the passed item.\n\n@param item\n@param index\n\n@returns {*}",modifiers:[],params:[{name:"item",optional:!1,type:{name:"any"}},{name:"index",optional:!1,type:{name:"number"}}],returns:{type:{name:"mixed"}},description:"Renders the table row for the passed item."},{name:"renderLoading",docblock:null,modifiers:[],params:[],returns:null},{name:"renderSelectCheckbox",docblock:"Renders the select checkbox for the passed item.\n\n@returns {null|*}",modifiers:[],params:[{name:"item",optional:!1},{name:"index",optional:!1}],returns:{type:{name:"union",elements:[{name:"mixed"}]}},description:"Renders the select checkbox for the passed item."},{name:"renderSelectHeader",docblock:"Renders the select list header.\n\n@returns {null|*}",modifiers:[],params:[],returns:{type:{name:"union",elements:[{name:"mixed"}]}},description:"Renders the select list header."}],props:{actions:{required:!1,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{\n accept: (item: any) => boolean,\n color?: string,\n icon?: string,\n name: string,\n onClick?: (item: any) => void,\n popup: {\n content: string,\n title: string\n },\n render?: (item: any, index: number) => Element,\n title?: string\n}",signature:{properties:[{key:"accept",value:{name:"signature",type:"function",raw:"(item: any) => boolean",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"boolean"}},required:!0}},{key:"color",value:{name:"string",required:!1}},{key:"icon",value:{name:"string",required:!1}},{key:"name",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}},required:!1}},{key:"popup",value:{name:"signature",type:"object",raw:"{\n content: string,\n title: string\n}",signature:{properties:[{key:"content",value:{name:"string",required:!0}},{key:"title",value:{name:"string",required:!0}}]},required:!0}},{key:"render",value:{name:"signature",type:"function",raw:"(item: any, index: number) => Element",signature:{arguments:[{name:"item",type:{name:"any"}},{name:"index",type:{name:"number"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}},required:!1}},{key:"title",value:{name:"string",required:!1}}]}}],raw:"Array"},description:'A list of actions to render for each element in the row. Actions with the names "edit" and "delete" will be\nhandled specially by the List higher-order component.',defaultValue:{value:"undefined",computed:!0}},addButton:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n basic: boolean,\n color: string,\n content?: string,\n inverted?: boolean,\n location: string,\n onClick?: () => void,\n secondary?: boolean\n}",signature:{properties:[{key:"basic",value:{name:"boolean",required:!0}},{key:"color",value:{name:"string",required:!0}},{key:"content",value:{name:"string",required:!1}},{key:"inverted",value:{name:"boolean",required:!1}},{key:"location",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}},{key:"secondary",value:{name:"boolean",required:!1}}]}},description:"If provided, a button will display in the list header allowing the addition of items to the list. When clicked,\nthe modal prop will be rendered.",defaultValue:{value:"{\n location: 'top',\n color: 'green'\n}",computed:!1}},buttons:{required:!1,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{\n accept?: () => boolean,\n render: (index?: number) => Element\n}",signature:{properties:[{key:"accept",value:{name:"signature",type:"function",raw:"() => boolean",signature:{arguments:[],return:{name:"boolean"}},required:!1}},{key:"render",value:{name:"signature",type:"function",raw:"(index?: number) => Element",signature:{arguments:[{name:"index",type:{name:"number"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}},required:!0}}]}}],raw:"Array"},description:'A list of arbitrary buttons to the display in the list header. All actions will be handled by the consuming\ncomponent.\n
\n
\n\nIn addition to the props listed here for each button, buttons will also accept any of the Semantic UI\nButton props.',defaultValue:{value:"[]",computed:!1}},count:{required:!1,flowType:{name:"number"},description:"The number of total records in the list (not just the current page).",defaultValue:{value:"0",computed:!1}},className:{required:!1,flowType:{name:"string"},description:"CSS class name to append to the div container.",defaultValue:{value:"''",computed:!1}},csvExportButton:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n basic: boolean,\n color: string,\n location: string,\n onClick?: () => void\n}",signature:{properties:[{key:"basic",value:{name:"boolean",required:!0}},{key:"color",value:{name:"string",required:!0}},{key:"location",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}},description:"If provided, a CSV export button will be rendered in the list header.",defaultValue:{value:"undefined",computed:!0}},deleteButton:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n color: string,\n location: string,\n onClick?: () => void\n}",signature:{properties:[{key:"color",value:{name:"string",required:!0}},{key:"location",value:{name:"string",required:!0}},{key:"onClick",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!1}}]}},description:'If provided, a "delete all" button will be rendered in the list header.'},filters:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n active: boolean,\n component: Component<{}>,\n props?: any,\n state?: any,\n onChange: (params: any) => Promise,\n showLabels?: boolean\n}",signature:{properties:[{key:"active",value:{name:"boolean",required:!0}},{key:"component",value:{name:"Component",elements:[{name:"signature",type:"object",raw:"{}",signature:{properties:[]}}],raw:"Component<{}>",required:!0}},{key:"props",value:{name:"any",required:!1}},{key:"state",value:{name:"any",required:!1}},{key:"onChange",value:{name:"signature",type:"function",raw:"(params: any) => Promise",signature:{arguments:[{name:"params",type:{name:"any"}}],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}},required:!0}},{key:"showLabels",value:{name:"boolean",required:!1}}]}},description:"If provided, the passed component will be rendered when the filter button is clicked.\n
\n
\n\nValues passed in the defaults and props properties will be made available in the\npassed component.\n
\n
\n\nThe onChange callback will fire when the filters are modified. This action will also reload the list,\npassing the new filters the onLoad callback.",defaultValue:{value:"undefined",computed:!0}},modal:{required:!1,flowType:{name:"signature",type:"object",raw:"{\n component: ComponentType,\n props: any,\n state: any\n}",signature:{properties:[{key:"component",value:{name:"ComponentType",elements:[{name:"any"}],raw:"ComponentType",required:!0}},{key:"props",value:{name:"any",required:!0}},{key:"state",value:{name:"any",required:!0}}]}},description:'If provided, the passed modal will be rendered when the "add" button is clicked.',defaultValue:{value:"undefined",computed:!0}},onCopy:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => any",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"any"}}},description:'If provided, this callback is fired when the "copy" action is clicked for an item. The consuming component\nshould generate a copy of the selected item and return that value. The return value is then set at the\ncurrent item in the edit modal.',defaultValue:{value:"undefined",computed:!0}},onDelete:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}}},description:'Callback fired when the "delete" action is clicked for an item.'},onDeleteAll:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Promise",signature:{arguments:[],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}}},description:"Callback fired when the delete all button is clicked. This prop expects a Promise as the return value."},onPageChange:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Callback fired when the page is changed via the pagination component.",defaultValue:{value:"() => {}",computed:!1}},onPerPageChange:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Callback fired when the per page value is changed."},onSave:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Promise",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}}},description:"Callback fired when the save button is clicked in the add/edit modal. This function expects a Promise as the\nreturn value."},page:{required:!1,flowType:{name:"number"},description:"Current page number.",defaultValue:{value:"1",computed:!1}},pages:{required:!1,flowType:{name:"number"},description:"Number of pages in the list.",defaultValue:{value:"1",computed:!1}},perPage:{required:!1,flowType:{name:"number"},description:"The number of records to display per page."},perPageOptions:{required:!1,flowType:{name:"Array",elements:[{name:"number"}],raw:"Array"},description:"The options to display in the dropdown for the per page selector."},renderDeleteModal:{required:!1,flowType:{name:"signature",type:"function",raw:"({ selectedItem: any, onCancel: () => void, onConfirm: () => void }) => Element",signature:{arguments:[{name:"",type:{name:"signature",type:"object",raw:"{ selectedItem: any, onCancel: () => void, onConfirm: () => void }",signature:{properties:[{key:"selectedItem",value:{name:"any",required:!0}},{key:"onCancel",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}},{key:"onConfirm",value:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}},required:!0}}]}}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:'Custom render function for the modal that appears on the "delete" action.',defaultValue:{value:"undefined",computed:!0}},renderListHeader:{required:!1,flowType:{name:"signature",type:"function",raw:"() => ?Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element",nullable:!0}}},description:"If provided, this function will return a JSX element that will prepend to the list header."},renderSearch:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"If provided, this function will return a JSX element that will replace the default search input.",defaultValue:{value:"undefined",computed:!0}},selectable:{required:!1,flowType:{name:"boolean"},description:"If set to true, checkboxes will render as the first table column, allowing each row to be selectable.\nThe consuming component is responsible for tracking the selected items."},showRecordCount:{required:!1,flowType:{name:"boolean"},description:"If true, the total number of records will display in the list header.",defaultValue:{value:"false",computed:!1}},columns:{required:!0,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{\n className?: string,\n hidden?: boolean,\n label?: string,\n name: string,\n render?: (item: any) => Element,\n renderHeader?: (item: any) => Element,\n resolve?: (item: any) => any,\n sortable: boolean\n}",signature:{properties:[{key:"className",value:{name:"string",required:!1}},{key:"hidden",value:{name:"boolean",required:!1}},{key:"label",value:{name:"string",required:!1}},{key:"name",value:{name:"string",required:!0}},{key:"render",value:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}},required:!1}},{key:"renderHeader",value:{name:"signature",type:"function",raw:"(item: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}},required:!1}},{key:"resolve",value:{name:"signature",type:"function",raw:"(item: any) => any",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"any"}},required:!1}},{key:"sortable",value:{name:"boolean",required:!0}}]}}],raw:"Array"},description:"An array of columns to display within the Table.\n
\n
\n\nIf only a name attribute is provided, the value for each record will be pulled from the item property\nmatching that name.\n
\n
\n\nIf a resolve callback is provided, the item will be passed to the function and the return value will\ndisplay as the property value.\n
\n
\n\nIf a render callback is provided, the item will be passed to the function and the return JSX\nwill display as the property value."},expandableRows:{required:!1,flowType:{name:"boolean"},description:"If true, the rows of the table can be expanded and collapsed.",defaultValue:{value:"false",computed:!1}},expandPanel:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any, activePanel: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}},{name:"activePanel",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"Function that returns JSX to render when the row for the passed item is expanded.",defaultValue:{value:"undefined",computed:!0}},isRowSelected:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => boolean",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"boolean"}}},description:"Callback returning true if the row for the passed item is selected."},items:{required:!1,flowType:{name:"Array",elements:[{name:"any"}],raw:"Array",nullable:!0},description:"An array of objects to render as rows in the list.",defaultValue:{value:"[]",computed:!1}},loading:{required:!1,flowType:{name:"boolean"},description:"Set to true if the list is currently loading data. If true, a loading indicator will display.",defaultValue:{value:"false",computed:!1}},onClearSelected:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Callback to clear the selected set of records."},onColumnClick:{required:!1,flowType:{name:"signature",type:"function",raw:"(column: Column) => void",signature:{arguments:[{name:"column",type:{name:"Column"}}],return:{name:"void"}}},description:"Callback fired when the passed column is clicked.",defaultValue:{value:"() => {}",computed:!1}},onRowSelect:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any)=> void",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"void"}}},description:"Callback fired when the passed item is selected. This callback is only fired if the selectable\nprop is passed as true."},onSelectAll:{required:!1,flowType:{name:"signature",type:"function",raw:"(items: Array) => void",signature:{arguments:[{name:"items",type:{name:"Array",elements:[{name:"any"}],raw:"Array"}}],return:{name:"void"}}},description:"Callback fired when the select all checkbox in the table header is clicked."},renderEmptyMessage:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"A function that returns a JSX element to render when the list is empty."},renderEmptyRow:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"A function that returns a custom JSX element to render when the list is empty. This element will replace the\nentire single row of the table.",defaultValue:{value:"undefined",computed:!0}},renderItem:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any, index: number, children?: any) => Element",signature:{arguments:[{name:"item",type:{name:"any"}},{name:"index",type:{name:"number"}},{name:"children",type:{name:"any"}}],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:"A function that returns a custom JSX element to render for the passed item. This element will replace the entire\ntable row.",defaultValue:{value:"undefined",computed:!0}},sortColumn:{required:!1,flowType:{name:"string"},description:"Name of the current sort column.",defaultValue:{value:"undefined",computed:!0}},sortDirection:{required:!1,flowType:{name:"string"},description:"Current sort direction (ascending or descending).",defaultValue:{value:"undefined",computed:!0}},tableProps:{required:!1,flowType:{name:"any"},description:'Customization props for the\nTable\ncomponent.'}}};const src_components_DataTable=src_components_DataTableColumnSelector((0,List.Z)(DataTable_DataTable))},"../semantic-ui/src/components/DateInput.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>src_components_DateInput});__webpack_require__("../../node_modules/react/index.js");var Input=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Input/Input.js"),Icon=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Icon/Icon.js"),injectStylesIntoStyleTag=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),DateInput=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].use[1]!../semantic-ui/src/components/DateInput.css"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(DateInput.Z,options);DateInput.Z&&DateInput.Z.locals&&DateInput.Z.locals;var jsx_runtime=__webpack_require__("../../node_modules/react/jsx-runtime.js"),DateInput_DateInput=function DateInput(props){return(0,jsx_runtime.jsxs)(Input.Z,{"aria-label":"Date Input",className:"date-input icon",icon:"calendar alternate outline",iconPosition:"left",children:[(0,jsx_runtime.jsx)(Icon.Z,{className:"left icon",name:"calendar alternate outline"}),(0,jsx_runtime.jsx)("input",{onClick:props.onClick.bind(undefined),readOnly:!0,type:"text",value:function formatDate(){var date="";return props.display?date=props.display:props.value&&(date=props.value.toLocaleDateString(props.locale,props.formatOptions)),date}()}),(0,jsx_runtime.jsx)(Icon.Z,{className:"right icon",name:"times",onClick:function onClick(e){e.stopPropagation(),e.preventDefault(),props.onChange(null)}})]})};DateInput_DateInput.displayName="DateInput",DateInput_DateInput.__docgenInfo={description:"This input component is used to display and clear a date. It must be used with an additional\ncomponent, such as `DatePicker`, to actually input the date.",displayName:"DateInput",methods:[],props:{display:{required:!1,flowType:{name:"string"},description:"Display date, which will override the default date formatting."},formatOptions:{required:!1,flowType:{name:"DateTimeFormatOptions"},description:"An object containing date-time formatting options used by JavaScript Date objects."},locale:{required:!1,flowType:{name:"string"},description:"Locale identifier (Unicode CLDR) for formatting dates and times."},onChange:{required:!0,flowType:{name:"signature",type:"function",raw:"(date: ?Date) => void",signature:{arguments:[{name:"date",type:{name:"Date",nullable:!0}}],return:{name:"void"}}},description:"Callback fired when the date in the input field is changed."},onClick:{required:!0,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Callback fired when the date input field is clicked, typically opening the actual method of\ninput (such as the DatePicker component)."},value:{required:!1,flowType:{name:"Date",nullable:!0},description:"Current value of the date input form field, as a JavaScript Date object, or null."}}};const src_components_DateInput=DateInput_DateInput},"../semantic-ui/src/components/Draggable.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/react/index.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../node_modules/@fluentui/react-component-ref/dist/es/Ref.js"),react_dnd__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../node_modules/react-dnd/dist/esm/hooks/useDrop.js"),react_dnd__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../node_modules/react-dnd/dist/esm/hooks/useDrag.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../node_modules/react/jsx-runtime.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);ihoverIndex&&hoverClient>hoverMiddle||(props.onDrag(dragIndex,hoverIndex),i.index=hoverIndex)}}}}),2)[1],_useDrag2=_slicedToArray((0,react_dnd__WEBPACK_IMPORTED_MODULE_3__.c)({item:{type:"any",id,index},begin:function begin(){return props.onDragStart&&props.onDragStart()},end:function end(){return props.onDragEnd&&props.onDragEnd()},collect:function collect(monitor){return{isDragging:monitor.isDragging()}}}),2),isDragging=_useDrag2[0].isDragging;return(0,_useDrag2[1])(drop(ref)),ref&&ref.current&&(ref.current.style.opacity=isDragging?0:1),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(semantic_ui_react__WEBPACK_IMPORTED_MODULE_4__.R,{innerRef:ref,children:props.children})};Draggable.displayName="Draggable",Draggable.__docgenInfo={description:"",displayName:"Draggable",methods:[],props:{children:{required:!0,flowType:{name:"Element",elements:[{name:"any"}],raw:"Element"},description:""},direction:{required:!0,flowType:{name:"union",raw:"'horizontal' | 'vertical'",elements:[{name:"literal",value:"'horizontal'"},{name:"literal",value:"'vertical'"}]},description:""},id:{required:!0,flowType:{name:"any"},description:""},index:{required:!0,flowType:{name:"number"},description:""},onDrag:{required:!0,flowType:{name:"signature",type:"function",raw:"(dragIndex: number, hoverIndex: number) => void",signature:{arguments:[{name:"dragIndex",type:{name:"number"}},{name:"hoverIndex",type:{name:"number"}}],return:{name:"void"}}},description:""},onDragEnd:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onDragStart:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const __WEBPACK_DEFAULT_EXPORT__=Draggable},"../semantic-ui/src/components/DropdownButton.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>src_components_DropdownButton});var react=__webpack_require__("../../node_modules/react/index.js"),Button=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),Dropdown=__webpack_require__("../../node_modules/semantic-ui-react/dist/es/modules/Dropdown/Dropdown.js"),injectStylesIntoStyleTag=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),DropdownButton=__webpack_require__("../../node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].use[1]!../semantic-ui/src/components/DropdownButton.css"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(DropdownButton.Z,options);DropdownButton.Z&&DropdownButton.Z.locals&&DropdownButton.Z.locals;var jsx_runtime=__webpack_require__("../../node_modules/react/jsx-runtime.js"),DropdownButton_DropdownButton=function DropdownButton(props){var dropdownRef=(0,react.useRef)();return(0,jsx_runtime.jsxs)(Button.Z.Group,{basic:props.basic,className:"dropdown-button",color:props.color,children:[(0,jsx_runtime.jsx)(Button.Z,{"aria-label":"Select",content:props.text,disabled:props.disabled,icon:props.icon,onClick:function onClick(e){return dropdownRef.current&&dropdownRef.current.handleClick(e)}}),(0,jsx_runtime.jsx)(Dropdown.Z,{"aria-label":"Select",className:"button icon",direction:props.direction,disabled:props.disabled,floating:!0,onChange:props.onChange.bind(undefined),options:props.options,ref:dropdownRef,scrolling:props.scrolling,selectOnBlur:props.selectOnBlur,trigger:(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{}),value:props.value})]})};DropdownButton_DropdownButton.displayName="DropdownButton",DropdownButton_DropdownButton.defaultProps={color:void 0,icon:void 0,selectOnBlur:!1},DropdownButton_DropdownButton.__docgenInfo={description:"",displayName:"DropdownButton",methods:[],props:{basic:{required:!1,flowType:{name:"boolean"},description:""},color:{required:!1,flowType:{name:"string"},description:"",defaultValue:{value:"undefined",computed:!0}},direction:{required:!1,flowType:{name:"string"},description:""},disabled:{required:!1,flowType:{name:"boolean"},description:""},icon:{required:!1,flowType:{name:"string"},description:"",defaultValue:{value:"undefined",computed:!0}},options:{required:!0,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{\n key: any,\n value: any,\n text: string\n}",signature:{properties:[{key:"key",value:{name:"any",required:!0}},{key:"value",value:{name:"any",required:!0}},{key:"text",value:{name:"string",required:!0}}]}}],raw:"Array