whoami7 - Manager
:
/
home
/
dataiclx
/
vielorbe.com
/
wp-content
/
plugins
/
insta-gallery
/
build
/
store
/
js
/
Upload File:
files >> //home/dataiclx/vielorbe.com/wp-content/plugins/insta-gallery/build/store/js/index.js
(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{FIRST_WP_VERSION_WITH_THUNK_SUPPORT:()=>S,INITIAL_STATE:()=>i,QLIGG_REST_ROUTES:()=>m,STORE_NAME:()=>c,WP_VERSION:()=>v,actions:()=>s,apiFetch:()=>b,applyThunkMiddleware:()=>P,clearFeedCache:()=>T,fetchRestApiAccounts:()=>E,fetchRestApiFeeds:()=>w,fetchRestApiSettings:()=>R,isVersionLessThan:()=>N,reducer:()=>n,resolvers:()=>_,selectors:()=>o,storeConfig:()=>ze,useAccountsEntities:()=>F,useFeedsEntities:()=>k,useSettingsEntities:()=>A});var n={};e.r(n),e.d(n,{accounts:()=>u,default:()=>d,feeds:()=>l,settings:()=>a});var s={};e.r(s),e.d(s,{createAccount:()=>H,createFeed:()=>D,deleteAccount:()=>U,deleteFeed:()=>I,editFeed:()=>M,saveSettings:()=>L,setAccounts:()=>O,setFeeds:()=>x,setSettings:()=>C});var o={};e.r(o),e.d(o,{getAccounts:()=>W,getFeeds:()=>j,getSettings:()=>$});var _={};e.r(_),e.d(_,{getAccounts:()=>Ve,getFeeds:()=>Be,getSettings:()=>Qe});const r=window.wp.data,c="qligg",i={accounts:[],feeds:[],settings:{}};function u(e=i.accounts,t){return"SET_ACCOUNTS"===t.type?t.payload:e}function l(e=i.feeds,t){return"SET_FEEDS"===t.type?t.payload:e}function a(e=i.settings,t){return"SET_SETTINGS"===t.type?t.payload:e}const d=(0,r.combineReducers)({accounts:u,feeds:l,settings:a}),f=window.lodash,p=window.wp.i18n,h=window.wp.notices,g=window.wp.apiFetch;var y=e.n(g);const{WP_VERSION:v="6.0",QLIGG_REST_ROUTES:m={}}="undefined"!=typeof qligg_store?qligg_store:{},S="6.0";async function b(e){return y()(e).then((e=>(e.code,e))).catch((e=>{throw new Error(e)}))}const w=({method:e,data:t}={})=>b({path:m.feeds,method:e,data:t});function k(){const{createFeed:e,editFeed:t,deleteFeed:n}=(0,r.useDispatch)(c),{feeds:s,isResolvingFeeds:o,hasResolvedFeeds:_}=(0,r.useSelect)((e=>{const{isResolving:t,hasFinishedResolution:n,getFeeds:s}=e(c);return{feeds:s(),isResolvingFeeds:t("getFeeds"),hasResolvedFeeds:n("getFeeds")}}),[]);return{feeds:s,isResolvingFeeds:o,hasResolvedFeeds:_,hasFeeds:!(!_||!s?.length),createFeed:e,editFeed:t,deleteFeed:n}}function T({method:e,data:t}){return b({path:m.cache,method:e,data:t})}const E=({method:e,data:t}={})=>b({path:m.accounts,method:e,data:t});function F(){const{createAccount:e,deleteAccount:t}=(0,r.useDispatch)(c),{accounts:n,isResolvingAccounts:s,hasResolvedAccounts:o}=(0,r.useSelect)((e=>{const{isResolving:t,hasFinishedResolution:n,getAccounts:s}=e(c);return{accounts:s(),isResolvingAccounts:t("getAccounts"),hasResolvedAccounts:n("getAccounts")}}),[]);return{accounts:n,isResolvingAccounts:s,hasResolvedAccounts:o,hasAccounts:!(!o||!n?.length),createAccount:e,deleteAccount:t}}const R=({method:e,data:t}={})=>b({path:m.settings,method:e,data:t});function A(){const{saveSettings:e}=(0,r.useDispatch)(c),{settings:t,isResolvingSettings:n,hasResolvedSettings:s}=(0,r.useSelect)((e=>{const{isResolving:t,hasFinishedResolution:n,getSettings:s}=e(c);return{settings:s(),isResolvingSettings:t("getSettings"),hasResolvedSettings:n("getSettings")}}),[]);return{settings:t,isResolvingSettings:n,hasResolvedSettings:s,hasSettings:!(!s||!t?.length),saveSettings:e}}const N=(e,t)=>{const n=e.split(".").map(Number),s=t.split(".").map(Number);for(let e=0;e<s.length;e++){if(n[e]<s[e])return!0;if(n[e]>s[e])return!1}return!1},P=e=>{const t=e.instantiate;return e.instantiate=e=>{const n=t(e);if(!n.store||!n.store.dispatch)throw new Error((0,p.__)("The created instance does not contain a valid store.","insta-gallery"));const s=n.store.dispatch,o=((e,t)=>({registry:t,get dispatch(){return Object.assign((t=>e.store.dispatch(t)),e.getActions())},get select(){return Object.assign((t=>t(e.store.__unstableOriginalGetState())),e.getSelectors())},get resolveSelect(){return e.getResolveSelectors()}}))(n,e);return n.store.dispatch=((e,t)=>n=>"function"==typeof n?n(e):t(n))(o,s),n},e},O=e=>({type:"SET_ACCOUNTS",payload:e}),x=e=>({type:"SET_FEEDS",payload:e}),C=e=>({type:"SET_SETTINGS",payload:e}),H=e=>async({registry:t,dispatch:n,select:s})=>{const o=await E({method:"POST",data:e});if(null!=o?.code)return t.dispatch(h.store).createSuccessNotice((0,p.sprintf)("%s: %s",o.code,o.message),{type:"snackbar"}),!1;const _=s.getAccounts();return _.push(o),n.setAccounts([..._]),t.dispatch(h.store).createSuccessNotice((0,p.__)("The account has been updated successfully.","insta-gallery"),{type:"snackbar"}),!0},U=e=>async({registry:t,dispatch:n,select:s})=>{const o=await E({method:"DELETE",data:{id:e}});if(o?.code)return t.dispatch(h.store).createSuccessNotice((0,p.sprintf)("%s: %s",o.code,o.message),{type:"snackbar"}),!1;const _=s.getAccounts(),r=(0,f.filter)(_,(t=>t.id!==e));return n.setAccounts([...r]),t.dispatch(h.store).createSuccessNotice((0,p.sprintf)((0,p.__)("The account %s has been deleted.","insta-gallery"),e),{type:"snackbar"}),!0},D=e=>async({registry:t,dispatch:n,select:s})=>{const o=await w({method:"POST",data:{feed:e}});if(o?.code)return t.dispatch(h.store).createSuccessNotice((0,p.sprintf)("%s: %s",o.code,o.message),{type:"snackbar"}),!1;const _=s.getFeeds();return _.push(o),n.setFeeds([..._]),t.dispatch(h.store).createSuccessNotice((0,p.__)("The feed has been created successfully.","insta-gallery"),{type:"snackbar"}),!0},I=e=>async({registry:t,dispatch:n,select:s})=>{const o=await w({method:"DELETE",data:{feed_settings:e}});if(o?.code)return t.dispatch(h.store).createSuccessNotice((0,p.sprintf)("%s: %s",o.code,o.message),{type:"snackbar"}),!1;const _=s.getFeeds().filter((t=>t.id!==e.id));return n.setFeeds([..._]),t.dispatch(h.store).createSuccessNotice((0,p.sprintf)((0,p.__)("The feed %s has been deleted.","insta-gallery"),e.id),{type:"snackbar"}),!0},M=e=>async({registry:t,dispatch:n,select:s})=>{const o=await w({method:"PATCH",data:{feed:e}});if(o?.code)return t.dispatch(h.store).createSuccessNotice((0,p.sprintf)("%s: %s",o.code,o.message),{type:"snackbar"}),!1;const _=s.getFeeds();return n.setFeeds([..._.map((t=>t.id===e.id?e:t))]),t.dispatch(h.store).createSuccessNotice((0,p.__)("The feed has been updated successfully.","insta-gallery"),{type:"snackbar"}),!0},L=e=>async({registry:t,dispatch:n})=>{const s=await R({method:"POST",data:e});return s?.code?(t.dispatch(h.store).createSuccessNotice((0,p.sprintf)("%s: %s",s.code,s.message),{type:"snackbar"}),!1):(n.setSettings({...e}),t.dispatch(h.store).createSuccessNotice((0,p.__)("Settings saved.","insta-gallery"),{type:"snackbar"}),!0)},W=(e,t)=>t&&e.accounts?.find((e=>e.id===t))?e.accounts?.find((e=>e.id===t)):e.accounts,j=(e,t)=>t&&e.feeds[t]?e.feeds[t]:e.feeds,$=e=>e.settings;var q,G,V,B,Q,z,J,K,X,Y,Z,ee={},te=[],ne=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,se=Array.isArray;function oe(e,t){for(var n in t)e[n]=t[n];return e}function _e(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function re(e,t,n,s,o){var _={type:e,props:t,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++V:o,__i:-1,__u:0};return null==o&&null!=G.vnode&&G.vnode(_),_}function ce(e){return e.children}function ie(e,t){this.props=e,this.context=t}function ue(e,t){if(null==t)return e.__?ue(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?ue(e):null}function le(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return le(e)}}function ae(e){(!e.__d&&(e.__d=!0)&&B.push(e)&&!de.__r++||Q!=G.debounceRendering)&&((Q=G.debounceRendering)||z)(de)}function de(){for(var e,t,n,s,o,_,r,c=1;B.length;)B.length>c&&B.sort(J),e=B.shift(),c=B.length,e.__d&&(n=void 0,o=(s=(t=e).__v).__e,_=[],r=[],t.__P&&((n=oe({},s)).__v=s.__v+1,G.vnode&&G.vnode(n),Se(t.__P,n,s,t.__n,t.__P.namespaceURI,32&s.__u?[o]:null,_,null==o?ue(s):o,!!(32&s.__u),r),n.__v=s.__v,n.__.__k[n.__i]=n,be(_,n,r),n.__e!=o&&le(n)));de.__r=0}function fe(e,t,n,s,o,_,r,c,i,u,l){var a,d,f,p,h,g,y=s&&s.__k||te,v=t.length;for(i=pe(n,t,y,i,v),a=0;a<v;a++)null!=(f=n.__k[a])&&(d=-1==f.__i?ee:y[f.__i]||ee,f.__i=a,g=Se(e,f,d,o,_,r,c,i,u,l),p=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&Te(d.ref,null,f),l.push(f.ref,f.__c||p,f)),null==h&&null!=p&&(h=p),4&f.__u||d.__k===f.__k?i=he(f,i,e):"function"==typeof f.type&&void 0!==g?i=g:p&&(i=p.nextSibling),f.__u&=-7);return n.__e=h,i}function pe(e,t,n,s,o){var _,r,c,i,u,l=n.length,a=l,d=0;for(e.__k=new Array(o),_=0;_<o;_++)null!=(r=t[_])&&"boolean"!=typeof r&&"function"!=typeof r?(i=_+d,(r=e.__k[_]="string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?re(null,r,null,null,null):se(r)?re(ce,{children:r},null,null,null):null==r.constructor&&r.__b>0?re(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r).__=e,r.__b=e.__b+1,c=null,-1!=(u=r.__i=ge(r,n,i,a))&&(a--,(c=n[u])&&(c.__u|=2)),null==c||null==c.__v?(-1==u&&(o>l?d--:o<l&&d++),"function"!=typeof r.type&&(r.__u|=4)):u!=i&&(u==i-1?d--:u==i+1?d++:(u>i?d--:d++,r.__u|=4))):e.__k[_]=null;if(a)for(_=0;_<l;_++)null!=(c=n[_])&&!(2&c.__u)&&(c.__e==s&&(s=ue(c)),Ee(c,c));return s}function he(e,t,n){var s,o;if("function"==typeof e.type){for(s=e.__k,o=0;s&&o<s.length;o++)s[o]&&(s[o].__=e,t=he(s[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=ue(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function ge(e,t,n,s){var o,_,r=e.key,c=e.type,i=t[n];if(null===i&&null==e.key||i&&r==i.key&&c==i.type&&!(2&i.__u))return n;if(s>(null==i||2&i.__u?0:1))for(o=n-1,_=n+1;o>=0||_<t.length;){if(o>=0){if((i=t[o])&&!(2&i.__u)&&r==i.key&&c==i.type)return o;o--}if(_<t.length){if((i=t[_])&&!(2&i.__u)&&r==i.key&&c==i.type)return _;_++}}return-1}function ye(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||ne.test(t)?n:n+"px"}function ve(e,t,n,s,o){var _;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof s&&(e.style.cssText=s=""),s)for(t in s)n&&t in n||ye(e.style,t,"");if(n)for(t in n)s&&n[t]==s[t]||ye(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])_=t!=(t=t.replace(K,"$1")),t=t.toLowerCase()in e||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+_]=n,n?s?n.u=s.u:(n.u=X,e.addEventListener(t,_?Z:Y,_)):e.removeEventListener(t,_?Z:Y,_);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function me(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=X++;else if(t.t<n.u)return;return n(G.event?G.event(t):t)}}}function Se(e,t,n,s,o,_,r,c,i,u){var l,a,d,f,p,h,g,y,v,m,S,b,w,k,T,E,F,R=t.type;if(null!=t.constructor)return null;128&n.__u&&(i=!!(32&n.__u),_=[c=t.__e=n.__e]),(l=G.__b)&&l(t);e:if("function"==typeof R)try{if(y=t.props,v="prototype"in R&&R.prototype.render,m=(l=R.contextType)&&s[l.__c],S=l?m?m.props.value:l.__:s,n.__c?g=(a=t.__c=n.__c).__=a.__E:(v?t.__c=a=new R(y,S):(t.__c=a=new ie(y,S),a.constructor=R,a.render=Fe),m&&m.sub(a),a.props=y,a.state||(a.state={}),a.context=S,a.__n=s,d=a.__d=!0,a.__h=[],a._sb=[]),v&&null==a.__s&&(a.__s=a.state),v&&null!=R.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=oe({},a.__s)),oe(a.__s,R.getDerivedStateFromProps(y,a.__s))),f=a.props,p=a.state,a.__v=t,d)v&&null==R.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),v&&null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(v&&null==R.getDerivedStateFromProps&&y!==f&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(y,S),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(y,a.__s,S)||t.__v==n.__v){for(t.__v!=n.__v&&(a.props=y,a.state=a.__s,a.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),b=0;b<a._sb.length;b++)a.__h.push(a._sb[b]);a._sb=[],a.__h.length&&r.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(y,a.__s,S),v&&null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(f,p,h)}))}if(a.context=S,a.props=y,a.__P=e,a.__e=!1,w=G.__r,k=0,v){for(a.state=a.__s,a.__d=!1,w&&w(t),l=a.render(a.props,a.state,a.context),T=0;T<a._sb.length;T++)a.__h.push(a._sb[T]);a._sb=[]}else do{a.__d=!1,w&&w(t),l=a.render(a.props,a.state,a.context),a.state=a.__s}while(a.__d&&++k<25);a.state=a.__s,null!=a.getChildContext&&(s=oe(oe({},s),a.getChildContext())),v&&!d&&null!=a.getSnapshotBeforeUpdate&&(h=a.getSnapshotBeforeUpdate(f,p)),E=l,null!=l&&l.type===ce&&null==l.key&&(E=we(l.props.children)),c=fe(e,se(E)?E:[E],t,n,s,o,_,r,c,i,u),a.base=t.__e,t.__u&=-161,a.__h.length&&r.push(a),g&&(a.__E=a.__=null)}catch(e){if(t.__v=null,i||null!=_)if(e.then){for(t.__u|=i?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;_[_.indexOf(c)]=null,t.__e=c}else for(F=_.length;F--;)_e(_[F]);else t.__e=n.__e,t.__k=n.__k;G.__e(e,t,n)}else null==_&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=ke(n.__e,t,n,s,o,_,r,i,u);return(l=G.diffed)&&l(t),128&t.__u?void 0:c}function be(e,t,n){for(var s=0;s<n.length;s++)Te(n[s],n[++s],n[++s]);G.__c&&G.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){G.__e(e,t.__v)}}))}function we(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:se(e)?e.map(we):oe({},e)}function ke(e,t,n,s,o,_,r,c,i){var u,l,a,d,f,p,h,g=n.props,y=t.props,v=t.type;if("svg"==v?o="http://www.w3.org/2000/svg":"math"==v?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=_)for(u=0;u<_.length;u++)if((f=_[u])&&"setAttribute"in f==!!v&&(v?f.localName==v:3==f.nodeType)){e=f,_[u]=null;break}if(null==e){if(null==v)return document.createTextNode(y);e=document.createElementNS(o,v,y.is&&y),c&&(G.__m&&G.__m(t,_),c=!1),_=null}if(null==v)g===y||c&&e.data==y||(e.data=y);else{if(_=_&&q.call(e.childNodes),g=n.props||ee,!c&&null!=_)for(g={},u=0;u<e.attributes.length;u++)g[(f=e.attributes[u]).name]=f.value;for(u in g)if(f=g[u],"children"==u);else if("dangerouslySetInnerHTML"==u)a=f;else if(!(u in y)){if("value"==u&&"defaultValue"in y||"checked"==u&&"defaultChecked"in y)continue;ve(e,u,null,f,o)}for(u in y)f=y[u],"children"==u?d=f:"dangerouslySetInnerHTML"==u?l=f:"value"==u?p=f:"checked"==u?h=f:c&&"function"!=typeof f||g[u]===f||ve(e,u,f,g[u],o);if(l)c||a&&(l.__html==a.__html||l.__html==e.innerHTML)||(e.innerHTML=l.__html),t.__k=[];else if(a&&(e.innerHTML=""),fe("template"==t.type?e.content:e,se(d)?d:[d],t,n,s,"foreignObject"==v?"http://www.w3.org/1999/xhtml":o,_,r,_?_[0]:n.__k&&ue(n,0),c,i),null!=_)for(u=_.length;u--;)_e(_[u]);c||(u="value","progress"==v&&null==p?e.removeAttribute("value"):null!=p&&(p!==e[u]||"progress"==v&&!p||"option"==v&&p!=g[u])&&ve(e,u,p,g[u],o),u="checked",null!=h&&h!=e[u]&&ve(e,u,h,g[u],o))}return e}function Te(e,t,n){try{if("function"==typeof e){var s="function"==typeof e.__u;s&&e.__u(),s&&null==t||(e.__u=e(t))}else e.current=t}catch(e){G.__e(e,n)}}function Ee(e,t,n){var s,o;if(G.unmount&&G.unmount(e),(s=e.ref)&&(s.current&&s.current!=e.__e||Te(s,null,t)),null!=(s=e.__c)){if(s.componentWillUnmount)try{s.componentWillUnmount()}catch(e){G.__e(e,t)}s.base=s.__P=null}if(s=e.__k)for(o=0;o<s.length;o++)s[o]&&Ee(s[o],t,n||"function"!=typeof e.type);n||_e(e.__e),e.__c=e.__=e.__e=void 0}function Fe(e,t,n){return this.constructor(e,n)}q=te.slice,G={__e:function(e,t,n,s){for(var o,_,r;t=t.__;)if((o=t.__c)&&!o.__)try{if((_=o.constructor)&&null!=_.getDerivedStateFromError&&(o.setState(_.getDerivedStateFromError(e)),r=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,s||{}),r=o.__d),r)return o.__E=o}catch(t){e=t}throw e}},V=0,ie.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=oe({},this.state),"function"==typeof e&&(e=e(oe({},n),this.props)),e&&oe(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),ae(this))},ie.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ae(this))},ie.prototype.render=ce,B=[],z="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,J=function(e,t){return e.__v.__b-t.__v.__b},de.__r=0,K=/(PointerCapture)$|Capture$/i,X=0,Y=me(!1),Z=me(!0);var Re,Ae,Ne,Pe=[],Oe=G,xe=Oe.__b,Ce=Oe.__r,He=Oe.diffed,Ue=Oe.__c,De=Oe.unmount,Ie=Oe.__;function Me(){for(var e;e=Pe.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(je),e.__H.__h.forEach($e),e.__H.__h=[]}catch(t){e.__H.__h=[],Oe.__e(t,e.__v)}}Oe.__b=function(e){Re=null,xe&&xe(e)},Oe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ie&&Ie(e,t)},Oe.__r=function(e){Ce&&Ce(e);var t=(Re=e.__c).__H;t&&(Ae===Re?(t.__h=[],Re.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach(je),t.__h.forEach($e),t.__h=[])),Ae=Re},Oe.diffed=function(e){He&&He(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Pe.push(t)&&Ne===Oe.requestAnimationFrame||((Ne=Oe.requestAnimationFrame)||We)(Me)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),Ae=Re=null},Oe.__c=function(e,t){t.some((function(e){try{e.__h.forEach(je),e.__h=e.__h.filter((function(e){return!e.__||$e(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Oe.__e(n,e.__v)}})),Ue&&Ue(e,t)},Oe.unmount=function(e){De&&De(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{je(e)}catch(e){t=e}})),n.__H=void 0,t&&Oe.__e(t,n.__v))};var Le="function"==typeof requestAnimationFrame;function We(e){var t,n=function(){clearTimeout(s),Le&&cancelAnimationFrame(t),setTimeout(e)},s=setTimeout(n,100);Le&&(t=requestAnimationFrame(n))}function je(e){var t=Re,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Re=t}function $e(e){var t=Re;e.__c=e.__(),Re=t}function qe(e,t){const n=[];for(const s in e)if(e.hasOwnProperty(s)){const o=t?t+"["+s+"]":s,_=e[s];n.push(null!==_&&"object"==typeof _?qe(_,o):encodeURIComponent(o)+"="+encodeURIComponent(_))}return n.join("&")}async function Ge(e){const t=window?.qligg_frontend?.restRoutePaths.userprofile,n=qe({account_id:e.account_id}).toString(),s=`${t}${t.includes("?")?"&":"?"}${n}`;return await async function({url:e,data:t,method:n}){if(!e)throw new Error(`Empty url: ${e}`);return await fetch(e,{body:JSON.stringify(t),method:n}).then((e=>e.json())).then((e=>{if(e.code)throw new Error(`${e.code}: ${e?.message||"Unknown"}`);return e})).catch((e=>{throw new Error(e)}))}({url:s,method:"GET"})}const Ve=async()=>{try{const e=await E();if(!e)return O([]);const t=await Promise.all(e.map((async e=>{let t={};try{t=await Ge({account_id:e.id})}catch(e){console.log(e)}return delete t.id,{...e,...t}})));return O([...t])}catch(e){console.error(e)}},Be=async()=>{try{const e=await w();return x(e)}catch(e){console.error(e)}},Qe=async()=>{try{const e=await R();return C(e)}catch(e){console.error(e)}},ze={reducer:d,actions:s,selectors:o,resolvers:_},Je=(0,r.createReduxStore)(c,ze);(0,r.register)(N(v,S)?P(Je):Je),(window.qligg=window.qligg||{}).store=t})();
Copyright ©2021 || Defacer Indonesia