@griddo/core 1.73.15 → 1.73.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +8 -8
- package/dist/index.js +1 -1
- package/dist/types/fields/base.d.ts +1 -1
- package/dist/types/fields/page-data-fields.d.ts +33 -3
- package/dist/types/fields/pure-data-fields.d.ts +31 -3
- package/dist/types/fields/ui-fields.d.ts +33 -19
- package/dist/types/schemas/CategoriesSchema.d.ts +7 -5
- package/dist/types/schemas/HeaderFooterSchema.d.ts +2 -2
- package/dist/types/schemas/PageDataSchema.d.ts +6 -5
- package/dist/types/schemas/PureDataSchema.d.ts +3 -3
- package/dist/types/schemas/UISchema.d.ts +5 -5
- package/dist/types/schemas/base.d.ts +1 -1
- package/dist/types/schemas/props.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CategoriesSchema, DamDefaultsSchema, DataPackCategoriesSchema, DataPackSchema, LanguagesSchema, MenuSchema, ModuleCategoriesSchema, PageDataSchema, PureDataSchema, ThemesSchema, TranslationsSchema, UISchema, HeaderFooterSchema } from "./types/schemas";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { UIFieldsSchema } from "./types/fields/ui-fields";
|
|
3
|
+
import { PureDataFieldsSchema } from "./types/fields/pure-data-fields";
|
|
4
|
+
import { PageDataFieldsSchema } from "./types/fields/page-data-fields";
|
|
5
5
|
/**
|
|
6
6
|
* Crea un schema para una categoría
|
|
7
7
|
* @param {object} schema - Un schema con el formato Schema categories
|
|
@@ -61,9 +61,9 @@ declare function createTranslationsSchema(schema: TranslationsSchema): Translati
|
|
|
61
61
|
* Crea un schema para un componente, módulo o template
|
|
62
62
|
* @param {object} schema - Un schema con el formato Schema UI
|
|
63
63
|
*/
|
|
64
|
-
declare function createUISchema(schema: UISchema):
|
|
65
|
-
declare function createHeaderFooterSchema(schema: HeaderFooterSchema):
|
|
66
|
-
declare function createUIField(field:
|
|
67
|
-
declare function createPureDataField(field:
|
|
68
|
-
declare function createPageDataField(field:
|
|
64
|
+
declare function createUISchema(schema: UISchema): UISchema;
|
|
65
|
+
declare function createHeaderFooterSchema(schema: HeaderFooterSchema): HeaderFooterSchema;
|
|
66
|
+
declare function createUIField(field: UIFieldsSchema): UIFieldsSchema;
|
|
67
|
+
declare function createPureDataField(field: PureDataFieldsSchema): PureDataFieldsSchema;
|
|
68
|
+
declare function createPageDataField(field: PageDataFieldsSchema): PageDataFieldsSchema;
|
|
69
69
|
export { createCategoriesSchema, createDamDefaultsSchema, createDataPackCategoriesSchema, createDataPackSchema, createLanguagesSchema, createMenuSchema, createModuleCategoriesSchema, createHeaderFooterSchema, createPageDataSchema, createPureDataSchema, createThemesSchema, createTranslationsSchema, createUISchema, createPageDataField, createPureDataField, createUIField, };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import t,{createContext as n,useContext as r,useRef as o,useState as a,useEffect as i}from"react";function c(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){return u="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},u(e)}function s(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){s(a,r,o,i,c,"next",e)}function c(e){s(a,r,o,i,c,"throw",e)}i(void 0)}))}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function g(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<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(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)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||y(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 v(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(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 y(e,t){if(e){if("string"==typeof e)return h(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)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var b=n(null),S=function(e){var n=e.children,r=e.translations;return t.createElement(b.Provider,{value:{translations:r}},n)};b.Consumer;var w=["activeStyle","activeClassName","getProps","partiallyActive","children","to"],O=["children"];function k(t){t.activeStyle,t.activeClassName,t.getProps,t.partiallyActive;var n=t.children;t.to;var r=g(t,w);return e.createElement("a",p({"data-griddo":"link"},r),n)}function x(e){}var j=e.createContext(null),E=function(t){var n=t.children,r=g(t,O);return e.createElement(j.Provider,{value:l({linkComponent:k,navigate:x},r)},n)},I=j.Consumer,P=n(null),C=function(e){var n=r(j),o=null==n?void 0:n.translations;return t.createElement(P.Provider,{value:l({},e)},t.createElement(S,{translations:o},e.children))},L=P.Consumer;function _(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}_('.--selected {\n display: block;\n position: relative;\n}\n\n.--selected::before {\n position: absolute;\n height: calc(100% - 8px);\n width: calc(100% - 8px);\n padding-bottom: 4px;\n content: "";\n border: 4px solid rgb(80, 87, 255);\n pointer-events: none;\n z-index: 99;\n}\n\n.--selected::after {\n position: absolute;\n padding: 8px 16px;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n top: -34px;\n left: 50%;\n transform: translate(-50%, 0px);\n content: attr(data-text);\n z-index: 9;\n background: rgb(80, 87, 255);\n color: rgb(255, 255, 255);\n font-family: "Source Sans Pro", sans-serif;\n font-weight: 600;\n font-size: 14px;\n line-height: 18px;\n}\n');var N=function(e){var n=o(),c=m(a(),2),l=c[0],u=c[1],s=r(j).selectEditorID,d=e.selectedEditorID,f=e.editorID,p=e.component,g=e.children;i((function(){u(!!n&&n.current.scrollHeight)}),[g]),i((function(){y&&v()}),[n]);var v=function(){if(n.current){var e=n.current.style.position,t=n.current.style.top;n.current.style.position="relative",n.current.style.top="-34px",n.current.scrollIntoView({behavior:"smooth",block:"start"}),n.current.style.top=t,n.current.style.position=e}},y=!!d&&d===f;return y&&v(),t.createElement(t.Fragment,null,"Header"===p&&t.createElement("style",{dangerouslySetInnerHTML:{__html:'\n [data-text="Header"].--selected::before {\n height: '.concat(l-8,"px;\n }")}}),t.createElement("span",{className:"".concat(y?"--selected":""),"data-text":p,ref:n,onClick:function(t){!f&&"0"!==f||"undefined"==typeof window||s&&s(e,void 0,t)}},g))},U=function(e,t){var n=t.component||t.id;return void 0!==e[n]?e[n]:(console.warn("The component <".concat(n,"> doesn't exist inside ").concat(JSON.stringify(Object.keys(e)))),null)},z=function(){return r(j)},R={domain:"https://res.cloudinary.com",uploadFolder:"image/upload",fallback404ImageId:"dx-placeholders/fallback-404-image",quality:51,crop:"fill",gravity:"faces:center",format:"auto",loading:"lazy",backgroundLazy:!1,decoding:"auto",responsive:[{breakpoint:null,width:"320px"}]},T=["damId","imageConfig"];var q=function(e){var t=e.filter((function(e){return null===e.breakpoint})),n=e.filter((function(e){return null!==e.breakpoint}));return[].concat(v(n),v(t))},A=function(e){return e?e.toString().split(/cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%/)[0]:""},D=function(e){return Object.fromEntries(Object.entries(e).filter((function(e){return e[1]})))},M=function(e,t){return l(l({},D(e)),D(t))};function F(e){var t,n,r,o,a,i,c,l=e.damId,u=e.imageConfig,s=g(e,T),d=M(u,s),f=d.crop?"c/".concat(d.crop):"",p=d.quality?"q/".concat(d.quality):"",v=d.format?"f/".concat(d.format):"",y=d.width?"w/".concat(A(d.width)):"",h=d.height?"h/".concat(A(d.height)):"",b=d.position?"p/".concat(d.position):"",S=null!==(t=d.transforms)&&void 0!==t&&t.length?"t/".concat(d.transforms):"",w="".concat(f,"/").concat(p,"/").concat(y,"/").concat(h,"/").concat(b,"/").concat(S,"/").concat(v);return n="".concat(u.domain,"/").concat(w,"/").concat(l),o=m(null==n?void 0:n.split(/(^https?:\/\/|^\/\/)/).filter(Boolean),2),a=o[0],i=o[1],c=null==i||null===(r=i.replace(/\/\/+/g,"/"))||void 0===r?void 0:r.replace(/\/$/,""),"".concat(a).concat(c)}function G(e){return e&&"string"==typeof e?e.split(/(^[http:|https:|\/\/]*[\S][^\/]*)/)[1]:e}function B(e){return e&&"string"==typeof e?e.split("/").filter(Boolean).slice(-1)[0]:e}var J=["root","imageConfig"],H=["publicId"],$=function(e){var t=e.root,n=e.imageConfig,r=g(e,J),o=M(n,r),a=o.crop?"c_".concat(o.crop):"",i=o.quality?"q_".concat(o.quality):"",c=o.gravity?"g_".concat(o.gravity):"",l=o.format?"f_".concat(o.format):"",u=o.width?"w_".concat(A(o.width)):"",s=o.height?"h_".concat(A(o.height)):"",d=o.ar?"ar_".concat(o.ar):"",f="".concat(a,",").concat(c,",").concat(l,",").concat(i,",").concat(u,",").concat(s,",").concat(d).split(/._null|._undefined|,{1,}|._,|._$|undefined|null/).filter(Boolean).join(",");return"".concat(t,"/").concat(f)},X=function(e){var t=e.publicId,n=g(e,H),r=z(),o=r.cloudinaryCloudName,a=r.cloudinaryDefaults,i=l(l(l({},R),a),n),c="".concat(i.domain,"/").concat(o,"/").concat(i.uploadFolder),u="".concat($({root:c,imageConfig:i,quality:20,width:"512"}),"/").concat(i.fallback404ImageId),s=i.responsive.map((function(e){var n=e.width,r=e.height,o=e.quality,a=e.crop,l=$({root:c,imageConfig:i,quality:o,crop:a,width:n,height:r});return"".concat(l,"/").concat(t," ").concat(A(n),"w")})),d=q(i.responsive.reverse()).map((function(e,t){return t<i.responsive.length-1?"(min-width: ".concat(e.breakpoint,") ").concat(e.width):"".concat(e.width)})).join(", "),f=s.map((function(e){return e.split(" ")[0]})),p=i.responsive[0];return{src:"".concat($(l({root:c,imageConfig:i},p)),"/").concat(t),srcSet:s,sizes:d,fallbackSrcImage:u,srcSetURL:f}};function W(){return r(j).linkComponent}var K={firstModule:"",siteSlug:"/",title:"Default page provider title",breadcrumb:[],fullPath:"/",apiUrl:"/",fullUrl:"/",languageId:null,pageLanguages:[]};function Y(){var e,t=r(P),n=null==t||null===(e=t.pageLanguages)||void 0===e?void 0:e.filter((function(e){return e.isLive}));return t?l(l({},t),{},{pageLanguages:n}):(console.warn("Griddo: You forgot to put <PageProvider>."),l(l({},K),{},{pageLanguages:n}))}var V=function(e,t){return!!e.find((function(e){return e.id===t}))},Z=function(e,t){var n;return(null===(n=e.find((function(e){return e.id===t})))||void 0===n?void 0:n.locale)||"xx_XX"},Q=function(e,t){return!!e.find((function(e){return(null==e?void 0:e.locale)===t}))},ee={languageId:"internalLangId",siteLangs:[{id:"internalLangId",locale:"xx_XX"}],translations:{xx_XX:{griddo:"griddo"}}},te=function(e,t){return null==e?void 0:e.split(".").reduce((function(e,t){return e[t]?e[t]:""}),t)},ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.locale,n=z(),o=(null==n?void 0:n.siteLangs)||ee.siteLangs,a=Y(),i=(null==a?void 0:a.languageId)||ee.languageId,c=r(b),l=(null==c?void 0:c.translations)||ee.translations;l||console.warn("Griddo: <SiteProvider> needs to have the prop translations"),void 0===o&&console.warn("Griddo: <SiteProvider> needs to have the prop siteLangs set with the site languages"),i||console.warn("Griddo: <PageProvider> needs to have the prop languageId set with the page language id"),V(o,i)||console.warn("Griddo: languageId ".concat(i," doesn't exist in this site")),void 0===t||Q(o,t)||console.warn("Griddo: locale ".concat(t," doesn't exist in this site"));var u=t||Z(o,i),s=l?l[u]:void 0,d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return s&&s[e]||t},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return s&&te(e,s)||t};return u&&i?{getTranslation:d,getNestedTranslation:f}:(console.warn("Griddo: You forgot to put <I18nProvider> or exists an error in language id."),{})},re=function(e,t){return(null==t?void 0:t.startsWith("".concat(e,"#")))?"#".concat(t.split("#")[1]):t},oe="undefined"!=typeof window,ae=function(){var e=oe&&JSON.parse(localStorage.getItem("persist:app"));if(!e)return null;var t=e.token;return t=JSON.parse(t),{Authorization:"bearer ".concat(t)}},ie=function(){var e,t=u(oe)&&JSON.parse(localStorage.getItem("persist:root"));if(!t)return 1;var n=t.sites;return null===(e=(n=JSON.parse(n)).currentSiteInfo)||void 0===e?void 0:e.id},ce=function(){return oe&&parseInt(localStorage.getItem("langID"))};function le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.obj,n=e.searchKey,r=e.results,o=void 0===r?[]:r,a=e.unique,i=void 0===a||a,c=o;return Object.keys(t).forEach((function(e){var r=t[e];e===n&&"object"!==u(r)?c.push(r):"object"===u(r)&&r&&le({obj:r,searchKey:n,results:c})})),i?v(new Set(c)):c}function ue(e){var t=e.baseUrl,n=e.params,r=Object.keys(n).map((function(e){return function(e){return Array.isArray(e)&&e.length>0||"number"==typeof e||"string"==typeof e}(n[e])?"".concat(e,"/").concat(n[e]):""})).join("/");return"".concat(t).concat(r.split("/").filter(Boolean).join("/"))}var se=function(e){var t=m(a(null),2),n=t[0],r=t[1],o=e||{},c=o.order,u=o.quantity,s=o.source,f=o.mode,p=o.fixed,g=o.filter,v=o.fullRelations,y=void 0!==v&&v,h=Y().apiUrl;return i((function(){var e=!!ce(),t=ie()||"global",n="".concat(h,"/site/").concat(t,"/distributor"),o=function(e){return{method:"POST",mode:"cors",cache:"no-cache",headers:l({"Content-Type":"application/json",lang:ce()},ae()),redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(e)}}("auto"===f?{mode:f,order:c,quantity:u,source:s,filter:g,fullRelations:y}:{mode:f,fixed:p,fullRelations:y}),a=function(){var e=d(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(n,o);case 2:return t=e.sent,e.next=5,t.json();case 5:a=e.sent,r(a);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e&&a()}),[f,c,u,p,g,s,y]),n},de=function(){var e=m(a(),2),t=e[0],n=e[1],r=m(a(!0),2),o=r[0],c=r[1],u=Y(),s=u.apiUrl,f=u.header,p=u.footer,g=u.fullPath,v=z().siteMetadata;i((function(){y()}),[]);var y=function(){var e=d(regeneratorRuntime.mark((function e(){var t,r,o,a,i,u,d,m,y,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((a={}).topMenu=[{label:null==v?void 0:v.title,children:null===(t=f.topMenu)||void 0===t?void 0:t.elements,url:{linkToURL:!!g&&"".concat(g.domainUrl).concat(g.site)}}],v){e.next=14;break}return i=ie(),u="".concat(s,"/site/").concat(i),e.next=7,fetch(u,{method:"GET",mode:"cors",cache:"no-cache",headers:l({"Content-Type":"application/json",lang:ce()},ae())});case 7:return d=e.sent,e.next=10,d.json();case 10:m=e.sent,y=m.name,a.topMenu[0].label=y,a.siteName=y;case 14:a.mainMenu=null==f||null===(r=f.mainMenu)||void 0===r?void 0:r.elements,h=null==p||null===(o=p.legalMenu)||void 0===o?void 0:o.elements,a.footerMenu=[{label:null,children:h}],a.header=f,a.footer=p,n(a),c(!1);case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return[t,o]},fe=function(e){var t,n=e.emptyText,r=e.listElements,o=e.defaultOption,i=m(a(!1),2),c=i[0],l=i[1],u={label:n,value:null},s=[u].concat(v((t=null==r?void 0:r.reduce((function(e,t){if(!Array.isArray(t))return e;var n=null==t?void 0:t.map((function(e){return e.label}));return[].concat(v(e),v(n))}),[]),v(new Set(t)).map((function(e){return{label:e,value:e}}))))),d=s.find((function(e){return e.value===o})),f=m(a(d||u),2),p=f[0],g=f[1];return[s,p,function(e){return function(){g(s.find((function(t){return t.label===e}))),l(!1)}},c,l]},pe={quality:75,crop:"cover",loading:"lazy",decoding:"auto",blurSize:"8px",blurCSSTransition:"filter 0s ease-in-out",formats:["webp"]},ge=["url"];function me(e){var t=e.srcSet,n=e.srcSetURL,r=e.format;return{type:"image/".concat(r),srcSet:t.map((function(e){return null==e?void 0:e.replace(/f\/\w+/,"f/".concat(r))})),srcSetURL:n.map((function(e){return null==e?void 0:e.replace(/f\/\w+/,"f/".concat(r))}))}}function ve(e){var t=e.url,n=g(e,ge),r=(z()||{}).griddoDamDefaults,o=G(t),a=B(t),i=l(l(l(l({},pe),r),n),{},{format:"jpeg",domain:o});void 0===i.responsive&&(i.responsive=[{width:i.width,height:i.height,quality:i.quality,crop:i.crop,position:i.position,transforms:i.transforms}]);var c=i.responsive.map((function(e){var t=e.width,n=e.height,r=e.quality,o=e.crop,c=e.position,l=e.transforms,u=F({damId:a,imageConfig:i,quality:r,crop:o,width:t,height:n,position:c,transforms:l});return"".concat(u," ").concat(A(t),"w")})),u=q(i.responsive.reverse()).map((function(e,t){return t<i.responsive.length-1?"(min-width: ".concat(e.breakpoint,") ").concat(e.width):"".concat(e.width)})).join(", "),s=c.map((function(e){return null==e?void 0:e.split(" ")[0]})),d=i.responsive[0],f="".concat(F(l({damId:a,imageConfig:i},d))),p="".concat(F({damId:a,imageConfig:i,quality:33,width:10,height:10/(A(i.width)/A(i.height))}));return{type:"image/".concat(i.format),srcSet:c,srcSetURL:s,src:f,sizes:u,blurred:p,webpFallback:me({srcSet:c,srcSetURL:s,format:"jpeg"}),jpeg:me({srcSet:c,srcSetURL:s,format:"jpeg"}),webp:me({srcSet:c,srcSetURL:s,format:"webp"}),avif:me({srcSet:c,srcSetURL:s,format:"avif"}),png:me({srcSet:c,srcSetURL:s,format:"png"}),gif:me({srcSet:c,srcSetURL:s,format:"gif"}),svg:me({srcSet:c,srcSetURL:s,format:"svg"})}}var ye=["or","and"];function he(e){return!!e&&ye.includes(e.toLowerCase())}function be(){var t=z(),n=t.publicApiUrl,r=t.siteId,o=t.renderer,a=Y().languageId,i=m(e.useState(),2),c=i[0],s=i[1],d=m(e.useState(),2),f=d[0],p=d[1],g=m(e.useState(!0),2),y=g[0],h=g[1],b=m(e.useState(!1),2),S=b[0],w=b[1],O=m(e.useState({}),2),k=O[0],x=O[1],j="editor"===o;return e.useEffect((function(){if(f){f&&function(){h(!0);var e=f.queryUrl,t=f.extra;fetch(e).then((function(e){return e.json()})).then((function(e){h(!1),w(!1),200!==(null==e?void 0:e.code)&&void 0!==(null==e?void 0:e.code)?(w(!0),x(e)):(w(!1),s(l(l({},e),{},{totalItems:t.totalItems?t.totalItems:e.totalItems})))})).catch((function(e){h(!1),w(!0),console.log(e)}))}()}}),[f]),[{query:c,isLoading:y,isError:S,msg:k},function(e){var t,o,i=e.data,c=void 0===i?{}:i,l=e.apiUrl,s=void 0===l?"".concat(n):l,d=e.items,f=void 0===d?10:d,g=e.lang,m=void 0===g?a:g,y=e.page,h=void 0===y?1:y,b=e.site,S=void 0===b?r:b,w=e.fields,O=e.filterIds,k=e.cached,x=e.search,E=e.operator,I=e.exclude,P=e.relations,C=j?(new Date).valueOf():k,L=null==x?void 0:x.replace(/\s/g,"+"),_="auto"===c.mode,N=c.source||c.fixed||[],U=function(e){var t=e.array,n=e.page,r=e.itemsPerPage;return Array.isArray(t)?v(t).splice((n-1)*r,r):[]}({array:N,page:h,itemsPerPage:f}),z=_?"/list/":"/list/fixed/",R="".concat(_?N:U,"/"),T=ue({baseUrl:"".concat(s).concat(z).concat(R),params:{site:S,lang:m,get:w,page:_?h:null,items:_?f:null,order:_?c.order:null,filter:O||(null===(t=c.filter)||void 0===t?void 0:t.map((function(e){return"object"===u(e)?e.id:e}))),maxItems:c.quantity,search:L,operator:he(E)?E:null,exclude:(o=I,Array.isArray(o)?I:null),relations:P?"on":null,cached:C}});return p({queryUrl:T,extra:{totalItems:"manual"===c.mode&&c.fixed.length}})}]}function Se(){var t=z(),n=t.publicApiUrl,r=t.siteId,o=t.renderer,a=Y().languageId,i=m(e.useState(),2),c=i[0],u=i[1],s=m(e.useState(),2),d=s[0],f=s[1],p=m(e.useState(!0),2),g=p[0],v=p[1],y=m(e.useState(!1),2),h=y[0],b=y[1],S=m(e.useState({}),2),w=S[0],O=S[1],k="editor"===o;return e.useEffect((function(){if(d){d&&function(){v(!0);var e=d.queryUrl;fetch(e).then((function(e){return e.json()})).then((function(e){v(!1),b(!1),200!==(null==e?void 0:e.code)&&void 0!==(null==e?void 0:e.code)?(b(!0),O(e)):(b(!1),u(l({},e)))})).catch((function(e){v(!1),b(!0),console.log(e)}))}()}}),[d]),[{query:c,isLoading:g,isError:h,msg:w},function(e){var t=e.data,o=e.apiUrl,i=void 0===o?"".concat(n):o,c=e.lang,l=void 0===c?a:c,u=e.site,s=void 0===u?r:u,d=e.cached,p=k?(new Date).valueOf():d,g=t.source||t.fixed,m="".concat(g,"/"),v=ue({baseUrl:"".concat(i).concat("/filters/").concat(m),params:{site:s,lang:l,cached:p}});return f({queryUrl:v})}]}var we=["libComponents"],Oe=function(e){var n=e.libComponents,r=g(e,we),o=z().renderer,a="undefined"!=typeof window?parseInt(localStorage.getItem("selectedID")||0):null,i=U(n,l({},r));return"editor"===o?t.createElement(N,p({selectedEditorID:a},r),t.createElement(i,r)):t.createElement(i,r)},ke=function(e){var n,r=e.header,o=e.footer,a=e.content,i=e.apiUrl,c=e.languageId,l=e.pageLanguages,u=e.library,s=u.templates,d=u.components,f=e.siteMetadata,g=s[a.template.templateType],m=a.template.heroSection?a.template.heroSection.modules[0]:void 0,v=m?m.component:void 0,y=le({obj:a.template,searchKey:"component"});return t.createElement(C,{title:a.title,breadcrumb:a.breadcrumb,fullPath:a.fullPath,fullUrl:a.fullUrl,siteSlug:a.siteSlug,firstModule:v,apiUrl:i,languageId:c,pageLanguages:l,header:r,footer:o,siteMetadata:f,origin:a.origin,site:a.site,componentList:y,activeSectionSlug:a.template.activeSectionSlug||"/",activeSectionBase:a.template.activeSectionBase,modified:a.modified,published:a.published,structuredDataContent:a.structuredDataContent||null,dimensions:(null===(n=a.dimensions)||void 0===n?void 0:n.values)||null,isHome:a.isHome},!!r&&t.createElement(Oe,p({},r,{libComponents:d})),t.createElement(g,a.template),!!o&&t.createElement(Oe,p({},o,{libComponents:d})))},xe=function(e){var n=e.content,r=e.library.components;return!!n&&t.createElement(Oe,p({libComponents:r},n))},je=function(e){var n=e.isPage;return void 0!==n&&n?t.createElement(ke,e):t.createElement(xe,e)},Ee=["url","linkProp","children"],Ie=function(e){var n=e.url,r=e.linkProp,o=void 0===r?"to":r,a=e.children,i=g(e,Ee),c=Y().fullUrl,u=W()||"a",s=function(e){var t=null==e?void 0:e.href,n=null==e?void 0:e.linkToURL,r=null==n?void 0:n.match(/^\/{2}|^https?:/g),o=null==n?void 0:n.match(/^\/\w/g);return{href:t||(r?n:null),to:o?n:null}}(n),d=s.href,p=s.to,m=null==n?void 0:n.newTab,v=null==n?void 0:n.noFollow,y=l(l({},i),{},f({target:m&&"_blank",rel:"".concat(v?"nofollow":""," ").concat(m?"noreferrer":"").trim(),href:re(c,d)},o,re(c,p)));return p?t.createElement(t.Fragment,null,t.createElement("p",null,"Router"),t.createElement(u,y,a)):t.createElement("a",y,a)};function Pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ce(e,t){return e(t={exports:{}},t.exports),t.exports}var Le=Symbol.for("react.element"),_e=Symbol.for("react.fragment"),Ne=Object.prototype.hasOwnProperty,Ue=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0};function Re(e,t,n){var r,o={},a=null,i=null;for(r in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)Ne.call(t,r)&&!ze.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Le,type:e,key:a,ref:i,props:o,_owner:Ue.current}}var Te={Fragment:_e,jsx:Re,jsxs:Re},qe=Ce((function(e){e.exports=Te})),Ae=Ce((function(e,n){n.__esModule=!0,n.default=void 0;var r=["className","children","ratio","style"];function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var a="--aspect-ratio";class i extends t.Component{constructor(){super(...arguments),this.node=null,this.setNode=e=>{this.node=e}}componentDidUpdate(){if(this.node){var{node:e}=this;e.style.getPropertyValue(a)||e.style.setProperty(a,"("+this.props.ratio+")")}}render(){var e=this.props,{className:t,children:n,ratio:i,style:c}=e,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r),u=o({},c,{[a]:"("+i+")"});return(0,qe.jsx)("div",o({className:t,ref:this.setNode,style:u},l,{children:n}))}}i.defaultProps={className:"react-aspect-ratio-placeholder",ratio:1};var c=i;n.default=c}));Pe(Ae);var De=Ce((function(e,t){t.__esModule=!0,t.default=void 0;var n=["className","children","ratio","style"];function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o="react-aspect-ratio-placeholder";var a=function(e){var{className:t=o,children:a,ratio:i=1,style:c}=e,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,n),u=r({},c,{"--aspect-ratio":"("+i+")"});return(0,qe.jsx)("div",r({className:t,style:u},l,{children:a}))};t.default=a}));Pe(De);var Me=Ce((function(e,t){t.__esModule=!0,t.default=t.AspectRatio=void 0;var n=o(Ae),r=o(De);function o(e){return e&&e.__esModule?e:{default:e}}var a=n.default;t.default=a;var i=r.default;t.AspectRatio=i}));Pe(Me);var Fe=Me.AspectRatio;_('[style*="--aspect-ratio"] > img {\n height: auto;\n}\n\n[style*="--aspect-ratio"] {\n position: relative;\n}\n\n[style*="--aspect-ratio"] > :first-child {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n}\n\n[style*="--aspect-ratio"]::before {\n content: "";\n display: block;\n width: 100%;\n}\n\n@supports not (aspect-ratio: 1/1) {\n [style*="--aspect-ratio"]::before {\n height: 0;\n padding-bottom: calc(100% / (var(--aspect-ratio)));\n }\n}\n\n@supports (aspect-ratio: 1/1) {\n [style*="--aspect-ratio"]::before {\n aspect-ratio: calc(var(--aspect-ratio));\n }\n}\n');var Ge=["alt","width","height","ratio","fixed","publicId","src","objectFit"],Be=function(e){var n=e.alt,r=e.width,o=e.height,a=e.ratio,i=e.fixed,c=e.publicId,u=e.src,s=e.objectFit,d=void 0===s?"cover":s,f=g(e,Ge),m=z().cloudinaryDefaults,v=l(l(l({},R),m),f),y=X({crop:v.crop,format:v.format,gravity:v.gravity,quality:v.quality,sizes:v.sizes,responsive:v.responsive,width:r,height:o,ar:a,publicId:c}),h=y.srcSet,b=y.sizes,S=y.fallbackSrcImage,w=y.src,O={alt:n,width:r,height:o,loading:v.loading,style:{objectFit:d},decoding:v.decoding},k=l(l({},O),{},{src:u}),x=l(l({},O),{},{srcSet:h,sizes:b,src:w}),j=function(){return t.createElement("img",p({},u?k:x,{onError:function(e){e.target.src!==S&&(e.target.onerror=null,e.target.srcset="",e.target.sizes="",e.target.style="",e.target.src=S)}}))};return i?t.createElement(j,null):t.createElement(Fe,{ratio:a,style:{maxWidth:"100%",alignSelf:"normal"}},t.createElement(j,null))};_('.Griddo-BgImage {\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n.Griddo-BgImage::before {\n z-index: 0;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n content: "";\n display: block;\n}\n\n.Griddo-BgImage.lazy {\n background-image: none;\n}\n');var Je=["backgroundRepeat","backgroundSize","backgroundPosition","children","overlayColor","overlayOpacity","overlayTransition","ratio","publicId","src","customLazyClassName","lazy"],He=function(e){var n=e.backgroundRepeat,r=void 0===n?"no-repeat":n,o=e.backgroundSize,a=void 0===o?"cover":o,i=e.backgroundPosition,c=void 0===i?"50% 50%":i,u=e.children,s=e.overlayColor,d=void 0===s?null:s,f=e.overlayOpacity,p=void 0===f?0:f,m=e.overlayTransition,y=void 0===m?"2s":m,h=e.ratio,b=e.publicId,S=e.src,w=e.customLazyClassName,O=void 0===w?"lazy":w,k=e.lazy,x=g(e,Je),j=z().cloudinaryDefaults,E=l(l(l(l({},j),R),x),{},{backgroundLazy:j.backgroundLazy||R.backgroundLazy||k}),I=X({responsive:v(E.responsive),quality:E.quality,crop:E.crop,gravity:E.gravity,format:E.format,publicId:b,ar:h}).srcSetURL,P=S?[S]:I,C=S?[]:E.responsive.map((function(e){return e.breakpoint})),L="Griddo-BgImage--".concat(Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,8)),_=E.backgroundLazy?O:"",N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array(e).fill(0).map((function(e,n){return n+t}))}(P.length-1,1).map((function(e){return"@media (min-width: ".concat(C[e],") {\n .").concat(L," {\n background-image: url(").concat(P[e],");\n }\n }\n ")})).join("");return t.createElement(t.Fragment,null,t.createElement("style",{dangerouslySetInnerHTML:{__html:"\n\n .".concat(L," {\n background-repeat: ").concat(r,";\n background-position: ").concat(c,";\n background-size: ").concat(a,";\n background-image: url(").concat(P[0],");\n }\n\n ").concat(N,"\n\n .").concat(L,"::before {\n transition: all ").concat(y," ease;\n background-color: rgba(0, 0, 0, ").concat(p,");\n ").concat(d?"\n background-color: ".concat(d,";\n opacity: ").concat(p,";\n "):"","\n }")}}),t.createElement("div",{className:"Griddo-BgImage ".concat(L," ").concat(_)},u))};_('.griddo-background-image {\n display: flex;\n width: 100%;\n height: 100%;\n\n position: relative;\n\n background-repeat: no-repeat;\n background-size: cover;\n background-position: 50% 50%;\n}\n\n.griddo-background-image--lazy .griddo-background-image {\n background: none !important;\n}\n\n.griddo-background-image::before {\n z-index: 0;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n content: "";\n display: block;\n transition: all var(--veil-transition-time) var(--veil-transition-easing);\n background-color: var(--veil-opacity);\n}\n');var $e=e.forwardRef((function(t,n){var r=t.children,o=t.format,a=t.backgroundSize,i=t.veilOpacity,c=void 0===i?.5:i,u=t.veilColor,s=void 0===u?"#000033":u,d=t.veilTransitionTime,f=void 0===d?"2s":d,p=t.veilTransitionEasing,g=void 0===p?"easing":p,m=t.url,v=t.src,y=t.responsive,h=t.className,b=t.style,S=t.quality,w=t.lazyOffset,O=void 0===w?"200px":w,k=t.loading,x=z().griddoDamDefaults,j=e.useRef(null),E=G(m);e.useEffect((function(){var e;if(IntersectionObserver){if(j.current){var t=new IntersectionObserver((function(e){return e.forEach((function(e){var n;e.isIntersecting&&(null===(n=j.current)||void 0===n||n.classList.remove("griddo-background-image--lazy"),t=t.disconnect())}))}),{rootMargin:"0px 0px ".concat(O," 0px")});return t.observe(j.current),function(){return t=t&&t.disconnect()}}}else null===(e=j.current)||void 0===e||e.classList.remove("griddo-background-image--lazy")}),[]);var I=y&&Object.fromEntries(Object.keys(y).map((function(e){var t=F({damId:B(m),imageConfig:l(l(l({},pe),x),{},{quality:S,format:o,domain:E},y[e])});return[e,{url:'url("'.concat(t,'")'),customProperty:y[e].customProperty}]}))),P=y&&Object.fromEntries(Object.keys(y).map((function(e,t){return[I[e].customProperty?"".concat(I[e].customProperty):"--image-".concat(t),I[e].url]}))),C=v?{"--image-default":"url(".concat(v,")")}:P;return e.createElement("div",{ref:j,"data-griddo":"loading-ref",className:"".concat("lazy"===k?"griddo-background-image--lazy":"")},e.createElement("div",{"data-griddo":"image-ref",ref:n,className:"".concat(h," griddo-background-image"),style:l(l({},b),{},{"--veil-opacity":"".concat(s).concat(Math.round(255/(1/c)).toString(16)),"--veil-transition-time":f,"--veil-transition-easing":g,"--background-size":a},C)},r))}));function Xe(t){var n=t.data;return e.createElement("script",{dangerouslySetInnerHTML:{__html:"(function(){\n const ldJsonScript = document.createElement('script');\n ldJsonScript.setAttribute('type', 'application/ld+json');\n ldJsonScript.textContent = `".concat(JSON.stringify(n),"`;\n document.head.appendChild(ldJsonScript);\n})();")}})}_('[style*="--aspect-ratio"] [data-image="griddo"] {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n object-fit: cover;\n}\n');var We=["width","height","ratio","fixed","url","loading","decoding","responsive","quality","crop","format","formats","position","transforms"],Ke=e.forwardRef((function(t,n){var r=t.width,o=t.height,a=t.ratio,i=t.fixed,c=t.url,u=t.loading,s=t.decoding,d=t.responsive,f=t.quality,m=t.crop,v=t.format,y=t.formats,h=void 0===y?[]:y,b=t.position,S=t.transforms,w=g(t,We),O=l(l({},(z()||{}).griddoDamDefaults),{},{quality:f,crop:m,formats:h,position:b,transforms:S}),k=ve({url:c,crop:O.crop,format:O.format,quality:O.quality,responsive:d,position:O.position,transforms:O.transforms,width:r,height:o}),x=k.src,j=k.sizes,E=k.avif,I=k.jpeg,P=k.gif,C=k.webp,L=k.svg,_=function(){return e.createElement("img",p({"data-image":"griddo",loading:u||O.loading,decoding:s||O.decoding,srcSet:d&&P.srcSet,sizes:d&&j,type:"image/gif",src:P.srcSetURL[0],width:r,height:o,fetchpriority:w.fetchpriority},w))},N=function(){return e.createElement("img",p({"data-image":"griddo",loading:u||O.loading,decoding:s||O.decoding,type:"image/svg+xml",src:L.srcSetURL[0],width:r,height:o,fetchpriority:w.fetchpriority},w))},U=function(){return e.createElement("picture",{ref:null==n?void 0:n.pictureRef},O.formats.includes("avif")&&e.createElement("source",{srcSet:E.srcSet,type:E.type,sizes:j}),O.formats.includes("webp")&&e.createElement("source",{srcSet:C.srcSet,type:C.type,sizes:j}),e.createElement("img",p({ref:null==n?void 0:n.imgRef,"data-image":"griddo",loading:u||O.loading,decoding:s||O.decoding,sizes:j,srcSet:I.srcSet,type:I.type,src:x,width:r,height:o,fetchpriority:w.fetchpriority},w)))};return c?"svg"===v?e.createElement(N,null):"gif"===v?e.createElement(_,null):i||!d?e.createElement(U,null):e.createElement(Fe,{ratio:a,style:{maxWidth:"100%",alignSelf:"normal"}},e.createElement(U,null)):null})),Ye="pre",Ve="pro";var Ze=["activeClassName","activeStyle","style","children","getProps","partiallyActive","state","url","title","className"];function Qe(t){var n=t.activeClassName,r=void 0===n?"":n,o=t.activeStyle,a=void 0===o?{}:o,i=t.style,c=void 0===i?{}:i,l=t.children,u=t.getProps,s=t.partiallyActive,d=t.state,f=t.url,m=t.title,v=t.className,y=void 0===v?"":v,h=g(t,Ze),b=z(),S=b.renderer,w=b.linkComponent,O=Y().fullPath,k="editor"===S,x=null==f?void 0:f.href,j=null==f?void 0:f.linkToURL,E=null==f?void 0:f.newTab,I=null==f?void 0:f.noFollow,P=!(null!=f&&f.linkToURL||null!=f&&f.href),C=j==="".concat(null==O?void 0:O.domainUrl).concat(null==O?void 0:O.compose),L=function(e){var t;return null!=e&&null!==(t=e.domainUrl)&&void 0!==t&&t.endsWith("/".concat(e.domain))?Ve:Ye}(O),_=function(e,t){return"".concat(t?"nofollow":""," ").concat(e?"noreferrer":"").trim()}(I,E),N=function(e){return e?"_blank":"_self"}(E),U=function(e){var t,n=e.env,r=e.fullPath,o=e.to;if("string"!=typeof o)return o;if(n===Ye){var a,i,c=null==r||null===(a=r.domainUrl)||void 0===a?void 0:a.split(r.domain).join("");return(null==o||null===(i=o.split(c))||void 0===i?void 0:i.join(""))||o}return n===Ve&&(null==o||null===(t=o.split(null==r?void 0:r.domainUrl))||void 0===t?void 0:t.join(""))||o}({env:L,fullPath:O,to:j}),R=E?j:!k&&!P&&U;return x?e.createElement("a",p({target:N,rel:_,href:x,className:y,title:m},h),l):e.createElement(w,p({},h,{rel:_,target:N,to:R,getProps:u,partiallyActive:s,state:d,activeStyle:a,activeClassName:r,title:k?U:m,style:C?a:c,className:C?"".concat(y," ").concat(r||"").trim():y}),l)}const et=e=>"object"==typeof e&&null!==e;function tt(e){const[t,...n]=e.trim().split(/(?=[A-Z])/).join(" ");return`${t.toUpperCase()}${n.join("")}`}function nt(e,t,n,r=(e=>e)){Object.keys(e).forEach((o=>{const a=e[o],i=o===t&&"string"==typeof a,c=!e[n],l=i&&c,u=et(a);l&&(e[n]=r(a)),u&&nt(a,t,n,r)}))}function rt(e,t={}){return Object.keys(e).map((n=>{"value"===n&&e.key?t[e.key]=e[n]:et(e[n])&&rt(e[n],t)})),t}function ot(e,t){for(var n in e)if(e.hasOwnProperty(n))switch(typeof e[n]){case"string":t.indexOf(n)>-1&&e.type&&e.key&&"NoteField"!==e.type&&delete e[n];break;case"object":t.indexOf(n)>-1&&e.type&&e.key&&"NoteField"!==e.type?delete e[n]:ot(e[n],t)}}function at(e,t){const n=JSON.parse(JSON.stringify(e));return ot(n,t),n}function it(e){const t=rt(e),n=function(e){let t=!1;if("component"===e.schemaType||"module"===e.schemaType){return n(e.configTabs.map((e=>e.fields)).flat())}return!1;function n(e){for(let r=0;r<e.length;r++){const o=e[r];if("ReferenceField"===o.type){t=!0;break}"ConditionalField"!==o.type&&"ArrayFieldGroup"!==o.type&&"FieldGroup"!==o.type||n(o.fields)}return t}}(e);let r;return r="template"===e.schemaType?{templateType:e.component,component:""}:{component:e.component,templateType:""},Object.assign(Object.assign({},e),{default:Object.assign(Object.assign(Object.assign({hasDistributorData:n},r),e.default),t)})}function ct(e){return Object.assign(Object.assign({},e),{taxonomy:!0,fromPage:!1})}function lt(e){return e}function ut(e){return e}function st(e){return e}function dt(e){return e}function ft(e){return e}function pt(e){return e}function gt(e){return Object.assign(Object.assign({},e),{fromPage:!0})}function mt(e){return nt(e,"key","title",tt),Object.assign(Object.assign({},e),{fromPage:!1})}function vt(e){return e}function yt(e){return e}function ht(e){e.displayName=e.displayName||tt(e.component),nt(e,"key","title",tt);return at(it(e),["value"])}function bt(e){e.displayName=e.displayName||tt(e.component),nt(e,"key","title",tt);return at(it(e),["value"])}function St(e){return e}function wt(e){return e}function Ot(e){return e}export{He as CloudinaryBackgroundImage,Be as CloudinaryImage,Oe as Component,$e as GriddoBackgroundImage,Ke as GriddoImage,Qe as GriddoLink,Xe as LdJson,Ie as Link,ke as Page,L as PageConsumer,P as PageContext,C as PageProvider,je as Preview,I as SiteConsumer,j as SiteContext,E as SiteProvider,ct as createCategoriesSchema,lt as createDamDefaultsSchema,ut as createDataPackCategoriesSchema,st as createDataPackSchema,bt as createHeaderFooterSchema,dt as createLanguagesSchema,ft as createMenuSchema,pt as createModuleCategoriesSchema,Ot as createPageDataField,gt as createPageDataSchema,wt as createPureDataField,mt as createPureDataSchema,vt as createThemesSchema,yt as createTranslationsSchema,St as createUIField,ht as createUISchema,U as getComponent,ce as getLang,ie as getSiteID,ae as getToken,Se as useDataFilters,se as useDistributorData,fe as useFilter,ve as useGriddoImage,ne as useI18n,X as useImage,W as useLink,be as useList,Y as usePage,z as useSite,de as useSitemap};
|
|
1
|
+
import*as t from"react";import e,{createContext as n,useContext as r,useRef as o,useState as a,useEffect as i}from"react";function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){s(a,r,o,i,c,"next",t)}function c(t){s(a,r,o,i,c,"throw",t)}i(void 0)}))}}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(){return p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p.apply(this,arguments)}function g(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);i=!0);}catch(t){c=!0,o=t}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(t,e)||h(t,e)||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 v(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||h(t)||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 h(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var b=n(null),S=function(t){var n=t.children,r=t.translations;return e.createElement(b.Provider,{value:{translations:r}},n)};b.Consumer;var w=["activeStyle","activeClassName","getProps","partiallyActive","children","to"],x=["children"];function k(e){e.activeStyle,e.activeClassName,e.getProps,e.partiallyActive;var n=e.children;e.to;var r=g(e,w);return t.createElement("a",p({"data-griddo":"link"},r),n)}function O(t){}var E=t.createContext(null),I=function(e){var n=e.children,r=g(e,x);return t.createElement(E.Provider,{value:l({linkComponent:k,navigate:O},r)},n)},j=E.Consumer,P=n(null),C=function(t){var n=r(E),o=null==n?void 0:n.translations;return e.createElement(P.Provider,{value:l({},t)},e.createElement(S,{translations:o},t.children))},L=P.Consumer;function _(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}_('.--selected {\n display: block;\n position: relative;\n}\n\n.--selected::before {\n position: absolute;\n height: calc(100% - 8px);\n width: calc(100% - 8px);\n padding-bottom: 4px;\n content: "";\n border: 4px solid rgb(80, 87, 255);\n pointer-events: none;\n z-index: 99;\n}\n\n.--selected::after {\n position: absolute;\n padding: 8px 16px;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n top: -34px;\n left: 50%;\n transform: translate(-50%, 0px);\n content: attr(data-text);\n z-index: 9;\n background: rgb(80, 87, 255);\n color: rgb(255, 255, 255);\n font-family: "Source Sans Pro", sans-serif;\n font-weight: 600;\n font-size: 14px;\n line-height: 18px;\n}\n');var U=function(t){var n=o(),c=m(a(),2),l=c[0],u=c[1],s=r(E).selectEditorID,d=t.selectedEditorID,f=t.editorID,p=t.component,g=t.children;i((function(){u(!!n&&n.current.scrollHeight)}),[g]),i((function(){h&&v()}),[n]);var v=function(){if(n.current){var t=n.current.style.position,e=n.current.style.top;n.current.style.position="relative",n.current.style.top="-34px",n.current.scrollIntoView({behavior:"smooth",block:"start"}),n.current.style.top=e,n.current.style.position=t}},h=!!d&&d===f;return h&&v(),e.createElement(e.Fragment,null,"Header"===p&&e.createElement("style",{dangerouslySetInnerHTML:{__html:'\n [data-text="Header"].--selected::before {\n height: '.concat(l-8,"px;\n }")}}),e.createElement("span",{className:"".concat(h?"--selected":""),"data-text":p,ref:n,onClick:function(e){!f&&"0"!==f||"undefined"==typeof window||s&&s(t,void 0,e)}},g))},z=function(t,e){var n=e.component||e.id;return void 0!==t[n]?t[n]:(console.warn("The component <".concat(n,"> doesn't exist inside ").concat(JSON.stringify(Object.keys(t)))),null)},R=function(){return r(E)},N={domain:"https://res.cloudinary.com",uploadFolder:"image/upload",fallback404ImageId:"dx-placeholders/fallback-404-image",quality:51,crop:"fill",gravity:"faces:center",format:"auto",loading:"lazy",backgroundLazy:!1,decoding:"auto",responsive:[{breakpoint:null,width:"320px"}]},q=["damId","imageConfig"];var A=function(t){var e=t.filter((function(t){return null===t.breakpoint})),n=t.filter((function(t){return null!==t.breakpoint}));return[].concat(v(n),v(e))},T=function(t){return t?t.toString().split(/cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%/)[0]:""},D=function(t){return Object.fromEntries(Object.entries(t).filter((function(t){return t[1]})))},M=function(t,e){return l(l({},D(t)),D(e))};function B(t){var e,n,r,o,a,i,c,l=t.damId,u=t.imageConfig,s=g(t,q),d=M(u,s),f=d.crop?"c/".concat(d.crop):"",p=d.quality?"q/".concat(d.quality):"",v=d.format?"f/".concat(d.format):"",h=d.width?"w/".concat(T(d.width)):"",y=d.height?"h/".concat(T(d.height)):"",b=d.position?"p/".concat(d.position):"",S=null!==(e=d.transforms)&&void 0!==e&&e.length?"t/".concat(d.transforms):"",w="".concat(f,"/").concat(p,"/").concat(h,"/").concat(y,"/").concat(b,"/").concat(S,"/").concat(v);return n="".concat(u.domain,"/").concat(w,"/").concat(l),o=m(null==n?void 0:n.split(/(^https?:\/\/|^\/\/)/).filter(Boolean),2),a=o[0],i=o[1],c=null==i||null===(r=i.replace(/\/\/+/g,"/"))||void 0===r?void 0:r.replace(/\/$/,""),"".concat(a).concat(c)}function F(t){return t&&"string"==typeof t?t.split(/(^[http:|https:|\/\/]*[\S][^\/]*)/)[1]:t}function G(t){return t&&"string"==typeof t?t.split("/").filter(Boolean).slice(-1)[0]:t}var J=["root","imageConfig"],H=["publicId"],X=function(t){var e=t.root,n=t.imageConfig,r=g(t,J),o=M(n,r),a=o.crop?"c_".concat(o.crop):"",i=o.quality?"q_".concat(o.quality):"",c=o.gravity?"g_".concat(o.gravity):"",l=o.format?"f_".concat(o.format):"",u=o.width?"w_".concat(T(o.width)):"",s=o.height?"h_".concat(T(o.height)):"",d=o.ar?"ar_".concat(o.ar):"",f="".concat(a,",").concat(c,",").concat(l,",").concat(i,",").concat(u,",").concat(s,",").concat(d).split(/._null|._undefined|,{1,}|._,|._$|undefined|null/).filter(Boolean).join(",");return"".concat(e,"/").concat(f)},W=function(t){var e=t.publicId,n=g(t,H),r=R(),o=r.cloudinaryCloudName,a=r.cloudinaryDefaults,i=l(l(l({},N),a),n),c="".concat(i.domain,"/").concat(o,"/").concat(i.uploadFolder),u="".concat(X({root:c,imageConfig:i,quality:20,width:"512"}),"/").concat(i.fallback404ImageId),s=i.responsive.map((function(t){var n=t.width,r=t.height,o=t.quality,a=t.crop,l=X({root:c,imageConfig:i,quality:o,crop:a,width:n,height:r});return"".concat(l,"/").concat(e," ").concat(T(n),"w")})),d=A(i.responsive.reverse()).map((function(t,e){return e<i.responsive.length-1?"(min-width: ".concat(t.breakpoint,") ").concat(t.width):"".concat(t.width)})).join(", "),f=s.map((function(t){return t.split(" ")[0]})),p=i.responsive[0];return{src:"".concat(X(l({root:c,imageConfig:i},p)),"/").concat(e),srcSet:s,sizes:d,fallbackSrcImage:u,srcSetURL:f}};function $(){return r(E).linkComponent}var K={firstModule:"",siteSlug:"/",title:"Default page provider title",breadcrumb:[],fullPath:"/",apiUrl:"/",fullUrl:"/",languageId:null,pageLanguages:[]};function Y(){var t,e=r(P),n=null==e||null===(t=e.pageLanguages)||void 0===t?void 0:t.filter((function(t){return t.isLive}));return e?l(l({},e),{},{pageLanguages:n}):(console.warn("Griddo: You forgot to put <PageProvider>."),l(l({},K),{},{pageLanguages:n}))}var V=function(t,e){return!!t.find((function(t){return t.id===e}))},Q=function(t,e){var n;return(null===(n=t.find((function(t){return t.id===e})))||void 0===n?void 0:n.locale)||"xx_XX"},Z=function(t,e){return!!t.find((function(t){return(null==t?void 0:t.locale)===e}))},tt={languageId:"internalLangId",siteLangs:[{id:"internalLangId",locale:"xx_XX"}],translations:{xx_XX:{griddo:"griddo"}}},et=function(t,e){return null==t?void 0:t.split(".").reduce((function(t,e){return t[e]?t[e]:""}),e)},nt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.locale,n=R(),o=(null==n?void 0:n.siteLangs)||tt.siteLangs,a=Y(),i=(null==a?void 0:a.languageId)||tt.languageId,c=r(b),l=(null==c?void 0:c.translations)||tt.translations;l||console.warn("Griddo: <SiteProvider> needs to have the prop translations"),void 0===o&&console.warn("Griddo: <SiteProvider> needs to have the prop siteLangs set with the site languages"),i||console.warn("Griddo: <PageProvider> needs to have the prop languageId set with the page language id"),V(o,i)||console.warn("Griddo: languageId ".concat(i," doesn't exist in this site")),void 0===e||Z(o,e)||console.warn("Griddo: locale ".concat(e," doesn't exist in this site"));var u=e||Q(o,i),s=l?l[u]:void 0,d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return s&&s[t]||e},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return s&&et(t,s)||e};return u&&i?{getTranslation:d,getNestedTranslation:f}:(console.warn("Griddo: You forgot to put <I18nProvider> or exists an error in language id."),{})},rt=function(t,e){return(null==e?void 0:e.startsWith("".concat(t,"#")))?"#".concat(e.split("#")[1]):e},ot="undefined"!=typeof window,at=function(){var t=ot&&JSON.parse(localStorage.getItem("persist:app"));if(!t)return null;var e=t.token;return e=JSON.parse(e),{Authorization:"bearer ".concat(e)}},it=function(){var t,e=u(ot)&&JSON.parse(localStorage.getItem("persist:root"));if(!e)return 1;var n=e.sites;return null===(t=(n=JSON.parse(n)).currentSiteInfo)||void 0===t?void 0:t.id},ct=function(){return ot&&parseInt(localStorage.getItem("langID"))};function lt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.obj,n=t.searchKey,r=t.results,o=void 0===r?[]:r,a=t.unique,i=void 0===a||a,c=o;return Object.keys(e).forEach((function(t){var r=e[t];t===n&&"object"!==u(r)?c.push(r):"object"===u(r)&&r&<({obj:r,searchKey:n,results:c})})),i?v(new Set(c)):c}function ut(t){var e=t.baseUrl,n=t.params,r=Object.keys(n).map((function(t){return function(t){return Array.isArray(t)&&t.length>0||"number"==typeof t||"string"==typeof t}(n[t])?"".concat(t,"/").concat(n[t]):""})).join("/");return"".concat(e).concat(r.split("/").filter(Boolean).join("/"))}var st=function(t){var e=m(a(null),2),n=e[0],r=e[1],o=t||{},c=o.order,u=o.quantity,s=o.source,f=o.mode,p=o.fixed,g=o.filter,v=o.fullRelations,h=void 0!==v&&v,y=Y().apiUrl;return i((function(){var t=!!ct(),e=it()||"global",n="".concat(y,"/site/").concat(e,"/distributor"),o=function(t){return{method:"POST",mode:"cors",cache:"no-cache",headers:l({"Content-Type":"application/json",lang:ct()},at()),redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(t)}}("auto"===f?{mode:f,order:c,quantity:u,source:s,filter:g,fullRelations:h}:{mode:f,fixed:p,fullRelations:h}),a=function(){var t=d(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(n,o);case 2:return e=t.sent,t.next=5,e.json();case 5:a=t.sent,r(a);case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();t&&a()}),[f,c,u,p,g,s,h]),n},dt=function(){var t=m(a(),2),e=t[0],n=t[1],r=m(a(!0),2),o=r[0],c=r[1],u=Y(),s=u.apiUrl,f=u.header,p=u.footer,g=u.fullPath,v=R().siteMetadata;i((function(){h()}),[]);var h=function(){var t=d(regeneratorRuntime.mark((function t(){var e,r,o,a,i,u,d,m,h,y;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((a={}).topMenu=[{label:null==v?void 0:v.title,children:null===(e=f.topMenu)||void 0===e?void 0:e.elements,url:{linkToURL:!!g&&"".concat(g.domainUrl).concat(g.site)}}],v){t.next=14;break}return i=it(),u="".concat(s,"/site/").concat(i),t.next=7,fetch(u,{method:"GET",mode:"cors",cache:"no-cache",headers:l({"Content-Type":"application/json",lang:ct()},at())});case 7:return d=t.sent,t.next=10,d.json();case 10:m=t.sent,h=m.name,a.topMenu[0].label=h,a.siteName=h;case 14:a.mainMenu=null==f||null===(r=f.mainMenu)||void 0===r?void 0:r.elements,y=null==p||null===(o=p.legalMenu)||void 0===o?void 0:o.elements,a.footerMenu=[{label:null,children:y}],a.header=f,a.footer=p,n(a),c(!1);case 21:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return[e,o]},ft=function(t){var e,n=t.emptyText,r=t.listElements,o=t.defaultOption,i=m(a(!1),2),c=i[0],l=i[1],u={label:n,value:null},s=[u].concat(v((e=null==r?void 0:r.reduce((function(t,e){if(!Array.isArray(e))return t;var n=null==e?void 0:e.map((function(t){return t.label}));return[].concat(v(t),v(n))}),[]),v(new Set(e)).map((function(t){return{label:t,value:t}}))))),d=s.find((function(t){return t.value===o})),f=m(a(d||u),2),p=f[0],g=f[1];return[s,p,function(t){return function(){g(s.find((function(e){return e.label===t}))),l(!1)}},c,l]},pt={quality:75,crop:"cover",loading:"lazy",decoding:"auto",blurSize:"8px",blurCSSTransition:"filter 0s ease-in-out",formats:["webp"]},gt=["url"];function mt(t){var e=t.srcSet,n=t.srcSetURL,r=t.format;return{type:"image/".concat(r),srcSet:e.map((function(t){return null==t?void 0:t.replace(/f\/\w+/,"f/".concat(r))})),srcSetURL:n.map((function(t){return null==t?void 0:t.replace(/f\/\w+/,"f/".concat(r))}))}}function vt(t){var e=t.url,n=g(t,gt),r=(R()||{}).griddoDamDefaults,o=F(e),a=G(e),i=l(l(l(l({},pt),r),n),{},{format:"jpeg",domain:o});void 0===i.responsive&&(i.responsive=[{width:i.width,height:i.height,quality:i.quality,crop:i.crop,position:i.position,transforms:i.transforms}]);var c=i.responsive.map((function(t){var e=t.width,n=t.height,r=t.quality,o=t.crop,c=t.position,l=t.transforms,u=B({damId:a,imageConfig:i,quality:r,crop:o,width:e,height:n,position:c,transforms:l});return"".concat(u," ").concat(T(e),"w")})),u=A(i.responsive.reverse()).map((function(t,e){return e<i.responsive.length-1?"(min-width: ".concat(t.breakpoint,") ").concat(t.width):"".concat(t.width)})).join(", "),s=c.map((function(t){return null==t?void 0:t.split(" ")[0]})),d=i.responsive[0],f="".concat(B(l({damId:a,imageConfig:i},d))),p="".concat(B({damId:a,imageConfig:i,quality:33,width:10,height:10/(T(i.width)/T(i.height))}));return{type:"image/".concat(i.format),srcSet:c,srcSetURL:s,src:f,sizes:u,blurred:p,webpFallback:mt({srcSet:c,srcSetURL:s,format:"jpeg"}),jpeg:mt({srcSet:c,srcSetURL:s,format:"jpeg"}),webp:mt({srcSet:c,srcSetURL:s,format:"webp"}),avif:mt({srcSet:c,srcSetURL:s,format:"avif"}),png:mt({srcSet:c,srcSetURL:s,format:"png"}),gif:mt({srcSet:c,srcSetURL:s,format:"gif"}),svg:mt({srcSet:c,srcSetURL:s,format:"svg"})}}var ht=["or","and"];function yt(t){return!!t&&ht.includes(t.toLowerCase())}function bt(){var e=R(),n=e.publicApiUrl,r=e.siteId,o=e.renderer,a=Y().languageId,i=m(t.useState(),2),c=i[0],s=i[1],d=m(t.useState(),2),f=d[0],p=d[1],g=m(t.useState(!0),2),h=g[0],y=g[1],b=m(t.useState(!1),2),S=b[0],w=b[1],x=m(t.useState({}),2),k=x[0],O=x[1],E="editor"===o;return t.useEffect((function(){if(f){f&&function(){y(!0);var t=f.queryUrl,e=f.extra;fetch(t).then((function(t){return t.json()})).then((function(t){y(!1),w(!1),200!==(null==t?void 0:t.code)&&void 0!==(null==t?void 0:t.code)?(w(!0),O(t)):(w(!1),s(l(l({},t),{},{totalItems:e.totalItems?e.totalItems:t.totalItems})))})).catch((function(t){y(!1),w(!0),console.log(t)}))}()}}),[f]),[{query:c,isLoading:h,isError:S,msg:k},function(t){var e,o,i=t.data,c=void 0===i?{}:i,l=t.apiUrl,s=void 0===l?"".concat(n):l,d=t.items,f=void 0===d?10:d,g=t.lang,m=void 0===g?a:g,h=t.page,y=void 0===h?1:h,b=t.site,S=void 0===b?r:b,w=t.fields,x=t.filterIds,k=t.cached,O=t.search,I=t.operator,j=t.exclude,P=t.relations,C=E?(new Date).valueOf():k,L=null==O?void 0:O.replace(/\s/g,"+"),_="auto"===c.mode,U=c.source||c.fixed||[],z=function(t){var e=t.array,n=t.page,r=t.itemsPerPage;return Array.isArray(e)?v(e).splice((n-1)*r,r):[]}({array:U,page:y,itemsPerPage:f}),R=_?"/list/":"/list/fixed/",N="".concat(_?U:z,"/"),q=ut({baseUrl:"".concat(s).concat(R).concat(N),params:{site:S,lang:m,get:w,page:_?y:null,items:_?f:null,order:_?c.order:null,filter:x||(null===(e=c.filter)||void 0===e?void 0:e.map((function(t){return"object"===u(t)?t.id:t}))),maxItems:c.quantity,search:L,operator:yt(I)?I:null,exclude:(o=j,Array.isArray(o)?j:null),relations:P?"on":null,cached:C}});return p({queryUrl:q,extra:{totalItems:"manual"===c.mode&&c.fixed.length}})}]}function St(){var e=R(),n=e.publicApiUrl,r=e.siteId,o=e.renderer,a=Y().languageId,i=m(t.useState(),2),c=i[0],u=i[1],s=m(t.useState(),2),d=s[0],f=s[1],p=m(t.useState(!0),2),g=p[0],v=p[1],h=m(t.useState(!1),2),y=h[0],b=h[1],S=m(t.useState({}),2),w=S[0],x=S[1],k="editor"===o;return t.useEffect((function(){if(d){d&&function(){v(!0);var t=d.queryUrl;fetch(t).then((function(t){return t.json()})).then((function(t){v(!1),b(!1),200!==(null==t?void 0:t.code)&&void 0!==(null==t?void 0:t.code)?(b(!0),x(t)):(b(!1),u(l({},t)))})).catch((function(t){v(!1),b(!0),console.log(t)}))}()}}),[d]),[{query:c,isLoading:g,isError:y,msg:w},function(t){var e=t.data,o=t.apiUrl,i=void 0===o?"".concat(n):o,c=t.lang,l=void 0===c?a:c,u=t.site,s=void 0===u?r:u,d=t.cached,p=k?(new Date).valueOf():d,g=e.source||e.fixed,m="".concat(g,"/"),v=ut({baseUrl:"".concat(i).concat("/filters/").concat(m),params:{site:s,lang:l,cached:p}});return f({queryUrl:v})}]}var wt=["libComponents"],xt=function(t){var n=t.libComponents,r=g(t,wt),o=R().renderer,a="undefined"!=typeof window?parseInt(localStorage.getItem("selectedID")||0):null,i=z(n,l({},r));return"editor"===o?e.createElement(U,p({selectedEditorID:a},r),e.createElement(i,r)):e.createElement(i,r)},kt=function(t){var n,r=t.header,o=t.footer,a=t.content,i=t.apiUrl,c=t.languageId,l=t.pageLanguages,u=t.library,s=u.templates,d=u.components,f=t.siteMetadata,g=s[a.template.templateType],m=a.template.heroSection?a.template.heroSection.modules[0]:void 0,v=m?m.component:void 0,h=lt({obj:a.template,searchKey:"component"});return e.createElement(C,{title:a.title,breadcrumb:a.breadcrumb,fullPath:a.fullPath,fullUrl:a.fullUrl,siteSlug:a.siteSlug,firstModule:v,apiUrl:i,languageId:c,pageLanguages:l,header:r,footer:o,siteMetadata:f,origin:a.origin,site:a.site,componentList:h,activeSectionSlug:a.template.activeSectionSlug||"/",activeSectionBase:a.template.activeSectionBase,modified:a.modified,published:a.published,structuredDataContent:a.structuredDataContent||null,dimensions:(null===(n=a.dimensions)||void 0===n?void 0:n.values)||null,isHome:a.isHome},!!r&&e.createElement(xt,p({},r,{libComponents:d})),e.createElement(g,a.template),!!o&&e.createElement(xt,p({},o,{libComponents:d})))},Ot=function(t){var n=t.content,r=t.library.components;return!!n&&e.createElement(xt,p({libComponents:r},n))},Et=function(t){var n=t.isPage;return void 0!==n&&n?e.createElement(kt,t):e.createElement(Ot,t)},It=["url","linkProp","children"],jt=function(t){var n=t.url,r=t.linkProp,o=void 0===r?"to":r,a=t.children,i=g(t,It),c=Y().fullUrl,u=$()||"a",s=function(t){var e=null==t?void 0:t.href,n=null==t?void 0:t.linkToURL,r=null==n?void 0:n.match(/^\/{2}|^https?:/g),o=null==n?void 0:n.match(/^\/\w/g);return{href:e||(r?n:null),to:o?n:null}}(n),d=s.href,p=s.to,m=null==n?void 0:n.newTab,v=null==n?void 0:n.noFollow,h=l(l({},i),{},f({target:m&&"_blank",rel:"".concat(v?"nofollow":""," ").concat(m?"noreferrer":"").trim(),href:rt(c,d)},o,rt(c,p)));return p?e.createElement(e.Fragment,null,e.createElement("p",null,"Router"),e.createElement(u,h,a)):e.createElement("a",h,a)};function Pt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ct(t,e){return t(e={exports:{}},e.exports),e.exports}var Lt=Symbol.for("react.element"),_t=Symbol.for("react.fragment"),Ut=Object.prototype.hasOwnProperty,zt=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Rt={key:!0,ref:!0,__self:!0,__source:!0};function Nt(t,e,n){var r,o={},a=null,i=null;for(r in void 0!==n&&(a=""+n),void 0!==e.key&&(a=""+e.key),void 0!==e.ref&&(i=e.ref),e)Ut.call(e,r)&&!Rt.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===o[r]&&(o[r]=e[r]);return{$$typeof:Lt,type:t,key:a,ref:i,props:o,_owner:zt.current}}var qt={Fragment:_t,jsx:Nt,jsxs:Nt},At=Ct((function(t){t.exports=qt})),Tt=Ct((function(t,n){n.__esModule=!0,n.default=void 0;var r=["className","children","ratio","style"];function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}var a="--aspect-ratio";class i extends e.Component{constructor(){super(...arguments),this.node=null,this.setNode=t=>{this.node=t}}componentDidUpdate(){if(this.node){var{node:t}=this;t.style.getPropertyValue(a)||t.style.setProperty(a,"("+this.props.ratio+")")}}render(){var t=this.props,{className:e,children:n,ratio:i,style:c}=t,l=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,r),u=o({},c,{[a]:"("+i+")"});return(0,At.jsx)("div",o({className:e,ref:this.setNode,style:u},l,{children:n}))}}i.defaultProps={className:"react-aspect-ratio-placeholder",ratio:1};var c=i;n.default=c}));Pt(Tt);var Dt=Ct((function(t,e){e.__esModule=!0,e.default=void 0;var n=["className","children","ratio","style"];function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}var o="react-aspect-ratio-placeholder";var a=function(t){var{className:e=o,children:a,ratio:i=1,style:c}=t,l=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,n),u=r({},c,{"--aspect-ratio":"("+i+")"});return(0,At.jsx)("div",r({className:e,style:u},l,{children:a}))};e.default=a}));Pt(Dt);var Mt=Ct((function(t,e){e.__esModule=!0,e.default=e.AspectRatio=void 0;var n=o(Tt),r=o(Dt);function o(t){return t&&t.__esModule?t:{default:t}}var a=n.default;e.default=a;var i=r.default;e.AspectRatio=i}));Pt(Mt);var Bt=Mt.AspectRatio;_('[style*="--aspect-ratio"] > img {\n height: auto;\n}\n\n[style*="--aspect-ratio"] {\n position: relative;\n}\n\n[style*="--aspect-ratio"] > :first-child {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n}\n\n[style*="--aspect-ratio"]::before {\n content: "";\n display: block;\n width: 100%;\n}\n\n@supports not (aspect-ratio: 1/1) {\n [style*="--aspect-ratio"]::before {\n height: 0;\n padding-bottom: calc(100% / (var(--aspect-ratio)));\n }\n}\n\n@supports (aspect-ratio: 1/1) {\n [style*="--aspect-ratio"]::before {\n aspect-ratio: calc(var(--aspect-ratio));\n }\n}\n');var Ft=["alt","width","height","ratio","fixed","publicId","src","objectFit"],Gt=function(t){var n=t.alt,r=t.width,o=t.height,a=t.ratio,i=t.fixed,c=t.publicId,u=t.src,s=t.objectFit,d=void 0===s?"cover":s,f=g(t,Ft),m=R().cloudinaryDefaults,v=l(l(l({},N),m),f),h=W({crop:v.crop,format:v.format,gravity:v.gravity,quality:v.quality,sizes:v.sizes,responsive:v.responsive,width:r,height:o,ar:a,publicId:c}),y=h.srcSet,b=h.sizes,S=h.fallbackSrcImage,w=h.src,x={alt:n,width:r,height:o,loading:v.loading,style:{objectFit:d},decoding:v.decoding},k=l(l({},x),{},{src:u}),O=l(l({},x),{},{srcSet:y,sizes:b,src:w}),E=function(){return e.createElement("img",p({},u?k:O,{onError:function(t){t.target.src!==S&&(t.target.onerror=null,t.target.srcset="",t.target.sizes="",t.target.style="",t.target.src=S)}}))};return i?e.createElement(E,null):e.createElement(Bt,{ratio:a,style:{maxWidth:"100%",alignSelf:"normal"}},e.createElement(E,null))};_('.Griddo-BgImage {\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n.Griddo-BgImage::before {\n z-index: 0;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n content: "";\n display: block;\n}\n\n.Griddo-BgImage.lazy {\n background-image: none;\n}\n');var Jt=["backgroundRepeat","backgroundSize","backgroundPosition","children","overlayColor","overlayOpacity","overlayTransition","ratio","publicId","src","customLazyClassName","lazy"],Ht=function(t){var n=t.backgroundRepeat,r=void 0===n?"no-repeat":n,o=t.backgroundSize,a=void 0===o?"cover":o,i=t.backgroundPosition,c=void 0===i?"50% 50%":i,u=t.children,s=t.overlayColor,d=void 0===s?null:s,f=t.overlayOpacity,p=void 0===f?0:f,m=t.overlayTransition,h=void 0===m?"2s":m,y=t.ratio,b=t.publicId,S=t.src,w=t.customLazyClassName,x=void 0===w?"lazy":w,k=t.lazy,O=g(t,Jt),E=R().cloudinaryDefaults,I=l(l(l(l({},E),N),O),{},{backgroundLazy:E.backgroundLazy||N.backgroundLazy||k}),j=W({responsive:v(I.responsive),quality:I.quality,crop:I.crop,gravity:I.gravity,format:I.format,publicId:b,ar:y}).srcSetURL,P=S?[S]:j,C=S?[]:I.responsive.map((function(t){return t.breakpoint})),L="Griddo-BgImage--".concat(Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,8)),_=I.backgroundLazy?x:"",U=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array(t).fill(0).map((function(t,n){return n+e}))}(P.length-1,1).map((function(t){return"@media (min-width: ".concat(C[t],") {\n .").concat(L," {\n background-image: url(").concat(P[t],");\n }\n }\n ")})).join("");return e.createElement(e.Fragment,null,e.createElement("style",{dangerouslySetInnerHTML:{__html:"\n\n .".concat(L," {\n background-repeat: ").concat(r,";\n background-position: ").concat(c,";\n background-size: ").concat(a,";\n background-image: url(").concat(P[0],");\n }\n\n ").concat(U,"\n\n .").concat(L,"::before {\n transition: all ").concat(h," ease;\n background-color: rgba(0, 0, 0, ").concat(p,");\n ").concat(d?"\n background-color: ".concat(d,";\n opacity: ").concat(p,";\n "):"","\n }")}}),e.createElement("div",{className:"Griddo-BgImage ".concat(L," ").concat(_)},u))};_('.griddo-background-image {\n display: flex;\n width: 100%;\n height: 100%;\n\n position: relative;\n\n background-repeat: no-repeat;\n background-size: cover;\n background-position: 50% 50%;\n}\n\n.griddo-background-image--lazy .griddo-background-image {\n background: none !important;\n}\n\n.griddo-background-image::before {\n z-index: 0;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n content: "";\n display: block;\n transition: all var(--veil-transition-time) var(--veil-transition-easing);\n background-color: var(--veil-opacity);\n}\n');var Xt=t.forwardRef((function(e,n){var r=e.children,o=e.format,a=e.backgroundSize,i=e.veilOpacity,c=void 0===i?.5:i,u=e.veilColor,s=void 0===u?"#000033":u,d=e.veilTransitionTime,f=void 0===d?"2s":d,p=e.veilTransitionEasing,g=void 0===p?"easing":p,m=e.url,v=e.src,h=e.responsive,y=e.className,b=e.style,S=e.quality,w=e.lazyOffset,x=void 0===w?"200px":w,k=e.loading,O=R().griddoDamDefaults,E=t.useRef(null),I=F(m);t.useEffect((function(){var t;if(IntersectionObserver){if(E.current){var e=new IntersectionObserver((function(t){return t.forEach((function(t){var n;t.isIntersecting&&(null===(n=E.current)||void 0===n||n.classList.remove("griddo-background-image--lazy"),e=e.disconnect())}))}),{rootMargin:"0px 0px ".concat(x," 0px")});return e.observe(E.current),function(){return e=e&&e.disconnect()}}}else null===(t=E.current)||void 0===t||t.classList.remove("griddo-background-image--lazy")}),[]);var j=h&&Object.fromEntries(Object.keys(h).map((function(t){var e=B({damId:G(m),imageConfig:l(l(l({},pt),O),{},{quality:S,format:o,domain:I},h[t])});return[t,{url:'url("'.concat(e,'")'),customProperty:h[t].customProperty}]}))),P=h&&Object.fromEntries(Object.keys(h).map((function(t,e){return[j[t].customProperty?"".concat(j[t].customProperty):"--image-".concat(e),j[t].url]}))),C=v?{"--image-default":"url(".concat(v,")")}:P;return t.createElement("div",{ref:E,"data-griddo":"loading-ref",className:"".concat("lazy"===k?"griddo-background-image--lazy":"")},t.createElement("div",{"data-griddo":"image-ref",ref:n,className:"".concat(y," griddo-background-image"),style:l(l({},b),{},{"--veil-opacity":"".concat(s).concat(Math.round(255/(1/c)).toString(16)),"--veil-transition-time":f,"--veil-transition-easing":g,"--background-size":a},C)},r))}));function Wt(e){var n=e.data;return t.createElement("script",{dangerouslySetInnerHTML:{__html:"(function(){\n const ldJsonScript = document.createElement('script');\n ldJsonScript.setAttribute('type', 'application/ld+json');\n ldJsonScript.textContent = `".concat(JSON.stringify(n),"`;\n document.head.appendChild(ldJsonScript);\n})();")}})}_('[style*="--aspect-ratio"] [data-image="griddo"] {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n object-fit: cover;\n}\n');var $t=["width","height","ratio","fixed","url","loading","decoding","responsive","quality","crop","format","formats","position","transforms"],Kt=t.forwardRef((function(e,n){var r=e.width,o=e.height,a=e.ratio,i=e.fixed,c=e.url,u=e.loading,s=e.decoding,d=e.responsive,f=e.quality,m=e.crop,v=e.format,h=e.formats,y=void 0===h?[]:h,b=e.position,S=e.transforms,w=g(e,$t),x=l(l({},(R()||{}).griddoDamDefaults),{},{quality:f,crop:m,formats:y,position:b,transforms:S}),k=vt({url:c,crop:x.crop,format:x.format,quality:x.quality,responsive:d,position:x.position,transforms:x.transforms,width:r,height:o}),O=k.src,E=k.sizes,I=k.avif,j=k.jpeg,P=k.gif,C=k.webp,L=k.svg,_=function(){return t.createElement("img",p({"data-image":"griddo",loading:u||x.loading,decoding:s||x.decoding,srcSet:d&&P.srcSet,sizes:d&&E,type:"image/gif",src:P.srcSetURL[0],width:r,height:o,fetchpriority:w.fetchpriority},w))},U=function(){return t.createElement("img",p({"data-image":"griddo",loading:u||x.loading,decoding:s||x.decoding,type:"image/svg+xml",src:L.srcSetURL[0],width:r,height:o,fetchpriority:w.fetchpriority},w))},z=function(){return t.createElement("picture",{ref:null==n?void 0:n.pictureRef},x.formats.includes("avif")&&t.createElement("source",{srcSet:I.srcSet,type:I.type,sizes:E}),x.formats.includes("webp")&&t.createElement("source",{srcSet:C.srcSet,type:C.type,sizes:E}),t.createElement("img",p({ref:null==n?void 0:n.imgRef,"data-image":"griddo",loading:u||x.loading,decoding:s||x.decoding,sizes:E,srcSet:j.srcSet,type:j.type,src:O,width:r,height:o,fetchpriority:w.fetchpriority},w)))};return c?"svg"===v?t.createElement(U,null):"gif"===v?t.createElement(_,null):i||!d?t.createElement(z,null):t.createElement(Bt,{ratio:a,style:{maxWidth:"100%",alignSelf:"normal"}},t.createElement(z,null)):null})),Yt="pre",Vt="pro";var Qt=["activeClassName","activeStyle","style","children","getProps","partiallyActive","state","url","title","className"];function Zt(e){var n=e.activeClassName,r=void 0===n?"":n,o=e.activeStyle,a=void 0===o?{}:o,i=e.style,c=void 0===i?{}:i,l=e.children,u=e.getProps,s=e.partiallyActive,d=e.state,f=e.url,m=e.title,v=e.className,h=void 0===v?"":v,y=g(e,Qt),b=R(),S=b.renderer,w=b.linkComponent,x=Y().fullPath,k="editor"===S,O=null==f?void 0:f.href,E=null==f?void 0:f.linkToURL,I=null==f?void 0:f.newTab,j=null==f?void 0:f.noFollow,P=!(null!=f&&f.linkToURL||null!=f&&f.href),C=E==="".concat(null==x?void 0:x.domainUrl).concat(null==x?void 0:x.compose),L=function(t){var e;return null!=t&&null!==(e=t.domainUrl)&&void 0!==e&&e.endsWith("/".concat(t.domain))?Vt:Yt}(x),_=function(t,e){return"".concat(e?"nofollow":""," ").concat(t?"noreferrer":"").trim()}(j,I),U=function(t){return t?"_blank":"_self"}(I),z=function(t){var e,n=t.env,r=t.fullPath,o=t.to;if("string"!=typeof o)return o;if(n===Yt){var a,i,c=null==r||null===(a=r.domainUrl)||void 0===a?void 0:a.split(r.domain).join("");return(null==o||null===(i=o.split(c))||void 0===i?void 0:i.join(""))||o}return n===Vt&&(null==o||null===(e=o.split(null==r?void 0:r.domainUrl))||void 0===e?void 0:e.join(""))||o}({env:L,fullPath:x,to:E}),N=I?E:!k&&!P&&z;return O?t.createElement("a",p({target:U,rel:_,href:O,className:h,title:m},y),l):t.createElement(w,p({},y,{rel:_,target:U,to:N,getProps:u,partiallyActive:s,state:d,activeStyle:a,activeClassName:r,title:k?z:m,style:C?a:c,className:C?"".concat(h," ").concat(r||"").trim():h}),l)}function te(t){return t}function ee(t){return t}function ne(t){return t}function re(t){return t}function oe(t){return t}function ae(t){return t}function ie(t){return t}function ce(t){return t}function le(t){return t}function ue(t){return t}function se(t){return t}function de(t){return t}function fe(t){return t}function pe(t){return t}function ge(t){return t}function me(t){return t}export{Ht as CloudinaryBackgroundImage,Gt as CloudinaryImage,xt as Component,Xt as GriddoBackgroundImage,Kt as GriddoImage,Zt as GriddoLink,Wt as LdJson,jt as Link,kt as Page,L as PageConsumer,P as PageContext,C as PageProvider,Et as Preview,j as SiteConsumer,E as SiteContext,I as SiteProvider,te as createCategoriesSchema,ee as createDamDefaultsSchema,ne as createDataPackCategoriesSchema,re as createDataPackSchema,fe as createHeaderFooterSchema,oe as createLanguagesSchema,ae as createMenuSchema,ie as createModuleCategoriesSchema,me as createPageDataField,ce as createPageDataSchema,ge as createPureDataField,le as createPureDataSchema,ue as createThemesSchema,se as createTranslationsSchema,pe as createUIField,de as createUISchema,z as getComponent,ct as getLang,it as getSiteID,at as getToken,St as useDataFilters,st as useDistributorData,ft as useFilter,vt as useGriddoImage,nt as useI18n,W as useImage,$ as useLink,bt as useList,Y as usePage,R as useSite,dt as useSitemap};
|
|
@@ -6,7 +6,7 @@ interface GenericField {
|
|
|
6
6
|
/** Valor con el que se indentificará el field en la API. Usar camelCase. */
|
|
7
7
|
key: string;
|
|
8
8
|
/** Label del campo que aparecerá en el formulario. */
|
|
9
|
-
title
|
|
9
|
+
title: string;
|
|
10
10
|
/** Si el campo es obligatorio. */
|
|
11
11
|
mandatory?: boolean;
|
|
12
12
|
}
|
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
import { ArrayFieldGroup, AsyncCheckGroup, AsyncSelect, CheckGroup, ColorPicker, ComponentArray, ComponentContainer, ConditionalField, DateField, FieldGroup, FieldsDivider, FileField, HeadingField, ImageField, LinkField, MultiCheckSelect, MultiCheckSelectGroup, NoteField, NumberField, RadioGroup, ReferenceField, RichText, Select, SliderField, TextArea, TextField, ToggleField, UniqueCheck, UrlField, VisualUniqueSelection, Wysiwyg } from "./base";
|
|
2
2
|
import { Indexable, Searchable, ShowList, From } from "./props";
|
|
3
|
-
declare type
|
|
4
|
-
export declare type
|
|
5
|
-
export declare type
|
|
3
|
+
declare type PageDataFieldsSchemaCommonProps = From & Indexable & Searchable & ShowList;
|
|
4
|
+
export declare type PageDataArrayFieldGroupSchema = ArrayFieldGroup<PageDataFieldsSchema> & PageDataFieldsSchemaCommonProps;
|
|
5
|
+
export declare type PageDataConditionalFieldSchema = ConditionalField<PageDataFieldsSchema> & PageDataFieldsSchemaCommonProps;
|
|
6
|
+
export declare type PageDataFieldGroupSchema = FieldGroup<PageDataFieldsSchema> & PageDataFieldsSchemaCommonProps;
|
|
7
|
+
export declare type PageDataAsyncCheckGroupSchema = AsyncCheckGroup & PageDataFieldsSchemaCommonProps;
|
|
8
|
+
export declare type PageDataAsyncSelectSchema = AsyncSelect & PageDataFieldsSchemaCommonProps;
|
|
9
|
+
export declare type PageDataCheckGroupSchema = CheckGroup & PageDataFieldsSchemaCommonProps;
|
|
10
|
+
export declare type PageDataColorPickerSchema = ColorPicker & PageDataFieldsSchemaCommonProps;
|
|
11
|
+
export declare type PageDataComponentArraySchema = ComponentArray & PageDataFieldsSchemaCommonProps;
|
|
12
|
+
export declare type PageDataComponentContainerSchema = ComponentContainer & PageDataFieldsSchemaCommonProps;
|
|
13
|
+
export declare type PageDataDateFieldSchema = DateField & PageDataFieldsSchemaCommonProps;
|
|
14
|
+
export declare type PageDataFieldsSchemaDividerSchema = FieldsDivider & PageDataFieldsSchemaCommonProps;
|
|
15
|
+
export declare type PageDataFileFieldSchema = FileField & PageDataFieldsSchemaCommonProps;
|
|
16
|
+
export declare type PageDataHeadingFieldSchema = HeadingField & PageDataFieldsSchemaCommonProps;
|
|
17
|
+
export declare type PageDataImageFieldSchema = ImageField & PageDataFieldsSchemaCommonProps;
|
|
18
|
+
export declare type PageDataLinkFieldSchema = LinkField & PageDataFieldsSchemaCommonProps;
|
|
19
|
+
export declare type PageDataMultiCheckSelectSchema = MultiCheckSelect & PageDataFieldsSchemaCommonProps;
|
|
20
|
+
export declare type PageDataMultiCheckSelectGroupSchema = MultiCheckSelectGroup & PageDataFieldsSchemaCommonProps;
|
|
21
|
+
export declare type PageDataNoteFieldSchema = NoteField & PageDataFieldsSchemaCommonProps;
|
|
22
|
+
export declare type PageDataNumberFieldSchema = NumberField & PageDataFieldsSchemaCommonProps;
|
|
23
|
+
export declare type PageDataRadioGroupSchema = RadioGroup & PageDataFieldsSchemaCommonProps;
|
|
24
|
+
export declare type PageDataReferenceFieldSchema = ReferenceField & PageDataFieldsSchemaCommonProps;
|
|
25
|
+
export declare type PageDataRichTextSchema = RichText & PageDataFieldsSchemaCommonProps;
|
|
26
|
+
export declare type PageDataSelectSchema = Select & PageDataFieldsSchemaCommonProps;
|
|
27
|
+
export declare type PageDataSliderFieldSchema = SliderField & PageDataFieldsSchemaCommonProps;
|
|
28
|
+
export declare type PageDataTextAreaSchema = TextArea & PageDataFieldsSchemaCommonProps;
|
|
29
|
+
export declare type PageDataTextFieldSchema = TextField & PageDataFieldsSchemaCommonProps;
|
|
30
|
+
export declare type PageDataToggleFieldSchema = ToggleField & PageDataFieldsSchemaCommonProps;
|
|
31
|
+
export declare type PageDataUniqueCheckSchema = UniqueCheck & PageDataFieldsSchemaCommonProps;
|
|
32
|
+
export declare type PageDataUrlFieldSchema = UrlField & PageDataFieldsSchemaCommonProps;
|
|
33
|
+
export declare type PageDataVisualUniqueSelectionSchema = VisualUniqueSelection & PageDataFieldsSchemaCommonProps;
|
|
34
|
+
export declare type PageDataWysiwygSchema = Wysiwyg & PageDataFieldsSchemaCommonProps;
|
|
35
|
+
export declare type PageDataFieldsSchema = PageDataArrayFieldGroupSchema | PageDataConditionalFieldSchema | PageDataFieldGroupSchema | PageDataAsyncCheckGroupSchema | PageDataAsyncSelectSchema | PageDataCheckGroupSchema | PageDataColorPickerSchema | PageDataComponentArraySchema | PageDataComponentContainerSchema | PageDataDateFieldSchema | PageDataFieldsSchemaDividerSchema | PageDataFileFieldSchema | PageDataHeadingFieldSchema | PageDataImageFieldSchema | PageDataLinkFieldSchema | PageDataMultiCheckSelectSchema | PageDataMultiCheckSelectGroupSchema | PageDataNoteFieldSchema | PageDataNumberFieldSchema | PageDataRadioGroupSchema | PageDataReferenceFieldSchema | PageDataRichTextSchema | PageDataSelectSchema | PageDataSliderFieldSchema | PageDataTextAreaSchema | PageDataTextFieldSchema | PageDataToggleFieldSchema | PageDataUniqueCheckSchema | PageDataUrlFieldSchema | PageDataVisualUniqueSelectionSchema | PageDataWysiwygSchema;
|
|
6
36
|
export {};
|
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
import { ArrayFieldGroup, AsyncCheckGroup, AsyncSelect, CheckGroup, ColorPicker, ConditionalField, DateField, FieldGroup, FieldsDivider, FileField, HeadingField, ImageField, LinkField, MultiCheckSelect, MultiCheckSelectGroup, NoteField, NumberField, RadioGroup, ReferenceField, RichText, Select, SliderField, TextArea, TextField, ToggleField, UniqueCheck, UrlField, VisualUniqueSelection, Wysiwyg } from "./base";
|
|
2
2
|
import { HelpText, Hideable, Indexable, IsMockup, PlaceHolder, Prefix, Readonly, Searchable, ShowList, SlugTo, Validators } from "./props";
|
|
3
|
-
declare type
|
|
4
|
-
export declare type
|
|
5
|
-
export declare type
|
|
3
|
+
declare type PureDataSchemaCommonProps = Hideable & Indexable & Searchable & ShowList & HelpText;
|
|
4
|
+
export declare type PureDataArrayFieldGroupSchema = ArrayFieldGroup<PureDataFieldsSchema> & PureDataSchemaCommonProps;
|
|
5
|
+
export declare type PureDataAsyncCheckGroupSchema = AsyncCheckGroup & PureDataSchemaCommonProps;
|
|
6
|
+
export declare type PureDataAsyncSelectSchema = AsyncSelect & PureDataSchemaCommonProps & PlaceHolder;
|
|
7
|
+
export declare type PureDataCheckGroupSchema = CheckGroup & PureDataSchemaCommonProps;
|
|
8
|
+
export declare type PureDataColorPickerSchema = ColorPicker & PureDataSchemaCommonProps;
|
|
9
|
+
export declare type PureDataConditionalFieldSchema = ConditionalField<PureDataFieldsSchema> & PureDataSchemaCommonProps;
|
|
10
|
+
export declare type PureDataDateFieldSchema = DateField & Validators & PureDataSchemaCommonProps & PlaceHolder;
|
|
11
|
+
export declare type PureDataFieldGroupSchema = FieldGroup<PureDataFieldsSchema> & PureDataSchemaCommonProps;
|
|
12
|
+
export declare type PureDataFieldsSchemaDividerSchema = FieldsDivider & PureDataSchemaCommonProps;
|
|
13
|
+
export declare type PureDataFileFieldSchema = FileField & PureDataSchemaCommonProps & PlaceHolder;
|
|
14
|
+
export declare type PureDataHeadingFieldSchema = HeadingField & IsMockup & Validators & PureDataSchemaCommonProps & PlaceHolder;
|
|
15
|
+
export declare type PureDataImageFieldSchema = ImageField & IsMockup & PureDataSchemaCommonProps;
|
|
16
|
+
export declare type PureDataLinkFieldSchema = LinkField & PureDataSchemaCommonProps;
|
|
17
|
+
export declare type PureDataMultiCheckSelectSchema = MultiCheckSelect & PureDataSchemaCommonProps;
|
|
18
|
+
export declare type PureDataMultiCheckSelectGroupSchema = MultiCheckSelectGroup & PureDataSchemaCommonProps;
|
|
19
|
+
export declare type PureDataNoteFieldSchema = NoteField & PureDataSchemaCommonProps;
|
|
20
|
+
export declare type PureDataNumberFieldSchema = NumberField & Validators & PureDataSchemaCommonProps & PlaceHolder;
|
|
21
|
+
export declare type PureDataRadioGroupSchema = RadioGroup & PureDataSchemaCommonProps;
|
|
22
|
+
export declare type PureDataReferenceFieldSchema = ReferenceField & PureDataSchemaCommonProps;
|
|
23
|
+
export declare type PureDataRichTextSchema = RichText & IsMockup & Validators & PureDataSchemaCommonProps & PlaceHolder;
|
|
24
|
+
export declare type PureDataSelectSchema = Select & Validators & PureDataSchemaCommonProps & PlaceHolder;
|
|
25
|
+
export declare type PureDataSliderFieldSchema = SliderField & Validators & PureDataSchemaCommonProps;
|
|
26
|
+
export declare type PureDataTextAreaSchema = TextArea & IsMockup & Validators & PureDataSchemaCommonProps & PlaceHolder;
|
|
27
|
+
export declare type PureDataTextFieldSchema = TextField & IsMockup & Validators & Readonly & SlugTo & Prefix & PlaceHolder & PureDataSchemaCommonProps;
|
|
28
|
+
export declare type PureDataToggleFieldSchema = ToggleField & PureDataSchemaCommonProps;
|
|
29
|
+
export declare type PureDataUniqueCheckSchema = UniqueCheck & PureDataSchemaCommonProps;
|
|
30
|
+
export declare type PureDataUrlFieldSchema = UrlField & Validators & PureDataSchemaCommonProps & PlaceHolder;
|
|
31
|
+
export declare type PureDataVisualUniqueSelectionSchema = VisualUniqueSelection & PureDataSchemaCommonProps;
|
|
32
|
+
export declare type PureDataWysiwygSchema = Wysiwyg & IsMockup & Validators & PureDataSchemaCommonProps & PlaceHolder;
|
|
33
|
+
export declare type PureDataFieldsSchema = PureDataArrayFieldGroupSchema | PureDataAsyncCheckGroupSchema | PureDataAsyncSelectSchema | PureDataCheckGroupSchema | PureDataColorPickerSchema | PureDataConditionalFieldSchema | PureDataDateFieldSchema | PureDataFieldGroupSchema | PureDataFieldsSchemaDividerSchema | PureDataFileFieldSchema | PureDataHeadingFieldSchema | PureDataImageFieldSchema | PureDataLinkFieldSchema | PureDataMultiCheckSelectSchema | PureDataMultiCheckSelectGroupSchema | PureDataNoteFieldSchema | PureDataNumberFieldSchema | PureDataRadioGroupSchema | PureDataReferenceFieldSchema | PureDataRichTextSchema | PureDataSelectSchema | PureDataSliderFieldSchema | PureDataTextAreaSchema | PureDataTextFieldSchema | PureDataToggleFieldSchema | PureDataUniqueCheckSchema | PureDataUrlFieldSchema | PureDataVisualUniqueSelectionSchema | PureDataWysiwygSchema;
|
|
6
34
|
export {};
|
|
@@ -1,21 +1,35 @@
|
|
|
1
1
|
import { ArrayFieldGroup, AsyncCheckGroup, AsyncSelect, CheckGroup, ColorPicker, ComponentArray, ComponentContainer, ConditionalField, DateField, FieldGroup, FieldsDivider, FileField, HeadingField, ImageField, LinkField, MultiCheckSelect, MultiCheckSelectGroup, NoteField, NumberField, RadioGroup, ReferenceField, RichText, Select, SliderField, TextArea, TextField, ToggleField, UniqueCheck, UrlField, VisualUniqueSelection, Wysiwyg } from "./base";
|
|
2
2
|
import { HelpText, Hideable, IsMockup, PlaceHolder, Prefix, Readonly, SlugTo, Validators, Value, WhiteList } from "./props";
|
|
3
|
-
declare type
|
|
4
|
-
export declare type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export declare type
|
|
21
|
-
export
|
|
3
|
+
export declare type UIFieldSchemaCommonProps = HelpText & Hideable & Value;
|
|
4
|
+
export declare type UIArrayFieldGroupSchema = ArrayFieldGroup<UIFieldsSchema> & UIFieldSchemaCommonProps;
|
|
5
|
+
export declare type UIAsyncCheckGroupSchema = AsyncCheckGroup & UIFieldSchemaCommonProps;
|
|
6
|
+
export declare type UIAsyncSelectSchema = AsyncSelect & UIFieldSchemaCommonProps & PlaceHolder;
|
|
7
|
+
export declare type UICheckGroupSchema = CheckGroup & UIFieldSchemaCommonProps;
|
|
8
|
+
export declare type UIColorPickerSchema = ColorPicker & UIFieldSchemaCommonProps;
|
|
9
|
+
export declare type UIComponentArraySchema = ComponentArray & WhiteList & UIFieldSchemaCommonProps;
|
|
10
|
+
export declare type UIComponentContainerSchema = ComponentContainer & WhiteList & UIFieldSchemaCommonProps;
|
|
11
|
+
export declare type UIConditionalFieldSchema = ConditionalField<UIFieldsSchema> & UIFieldSchemaCommonProps;
|
|
12
|
+
export declare type UIDateFieldSchema = DateField & Validators & UIFieldSchemaCommonProps & PlaceHolder;
|
|
13
|
+
export declare type UIFieldGroupSchema = FieldGroup<UIFieldsSchema> & UIFieldSchemaCommonProps;
|
|
14
|
+
export declare type UIFieldsDividerSchema = FieldsDivider & UIFieldSchemaCommonProps;
|
|
15
|
+
export declare type UIFileFieldSchema = FileField & UIFieldSchemaCommonProps & PlaceHolder;
|
|
16
|
+
export declare type UIHeadingFieldSchema = HeadingField & IsMockup & Validators & UIFieldSchemaCommonProps & PlaceHolder;
|
|
17
|
+
export declare type UIImageFieldSchema = ImageField & IsMockup & UIFieldSchemaCommonProps;
|
|
18
|
+
export declare type UILinkFieldSchema = LinkField & WhiteList & UIFieldSchemaCommonProps;
|
|
19
|
+
export declare type UIMultiCheckSelectSchema = MultiCheckSelect & UIFieldSchemaCommonProps;
|
|
20
|
+
export declare type UIMultiCheckSelectGroupSchema = MultiCheckSelectGroup & UIFieldSchemaCommonProps;
|
|
21
|
+
export declare type UINoteFieldSchema = NoteField & UIFieldSchemaCommonProps;
|
|
22
|
+
export declare type UINumberFieldSchema = NumberField & Validators & UIFieldSchemaCommonProps & PlaceHolder;
|
|
23
|
+
export declare type UIRadioGroupSchema = RadioGroup & UIFieldSchemaCommonProps;
|
|
24
|
+
export declare type UIReferenceFieldSchema = ReferenceField & UIFieldSchemaCommonProps;
|
|
25
|
+
export declare type UIRichTextSchema = RichText & IsMockup & Validators & UIFieldSchemaCommonProps & PlaceHolder;
|
|
26
|
+
export declare type UISelectSchema = Select & Validators & UIFieldSchemaCommonProps & PlaceHolder;
|
|
27
|
+
export declare type UISliderFieldSchema = SliderField & Validators & UIFieldSchemaCommonProps;
|
|
28
|
+
export declare type UITextAreaSchema = TextArea & IsMockup & Validators & UIFieldSchemaCommonProps & PlaceHolder;
|
|
29
|
+
export declare type UITextFieldSchema = TextField & IsMockup & Validators & Readonly & SlugTo & Prefix & PlaceHolder & UIFieldSchemaCommonProps;
|
|
30
|
+
export declare type UIToggleFieldSchema = ToggleField & UIFieldSchemaCommonProps;
|
|
31
|
+
export declare type UIUniqueCheckSchema = UniqueCheck & UIFieldSchemaCommonProps;
|
|
32
|
+
export declare type UIUrlFieldSchema = UrlField & Validators & UIFieldSchemaCommonProps & PlaceHolder;
|
|
33
|
+
export declare type UIVisualUniqueSelectionSchema = VisualUniqueSelection & UIFieldSchemaCommonProps;
|
|
34
|
+
export declare type UIWysiwygSchema = Wysiwyg & IsMockup & Validators & UIFieldSchemaCommonProps & PlaceHolder;
|
|
35
|
+
export declare type UIFieldsSchema = UIArrayFieldGroupSchema | UIAsyncCheckGroupSchema | UIAsyncSelectSchema | UICheckGroupSchema | UIColorPickerSchema | UIComponentArraySchema | UIComponentContainerSchema | UIConditionalFieldSchema | UIDateFieldSchema | UIFieldGroupSchema | UIFieldsDividerSchema | UIFileFieldSchema | UIHeadingFieldSchema | UIImageFieldSchema | UILinkFieldSchema | UIMultiCheckSelectSchema | UIMultiCheckSelectGroupSchema | UINoteFieldSchema | UINumberFieldSchema | UIRadioGroupSchema | UIReferenceFieldSchema | UIRichTextSchema | UISelectSchema | UISliderFieldSchema | UITextAreaSchema | UITextFieldSchema | UIToggleFieldSchema | UIUniqueCheckSchema | UIUrlFieldSchema | UIVisualUniqueSelectionSchema | UIWysiwygSchema;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { DataPacks } from "./props";
|
|
2
2
|
import { BaseDataSchema } from "./base";
|
|
3
3
|
export interface CategoriesSchema extends BaseDataSchema, Required<DataPacks> {
|
|
4
|
-
/**
|
|
5
|
-
taxonomy
|
|
6
|
-
/** No
|
|
7
|
-
|
|
4
|
+
/** Indica que es una categoría, siempre debe ser `true` */
|
|
5
|
+
taxonomy: true;
|
|
6
|
+
/** No es necesario indicar `fromPage` en las categorías pues siempre deben ser false.
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
9
|
+
fromPage?: never;
|
|
8
10
|
/** No hace falta indicar `schema` en las categorías.
|
|
9
11
|
* @deprecated */
|
|
10
|
-
schema?:
|
|
12
|
+
schema?: never;
|
|
11
13
|
}
|
|
@@ -8,11 +8,11 @@ export interface HeaderFooterSchema {
|
|
|
8
8
|
/** Indica si este módulo eserá el seleccionado por defecto */
|
|
9
9
|
defaultNavigation?: boolean;
|
|
10
10
|
/** Nombre con el que representar el componente, módulo o template en la interfaz del editor de Griddo. */
|
|
11
|
-
displayName
|
|
11
|
+
displayName: string;
|
|
12
12
|
/** Array de objetos que representan cada una de las pestañas del componente, módulo o template en el editor de Griddo donde se visualizarán los campos de formulario para la introducción de datos. */
|
|
13
13
|
configTabs: ConfigTabs[];
|
|
14
14
|
/** Objeto para establecer valores por defecto de las keys del schema. */
|
|
15
|
-
default
|
|
15
|
+
default: {
|
|
16
16
|
/** Nombre del componente o módulo de este schema */
|
|
17
17
|
component: string;
|
|
18
18
|
[key: string]: unknown;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { SearchFrom } from "../fields/props";
|
|
2
|
-
import {
|
|
2
|
+
import { PageDataFieldsSchema } from "../fields/page-data-fields";
|
|
3
3
|
import { DataPacks, ExpirationData } from "./props";
|
|
4
4
|
import { BaseDataSchema } from "./base";
|
|
5
5
|
declare type PageDataSchemaProp = SearchFrom & {
|
|
6
6
|
/** El nombre de lostemplates React para utilizar con el Schema de tipo página. */
|
|
7
7
|
templates: string[];
|
|
8
8
|
/** Un array de campos de Griddo. */
|
|
9
|
-
fields:
|
|
9
|
+
fields: PageDataFieldsSchema[];
|
|
10
10
|
};
|
|
11
11
|
export interface PageDataSchema extends BaseDataSchema, DataPacks, ExpirationData {
|
|
12
|
-
taxonomy
|
|
13
|
-
/** No es necesario indicar la prop `fromPage` en un schema: **Dato estructurado de página**. Siempre va a ser `true`.
|
|
12
|
+
/** No es necesario indicar la prop `taxonomy` pues siempre va a ser `false`.
|
|
14
13
|
* @deprecated */
|
|
15
|
-
|
|
14
|
+
taxonomy?: never;
|
|
15
|
+
/** Indica que el dato es de tipo página. Siempre ha de ser `true`. */
|
|
16
|
+
fromPage: true;
|
|
16
17
|
/** Schema para los datos. */
|
|
17
18
|
schema: PageDataSchemaProp | null;
|
|
18
19
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { SearchFrom } from "../fields/props";
|
|
2
|
-
import {
|
|
2
|
+
import { PureDataFieldsSchema } from "../fields/pure-data-fields";
|
|
3
3
|
import { DataPacks, ExpirationData } from "./props";
|
|
4
4
|
import { BaseDataSchema } from "./base";
|
|
5
5
|
declare type PureDataSchemaProp = SearchFrom & {
|
|
6
6
|
/** Un array de campos de Griddo. */
|
|
7
|
-
fields:
|
|
7
|
+
fields: Array<PureDataFieldsSchema>;
|
|
8
8
|
};
|
|
9
9
|
export interface PureDataSchema extends BaseDataSchema, DataPacks, ExpirationData {
|
|
10
10
|
/** No es necesario indicar la prop `fromPage` en un schema: **Dato estructurado puro**. Siempre va a ser `false`.
|
|
11
11
|
* @deprecated */
|
|
12
|
-
fromPage?:
|
|
12
|
+
fromPage?: never;
|
|
13
13
|
schema: PureDataSchemaProp;
|
|
14
14
|
}
|
|
15
15
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIFieldsSchema } from "../fields/ui-fields";
|
|
2
2
|
import { BaseUISchema } from "./base";
|
|
3
3
|
import { ConfigTabs, Dimension } from "./props";
|
|
4
4
|
interface ComponentAndModuleSchema extends BaseUISchema {
|
|
@@ -6,7 +6,7 @@ interface ComponentAndModuleSchema extends BaseUISchema {
|
|
|
6
6
|
/** Array de objetos que representan cada una de las pestañas del componente, módulo o template en el editor de Griddo donde se visualizarán los campos de formulario para la introducción de datos. */
|
|
7
7
|
configTabs: ConfigTabs[];
|
|
8
8
|
/** Objeto para establecer valores por defecto de las keys del schema. */
|
|
9
|
-
default
|
|
9
|
+
default: {
|
|
10
10
|
/** Nombre del componente o módulo de este schema */
|
|
11
11
|
component: string;
|
|
12
12
|
[key: string]: unknown;
|
|
@@ -25,11 +25,11 @@ interface TemplateSchema extends BaseUISchema {
|
|
|
25
25
|
/** Array de clave-valor que van vinculados a una página y se utilizan para ser enviadas al dataLayer (Analytics) cuando se carga la página. */
|
|
26
26
|
dimensions?: Dimension[];
|
|
27
27
|
/** Array de fields para la pestaña content */
|
|
28
|
-
content?:
|
|
28
|
+
content?: Array<UIFieldsSchema>;
|
|
29
29
|
/** Array de fields para la pestaña config */
|
|
30
|
-
config?:
|
|
30
|
+
config?: Array<UIFieldsSchema>;
|
|
31
31
|
/** Objeto para establecer valores por defecto de las keys del schema. */
|
|
32
|
-
default
|
|
32
|
+
default: {
|
|
33
33
|
/** Nombre del template de este schema */
|
|
34
34
|
templateType: string;
|
|
35
35
|
[key: string]: unknown;
|
|
@@ -43,7 +43,7 @@ interface BaseUISchema extends DataPacks {
|
|
|
43
43
|
/** Nombre de la categoría previamente exportada como `moduleCategories` para Griddo. Las categorías se utilizan para distribuir y ordenar los módulos en la interface del editor de Griddo. */
|
|
44
44
|
category?: string;
|
|
45
45
|
/** Nombre con el que representar el componente, módulo o template en la interfaz del editor de Griddo. */
|
|
46
|
-
displayName
|
|
46
|
+
displayName: string;
|
|
47
47
|
/** ????? */
|
|
48
48
|
sectionList?: {
|
|
49
49
|
[key: string]: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIFieldsSchema } from "../fields/ui-fields";
|
|
2
2
|
declare type DataPacks = {
|
|
3
3
|
/** Establece los Data Packs a los que pertenece este schema. */
|
|
4
4
|
dataPacks?: string[] | null;
|
|
@@ -27,6 +27,6 @@ export interface ConfigTabs {
|
|
|
27
27
|
/** Título que aparecerá en la pestaña en el editor de Griddo. */
|
|
28
28
|
title: "content" | "config" | (string & {});
|
|
29
29
|
/** Array de campos de Griddo. */
|
|
30
|
-
fields:
|
|
30
|
+
fields: Array<UIFieldsSchema>;
|
|
31
31
|
}
|
|
32
32
|
export { DataPacks, Dimension, ExpirationData, Thumbnails };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@griddo/core",
|
|
3
3
|
"description": "Reload version of Griddo Core",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "1.73.
|
|
5
|
+
"version": "1.73.16",
|
|
6
6
|
"authors": [
|
|
7
7
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
8
8
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"resolutions": {
|
|
74
74
|
"colors": "1.4.0"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "891c4e9c04393e55a679ffa58d49a410fa685960"
|
|
77
77
|
}
|