{"version":3,"sources":["webpack://connections/./node_modules/classnames/index.js","webpack://connections/./node_modules/js-cookie/src/js.cookie.js","webpack://connections/webpack/bootstrap","webpack://connections/webpack/runtime/compat get default export","webpack://connections/webpack/runtime/define property getters","webpack://connections/webpack/runtime/hasOwnProperty shorthand","webpack://connections/external \"lodash\"","webpack://connections/./assets/js/RecentlyViewedCookie.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/inherits.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack://connections/./includes/blocks/components/filter-tag-selector/index.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack://connections/./includes/blocks/utils/terms.js","webpack://connections/./includes/blocks/components/hierarchical-term-selector/index.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","webpack://connections/./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://connections/./includes/blocks/components/page-select/index.js","webpack://connections/./includes/blocks/components/range-control/index.js","webpack://connections/./includes/blocks/components/entry/name.js","webpack://connections/./includes/blocks/components/entry/title.js","webpack://connections/./includes/blocks/components/entry/image.js","webpack://connections/./includes/blocks/components/entry/phone-numbers.js","webpack://connections/./includes/blocks/components/entry/email.js","webpack://connections/./includes/blocks/components/entry/social-networks.js","webpack://connections/./includes/blocks/components/entry/excerpt.js","webpack://connections/./includes/blocks/components/entry/social-network-icon.js","webpack://connections/./assets/js/RecentlyViewed.js"],"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","key","call","join","module","exports","default","factory","OldCookies","window","Cookies","api","noConflict","extend","result","attributes","decode","s","replace","decodeURIComponent","init","converter","set","value","document","path","defaults","expires","Date","toUTCString","JSON","stringify","test","e","write","encodeURIComponent","String","escape","stringifiedAttributes","attributeName","split","cookie","get","json","jar","cookies","parts","slice","charAt","name","read","parse","getJSON","remove","withConverter","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","obj","prop","lodash","cnViewing","recentlyViewed","getRecentlyViewed","findIndex","x","entryID","unshift","take","configurable","writable","instance","Constructor","TypeError","_defineProperties","target","props","descriptor","protoProps","staticProps","self","ReferenceError","_setPrototypeOf","p","setPrototypeOf","__proto__","subClass","superClass","create","constructor","_typeof","Symbol","iterator","getPrototypeOf","wp","element","Component","components","FormTokenField","apiFetch","url","addQueryArgs","_arrayLikeToArray","arr","len","arr2","_toConsumableArray","iter","from","minLen","groupBy","buildTermsTree","flatTerms","termsByParent","fillWithChildren","terms","map","term","children","id","i18n","__","_x","_n","sprintf","CheckboxControl","withSpokenMessages","Spinner","compose","withInstanceId","DEFAULT_QUERY","per_page","orderby","order","_fields","HierarchicalTermSelector","findTerm","bind","onChange","setFilterValue","sortBySelected","state","loading","availableTermsTree","availableTerms","filterValue","filteredTermsTree","termId","this","indexOf","without","parent","find","parseInt","toLowerCase","fetchTerms","invoke","fetchRequest","taxonomy","then","setState","xhr","statusText","termsTree","treeHasSelection","termTree","filter","child","sort","termA","termB","termASelected","termBSelected","event","getFilterMatcher","resultCount","getResultCount","count","resultsFoundMessage","debouncedSpeak","matchTermsForFilter","originalTerm","renderedTerms","className","checked","label","unescapeString","renderTerms","instanceId","filterInputId","filterLabel","startCase","groupLabel","showFilter","htmlFor","type","tabIndex","role","aria-label","_extends","assign","source","_objectWithoutProperties","excluded","sourceKeys","keys","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","data","withSelect","select","TreeSelect","ownProps","getEntityRecords","getPostType","getCurrentPostId","postType","postTypeMeta","postId","options","exclude","parent_exclude","noOptionLabel","isHierarchical","pageItems","pagesTree","item","title","raw","tree","selectedId","isFinite","BaseControl","Button","Dashicon","beforeIcon","afterIcon","help","allowReset","initialPosition","resetValue","onChangeValue","newValue","Number","initialSliderValue","classnames","icon","aria-describedby","onClick","disabled","decodeEntities","Fragment","htmlEntities","asPermalink","entry","Tag","tag","fn","rendered","href","link","isUndefined","job_title","_nx","size","usePlaceholder","placeholderWidth","placeholderHeight","has","images","height","width","style","display","maxWidth","srcSet","alt","toUpperCase","paddingBottom","render","RecentlyViewed","prepareQueryArgs","fetchAPI","fetchEntries","queryResults","isLoading","args","query","zc","limit","context","results","entries","items","URL","querySelectorAll","forEach","getAttribute"],"mappings":";sCAAA,OAOC,WACA,aAEA,IAAIA,EAAS,GAAGC,eAEhB,SAASC,IAGR,IAFA,IAAIC,EAAU,GAELC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIG,EAAMF,UAAUD,GACpB,GAAKG,EAAL,CAEA,IAAIC,SAAiBD,EAErB,GAAgB,WAAZC,GAAoC,WAAZA,EAC3BL,EAAQM,KAAKF,QACP,GAAIG,MAAMC,QAAQJ,IACxB,GAAIA,EAAID,OAAQ,CACf,IAAIM,EAAQV,EAAWW,MAAM,KAAMN,GAC/BK,GACHT,EAAQM,KAAKG,SAGT,GAAgB,WAAZJ,EACV,G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2R,MAAQxC,EAAMM,QAE5CjJ,KAAK,SAAE2I,EAAOvR,GAGd,OACC,+BAAIa,IAAMb,GACT,gCAAK+M,UAAU,4BACd,yBAAC,GAAD,CAAYwE,MAAQA,EAAQ5D,KAAO,iBAAmB4D,EAAM5D,KAAO,OAAS,QAAUsE,KAAK,SAASC,gBAAgB,KAErH,gCAAKnF,UAAU,8BACd,yBAAC,GAAD,CAAWwE,MAAQA,EAAQE,IAAI,OAAOH,aAAc,IACpD,yBAAC,GAAD,CAAYC,MAAQA,SAMzB,OAAS,mCAAKuC,GAjCd,OACC,yBAAC,GAAD,KACC,oCACGlJ,KAAKP,MAAMiJ,UACZ,kCAAKrK,GAAI,aAAc,eAAvB,IAAyC,yBAAC,GAAD,OACzC,kCAAKA,GAAI,wCAAyC,sB,GArG5BzB,IAuINpF,SAAS4R,iBAAkB,uBAEnCC,SAAS,SAAAlO,GAEvB,IAAI2N,EAAQ3N,EAASmO,aAAc,cAC/B7E,EAAUtJ,EAASmO,aAAc,gBAErClB,GAAQ,yBAACC,GAAD,CAAgBS,MAAOA,EAAOrE,QAASA,IAAYtJ,M","file":"js/bundle.js","sourcesContent":["/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/*!\n * JavaScript Cookie v2.2.1\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */\n;(function (factory) {\n\tvar registeredInModuleLoader;\n\tif (typeof define === 'function' && define.amd) {\n\t\tdefine(factory);\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (typeof exports === 'object') {\n\t\tmodule.exports = factory();\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (!registeredInModuleLoader) {\n\t\tvar OldCookies = window.Cookies;\n\t\tvar api = window.Cookies = factory();\n\t\tapi.noConflict = function () {\n\t\t\twindow.Cookies = OldCookies;\n\t\t\treturn api;\n\t\t};\n\t}\n}(function () {\n\tfunction extend () {\n\t\tvar i = 0;\n\t\tvar result = {};\n\t\tfor (; i < arguments.length; i++) {\n\t\t\tvar attributes = arguments[ i ];\n\t\t\tfor (var key in attributes) {\n\t\t\t\tresult[key] = attributes[key];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tfunction decode (s) {\n\t\treturn s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);\n\t}\n\n\tfunction init (converter) {\n\t\tfunction api() {}\n\n\t\tfunction set (key, value, attributes) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tattributes = extend({\n\t\t\t\tpath: '/'\n\t\t\t}, api.defaults, attributes);\n\n\t\t\tif (typeof attributes.expires === 'number') {\n\t\t\t\tattributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);\n\t\t\t}\n\n\t\t\t// We're using \"expires\" because \"max-age\" is not supported by IE\n\t\t\tattributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n\n\t\t\ttry {\n\t\t\t\tvar result = JSON.stringify(value);\n\t\t\t\tif (/^[\\{\\[]/.test(result)) {\n\t\t\t\t\tvalue = result;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\n\t\t\tvalue = converter.write ?\n\t\t\t\tconverter.write(value, key) :\n\t\t\t\tencodeURIComponent(String(value))\n\t\t\t\t\t.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n\n\t\t\tkey = encodeURIComponent(String(key))\n\t\t\t\t.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)\n\t\t\t\t.replace(/[\\(\\)]/g, escape);\n\n\t\t\tvar stringifiedAttributes = '';\n\t\t\tfor (var attributeName in attributes) {\n\t\t\t\tif (!attributes[attributeName]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstringifiedAttributes += '; ' + attributeName;\n\t\t\t\tif (attributes[attributeName] === true) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Considers RFC 6265 section 5.2:\n\t\t\t\t// ...\n\t\t\t\t// 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n\t\t\t\t// character:\n\t\t\t\t// Consume the characters of the unparsed-attributes up to,\n\t\t\t\t// not including, the first %x3B (\";\") character.\n\t\t\t\t// ...\n\t\t\t\tstringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n\t\t\t}\n\n\t\t\treturn (document.cookie = key + '=' + value + stringifiedAttributes);\n\t\t}\n\n\t\tfunction get (key, json) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar jar = {};\n\t\t\t// To prevent the for loop in the first place assign an empty array\n\t\t\t// in case there are no cookies at all.\n\t\t\tvar cookies = document.cookie ? document.cookie.split('; ') : [];\n\t\t\tvar i = 0;\n\n\t\t\tfor (; i < cookies.length; i++) {\n\t\t\t\tvar parts = cookies[i].split('=');\n\t\t\t\tvar cookie = parts.slice(1).join('=');\n\n\t\t\t\tif (!json && cookie.charAt(0) === '\"') {\n\t\t\t\t\tcookie = cookie.slice(1, -1);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tvar name = decode(parts[0]);\n\t\t\t\t\tcookie = (converter.read || converter)(cookie, name) ||\n\t\t\t\t\t\tdecode(cookie);\n\n\t\t\t\t\tif (json) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcookie = JSON.parse(cookie);\n\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t}\n\n\t\t\t\t\tjar[name] = cookie;\n\n\t\t\t\t\tif (key === name) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\n\t\t\treturn key ? jar[key] : jar;\n\t\t}\n\n\t\tapi.set = set;\n\t\tapi.get = function (key) {\n\t\t\treturn get(key, false /* read as raw */);\n\t\t};\n\t\tapi.getJSON = function (key) {\n\t\t\treturn get(key, true /* read as json */);\n\t\t};\n\t\tapi.remove = function (key, attributes) {\n\t\t\tset(key, '', extend(attributes, {\n\t\t\t\texpires: -1\n\t\t\t}));\n\t\t};\n\n\t\tapi.defaults = {};\n\n\t\tapi.withConverter = init;\n\n\t\treturn api;\n\t}\n\n\treturn init(function () {});\n}));\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var __WEBPACK_NAMESPACE_OBJECT__ = lodash;","/**\r\n * External dependencies\r\n */\r\nimport * as Cookies from \"js-cookie\";\r\nimport { isArray, remove, take } from \"lodash\";\r\n\r\n/**\r\n * @return {[]}\r\n */\r\nconst getRecentlyViewed = () => {\r\n\r\n\tlet recentlyViewed = Cookies.getJSON( 'cnRecentlyViewed' );\r\n\r\n\tif ( !isArray( recentlyViewed ) ) {\r\n\r\n\t\trecentlyViewed = [];\r\n\t}\r\n\r\n\treturn recentlyViewed;\r\n}\r\n\r\n/**\r\n * The `cnViewing` variable is set during the `Connections_Directory/Render/Template/Single_Entry/After` action\r\n * by `wp_add_inline_script()` hooked to the `frontend` handle.\r\n *\r\n * NOTE: The `cnViewing` variable is JSON encoded, it must be decoded before use.\r\n *\r\n * @typedef {{postID: string, entryID: string}} cnViewing\r\n */\r\nif ( 'undefined' !== typeof cnViewing ) {\r\n\r\n\tlet recentlyViewed = getRecentlyViewed();\r\n\r\n\t// If current Entry being viewed already exists, remove it from the array.\r\n\tif ( 0 <= recentlyViewed.findIndex( x => x.entryID === cnViewing.entryID ) ) {\r\n\r\n\t\tremove( recentlyViewed, x => x.entryID === cnViewing.entryID );\r\n\t}\r\n\r\n\t// Insert the currently being viewed Entry to the head of the array.\r\n\trecentlyViewed.unshift( cnViewing );\r\n\r\n\tCookies.set( 'cnRecentlyViewed', take( recentlyViewed, 10 ) );\r\n}\r\n","export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}","import _typeof from \"@babel/runtime/helpers/typeof\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","/**\r\n * External dependencies\r\n */\r\nimport {\r\n\tfind,\r\n\tinvoke,\r\n\tisEmpty,\r\n\tmap,\r\n\tthrottle,\r\n\tunescape as unescapeString,\r\n\tuniqBy,\r\n} from 'lodash';\r\n\r\n/**\r\n * WordPress dependencies\r\n */\r\nconst { Component } = wp.element;\r\nconst { FormTokenField } = wp.components;\r\nconst { apiFetch } = wp;\r\nconst { addQueryArgs } = wp.url;\r\n\r\n/**\r\n * Module constants\r\n */\r\nconst DEFAULT_QUERY = {\r\n\tper_page: -1,\r\n};\r\n\r\nconst MAX_TERMS_SUGGESTIONS = 20;\r\n\r\nconst isSameTermName = ( termA, termB ) => termA.toLowerCase() === termB.toLowerCase();\r\n\r\nclass FilterTagSelector extends Component {\r\n\r\n\tconstructor() {\r\n\r\n\t\tsuper( ...arguments );\r\n\r\n\t\tthis.unescapeTerm = this.unescapeTerm.bind( this );\r\n\t\tthis.unescapeTerms = this.unescapeTerms.bind( this );\r\n\t\tthis.onChange = this.onChange.bind( this );\r\n\t\tthis.searchTerms = throttle( this.searchTerms.bind( this ), 300 );\r\n\r\n\t\tthis.state = {\r\n\t\t\tloading: false,\r\n\t\t\tavailableTerms: [],\r\n\t\t\tselectedTerms: [],\r\n\t\t};\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a term object with name unescaped.\r\n\t * The unescape of the name property is done using lodash unescape function.\r\n\t *\r\n\t * @param {Object} term The term object to unescape.\r\n\t *\r\n\t * @return {Object} Term object with name property unescaped.\r\n\t */\r\n\tunescapeTerm( term ) {\r\n\r\n\t\tconst { renderField } = this.props;\r\n\r\n\t\treturn {\r\n\t\t\t...term,\r\n\t\t\tunescapeName: unescapeString( term[ renderField ] ),\r\n\t\t};\r\n\t};\r\n\r\n\t/**\r\n\t * Returns an array of term objects with names unescaped.\r\n\t * The unescape of each term is performed using the unescapeTerm function.\r\n\t *\r\n\t * @param {Object[]} terms Array of term objects to unescape.\r\n\t *\r\n\t * @return {Object[]} Array of therm objects unescaped.\r\n\t */\r\n\tunescapeTerms( terms ) {\r\n\r\n\t\treturn map( terms, this.unescapeTerm );\r\n\t};\r\n\r\n\tcomponentDidMount() {\r\n\r\n\t\tif ( ! isEmpty( this.props.terms ) ) {\r\n\r\n\t\t\tthis.setState( { loading: false } );\r\n\r\n\t\t\tthis.initRequest = this.fetchTerms( {\r\n\t\t\t\tsearch: this.props.terms.join( ',' ),\r\n\t\t\t\tper_page: -1,\r\n\t\t\t} );\r\n\r\n\t\t\tthis.initRequest.then(\r\n\t\t\t\t() => {\r\n\t\t\t\t\tthis.setState( { loading: false } );\r\n\t\t\t\t},\r\n\t\t\t\t( xhr ) => {\r\n\t\t\t\t\tif ( xhr.statusText === 'abort' ) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.setState( {\r\n\t\t\t\t\t\tloading: false,\r\n\t\t\t\t\t} );\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tcomponentWillUnmount() {\r\n\r\n\t\tinvoke( this.initRequest, [ 'abort' ] );\r\n\t\tinvoke( this.searchRequest, [ 'abort' ] );\r\n\t}\r\n\r\n\tcomponentDidUpdate( prevProps ) {\r\n\r\n\t\tif ( prevProps.terms !== this.props.terms ) {\r\n\r\n\t\t\tthis.updateSelectedTerms( this.props.terms );\r\n\t\t}\r\n\t}\r\n\r\n\tfetchTerms( params = {} ) {\r\n\r\n\t\tconst { getFields, type, renderField } = this.props;\r\n\t\tconst query = { ...DEFAULT_QUERY, ...params, ...{_fields: getFields} };\r\n\t\tconst request = apiFetch( {\r\n\t\t\tpath: addQueryArgs( `/cn-api/v1/autocomplete/${ type }`, query ),\r\n\t\t} );\r\n\r\n\t\trequest.then( this.unescapeTerms ).then( ( terms ) => {\r\n\r\n\t\t\tthis.setState( ( state ) => ( {\r\n\t\t\t\tavailableTerms: state.availableTerms.concat(\r\n\t\t\t\t\tterms.filter( ( term ) => ! find( state.availableTerms, ( availableTerm ) => availableTerm[ renderField ] === term[ renderField ] ) )\r\n\t\t\t\t),\r\n\t\t\t} ) );\r\n\r\n\t\t\tthis.updateSelectedTerms( this.props.terms );\r\n\t\t} );\r\n\r\n\t\treturn request;\r\n\t}\r\n\r\n\tupdateSelectedTerms( terms = [] ) {\r\n\r\n\t\tconst { renderField, returnField } = this.props;\r\n\r\n\t\tconst selectedTerms = terms.reduce( ( result, termId ) => {\r\n\r\n\t\t\t// console.log( termId );\r\n\r\n\t\t\tconst termObject = find( this.state.availableTerms, ( term ) => term[ returnField ] === termId );\r\n\r\n\t\t\tif ( termObject ) {\r\n\r\n\t\t\t\tresult.push( termObject[ renderField ] );\r\n\t\t\t}\r\n\r\n\t\t\treturn result;\r\n\t\t}, [] );\r\n\r\n\t\t// console.log( 'this.state.availableTerms=', this.state.availableTerms );\r\n\t\t// console.log( 'updateSelectedTerms::selectedTerms=', selectedTerms );\r\n\r\n\t\tthis.setState( {\r\n\t\t\tselectedTerms,\r\n\t\t} );\r\n\t}\r\n\r\n\tonChange( termNames ) {\r\n\r\n\t\tconst { onChange, renderField, returnField } = this.props;\r\n\r\n\t\t// console.log( 'onChange::onChange=', termNames );\r\n\r\n\t\tconst renderFieldToReturnField = ( names, availableTerms ) => {\r\n\t\t\treturn names\r\n\t\t\t\t.map( ( termName ) =>\r\n\t\t\t\t\tfind( availableTerms, ( term ) => isSameTermName( term[ renderField ], termName ) )[ returnField ]\r\n\t\t\t\t);\r\n\t\t};\r\n\r\n\t\t// console.log( 'termNames:', termNames );\r\n\r\n\t\tconst uniqueTerms = uniqBy( termNames, ( term ) => term.toLowerCase() );\r\n\r\n\t\tconst addTerm = uniqueTerms.filter( ( termName ) =>\r\n\t\t\tfind( this.state.availableTerms, ( term ) => isSameTermName( term[ renderField ], termName ) )\r\n\t\t);\r\n\r\n\t\t// console.log( 'addTerm:', addTerm );\r\n\r\n\t\tconst selectedTermIDs = renderFieldToReturnField( addTerm, this.state.availableTerms );\r\n\r\n\t\t// console.log( 'selectedTermIDs:', selectedTermIDs );\r\n\r\n\t\tonChange( selectedTermIDs );\r\n\t}\r\n\r\n\tsearchTerms( search = '' ) {\r\n\r\n\t\tinvoke( this.searchRequest, [ 'abort' ] );\r\n\t\tthis.searchRequest = this.fetchTerms( { search } );\r\n\t}\r\n\r\n\trender() {\r\n\r\n\t\tconst {\r\n\t\t\t label,\r\n\t\t\t messages,\r\n\t\t } = this.props;\r\n\r\n\t\tconst { loading, availableTerms, selectedTerms } = this.state;\r\n\t\tconst termNames = availableTerms.map( ( term ) => term.unescapeName );\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
{ __( 'Loading...', 'connections' ) }
{ __( 'No recently viewed directory entries.', 'connections' ) }
\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t