PageSourceSearch

https://www.rbcasting.com/rb/o/frontend-taglib-clay/__liferay__/exports/@clayui$data-provider.js

js rbcasting.com collected 2026-09-24 21:23:06 UTC 21,741 bytes, 2 lines download raw bytes

1import*as e from"../../../frontend-js-react-web/__liferay__/exports/react.js";import*as r from"../../../frontend-taglib-clay/__liferay__/exports/@clayui$icon.js";import*as t from"../../../frontend-taglib-clay/__liferay__/exports/@clayui$shared.js";var n={322:(l,f,s)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.useResource=f.Resource=f.NetworkStatus=f.FetchPolicy=void 0;var y,p,d=s(778),b=s(934),h=function _interopRequireWildcard(l,f){if(!f&&l&&l.__esModule)return l;if(null===l||"object"!==_typeof(l)&&"function"!=typeof l)return{default:l};var s=_getRequireWildcardCache(f);if(s&&s.has(l))return s.get(l);var y={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in l)if("default"!==d&&Object.prototype.hasOwnProperty.call(l,d)){var b=p?Object.getOwnPropertyDescriptor(l,d):null;b&&(b.get||b.set)?Object.defineProperty(y,d,b):y[d]=l[d]}return y.default=l,s&&s.set(l,y),y}(s(421)),v=(function _interopRequireDefault(l){l&&l.__esModule}(s(719)),s(747));function _getRequireWildcardCache(l){if("function"!=typeof WeakMap)return null;var f=new WeakMap,s=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(l){return l?s:f})(l)}function ownKeys(l,f){var s=Object.keys(l);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(l);f&&(y=y.filter((function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable}))),s.push.apply(s,y)}return s}function _objectSpread(l){for(var f=1;f<arguments.length;f++){var s=null!=arguments[f]?arguments[f]:{};f%2?ownKeys(Object(s),!0).forEach((function(f){_defineProperty(l,f,s[f])})):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(s)):ownKeys(Object(s)).forEach((function(f){Object.defineProperty(l,f,Object.getOwnPropertyDescriptor(s,f))}))}return l}function _defineProperty(l,f,s){return f in l?Object.defineProperty(l,f,{value:s,enumerable:!0,configurable:!0,writable:!0}):l[f]=s,l}function _typeof(l){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"==typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(l)}function _toConsumableArray(l){return function _arrayWithoutHoles(l){if(Array.isArray(l))return _arrayLikeToArray(l)}(l)||function _iterableToArray(l){if("undefined"!=typeof Symbol&&null!=l[Symbol.iterator]||null!=l["@@iterator"])return Array.from(l)}(l)||_unsupportedIterableToArray(l)||function _nonIterableSpread(){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 _unsupportedIterableToArray(l,f){if(l){if("string"==typeof l)return _arrayLikeToArray(l,f);var s=Object.prototype.toString.call(l).slice(8,-1);return"Object"===s&&l.constructor&&(s=l.constructor.name),"Map"===s||"Set"===s?Array.from(l):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?_arrayLikeToArray(l,f):void 0}}function _arrayLikeToArray(l,f){(null==f||f>l.length)&&(f=l.length);for(var s=0,y=new Array(f);s<f;s++)y[s]=l[s];return y}f.FetchPolicy=y,function(l){l.CacheFirst="cache-first",l.NoCache="no-cache",l.CacheAndNetwork="cache-and-network"}(y||(f.FetchPolicy=y={})),f.NetworkStatus=p,function(l){l[l.Error=5]="Error",l[l.Loading=1]="Loading",l[l.Polling=3]="Polling",l[l.Refetch=2]="Refetch",l[l.Unused=4]="Unused"}(p||(f.NetworkStatus=p={}));var _=0;f.useResource=function useResource(l){var f,s=l.fetch,g=l.fetchDelay,m=void 0===g?300:g,O=l.fetchOptions,j=l.fetchPolicy,w=void 0===j?y.NoCache:j,P=l.fetchRetry,S=void 0===P?{}:P,C=l.fetchTimeout,k=void 0===C?6e3:C,A=l.link,R=l.onNetworkStatusChange,M=void 0===R?function(){}:R,T=l.pollInterval,E=void 0===T?0:T,D=l.storageMaxSize,x=l.suspense,L=void 0!==x&&x,I=l.variables,N=void 0===I?null:I;w===y.NoCache&&L&&(w=y.CacheAndNetwork);var W=(0,h.useRef)(null),U=(0,h.useRef)(null),q=(0,h.useRef)(null),F=(0,h.useRef)(),K=(0,h.useRef)(E),z=(0,h.useMemo)((function(){return _++,String(_)}),[]),J=(0,h.useRef)(!0),$=(0,h.useRef)(!1),H=w===y.CacheFirst||w===y.CacheAndNetwork,B=(0,h.useMemo)((function(){return"string"==typeof A?(0,v.getIdentifier)(A,N,O):z}),[A,N,O]),Z=(0,d.useProvider)().client,X=(0,h.useRef)(null!=Z?Z:new d.__UNSTABLE_DataClient({storageMaxSize:D})),G=function _slicedToArray(l,f){return function _arrayWithHoles(l){if(Array.isArray(l))return l}(l)||function _iterableToArrayLimit(l,f){var s=null==l?null:"undefined"!=typeof Symbol&&l[Symbol.iterator]||l["@@iterator"];if(null!=s){var y,p,d=[],b=!0,h=!1;try{for(s=s.call(l);!(b=(y=s.next()).done)&&(d.push(y.value),!f||d.length!==f);b=!0);}catch(l){h=!0,p=l}finally{try{b||null==s.return||s.return()}finally{if(h)throw p}}return d}}(l,f)||_unsupportedIterableToArray(l,f)||function _nonIterableRest(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,h.useState)(null!==(f=X.current.read(B))&&void 0!==f?f:null),2),Q=G[0],V=G[1],Y=(0,b.useDebounce)(N,m),ee=function dispatchNetworkStatus(l){M(l),F.current=l},re=function cleanRetry(){U.current&&clearTimeout(U.current)},te=function handleFetchRetry(l,f){var s=S.attempts,y=void 0===s?5:s;if(re(),y>0&&f<y){var d=function getRetryDelay(l){var f=S.delay,s=void 0===f?{}:f,y=s.initial,p=void 0===y?300:y,d=s.jitter,b=void 0===d||d,h=(b?p:p/2)*Math.pow(2,l);return b&&(h=Math.random()*h),h}(f);console.warn("DataProvider: Trying ".concat(f+1," of ").concat(y," will happen in ").concat(d,"ms")),U.current=setTimeout((function(){ce(f+1)}),d)}else L?X.current.update(B,l):ee(p.Error)},ne=function cleanPoll(){return W.current&&clearTimeout(W.current)},oe=function setPoll(){ne(),W.current=setTimeout((function(){le(p.Polling)}),K.current)},ie=function fetchOnComplete(l){re();var f=l,s=X.current.getCursor(B);return F.current!==p.Loading||!s&&null!==s||null==Q||(Array.isArray(l)&&Array.isArray(Q)?f=[].concat(_toConsumableArray(Q),_toConsumableArray(l)):"object"===_typeof(l)&&"object"===_typeof(Q)&&(f=_objectSpread(_objectSpread({},Q),l))),V(f),ee(p.Unused),H&&X.current.update(B,f),K.current>0&&oe(),l},ae=function populateSearchParams(l,f){return f?(Object.keys(f).forEach((function(s){return l.searchParams.set(s,f[s])})),l):l},ue=function getUrlFormat(l,f){var s=new URL(l);return X.current.getCursor(B),f?(ae(s,f),s.toString()):s.toString()},ce=function doFetch(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch(_typeof(A)){case"function":return(0,v.timeout)(k,A(ae(new URL("http://clay.data.provider"),N).searchParams.toString())).then(ie).catch((function(f){return te(f,l)}));case"string":var f,y=null!=s?s:fetch,p=void 0;return q.current&&q.current.abort(),q.current=new AbortController,(0,v.timeout)(k,y(ue(null!==(f=X.current.getCursor(B))&&void 0!==f?f:A,N),_objectSpread(_objectSpread({},O),{},{signal:q.current.signal})),q.current).then((function(l){return l instanceof Response&&l.ok&&!l.bodyUsed?l.json():l instanceof Response||!l.items||!l.cursor&&null!==l.cursor?l:(p=l.cursor,l.items)})).then(ie).then((function(l){return void 0!==p&&X.current.setCursor(B,p),l})).catch((function(f){return te(f,l)}));default:return null}},le=function maybeFetch(l){var f=X.current.read(B);return(!H||!f||(ie(f),w!==y.CacheFirst))&&(ee(l),ce())};(0,h.useEffect)((function(){K.current=E,E>0&&oe()}),[E]),(0,h.useEffect)((function(){J.current||(H||delete X.current.cursors[B],le(p.Refetch))}),[Y]),(0,h.useEffect)((function(){return J.current=!1,function(){K.current=0,ne(),re()}}),[]);var fe=X.current.isFetching(B);if(!fe&&J.current){var se=le(p.Loading);se&&($.current=!0,fe=se,X.current.update(B,se))}if(fe&&!1===$.current&&!L&&($.current=!0,fe instanceof Promise&&fe.then(ie)),L&&null===Q&&(fe instanceof Promise||fe instanceof Error))throw fe;return{loadMore:function loadMore(){return X.current.getCursor(B)?(ee(p.Loading),ce()):null},refetch:function refetch(){H||delete X.current.cursors[B],ee(p.Refetch),ce()},resource:Q}},f.Resource=function Resource(l){return h.default.createElement("div",null)}},747:(l,f,s)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.timeout=f.getIdentifier=void 0;var y=function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}(s(72));function ownKeys(l,f){var s=Object.keys(l);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(l);f&&(y=y.filter((function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable}))),s.push.apply(s,y)}return s}function _defineProperty(l,f,s){return f in l?Object.defineProperty(l,f,{value:s,enumerable:!0,configurable:!0,writable:!0}):l[f]=s,l}function _typeof(l){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"==typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(l)}f.timeout=function timeout(l,f,s){return new Promise((function(y,p){var d=setTimeout((function(){null==s||s.abort(),p(new Error("timeout"))}),l);f.then((function(l){clearTimeout(d),y(l)})).catch((function(l){clearTimeout(d),p(l)}))}))},f.getIdentifier=function getIdentifier(l,f,s){var p=l;if(f&&(p+=(0,y.default)(f)),"object"===_typeof(s)){for(var d=function _objectSpread(l){for(var f=1;f<arguments.length;f++){var s=null!=arguments[f]?arguments[f]:{};
1f%2?ownKeys(Object(s),!0).forEach((function(f){_defineProperty(l,f,s[f])})):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(s)):ownKeys(Object(s)).forEach((function(f){Object.defineProperty(l,f,Object.getOwnPropertyDescriptor(s,f))}))}return l}({},s),b=Object.keys(s),h=0;h<b.length;h++){var v=b[h],_=s[v];_ instanceof URLSearchParams&&(d[v]=_.toString())}p+=(0,y.default)(d)}return p}},62:(l,f,s)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.DataClient=void 0;var y=s(937);function _classCallCheck(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}function _defineProperties(l,f){for(var s=0;s<f.length;s++){var y=f[s];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(l,y.key,y)}}var p=function(){function DataClient(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=l.storageMaxSize;_classCallCheck(this,DataClient),this.cache=new y.LRUCache(f),this.currentPromises={},this.cursors={}}return function _createClass(l,f,s){f&&_defineProperties(l.prototype,f),s&&_defineProperties(l,s),Object.defineProperty(l,"prototype",{writable:!1})}(DataClient,[{key:"read",value:function read(l){return l?this.cache.get(l):null}},{key:"update",value:function update(l,f){if(!l)return null;f instanceof Promise||f instanceof Error?this.currentPromises[l]=f:this.cache.set(l,f)}},{key:"isFetching",value:function isFetching(l){if(l)return this.currentPromises[l]}},{key:"getCursor",value:function getCursor(l){return l?this.cursors[l]:null}},{key:"setCursor",value:function setCursor(l,f){if(!l)return null;this.cursors[l]=f}}]),DataClient}();f.DataClient=p},937:(l,f)=>{function _classCallCheck(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}function _defineProperties(l,f){for(var s=0;s<f.length;s++){var y=f[s];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(l,y.key,y)}}Object.defineProperty(f,"__esModule",{value:!0}),f.LRUCache=void 0;var s=function(){function LRUCache(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;if(_classCallCheck(this,LRUCache),l<=0)throw new TypeError("LRUCache: max must be a non-negative number");this._maxSize=l,this._storage=new Map}return function _createClass(l,f,s){f&&_defineProperties(l.prototype,f),s&&_defineProperties(l,s),Object.defineProperty(l,"prototype",{writable:!1})}(LRUCache,[{key:"reset",value:function reset(){return this._storage=new Map,this._storage}},{key:"has",value:function has(l){return this._storage.has(l)}},{key:"get",value:function get(l){if(this._storage.has(l)){var f=this._storage.get(l);return this._storage.delete(l),this._storage.set(l,f),f}}},{key:"set",value:function set(l,f){if(this._storage.size>=this._maxSize)for(var s=this._storage.keys(),y=this._maxSize-(this._storage.size-1);y;){var p=s.next().value;this._storage.delete(p),y--}this._storage.set(l,f)}}]),LRUCache}();f.LRUCache=s},994:(l,f,s)=>{function _typeof(l){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"==typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(l)}Object.defineProperty(f,"__esModule",{value:!0}),f.useProvider=f.Provider=void 0;var y=s(663),p=function _interopRequireWildcard(l,f){if(!f&&l&&l.__esModule)return l;if(null===l||"object"!==_typeof(l)&&"function"!=typeof l)return{default:l};var s=_getRequireWildcardCache(f);if(s&&s.has(l))return s.get(l);var y={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in l)if("default"!==d&&Object.prototype.hasOwnProperty.call(l,d)){var b=p?Object.getOwnPropertyDescriptor(l,d):null;b&&(b.get||b.set)?Object.defineProperty(y,d,b):y[d]=l[d]}return y.default=l,s&&s.set(l,y),y}(s(421)),d=s(62),b=s(521),h=["children","reducedMotion","spritemap","storageMaxSize","theme"];function _getRequireWildcardCache(l){if("function"!=typeof WeakMap)return null;var f=new WeakMap,s=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(l){return l?s:f})(l)}function ownKeys(l,f){var s=Object.keys(l);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(l);f&&(y=y.filter((function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable}))),s.push.apply(s,y)}return s}function _objectSpread(l){for(var f=1;f<arguments.length;f++){var s=null!=arguments[f]?arguments[f]:{};
1f%2?ownKeys(Object(s),!0).forEach((function(f){_defineProperty(l,f,s[f])})):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(s)):ownKeys(Object(s)).forEach((function(f){Object.defineProperty(l,f,Object.getOwnPropertyDescriptor(s,f))}))}return l}function _defineProperty(l,f,s){return f in l?Object.defineProperty(l,f,{value:s,enumerable:!0,configurable:!0,writable:!0}):l[f]=s,l}var v=p.default.createContext({});v.displayName="ClayProviderContext",f.Provider=function Provider(l){var f=l.children,s=l.reducedMotion,_=void 0===s?"user":s,g=l.spritemap,m=l.storageMaxSize,O=void 0===m?20:m,j=l.theme,w=function _objectWithoutProperties(l,f){if(null==l)return{};var s,y,p=function _objectWithoutPropertiesLoose(l,f){if(null==l)return{};var s,y,p={},d=Object.keys(l);for(y=0;y<d.length;y++)s=d[y],f.indexOf(s)>=0||(p[s]=l[s]);return p}(l,f);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);for(y=0;y<d.length;y++)s=d[y],f.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(l,s)&&(p[s]=l[s])}return p}(l,h),P=(0,p.useMemo)((function(){return new d.DataClient({storageMaxSize:O})}),[O]),S=(0,b.useReducedMotion)(_);return p.default.createElement(v.Provider,{value:_objectSpread({client:P,prefersReducedMotion:S,theme:j},w)},p.default.createElement(y.ClayIconSpriteContext.Provider,{value:g},j?p.default.createElement("div",{className:j},f):f))},f.useProvider=function useProvider(){return(0,p.useContext)(v)}},778:(l,f,s)=>{Object.defineProperty(f,"__esModule",{value:!0});var y={__UNSTABLE_DataClient:!0};Object.defineProperty(f,"__UNSTABLE_DataClient",{enumerable:!0,get:function get(){return d.DataClient}});var p=s(994);Object.keys(p).forEach((function(l){"default"!==l&&"__esModule"!==l&&(Object.prototype.hasOwnProperty.call(y,l)||l in f&&f[l]===p[l]||Object.defineProperty(f,l,{enumerable:!0,get:function get(){return p[l]}}))}));var d=s(62)},521:(l,f,s)=>{Object.defineProperty(f,"__esModule",{value:!0}),f.useReducedMotion=function useReducedMotion(l){var f=function _slicedToArray(l,f){return function _arrayWithHoles(l){if(Array.isArray(l))return l}(l)||function _iterableToArrayLimit(l,f){var s=null==l?null:"undefined"!=typeof Symbol&&l[Symbol.iterator]||l["@@iterator"];if(null!=s){var y,p,d=[],b=!0,h=!1;try{for(s=s.call(l);!(b=(y=s.next()).done)&&(d.push(y.value),!f||d.length!==f);b=!0);}catch(l){h=!0,p=l}finally{try{b||null==s.return||s.return()}finally{if(h)throw p}}return d}}(l,f)||function _unsupportedIterableToArray(l,f){if(l){if("string"==typeof l)return _arrayLikeToArray(l,f);var s=Object.prototype.toString.call(l).slice(8,-1);return"Object"===s&&l.constructor&&(s=l.constructor.name),"Map"===s||"Set"===s?Array.from(l):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?_arrayLikeToArray(l,f):void 0}}(l,f)||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.")}()}((0,y.useState)(!1),2),s=f[0],p=f[1];return(0,y.useEffect)((function(){switch(l){case"always":p(!0);break;case"never":break;default:if(window.matchMedia){var f=window.matchMedia("(prefers-reduced-motion)"),s=function setReducedMotionPreferences(l){return p(l.matches)};return f.addEventListener("change",s),function(){f.removeEventListener("change",s)}}p(!1)}}),[]),s};var y=s(421);function _arrayLikeToArray(l,f){(null==f||f>l.length)&&(f=l.length);for(var s=0,y=new Array(f);s<f;s++)y[s]=l[s];return y}},72:l=>{l.exports=function(l,f){f||(f={}),"function"==typeof f&&(f={cmp:f});var s,y="boolean"==typeof f.cycles&&f.cycles,p=f.cmp&&(s=f.cmp,function(l){return function(f,y){var p={key:f,value:l[f]},d={key:y,value:l[y]};return s(p,d)}}),d=[];return function stringify(l){if(l&&l.toJSON&&"function"==typeof l.toJSON&&(l=l.toJSON()),void 0!==l){if("number"==typeof l)return isFinite(l)?""+l:"null";if("object"!=typeof l)return JSON.stringify(l);var f,s;if(Array.isArray(l)){for(s="[",f=0;f<l.length;f++)f&&(s+=","),s+=stringify(l[f])||"null";return s+"]"}if(null===l)return"null";if(-1!==d.indexOf(l)){if(y)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var b=d.push(l)-1,h=Object.keys(l).sort(p&&p(l));for(s="",f=0;f<h.length;f++){var v=h[f],_=stringify(l[v]);_&&(s&&(s+=","),s+=JSON.stringify(v)+":"+_)}return d.splice(b,1),"{"+s+"}"}}(l)}},719:l=>{l.exports=function(){}},421:l=>{l.exports=e},663:l=>{l.exports=r},934:l=>{l.exports=t}},o={};function __webpack_require__(l){var f=o[l];if(void 0!==f)return f.exports;var s=o[l]={exports:{}};return n[l](s,s.exports,__webpack_require__),s.exports}var i={};(()=>{var l=i;Object.defineProperty(l,"X$",{value:!0}),l.ZP=void 0,Object.defineProperty(l,"Wf",{enumerable:!0,get:function get(){return s.useResource}});
1var f=function _interopRequireDefault(l){return l&&l.__esModule?l:{default:l}}(__webpack_require__(421)),s=__webpack_require__(322),y=["children","notifyOnNetworkStatusChange"];function ownKeys(l,f){var s=Object.keys(l);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(l);f&&(y=y.filter((function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable}))),s.push.apply(s,y)}return s}function _objectSpread(l){for(var f=1;f<arguments.length;f++){var s=null!=arguments[f]?arguments[f]:{};f%2?ownKeys(Object(s),!0).forEach((function(f){_defineProperty(l,f,s[f])})):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(s)):ownKeys(Object(s)).forEach((function(f){Object.defineProperty(l,f,Object.getOwnPropertyDescriptor(s,f))}))}return l}function _defineProperty(l,f,s){return f in l?Object.defineProperty(l,f,{value:s,enumerable:!0,configurable:!0,writable:!0}):l[f]=s,l}function _arrayLikeToArray(l,f){(null==f||f>l.length)&&(f=l.length);for(var s=0,y=new Array(f);s<f;s++)y[s]=l[s];return y}l.ZP=function ClayDataProvider(l){var p=l.children,d=l.notifyOnNetworkStatusChange,b=void 0!==d&&d,h=function _objectWithoutProperties(l,f){if(null==l)return{};var s,y,p=function _objectWithoutPropertiesLoose(l,f){if(null==l)return{};var s,y,p={},d=Object.keys(l);for(y=0;y<d.length;y++)s=d[y],f.indexOf(s)>=0||(p[s]=l[s]);return p}(l,f);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);for(y=0;y<d.length;y++)s=d[y],f.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(l,s)&&(p[s]=l[s])}return p}(l,y),v=function _slicedToArray(l,f){return function _arrayWithHoles(l){if(Array.isArray(l))return l}(l)||function _iterableToArrayLimit(l,f){var s=null==l?null:"undefined"!=typeof Symbol&&l[Symbol.iterator]||l["@@iterator"];if(null!=s){var y,p,d=[],b=!0,h=!1;try{for(s=s.call(l);!(b=(y=s.next()).done)&&(d.push(y.value),!f||d.length!==f);b=!0);}catch(l){h=!0,p=l}finally{try{b||null==s.return||s.return()}finally{if(h)throw p}}return d}}(l,f)||function _unsupportedIterableToArray(l,f){if(l){if("string"==typeof l)return _arrayLikeToArray(l,f);var s=Object.prototype.toString.call(l).slice(8,-1);return"Object"===s&&l.constructor&&(s=l.constructor.name),"Map"===s||"Set"===s?Array.from(l):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?_arrayLikeToArray(l,f):void 0}}(l,f)||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.")}()}(f.default.useState((function(){return{error:!1,loading:!1}})),2),_=v[0],g=v[1],m=(0,s.useResource)(_objectSpread(_objectSpread({},h),{},{onNetworkStatusChange:function handleNetworkStatus(l){var f={error:5===l,loading:l<4};b&&(f.networkStatus=l),g(f)}})),O=m.refetch,j=m.resource;return f.default.createElement(f.default.Fragment,null,p(_objectSpread(_objectSpread({},_),{},{data:j,refetch:O})))}})();var a=i.X$,u=i.ZP,c=i.Wf;export{a as __esModule,u as default,c as useResource};
2//# sourceMappingURL=@clayui$data-provider.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.