From 30fd08a286b0ac01940d6ba9a138606eddae1abb Mon Sep 17 00:00:00 2001 From: Tyler Frankenstein Date: Wed, 12 Jan 2022 10:16:41 -0500 Subject: [PATCH] Update binaries. --- jdrupal.min.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdrupal.min.js b/jdrupal.min.js index 4d22454..bed4f00 100644 --- a/jdrupal.min.js +++ b/jdrupal.min.js @@ -1,2 +1,2 @@ -function drupal_init(){try{jDrupal||(jDrupal={}),jDrupal.csrf_token=!1,jDrupal.sessid=null,jDrupal.user=drupal_user_defaults(),jDrupal.settings={app_directory:"app",base_path:"/",cache:{entity:{enabled:!1,expiration:3600},views:{enabled:!1,expiration:3600}},debug:!1,endpoint:"",file_public_path:"sites/default/files",language_default:"und",site_path:""},jDrupal.includes={},jDrupal.includes.module={},jDrupal.modules={core:{},contrib:{},custom:{}},jDrupal.services_queue={comment:{retrieve:{}},file:{retrieve:{}},node:{retrieve:{}},taxonomy_term:{retrieve:{}},taxonomy_vocabulary:{retrieve:{}},user:{retrieve:{}}},jDrupal.cache_expiration=window.localStorage.getItem("cache_expiration"),jDrupal.cache_expiration?jDrupal.cache_expiration=JSON.parse(jDrupal.cache_expiration):jDrupal.cache_expiration={entities:{}}}catch(a){console.log("drupal_init - "+a)}}function date(a){try{var b=null,c=null;arguments[1]?(c=arguments[1],"string"==typeof c&&(c=parseInt(c)),b=new Date(c)):(b=new Date,c=b.getTime());for(var d="",e=!1,f=0;f"):console.log(a)):console.log("")}catch(b){console.log("dpm - "+b)}}function drupal_user_defaults(){try{return{uid:"0",roles:{1:"anonymous user"},permissions:[]}}catch(a){console.log("drupal_user_defaults - "+a)}}function empty(a){try{return null===a||("object"==typeof a?0===Object.keys(a).length:void 0===a||""==a)}catch(b){console.log("empty - "+b)}}function function_exists(name){try{return"function"==eval("typeof "+name)}catch(error){alert("function_exists - "+error)}}function http_status_code_title(a){try{var b="";switch(a){case 200:b="OK";break;case 401:b="Unauthorized";break;case 404:b="Not Found";break;case 406:b="Not Acceptable";break;case 500:b="Internal Server Error"}return b}catch(c){console.log("http_status_code_title - "+c)}}function in_array(a,b){try{if(void 0===b)return!1;if("string"==typeof a)return b.indexOf(a)>-1;for(var c=!1,d=0;d0;b--){var c=Math.floor(Math.random()*(b+1)),d=a[b];a[b]=a[c],a[c]=d}return a}catch(e){console.log("shuffle - "+e)}}function time(){var a=new Date;return Math.floor(a/1e3)}function ucfirst(a){return a+="",a.charAt(0).toUpperCase()+a.substr(1)}function module_implements(a){try{var b=[];if(a)for(var c=module_types(),d=0;db.expiration}function entity_clean_local_storage(){if(jDrupal.cache_expiration.entities)for(var a in jDrupal.cache_expiration.entities)if(jDrupal.cache_expiration.entities.hasOwnProperty(a)){var b=jDrupal.cache_expiration.entities[a];if(!(b>time())){delete jDrupal.cache_expiration.entities[a];var c=a.split("_"),d=c[0],e=c[1];_entity_local_storage_delete(d,e),window.localStorage.setItem("cache_expiration",JSON.stringify(jDrupal.cache_expiration))}}}function _entity_get_expiration_time(a,b){try{var c=null,d=entity_get_bundle(a,b);if(entity_caching_enabled(a,d)){var c=0,e=jDrupal.settings.cache;"undefined"!==e.entity.expiration&&(c=e.entity.expiration),"undefined"!==e.entity.entity_types&&(e.entity.entity_types[a]&&void 0!==e.entity.entity_types[a].expiration&&(c=e.entity.entity_types[a].expiration),d&&e.entity.entity_types[a]&&e.entity.entity_types[a].bundles&&e.entity.entity_types[a].bundles[d]&&void 0!==e.entity.entity_types[a].bundles[d].expiration&&(c=e.entity.entity_types[a].bundles[d].expiration))}return c&&(c+=time()),c}catch(f){console.log("_entity_get_expiration_time - "+f)}}function _entity_set_expiration_time(a,b){try{b.expiration=_entity_get_expiration_time(a,b)}catch(c){console.log("_entity_set_expiration_time - "+c)}}function entity_types(){var a=["comment","file","node","taxonomy_term","taxonomy_vocabulary","user"],b=services_entity_types();return b.length&&a.push.apply(a,b),a}function _entity_index_local_storage_load(a,b,c){try{var d=!1;c&&c.reset&&_entity_index_local_storage_delete(b);var e=entity_index_local_storage_key(b);if(d=window.localStorage.getItem(e))if(d=JSON.parse(d),void 0!==d.expiration&&0!=d.expiration&&time()>d.expiration)_entity_index_local_storage_delete(b),d=!1;else{for(var f=[],g=0;g"):console.log(e)):console.log("")}catch(e){console.log("dpm - "+e)}}function drupal_user_defaults(){try{return{uid:"0",roles:{1:"anonymous user"},permissions:[]}}catch(e){console.log("drupal_user_defaults - "+e)}}function empty(e){try{return null===e||("object"==typeof e?0===Object.keys(e).length:"undefined"==typeof e||""==e)}catch(e){console.log("empty - "+e)}}function function_exists(name){try{return"function"==eval("typeof "+name)}catch(e){alert("function_exists - "+e)}}function http_status_code_title(e){try{var t="";switch(e){case 200:t="OK";break;case 401:t="Unauthorized";break;case 404:t="Not Found";break;case 406:t="Not Acceptable";break;case 500:t="Internal Server Error"}return t}catch(e){console.log("http_status_code_title - "+e)}}function in_array(e,t){try{if("undefined"==typeof t)return!1;if("string"==typeof e)return t.indexOf(e)>-1;for(var r=!1,o=0;o0;t--){var r=Math.floor(Math.random()*(t+1)),o=e[t];e[t]=e[r],e[r]=o}return e}catch(e){console.log("shuffle - "+e)}}function time(){var e=new Date;return Math.floor(e/1e3)}function ucfirst(e){e+="";var t=e.charAt(0).toUpperCase();return t+e.substr(1)}function module_implements(e){try{var t=[];if(e)for(var r=module_types(),o=0;ot.expiration}function entity_clean_local_storage(){if(jDrupal.cache_expiration.entities)for(var e in jDrupal.cache_expiration.entities)if(jDrupal.cache_expiration.entities.hasOwnProperty(e)){var t=jDrupal.cache_expiration.entities[e];if(!(t>time())){delete jDrupal.cache_expiration.entities[e];var r=e.split("_"),o=r[0],n=r[1];_entity_local_storage_delete(o,n),window.localStorage.setItem("cache_expiration",JSON.stringify(jDrupal.cache_expiration))}}}function _entity_get_expiration_time(e,t){try{var r=null,o=entity_get_bundle(e,t);if(entity_caching_enabled(e,o)){var r=0,n=jDrupal.settings.cache;"undefined"!==n.entity.expiration&&(r=n.entity.expiration),"undefined"!==n.entity.entity_types&&(n.entity.entity_types[e]&&"undefined"!=typeof n.entity.entity_types[e].expiration&&(r=n.entity.entity_types[e].expiration),o&&n.entity.entity_types[e]&&n.entity.entity_types[e].bundles&&n.entity.entity_types[e].bundles[o]&&"undefined"!=typeof n.entity.entity_types[e].bundles[o].expiration&&(r=n.entity.entity_types[e].bundles[o].expiration))}return r&&(r+=time()),r}catch(e){console.log("_entity_get_expiration_time - "+e)}}function _entity_set_expiration_time(e,t){try{t.expiration=_entity_get_expiration_time(e,t)}catch(e){console.log("_entity_set_expiration_time - "+e)}}function entity_types(){var e=["comment","file","node","taxonomy_term","taxonomy_vocabulary","user"],t=services_entity_types();return t.length&&e.push.apply(e,t),e}function _entity_index_local_storage_load(e,t,r){try{var o=!1;r&&r.reset&&_entity_index_local_storage_delete(t);var n=entity_index_local_storage_key(t);if(o=window.localStorage.getItem(n))if(o=JSON.parse(o),"undefined"!=typeof o.expiration&&0!=o.expiration&&time()>o.expiration)_entity_index_local_storage_delete(t),o=!1;else{for(var a=[],s=0;s