@dfds-dynamic-forms/common
Advanced tools
Comparing version 0.11.5 to 0.11.6-alpha-241.2bc86e3.0
@@ -64,3 +64,3 @@ 'use strict'; | ||
function _templateObject5() { | ||
var data = _taggedTemplateLiteralLoose(["\n fragment DynamicForm on Form {\n title\n fieldsCollection(limit: 100) {\n items {\n ... on Entry {\n __typename\n }\n ...FormInputField\n ...FormSelectField\n ...FormCheckboxField\n }\n }\n submitSuccessMessage {\n ...FormMessage\n }\n submitFailureMessage {\n ...FormMessage\n }\n }\n ", "\n ", "\n ", "\n ", "\n"]); | ||
var data = _taggedTemplateLiteralLoose(["\n fragment DynamicForm on Form {\n entryTitle\n title\n fieldsCollection(limit: 100) {\n items {\n ... on Entry {\n __typename\n }\n ...FormInputField\n ...FormSelectField\n ...FormCheckboxField\n }\n }\n submitSuccessMessage {\n ...FormMessage\n }\n submitFailureMessage {\n ...FormMessage\n }\n }\n ", "\n ", "\n ", "\n ", "\n"]); | ||
@@ -1327,3 +1327,3 @@ _templateObject5 = function _templateObject5() { | ||
function _templateObject$1() { | ||
var data = _taggedTemplateLiteralLoose(["\n fragment DynamicForm on Form {\n title\n fieldsCollection(limit: 100) {\n items {\n ... on Entry {\n __typename\n }\n ...FormInputField\n ...FormSelectField\n ...FormCheckboxField\n }\n }\n submitSuccessMessage {\n ...FormMessage\n }\n submitFailureMessage {\n ...FormMessage\n }\n }\n\n fragment FormInputField on FormInputField {\n sys {\n id\n }\n type\n name: key\n hintText\n label\n assistiveText\n errorMessage\n defaultValue\n required\n }\n\n fragment FormSelectField on FormSelectField {\n sys {\n id\n }\n name: key\n type\n label\n disabled\n errorMessage\n assistiveText\n defaultValue\n required\n optionsCollection {\n items {\n value\n children: displayValue\n }\n }\n }\n\n fragment FormCheckboxField on FormCheckboxField {\n sys {\n id\n }\n title\n text\n required\n }\n\n fragment FormMessage on FormMessage {\n sys {\n id\n }\n text\n }\n"]); | ||
var data = _taggedTemplateLiteralLoose(["\n fragment DynamicForm on Form {\n entryTitle\n title\n fieldsCollection(limit: 100) {\n items {\n ... on Entry {\n __typename\n }\n ...FormInputField\n ...FormSelectField\n ...FormCheckboxField\n }\n }\n submitSuccessMessage {\n ...FormMessage\n }\n submitFailureMessage {\n ...FormMessage\n }\n }\n\n fragment FormInputField on FormInputField {\n sys {\n id\n }\n type\n name: key\n hintText\n label\n assistiveText\n errorMessage\n defaultValue\n required\n }\n\n fragment FormSelectField on FormSelectField {\n sys {\n id\n }\n name: key\n type\n label\n disabled\n errorMessage\n assistiveText\n defaultValue\n required\n optionsCollection {\n items {\n value\n children: displayValue\n }\n }\n }\n\n fragment FormCheckboxField on FormCheckboxField {\n sys {\n id\n }\n title\n text\n required\n }\n\n fragment FormMessage on FormMessage {\n sys {\n id\n }\n text\n }\n"]); | ||
@@ -1330,0 +1330,0 @@ _templateObject$1 = function _templateObject() { |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,s,t,r,i,n,o,l,y,c,u,d,_,S,A,a,h,C,D,p,b,f,E,P,m=require("@apollo/client"),g=require("@apollo/client/core");function F(e,s,t,r,i,n,o){try{var l=e[n](o),y=l.value}catch(e){return void t(e)}l.done?s(y):Promise.resolve(y).then(r,i)}function T(e){return function(){var s=this,t=arguments;return new Promise((function(r,i){var n=e.apply(s,t);function o(e){F(n,r,i,o,l,"next",e)}function l(e){F(n,r,i,o,l,"throw",e)}o(void 0)}))}}function v(e,s){return s||(s=e.slice(0)),e.raw=s,e}function x(){var e=v(['\n query DYNAMIC_FORM($id: String!, $preview: Boolean, $locale: String = "en") {\n form(id: $id, preview: $preview, locale: $locale) {\n ...DynamicForm\n }\n }\n ',"\n"]);return x=function(){return e},e}function V(){var e=v(["\n fragment DynamicForm on Form {\n title\n fieldsCollection(limit: 100) {\n items {\n ... on Entry {\n __typename\n }\n ...FormInputField\n ...FormSelectField\n ...FormCheckboxField\n }\n }\n submitSuccessMessage {\n ...FormMessage\n }\n submitFailureMessage {\n ...FormMessage\n }\n }\n ","\n ","\n ","\n ","\n"]);return V=function(){return e},e}function O(){var e=v(["\n fragment FormMessage on FormMessage {\n sys {\n id\n }\n text\n }\n"]);return O=function(){return e},e}function I(){var e=v(["\n fragment FormCheckboxField on FormCheckboxField {\n sys {\n id\n }\n title\n text\n required\n }\n"]);return I=function(){return e},e}function w(){var e=v(["\n fragment FormSelectField on FormSelectField {\n sys {\n id\n }\n name: key\n type\n label\n disabled\n errorMessage\n assistiveText\n defaultValue\n required\n optionsCollection {\n items {\n value\n children: displayValue\n }\n }\n }\n"]);return w=function(){return e},e}function L(){var e=v(["\n fragment FormInputField on FormInputField {\n sys {\n id\n }\n type\n name: key\n hintText\n label\n assistiveText\n errorMessage\n defaultValue\n required\n }\n"]);return L=function(){return e},e}(e=exports.ImageResizeStrategy||(exports.ImageResizeStrategy={})).Fit="FIT",e.Pad="PAD",e.Fill="FILL",e.Scale="SCALE",e.Crop="CROP",e.Thumb="THUMB",(s=exports.ImageResizeFocus||(exports.ImageResizeFocus={})).Center="CENTER",s.Top="TOP",s.TopRight="TOP_RIGHT",s.Right="RIGHT",s.BottomRight="BOTTOM_RIGHT",s.Bottom="BOTTOM",s.BottomLeft="BOTTOM_LEFT",s.Left="LEFT",s.TopLeft="TOP_LEFT",s.Face="FACE",s.Faces="FACES",(t=exports.ImageFormat||(exports.ImageFormat={})).Jpg="JPG",t.JpgProgressive="JPG_PROGRESSIVE",t.Png="PNG",t.Png8="PNG8",t.Webp="WEBP",(r=exports.AssetOrder||(exports.AssetOrder={})).UrlAsc="url_ASC",r.UrlDesc="url_DESC",r.SizeAsc="size_ASC",r.SizeDesc="size_DESC",r.ContentTypeAsc="contentType_ASC",r.ContentTypeDesc="contentType_DESC",r.FileNameAsc="fileName_ASC",r.FileNameDesc="fileName_DESC",r.WidthAsc="width_ASC",r.WidthDesc="width_DESC",r.HeightAsc="height_ASC",r.HeightDesc="height_DESC",r.SysIdAsc="sys_id_ASC",r.SysIdDesc="sys_id_DESC",r.SysPublishedAtAsc="sys_publishedAt_ASC",r.SysPublishedAtDesc="sys_publishedAt_DESC",r.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",r.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",r.SysPublishedVersionAsc="sys_publishedVersion_ASC",r.SysPublishedVersionDesc="sys_publishedVersion_DESC",(i=exports.FormOrder||(exports.FormOrder={})).EntryTitleAsc="entryTitle_ASC",i.EntryTitleDesc="entryTitle_DESC",i.TitleAsc="title_ASC",i.TitleDesc="title_DESC",i.SysIdAsc="sys_id_ASC",i.SysIdDesc="sys_id_DESC",i.SysPublishedAtAsc="sys_publishedAt_ASC",i.SysPublishedAtDesc="sys_publishedAt_DESC",i.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",i.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",i.SysPublishedVersionAsc="sys_publishedVersion_ASC",i.SysPublishedVersionDesc="sys_publishedVersion_DESC",(n=exports.FormMessageOrder||(exports.FormMessageOrder={})).EntryTitleAsc="entryTitle_ASC",n.EntryTitleDesc="entryTitle_DESC",n.SysIdAsc="sys_id_ASC",n.SysIdDesc="sys_id_DESC",n.SysPublishedAtAsc="sys_publishedAt_ASC",n.SysPublishedAtDesc="sys_publishedAt_DESC",n.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",n.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",n.SysPublishedVersionAsc="sys_publishedVersion_ASC",n.SysPublishedVersionDesc="sys_publishedVersion_DESC",(o=exports.FormSelectOptionOrder||(exports.FormSelectOptionOrder={})).EntryTitleAsc="entryTitle_ASC",o.EntryTitleDesc="entryTitle_DESC",o.DisplayValueAsc="displayValue_ASC",o.DisplayValueDesc="displayValue_DESC",o.ValueAsc="value_ASC",o.ValueDesc="value_DESC",o.SysIdAsc="sys_id_ASC",o.SysIdDesc="sys_id_DESC",o.SysPublishedAtAsc="sys_publishedAt_ASC",o.SysPublishedAtDesc="sys_publishedAt_DESC",o.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",o.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",o.SysPublishedVersionAsc="sys_publishedVersion_ASC",o.SysPublishedVersionDesc="sys_publishedVersion_DESC",(l=exports.FormCheckboxFieldOrder||(exports.FormCheckboxFieldOrder={})).EntryTitleAsc="entryTitle_ASC",l.EntryTitleDesc="entryTitle_DESC",l.TitleAsc="title_ASC",l.TitleDesc="title_DESC",l.RequiredAsc="required_ASC",l.RequiredDesc="required_DESC",l.SysIdAsc="sys_id_ASC",l.SysIdDesc="sys_id_DESC",l.SysPublishedAtAsc="sys_publishedAt_ASC",l.SysPublishedAtDesc="sys_publishedAt_DESC",l.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",l.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",l.SysPublishedVersionAsc="sys_publishedVersion_ASC",l.SysPublishedVersionDesc="sys_publishedVersion_DESC",(y=exports.FormInputFieldOrder||(exports.FormInputFieldOrder={})).EntryTitleAsc="entryTitle_ASC",y.EntryTitleDesc="entryTitle_DESC",y.TypeAsc="type_ASC",y.TypeDesc="type_DESC",y.KeyAsc="key_ASC",y.KeyDesc="key_DESC",y.NameAsc="name_ASC",y.NameDesc="name_DESC",y.HintTextAsc="hintText_ASC",y.HintTextDesc="hintText_DESC",y.LabelAsc="label_ASC",y.LabelDesc="label_DESC",y.AssistiveTextAsc="assistiveText_ASC",y.AssistiveTextDesc="assistiveText_DESC",y.ErrorMessageAsc="errorMessage_ASC",y.ErrorMessageDesc="errorMessage_DESC",y.DefaultValueAsc="defaultValue_ASC",y.DefaultValueDesc="defaultValue_DESC",y.RequiredAsc="required_ASC",y.RequiredDesc="required_DESC",y.SysIdAsc="sys_id_ASC",y.SysIdDesc="sys_id_DESC",y.SysPublishedAtAsc="sys_publishedAt_ASC",y.SysPublishedAtDesc="sys_publishedAt_DESC",y.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",y.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",y.SysPublishedVersionAsc="sys_publishedVersion_ASC",y.SysPublishedVersionDesc="sys_publishedVersion_DESC",(c=exports.FormSelectFieldOrder||(exports.FormSelectFieldOrder={})).EntryTitleAsc="entryTitle_ASC",c.EntryTitleDesc="entryTitle_DESC",c.TypeAsc="type_ASC",c.TypeDesc="type_DESC",c.KeyAsc="key_ASC",c.KeyDesc="key_DESC",c.LabelAsc="label_ASC",c.LabelDesc="label_DESC",c.RequiredAsc="required_ASC",c.RequiredDesc="required_DESC",c.DisabledAsc="disabled_ASC",c.DisabledDesc="disabled_DESC",c.ErrorMessageAsc="errorMessage_ASC",c.ErrorMessageDesc="errorMessage_DESC",c.AssistiveTextAsc="assistiveText_ASC",c.AssistiveTextDesc="assistiveText_DESC",c.DefaultValueAsc="defaultValue_ASC",c.DefaultValueDesc="defaultValue_DESC",c.SysIdAsc="sys_id_ASC",c.SysIdDesc="sys_id_DESC",c.SysPublishedAtAsc="sys_publishedAt_ASC",c.SysPublishedAtDesc="sys_publishedAt_DESC",c.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",c.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",c.SysPublishedVersionAsc="sys_publishedVersion_ASC",c.SysPublishedVersionDesc="sys_publishedVersion_DESC",(u=exports.MigrationLogOrder||(exports.MigrationLogOrder={})).LatestMigrationAsc="latestMigration_ASC",u.LatestMigrationDesc="latestMigration_DESC",u.SysIdAsc="sys_id_ASC",u.SysIdDesc="sys_id_DESC",u.SysPublishedAtAsc="sys_publishedAt_ASC",u.SysPublishedAtDesc="sys_publishedAt_DESC",u.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",u.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",u.SysPublishedVersionAsc="sys_publishedVersion_ASC",u.SysPublishedVersionDesc="sys_publishedVersion_DESC",(d=exports.ReleaseNotesOrder||(exports.ReleaseNotesOrder={})).EntryTitleAsc="entryTitle_ASC",d.EntryTitleDesc="entryTitle_DESC",d.VersionNumberAsc="versionNumber_ASC",d.VersionNumberDesc="versionNumber_DESC",d.SysIdAsc="sys_id_ASC",d.SysIdDesc="sys_id_DESC",d.SysPublishedAtAsc="sys_publishedAt_ASC",d.SysPublishedAtDesc="sys_publishedAt_DESC",d.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",d.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",d.SysPublishedVersionAsc="sys_publishedVersion_ASC",d.SysPublishedVersionDesc="sys_publishedVersion_DESC",(_=exports.SimpleStringOrder||(exports.SimpleStringOrder={})).EntryTitleAsc="entryTitle_ASC",_.EntryTitleDesc="entryTitle_DESC",_.KeyAsc="key_ASC",_.KeyDesc="key_DESC",_.SysIdAsc="sys_id_ASC",_.SysIdDesc="sys_id_DESC",_.SysPublishedAtAsc="sys_publishedAt_ASC",_.SysPublishedAtDesc="sys_publishedAt_DESC",_.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",_.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",_.SysPublishedVersionAsc="sys_publishedVersion_ASC",_.SysPublishedVersionDesc="sys_publishedVersion_DESC",(S=exports.LongStringOrder||(exports.LongStringOrder={})).EntryTitleAsc="entryTitle_ASC",S.EntryTitleDesc="entryTitle_DESC",S.SysIdAsc="sys_id_ASC",S.SysIdDesc="sys_id_DESC",S.SysPublishedAtAsc="sys_publishedAt_ASC",S.SysPublishedAtDesc="sys_publishedAt_DESC",S.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",S.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",S.SysPublishedVersionAsc="sys_publishedVersion_ASC",S.SysPublishedVersionDesc="sys_publishedVersion_DESC",(A=exports.GenericPortOrder||(exports.GenericPortOrder={})).EntryTitleAsc="entryTitle_ASC",A.EntryTitleDesc="entryTitle_DESC",A.PortCodeAsc="portCode_ASC",A.PortCodeDesc="portCode_DESC",A.SysIdAsc="sys_id_ASC",A.SysIdDesc="sys_id_DESC",A.SysPublishedAtAsc="sys_publishedAt_ASC",A.SysPublishedAtDesc="sys_publishedAt_DESC",A.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",A.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",A.SysPublishedVersionAsc="sys_publishedVersion_ASC",A.SysPublishedVersionDesc="sys_publishedVersion_DESC",(a=exports.ArrayOfItemsOrder||(exports.ArrayOfItemsOrder={})).EntryTitleAsc="entryTitle_ASC",a.EntryTitleDesc="entryTitle_DESC",a.SysIdAsc="sys_id_ASC",a.SysIdDesc="sys_id_DESC",a.SysPublishedAtAsc="sys_publishedAt_ASC",a.SysPublishedAtDesc="sys_publishedAt_DESC",a.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",a.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",a.SysPublishedVersionAsc="sys_publishedVersion_ASC",a.SysPublishedVersionDesc="sys_publishedVersion_DESC",(h=exports.TitleAndMediaOrder||(exports.TitleAndMediaOrder={})).EntryTitleAsc="entryTitle_ASC",h.EntryTitleDesc="entryTitle_DESC",h.TitleAsc="title_ASC",h.TitleDesc="title_DESC",h.SysIdAsc="sys_id_ASC",h.SysIdDesc="sys_id_DESC",h.SysPublishedAtAsc="sys_publishedAt_ASC",h.SysPublishedAtDesc="sys_publishedAt_DESC",h.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",h.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",h.SysPublishedVersionAsc="sys_publishedVersion_ASC",h.SysPublishedVersionDesc="sys_publishedVersion_DESC",(C=exports.TeamNameOrder||(exports.TeamNameOrder={})).EntryTitleAsc="entryTitle_ASC",C.EntryTitleDesc="entryTitle_DESC",C.SysIdAsc="sys_id_ASC",C.SysIdDesc="sys_id_DESC",C.SysPublishedAtAsc="sys_publishedAt_ASC",C.SysPublishedAtDesc="sys_publishedAt_DESC",C.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",C.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",C.SysPublishedVersionAsc="sys_publishedVersion_ASC",C.SysPublishedVersionDesc="sys_publishedVersion_DESC",(D=exports.TitleAndLinkOrder||(exports.TitleAndLinkOrder={})).EntryTitleAsc="entryTitle_ASC",D.EntryTitleDesc="entryTitle_DESC",D.TitleAsc="title_ASC",D.TitleDesc="title_DESC",D.LinkAsc="link_ASC",D.LinkDesc="link_DESC",D.SysIdAsc="sys_id_ASC",D.SysIdDesc="sys_id_DESC",D.SysPublishedAtAsc="sys_publishedAt_ASC",D.SysPublishedAtDesc="sys_publishedAt_DESC",D.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",D.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",D.SysPublishedVersionAsc="sys_publishedVersion_ASC",D.SysPublishedVersionDesc="sys_publishedVersion_DESC",(p=exports.RichTextStringOrder||(exports.RichTextStringOrder={})).EntryTitleAsc="entryTitle_ASC",p.EntryTitleDesc="entryTitle_DESC",p.SysIdAsc="sys_id_ASC",p.SysIdDesc="sys_id_DESC",p.SysPublishedAtAsc="sys_publishedAt_ASC",p.SysPublishedAtDesc="sys_publishedAt_DESC",p.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",p.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",p.SysPublishedVersionAsc="sys_publishedVersion_ASC",p.SysPublishedVersionDesc="sys_publishedVersion_DESC",(b=exports.NamespaceAndStringOrder||(exports.NamespaceAndStringOrder={})).EntryTitleAsc="entryTitle_ASC",b.EntryTitleDesc="entryTitle_DESC",b.NamespaceAsc="namespace_ASC",b.NamespaceDesc="namespace_DESC",b.KeyAsc="key_ASC",b.KeyDesc="key_DESC",b.SysIdAsc="sys_id_ASC",b.SysIdDesc="sys_id_DESC",b.SysPublishedAtAsc="sys_publishedAt_ASC",b.SysPublishedAtDesc="sys_publishedAt_DESC",b.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",b.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",b.SysPublishedVersionAsc="sys_publishedVersion_ASC",b.SysPublishedVersionDesc="sys_publishedVersion_DESC",(f=exports.GenericRouteOrder||(exports.GenericRouteOrder={})).EntryTitleAsc="entryTitle_ASC",f.EntryTitleDesc="entryTitle_DESC",f.RouteCodeAsc="routeCode_ASC",f.RouteCodeDesc="routeCode_DESC",f.SysIdAsc="sys_id_ASC",f.SysIdDesc="sys_id_DESC",f.SysPublishedAtAsc="sys_publishedAt_ASC",f.SysPublishedAtDesc="sys_publishedAt_DESC",f.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",f.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",f.SysPublishedVersionAsc="sys_publishedVersion_ASC",f.SysPublishedVersionDesc="sys_publishedVersion_DESC",(E=exports.DfdsAppSimpleStringOrder||(exports.DfdsAppSimpleStringOrder={})).EntryTitleAsc="entryTitle_ASC",E.EntryTitleDesc="entryTitle_DESC",E.KeyAsc="key_ASC",E.KeyDesc="key_DESC",E.SysIdAsc="sys_id_ASC",E.SysIdDesc="sys_id_DESC",E.SysPublishedAtAsc="sys_publishedAt_ASC",E.SysPublishedAtDesc="sys_publishedAt_DESC",E.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",E.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",E.SysPublishedVersionAsc="sys_publishedVersion_ASC",E.SysPublishedVersionDesc="sys_publishedVersion_DESC",(P=exports.PluralStringOrder||(exports.PluralStringOrder={})).EntryTitleAsc="entryTitle_ASC",P.EntryTitleDesc="entryTitle_DESC",P.Key_0Asc="key_0_ASC",P.Key_0Desc="key_0_DESC",P.Key_1Asc="key_1_ASC",P.Key_1Desc="key_1_DESC",P.Key_2Asc="key_2_ASC",P.Key_2Desc="key_2_DESC",P.Key_3Asc="key_3_ASC",P.Key_3Desc="key_3_DESC",P.Key_4Asc="key_4_ASC",P.Key_4Desc="key_4_DESC",P.Key_5Asc="key_5_ASC",P.Key_5Desc="key_5_DESC",P.SysIdAsc="sys_id_ASC",P.SysIdDesc="sys_id_DESC",P.SysPublishedAtAsc="sys_publishedAt_ASC",P.SysPublishedAtDesc="sys_publishedAt_DESC",P.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",P.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",P.SysPublishedVersionAsc="sys_publishedVersion_ASC",P.SysPublishedVersionDesc="sys_publishedVersion_DESC";var k=m.gql(L()),M=m.gql(w()),q=m.gql(I()),R=m.gql(O()),N=m.gql(V(),k,M,q,R),K=m.gql(x(),N);function G(e,s){return e(s={exports:{}},s.exports),s.exports}var j=G((function(e){var s=function(e){var s=Object.prototype,t=s.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",n=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function l(e,s,t){return Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[s]}try{l({},"")}catch(e){l=function(e,s,t){return e[s]=t}}function y(e,s,t,r){var i=Object.create((s&&s.prototype instanceof d?s:d).prototype),n=new P(r||[]);return i._invoke=function(e,s,t){var r="suspendedStart";return function(i,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw n;return{value:void 0,done:!0}}for(t.method=i,t.arg=n;;){var o=t.delegate;if(o){var l=b(o,t);if(l){if(l===u)continue;return l}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var y=c(e,s,t);if("normal"===y.type){if(r=t.done?"completed":"suspendedYield",y.arg===u)continue;return{value:y.arg,done:t.done}}"throw"===y.type&&(r="completed",t.method="throw",t.arg=y.arg)}}}(e,t,n),i}function c(e,s,t){try{return{type:"normal",arg:e.call(s,t)}}catch(e){return{type:"throw",arg:e}}}e.wrap=y;var u={};function d(){}function _(){}function S(){}var A={};A[i]=function(){return this};var a=Object.getPrototypeOf,h=a&&a(a(m([])));h&&h!==s&&t.call(h,i)&&(A=h);var C=S.prototype=d.prototype=Object.create(A);function D(e){["next","throw","return"].forEach((function(s){l(e,s,(function(e){return this._invoke(s,e)}))}))}function p(e,s){var r;this._invoke=function(i,n){function o(){return new s((function(r,o){!function r(i,n,o,l){var y=c(e[i],e,n);if("throw"!==y.type){var u=y.arg,d=u.value;return d&&"object"==typeof d&&t.call(d,"__await")?s.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):s.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(y.arg)}(i,n,r,o)}))}return r=r?r.then(o,o):o()}}function b(e,s){var t=e.iterator[s.method];if(void 0===t){if(s.delegate=null,"throw"===s.method){if(e.iterator.return&&(s.method="return",s.arg=void 0,b(e,s),"throw"===s.method))return u;s.method="throw",s.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(t,e.iterator,s.arg);if("throw"===r.type)return s.method="throw",s.arg=r.arg,s.delegate=null,u;var i=r.arg;return i?i.done?(s[e.resultName]=i.value,s.next=e.nextLoc,"return"!==s.method&&(s.method="next",s.arg=void 0),s.delegate=null,u):i:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,u)}function f(e){var s={tryLoc:e[0]};1 in e&&(s.catchLoc=e[1]),2 in e&&(s.finallyLoc=e[2],s.afterLoc=e[3]),this.tryEntries.push(s)}function E(e){var s=e.completion||{};s.type="normal",delete s.arg,e.completion=s}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function m(e){if(e){var s=e[i];if(s)return s.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function s(){for(;++r<e.length;)if(t.call(e,r))return s.value=e[r],s.done=!1,s;return s.value=void 0,s.done=!0,s};return n.next=n}}return{next:g}}function g(){return{value:void 0,done:!0}}return _.prototype=C.constructor=S,S.constructor=_,_.displayName=l(S,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var s="function"==typeof e&&e.constructor;return!!s&&(s===_||"GeneratorFunction"===(s.displayName||s.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,l(e,o,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},D(p.prototype),p.prototype[n]=function(){return this},e.AsyncIterator=p,e.async=function(s,t,r,i,n){void 0===n&&(n=Promise);var o=new p(y(s,t,r,i),n);return e.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},D(C),l(C,o,"Generator"),C[i]=function(){return this},C.toString=function(){return"[object Generator]"},e.keys=function(e){var s=[];for(var t in e)s.push(t);return s.reverse(),function t(){for(;s.length;){var r=s.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=m,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var s in this)"t"===s.charAt(0)&&t.call(this,s)&&!isNaN(+s.slice(1))&&(this[s]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var s=this;function r(t,r){return o.type="throw",o.arg=e,s.next=t,r&&(s.method="next",s.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var l=t.call(n,"catchLoc"),y=t.call(n,"finallyLoc");if(l&&y){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(l){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!y)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(e,s){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&t.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=s&&s<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=e,o.arg=s,n?(this.method="next",this.next=n.finallyLoc,u):this.complete(o)},complete:function(e,s){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&s&&(this.next=s),u},finish:function(e){for(var s=this.tryEntries.length-1;s>=0;--s){var t=this.tryEntries[s];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),E(t),u}},catch:function(e){for(var s=this.tryEntries.length-1;s>=0;--s){var t=this.tryEntries[s];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var i=r.arg;E(t)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,s,t){return this.delegate={iterator:m(e),resultName:s,nextLoc:t},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=s}catch(e){Function("r","regeneratorRuntime = r")(s)}}));function $(){var e=v(['\n query DYNAMIC_FORM($id: String!, $preview: Boolean, $locale: String = "en") {\n form(id: $id, preview: $preview, locale: $locale) {\n ...DynamicForm\n }\n }\n ',"\n"]);return $=function(){return e},e}function z(){var e=v(["\n fragment DynamicForm on Form {\n title\n fieldsCollection(limit: 100) {\n items {\n ... on Entry {\n __typename\n }\n ...FormInputField\n ...FormSelectField\n ...FormCheckboxField\n }\n }\n submitSuccessMessage {\n ...FormMessage\n }\n submitFailureMessage {\n ...FormMessage\n }\n }\n\n fragment FormInputField on FormInputField {\n sys {\n id\n }\n type\n name: key\n hintText\n label\n assistiveText\n errorMessage\n defaultValue\n required\n }\n\n fragment FormSelectField on FormSelectField {\n sys {\n id\n }\n name: key\n type\n label\n disabled\n errorMessage\n assistiveText\n defaultValue\n required\n optionsCollection {\n items {\n value\n children: displayValue\n }\n }\n }\n\n fragment FormCheckboxField on FormCheckboxField {\n sys {\n id\n }\n title\n text\n required\n }\n\n fragment FormMessage on FormMessage {\n sys {\n id\n }\n text\n }\n"]);return z=function(){return e},e}var B=g.gql(z()),H=g.gql($(),B);function J(){return(J=T(j.mark((function e(s,t,r){var i;return j.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===t&&(t="master"),void 0===r&&(r="cf3eb41c6603c064c84111798dd42d288c8e0262017997f894653da20797e665"),i=new g.ApolloClient({uri:"https://graphql.contentful.com/content/v1/spaces/z860498abl84/environments/"+t+"?access_token="+r,cache:new g.InMemoryCache}),e.next=5,i.query({query:H,variables:{id:s,preview:!1}});case 5:return e.abrupt("return",e.sent.data);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}exports.DynamicFormDocument=K,exports.DynamicFormFragmentDoc=N,exports.FormCheckboxFieldFragmentDoc=q,exports.FormInputFieldFragmentDoc=k,exports.FormMessageFragmentDoc=R,exports.FormSelectFieldFragmentDoc=M,exports.getFormModel=function(e,s,t){return J.apply(this,arguments)},exports.useDynamicFormLazyQuery=function(e){return m.useLazyQuery(K,e)},exports.useDynamicFormQuery=function(e){return m.useQuery(K,e)}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,s,t,r,i,n,o,l,y,c,u,d,_,S,A,a,h,C,D,p,b,f,E,P,m=require("@apollo/client"),g=require("@apollo/client/core");function F(e,s,t,r,i,n,o){try{var l=e[n](o),y=l.value}catch(e){return void t(e)}l.done?s(y):Promise.resolve(y).then(r,i)}function T(e){return function(){var s=this,t=arguments;return new Promise((function(r,i){var n=e.apply(s,t);function o(e){F(n,r,i,o,l,"next",e)}function l(e){F(n,r,i,o,l,"throw",e)}o(void 0)}))}}function v(e,s){return s||(s=e.slice(0)),e.raw=s,e}function x(){var e=v(['\n query DYNAMIC_FORM($id: String!, $preview: Boolean, $locale: String = "en") {\n form(id: $id, preview: $preview, locale: $locale) {\n ...DynamicForm\n }\n }\n ',"\n"]);return x=function(){return e},e}function V(){var e=v(["\n fragment DynamicForm on Form {\n entryTitle\n title\n fieldsCollection(limit: 100) {\n items {\n ... on Entry {\n __typename\n }\n ...FormInputField\n ...FormSelectField\n ...FormCheckboxField\n }\n }\n submitSuccessMessage {\n ...FormMessage\n }\n submitFailureMessage {\n ...FormMessage\n }\n }\n ","\n ","\n ","\n ","\n"]);return V=function(){return e},e}function O(){var e=v(["\n fragment FormMessage on FormMessage {\n sys {\n id\n }\n text\n }\n"]);return O=function(){return e},e}function I(){var e=v(["\n fragment FormCheckboxField on FormCheckboxField {\n sys {\n id\n }\n title\n text\n required\n }\n"]);return I=function(){return e},e}function w(){var e=v(["\n fragment FormSelectField on FormSelectField {\n sys {\n id\n }\n name: key\n type\n label\n disabled\n errorMessage\n assistiveText\n defaultValue\n required\n optionsCollection {\n items {\n value\n children: displayValue\n }\n }\n }\n"]);return w=function(){return e},e}function L(){var e=v(["\n fragment FormInputField on FormInputField {\n sys {\n id\n }\n type\n name: key\n hintText\n label\n assistiveText\n errorMessage\n defaultValue\n required\n }\n"]);return L=function(){return e},e}(e=exports.ImageResizeStrategy||(exports.ImageResizeStrategy={})).Fit="FIT",e.Pad="PAD",e.Fill="FILL",e.Scale="SCALE",e.Crop="CROP",e.Thumb="THUMB",(s=exports.ImageResizeFocus||(exports.ImageResizeFocus={})).Center="CENTER",s.Top="TOP",s.TopRight="TOP_RIGHT",s.Right="RIGHT",s.BottomRight="BOTTOM_RIGHT",s.Bottom="BOTTOM",s.BottomLeft="BOTTOM_LEFT",s.Left="LEFT",s.TopLeft="TOP_LEFT",s.Face="FACE",s.Faces="FACES",(t=exports.ImageFormat||(exports.ImageFormat={})).Jpg="JPG",t.JpgProgressive="JPG_PROGRESSIVE",t.Png="PNG",t.Png8="PNG8",t.Webp="WEBP",(r=exports.AssetOrder||(exports.AssetOrder={})).UrlAsc="url_ASC",r.UrlDesc="url_DESC",r.SizeAsc="size_ASC",r.SizeDesc="size_DESC",r.ContentTypeAsc="contentType_ASC",r.ContentTypeDesc="contentType_DESC",r.FileNameAsc="fileName_ASC",r.FileNameDesc="fileName_DESC",r.WidthAsc="width_ASC",r.WidthDesc="width_DESC",r.HeightAsc="height_ASC",r.HeightDesc="height_DESC",r.SysIdAsc="sys_id_ASC",r.SysIdDesc="sys_id_DESC",r.SysPublishedAtAsc="sys_publishedAt_ASC",r.SysPublishedAtDesc="sys_publishedAt_DESC",r.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",r.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",r.SysPublishedVersionAsc="sys_publishedVersion_ASC",r.SysPublishedVersionDesc="sys_publishedVersion_DESC",(i=exports.FormOrder||(exports.FormOrder={})).EntryTitleAsc="entryTitle_ASC",i.EntryTitleDesc="entryTitle_DESC",i.TitleAsc="title_ASC",i.TitleDesc="title_DESC",i.SysIdAsc="sys_id_ASC",i.SysIdDesc="sys_id_DESC",i.SysPublishedAtAsc="sys_publishedAt_ASC",i.SysPublishedAtDesc="sys_publishedAt_DESC",i.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",i.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",i.SysPublishedVersionAsc="sys_publishedVersion_ASC",i.SysPublishedVersionDesc="sys_publishedVersion_DESC",(n=exports.FormMessageOrder||(exports.FormMessageOrder={})).EntryTitleAsc="entryTitle_ASC",n.EntryTitleDesc="entryTitle_DESC",n.SysIdAsc="sys_id_ASC",n.SysIdDesc="sys_id_DESC",n.SysPublishedAtAsc="sys_publishedAt_ASC",n.SysPublishedAtDesc="sys_publishedAt_DESC",n.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",n.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",n.SysPublishedVersionAsc="sys_publishedVersion_ASC",n.SysPublishedVersionDesc="sys_publishedVersion_DESC",(o=exports.FormSelectOptionOrder||(exports.FormSelectOptionOrder={})).EntryTitleAsc="entryTitle_ASC",o.EntryTitleDesc="entryTitle_DESC",o.DisplayValueAsc="displayValue_ASC",o.DisplayValueDesc="displayValue_DESC",o.ValueAsc="value_ASC",o.ValueDesc="value_DESC",o.SysIdAsc="sys_id_ASC",o.SysIdDesc="sys_id_DESC",o.SysPublishedAtAsc="sys_publishedAt_ASC",o.SysPublishedAtDesc="sys_publishedAt_DESC",o.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",o.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",o.SysPublishedVersionAsc="sys_publishedVersion_ASC",o.SysPublishedVersionDesc="sys_publishedVersion_DESC",(l=exports.FormCheckboxFieldOrder||(exports.FormCheckboxFieldOrder={})).EntryTitleAsc="entryTitle_ASC",l.EntryTitleDesc="entryTitle_DESC",l.TitleAsc="title_ASC",l.TitleDesc="title_DESC",l.RequiredAsc="required_ASC",l.RequiredDesc="required_DESC",l.SysIdAsc="sys_id_ASC",l.SysIdDesc="sys_id_DESC",l.SysPublishedAtAsc="sys_publishedAt_ASC",l.SysPublishedAtDesc="sys_publishedAt_DESC",l.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",l.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",l.SysPublishedVersionAsc="sys_publishedVersion_ASC",l.SysPublishedVersionDesc="sys_publishedVersion_DESC",(y=exports.FormInputFieldOrder||(exports.FormInputFieldOrder={})).EntryTitleAsc="entryTitle_ASC",y.EntryTitleDesc="entryTitle_DESC",y.TypeAsc="type_ASC",y.TypeDesc="type_DESC",y.KeyAsc="key_ASC",y.KeyDesc="key_DESC",y.NameAsc="name_ASC",y.NameDesc="name_DESC",y.HintTextAsc="hintText_ASC",y.HintTextDesc="hintText_DESC",y.LabelAsc="label_ASC",y.LabelDesc="label_DESC",y.AssistiveTextAsc="assistiveText_ASC",y.AssistiveTextDesc="assistiveText_DESC",y.ErrorMessageAsc="errorMessage_ASC",y.ErrorMessageDesc="errorMessage_DESC",y.DefaultValueAsc="defaultValue_ASC",y.DefaultValueDesc="defaultValue_DESC",y.RequiredAsc="required_ASC",y.RequiredDesc="required_DESC",y.SysIdAsc="sys_id_ASC",y.SysIdDesc="sys_id_DESC",y.SysPublishedAtAsc="sys_publishedAt_ASC",y.SysPublishedAtDesc="sys_publishedAt_DESC",y.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",y.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",y.SysPublishedVersionAsc="sys_publishedVersion_ASC",y.SysPublishedVersionDesc="sys_publishedVersion_DESC",(c=exports.FormSelectFieldOrder||(exports.FormSelectFieldOrder={})).EntryTitleAsc="entryTitle_ASC",c.EntryTitleDesc="entryTitle_DESC",c.TypeAsc="type_ASC",c.TypeDesc="type_DESC",c.KeyAsc="key_ASC",c.KeyDesc="key_DESC",c.LabelAsc="label_ASC",c.LabelDesc="label_DESC",c.RequiredAsc="required_ASC",c.RequiredDesc="required_DESC",c.DisabledAsc="disabled_ASC",c.DisabledDesc="disabled_DESC",c.ErrorMessageAsc="errorMessage_ASC",c.ErrorMessageDesc="errorMessage_DESC",c.AssistiveTextAsc="assistiveText_ASC",c.AssistiveTextDesc="assistiveText_DESC",c.DefaultValueAsc="defaultValue_ASC",c.DefaultValueDesc="defaultValue_DESC",c.SysIdAsc="sys_id_ASC",c.SysIdDesc="sys_id_DESC",c.SysPublishedAtAsc="sys_publishedAt_ASC",c.SysPublishedAtDesc="sys_publishedAt_DESC",c.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",c.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",c.SysPublishedVersionAsc="sys_publishedVersion_ASC",c.SysPublishedVersionDesc="sys_publishedVersion_DESC",(u=exports.MigrationLogOrder||(exports.MigrationLogOrder={})).LatestMigrationAsc="latestMigration_ASC",u.LatestMigrationDesc="latestMigration_DESC",u.SysIdAsc="sys_id_ASC",u.SysIdDesc="sys_id_DESC",u.SysPublishedAtAsc="sys_publishedAt_ASC",u.SysPublishedAtDesc="sys_publishedAt_DESC",u.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",u.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",u.SysPublishedVersionAsc="sys_publishedVersion_ASC",u.SysPublishedVersionDesc="sys_publishedVersion_DESC",(d=exports.ReleaseNotesOrder||(exports.ReleaseNotesOrder={})).EntryTitleAsc="entryTitle_ASC",d.EntryTitleDesc="entryTitle_DESC",d.VersionNumberAsc="versionNumber_ASC",d.VersionNumberDesc="versionNumber_DESC",d.SysIdAsc="sys_id_ASC",d.SysIdDesc="sys_id_DESC",d.SysPublishedAtAsc="sys_publishedAt_ASC",d.SysPublishedAtDesc="sys_publishedAt_DESC",d.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",d.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",d.SysPublishedVersionAsc="sys_publishedVersion_ASC",d.SysPublishedVersionDesc="sys_publishedVersion_DESC",(_=exports.SimpleStringOrder||(exports.SimpleStringOrder={})).EntryTitleAsc="entryTitle_ASC",_.EntryTitleDesc="entryTitle_DESC",_.KeyAsc="key_ASC",_.KeyDesc="key_DESC",_.SysIdAsc="sys_id_ASC",_.SysIdDesc="sys_id_DESC",_.SysPublishedAtAsc="sys_publishedAt_ASC",_.SysPublishedAtDesc="sys_publishedAt_DESC",_.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",_.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",_.SysPublishedVersionAsc="sys_publishedVersion_ASC",_.SysPublishedVersionDesc="sys_publishedVersion_DESC",(S=exports.LongStringOrder||(exports.LongStringOrder={})).EntryTitleAsc="entryTitle_ASC",S.EntryTitleDesc="entryTitle_DESC",S.SysIdAsc="sys_id_ASC",S.SysIdDesc="sys_id_DESC",S.SysPublishedAtAsc="sys_publishedAt_ASC",S.SysPublishedAtDesc="sys_publishedAt_DESC",S.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",S.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",S.SysPublishedVersionAsc="sys_publishedVersion_ASC",S.SysPublishedVersionDesc="sys_publishedVersion_DESC",(A=exports.GenericPortOrder||(exports.GenericPortOrder={})).EntryTitleAsc="entryTitle_ASC",A.EntryTitleDesc="entryTitle_DESC",A.PortCodeAsc="portCode_ASC",A.PortCodeDesc="portCode_DESC",A.SysIdAsc="sys_id_ASC",A.SysIdDesc="sys_id_DESC",A.SysPublishedAtAsc="sys_publishedAt_ASC",A.SysPublishedAtDesc="sys_publishedAt_DESC",A.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",A.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",A.SysPublishedVersionAsc="sys_publishedVersion_ASC",A.SysPublishedVersionDesc="sys_publishedVersion_DESC",(a=exports.ArrayOfItemsOrder||(exports.ArrayOfItemsOrder={})).EntryTitleAsc="entryTitle_ASC",a.EntryTitleDesc="entryTitle_DESC",a.SysIdAsc="sys_id_ASC",a.SysIdDesc="sys_id_DESC",a.SysPublishedAtAsc="sys_publishedAt_ASC",a.SysPublishedAtDesc="sys_publishedAt_DESC",a.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",a.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",a.SysPublishedVersionAsc="sys_publishedVersion_ASC",a.SysPublishedVersionDesc="sys_publishedVersion_DESC",(h=exports.TitleAndMediaOrder||(exports.TitleAndMediaOrder={})).EntryTitleAsc="entryTitle_ASC",h.EntryTitleDesc="entryTitle_DESC",h.TitleAsc="title_ASC",h.TitleDesc="title_DESC",h.SysIdAsc="sys_id_ASC",h.SysIdDesc="sys_id_DESC",h.SysPublishedAtAsc="sys_publishedAt_ASC",h.SysPublishedAtDesc="sys_publishedAt_DESC",h.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",h.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",h.SysPublishedVersionAsc="sys_publishedVersion_ASC",h.SysPublishedVersionDesc="sys_publishedVersion_DESC",(C=exports.TeamNameOrder||(exports.TeamNameOrder={})).EntryTitleAsc="entryTitle_ASC",C.EntryTitleDesc="entryTitle_DESC",C.SysIdAsc="sys_id_ASC",C.SysIdDesc="sys_id_DESC",C.SysPublishedAtAsc="sys_publishedAt_ASC",C.SysPublishedAtDesc="sys_publishedAt_DESC",C.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",C.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",C.SysPublishedVersionAsc="sys_publishedVersion_ASC",C.SysPublishedVersionDesc="sys_publishedVersion_DESC",(D=exports.TitleAndLinkOrder||(exports.TitleAndLinkOrder={})).EntryTitleAsc="entryTitle_ASC",D.EntryTitleDesc="entryTitle_DESC",D.TitleAsc="title_ASC",D.TitleDesc="title_DESC",D.LinkAsc="link_ASC",D.LinkDesc="link_DESC",D.SysIdAsc="sys_id_ASC",D.SysIdDesc="sys_id_DESC",D.SysPublishedAtAsc="sys_publishedAt_ASC",D.SysPublishedAtDesc="sys_publishedAt_DESC",D.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",D.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",D.SysPublishedVersionAsc="sys_publishedVersion_ASC",D.SysPublishedVersionDesc="sys_publishedVersion_DESC",(p=exports.RichTextStringOrder||(exports.RichTextStringOrder={})).EntryTitleAsc="entryTitle_ASC",p.EntryTitleDesc="entryTitle_DESC",p.SysIdAsc="sys_id_ASC",p.SysIdDesc="sys_id_DESC",p.SysPublishedAtAsc="sys_publishedAt_ASC",p.SysPublishedAtDesc="sys_publishedAt_DESC",p.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",p.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",p.SysPublishedVersionAsc="sys_publishedVersion_ASC",p.SysPublishedVersionDesc="sys_publishedVersion_DESC",(b=exports.NamespaceAndStringOrder||(exports.NamespaceAndStringOrder={})).EntryTitleAsc="entryTitle_ASC",b.EntryTitleDesc="entryTitle_DESC",b.NamespaceAsc="namespace_ASC",b.NamespaceDesc="namespace_DESC",b.KeyAsc="key_ASC",b.KeyDesc="key_DESC",b.SysIdAsc="sys_id_ASC",b.SysIdDesc="sys_id_DESC",b.SysPublishedAtAsc="sys_publishedAt_ASC",b.SysPublishedAtDesc="sys_publishedAt_DESC",b.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",b.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",b.SysPublishedVersionAsc="sys_publishedVersion_ASC",b.SysPublishedVersionDesc="sys_publishedVersion_DESC",(f=exports.GenericRouteOrder||(exports.GenericRouteOrder={})).EntryTitleAsc="entryTitle_ASC",f.EntryTitleDesc="entryTitle_DESC",f.RouteCodeAsc="routeCode_ASC",f.RouteCodeDesc="routeCode_DESC",f.SysIdAsc="sys_id_ASC",f.SysIdDesc="sys_id_DESC",f.SysPublishedAtAsc="sys_publishedAt_ASC",f.SysPublishedAtDesc="sys_publishedAt_DESC",f.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",f.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",f.SysPublishedVersionAsc="sys_publishedVersion_ASC",f.SysPublishedVersionDesc="sys_publishedVersion_DESC",(E=exports.DfdsAppSimpleStringOrder||(exports.DfdsAppSimpleStringOrder={})).EntryTitleAsc="entryTitle_ASC",E.EntryTitleDesc="entryTitle_DESC",E.KeyAsc="key_ASC",E.KeyDesc="key_DESC",E.SysIdAsc="sys_id_ASC",E.SysIdDesc="sys_id_DESC",E.SysPublishedAtAsc="sys_publishedAt_ASC",E.SysPublishedAtDesc="sys_publishedAt_DESC",E.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",E.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",E.SysPublishedVersionAsc="sys_publishedVersion_ASC",E.SysPublishedVersionDesc="sys_publishedVersion_DESC",(P=exports.PluralStringOrder||(exports.PluralStringOrder={})).EntryTitleAsc="entryTitle_ASC",P.EntryTitleDesc="entryTitle_DESC",P.Key_0Asc="key_0_ASC",P.Key_0Desc="key_0_DESC",P.Key_1Asc="key_1_ASC",P.Key_1Desc="key_1_DESC",P.Key_2Asc="key_2_ASC",P.Key_2Desc="key_2_DESC",P.Key_3Asc="key_3_ASC",P.Key_3Desc="key_3_DESC",P.Key_4Asc="key_4_ASC",P.Key_4Desc="key_4_DESC",P.Key_5Asc="key_5_ASC",P.Key_5Desc="key_5_DESC",P.SysIdAsc="sys_id_ASC",P.SysIdDesc="sys_id_DESC",P.SysPublishedAtAsc="sys_publishedAt_ASC",P.SysPublishedAtDesc="sys_publishedAt_DESC",P.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",P.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",P.SysPublishedVersionAsc="sys_publishedVersion_ASC",P.SysPublishedVersionDesc="sys_publishedVersion_DESC";var k=m.gql(L()),M=m.gql(w()),q=m.gql(I()),R=m.gql(O()),N=m.gql(V(),k,M,q,R),K=m.gql(x(),N);function G(e,s){return e(s={exports:{}},s.exports),s.exports}var j=G((function(e){var s=function(e){var s=Object.prototype,t=s.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",n=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function l(e,s,t){return Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[s]}try{l({},"")}catch(e){l=function(e,s,t){return e[s]=t}}function y(e,s,t,r){var i=Object.create((s&&s.prototype instanceof d?s:d).prototype),n=new P(r||[]);return i._invoke=function(e,s,t){var r="suspendedStart";return function(i,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw n;return{value:void 0,done:!0}}for(t.method=i,t.arg=n;;){var o=t.delegate;if(o){var l=b(o,t);if(l){if(l===u)continue;return l}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var y=c(e,s,t);if("normal"===y.type){if(r=t.done?"completed":"suspendedYield",y.arg===u)continue;return{value:y.arg,done:t.done}}"throw"===y.type&&(r="completed",t.method="throw",t.arg=y.arg)}}}(e,t,n),i}function c(e,s,t){try{return{type:"normal",arg:e.call(s,t)}}catch(e){return{type:"throw",arg:e}}}e.wrap=y;var u={};function d(){}function _(){}function S(){}var A={};A[i]=function(){return this};var a=Object.getPrototypeOf,h=a&&a(a(m([])));h&&h!==s&&t.call(h,i)&&(A=h);var C=S.prototype=d.prototype=Object.create(A);function D(e){["next","throw","return"].forEach((function(s){l(e,s,(function(e){return this._invoke(s,e)}))}))}function p(e,s){var r;this._invoke=function(i,n){function o(){return new s((function(r,o){!function r(i,n,o,l){var y=c(e[i],e,n);if("throw"!==y.type){var u=y.arg,d=u.value;return d&&"object"==typeof d&&t.call(d,"__await")?s.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):s.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(y.arg)}(i,n,r,o)}))}return r=r?r.then(o,o):o()}}function b(e,s){var t=e.iterator[s.method];if(void 0===t){if(s.delegate=null,"throw"===s.method){if(e.iterator.return&&(s.method="return",s.arg=void 0,b(e,s),"throw"===s.method))return u;s.method="throw",s.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(t,e.iterator,s.arg);if("throw"===r.type)return s.method="throw",s.arg=r.arg,s.delegate=null,u;var i=r.arg;return i?i.done?(s[e.resultName]=i.value,s.next=e.nextLoc,"return"!==s.method&&(s.method="next",s.arg=void 0),s.delegate=null,u):i:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,u)}function f(e){var s={tryLoc:e[0]};1 in e&&(s.catchLoc=e[1]),2 in e&&(s.finallyLoc=e[2],s.afterLoc=e[3]),this.tryEntries.push(s)}function E(e){var s=e.completion||{};s.type="normal",delete s.arg,e.completion=s}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function m(e){if(e){var s=e[i];if(s)return s.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function s(){for(;++r<e.length;)if(t.call(e,r))return s.value=e[r],s.done=!1,s;return s.value=void 0,s.done=!0,s};return n.next=n}}return{next:g}}function g(){return{value:void 0,done:!0}}return _.prototype=C.constructor=S,S.constructor=_,_.displayName=l(S,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var s="function"==typeof e&&e.constructor;return!!s&&(s===_||"GeneratorFunction"===(s.displayName||s.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,l(e,o,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},D(p.prototype),p.prototype[n]=function(){return this},e.AsyncIterator=p,e.async=function(s,t,r,i,n){void 0===n&&(n=Promise);var o=new p(y(s,t,r,i),n);return e.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},D(C),l(C,o,"Generator"),C[i]=function(){return this},C.toString=function(){return"[object Generator]"},e.keys=function(e){var s=[];for(var t in e)s.push(t);return s.reverse(),function t(){for(;s.length;){var r=s.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=m,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var s in this)"t"===s.charAt(0)&&t.call(this,s)&&!isNaN(+s.slice(1))&&(this[s]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var s=this;function r(t,r){return o.type="throw",o.arg=e,s.next=t,r&&(s.method="next",s.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var l=t.call(n,"catchLoc"),y=t.call(n,"finallyLoc");if(l&&y){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(l){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!y)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(e,s){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&t.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=s&&s<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=e,o.arg=s,n?(this.method="next",this.next=n.finallyLoc,u):this.complete(o)},complete:function(e,s){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&s&&(this.next=s),u},finish:function(e){for(var s=this.tryEntries.length-1;s>=0;--s){var t=this.tryEntries[s];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),E(t),u}},catch:function(e){for(var s=this.tryEntries.length-1;s>=0;--s){var t=this.tryEntries[s];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var i=r.arg;E(t)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,s,t){return this.delegate={iterator:m(e),resultName:s,nextLoc:t},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=s}catch(e){Function("r","regeneratorRuntime = r")(s)}}));function $(){var e=v(['\n query DYNAMIC_FORM($id: String!, $preview: Boolean, $locale: String = "en") {\n form(id: $id, preview: $preview, locale: $locale) {\n ...DynamicForm\n }\n }\n ',"\n"]);return $=function(){return e},e}function z(){var e=v(["\n fragment DynamicForm on Form {\n entryTitle\n title\n fieldsCollection(limit: 100) {\n items {\n ... on Entry {\n __typename\n }\n ...FormInputField\n ...FormSelectField\n ...FormCheckboxField\n }\n }\n submitSuccessMessage {\n ...FormMessage\n }\n submitFailureMessage {\n ...FormMessage\n }\n }\n\n fragment FormInputField on FormInputField {\n sys {\n id\n }\n type\n name: key\n hintText\n label\n assistiveText\n errorMessage\n defaultValue\n required\n }\n\n fragment FormSelectField on FormSelectField {\n sys {\n id\n }\n name: key\n type\n label\n disabled\n errorMessage\n assistiveText\n defaultValue\n required\n optionsCollection {\n items {\n value\n children: displayValue\n }\n }\n }\n\n fragment FormCheckboxField on FormCheckboxField {\n sys {\n id\n }\n title\n text\n required\n }\n\n fragment FormMessage on FormMessage {\n sys {\n id\n }\n text\n }\n"]);return z=function(){return e},e}var B=g.gql(z()),H=g.gql($(),B);function J(){return(J=T(j.mark((function e(s,t,r){var i;return j.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===t&&(t="master"),void 0===r&&(r="cf3eb41c6603c064c84111798dd42d288c8e0262017997f894653da20797e665"),i=new g.ApolloClient({uri:"https://graphql.contentful.com/content/v1/spaces/z860498abl84/environments/"+t+"?access_token="+r,cache:new g.InMemoryCache}),e.next=5,i.query({query:H,variables:{id:s,preview:!1}});case 5:return e.abrupt("return",e.sent.data);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}exports.DynamicFormDocument=K,exports.DynamicFormFragmentDoc=N,exports.FormCheckboxFieldFragmentDoc=q,exports.FormInputFieldFragmentDoc=k,exports.FormMessageFragmentDoc=R,exports.FormSelectFieldFragmentDoc=M,exports.getFormModel=function(e,s,t){return J.apply(this,arguments)},exports.useDynamicFormLazyQuery=function(e){return m.useLazyQuery(K,e)},exports.useDynamicFormQuery=function(e){return m.useQuery(K,e)}; | ||
//# sourceMappingURL=common.cjs.production.min.js.map |
@@ -60,3 +60,3 @@ import { gql, useQuery, useLazyQuery } from '@apollo/client'; | ||
function _templateObject5() { | ||
var data = _taggedTemplateLiteralLoose(["\n fragment DynamicForm on Form {\n title\n fieldsCollection(limit: 100) {\n items {\n ... on Entry {\n __typename\n }\n ...FormInputField\n ...FormSelectField\n ...FormCheckboxField\n }\n }\n submitSuccessMessage {\n ...FormMessage\n }\n submitFailureMessage {\n ...FormMessage\n }\n }\n ", "\n ", "\n ", "\n ", "\n"]); | ||
var data = _taggedTemplateLiteralLoose(["\n fragment DynamicForm on Form {\n entryTitle\n title\n fieldsCollection(limit: 100) {\n items {\n ... on Entry {\n __typename\n }\n ...FormInputField\n ...FormSelectField\n ...FormCheckboxField\n }\n }\n submitSuccessMessage {\n ...FormMessage\n }\n submitFailureMessage {\n ...FormMessage\n }\n }\n ", "\n ", "\n ", "\n ", "\n"]); | ||
@@ -1370,3 +1370,3 @@ _templateObject5 = function _templateObject5() { | ||
function _templateObject$1() { | ||
var data = _taggedTemplateLiteralLoose(["\n fragment DynamicForm on Form {\n title\n fieldsCollection(limit: 100) {\n items {\n ... on Entry {\n __typename\n }\n ...FormInputField\n ...FormSelectField\n ...FormCheckboxField\n }\n }\n submitSuccessMessage {\n ...FormMessage\n }\n submitFailureMessage {\n ...FormMessage\n }\n }\n\n fragment FormInputField on FormInputField {\n sys {\n id\n }\n type\n name: key\n hintText\n label\n assistiveText\n errorMessage\n defaultValue\n required\n }\n\n fragment FormSelectField on FormSelectField {\n sys {\n id\n }\n name: key\n type\n label\n disabled\n errorMessage\n assistiveText\n defaultValue\n required\n optionsCollection {\n items {\n value\n children: displayValue\n }\n }\n }\n\n fragment FormCheckboxField on FormCheckboxField {\n sys {\n id\n }\n title\n text\n required\n }\n\n fragment FormMessage on FormMessage {\n sys {\n id\n }\n text\n }\n"]); | ||
var data = _taggedTemplateLiteralLoose(["\n fragment DynamicForm on Form {\n entryTitle\n title\n fieldsCollection(limit: 100) {\n items {\n ... on Entry {\n __typename\n }\n ...FormInputField\n ...FormSelectField\n ...FormCheckboxField\n }\n }\n submitSuccessMessage {\n ...FormMessage\n }\n submitFailureMessage {\n ...FormMessage\n }\n }\n\n fragment FormInputField on FormInputField {\n sys {\n id\n }\n type\n name: key\n hintText\n label\n assistiveText\n errorMessage\n defaultValue\n required\n }\n\n fragment FormSelectField on FormSelectField {\n sys {\n id\n }\n name: key\n type\n label\n disabled\n errorMessage\n assistiveText\n defaultValue\n required\n optionsCollection {\n items {\n value\n children: displayValue\n }\n }\n }\n\n fragment FormCheckboxField on FormCheckboxField {\n sys {\n id\n }\n title\n text\n required\n }\n\n fragment FormMessage on FormMessage {\n sys {\n id\n }\n text\n }\n"]); | ||
@@ -1373,0 +1373,0 @@ _templateObject$1 = function _templateObject() { |
{ | ||
"version": "0.11.5", | ||
"version": "0.11.6-alpha-241.2bc86e3.0+2bc86e3", | ||
"license": "MIT", | ||
@@ -60,3 +60,3 @@ "name": "@dfds-dynamic-forms/common", | ||
}, | ||
"gitHead": "59d26af2f19d65fdad22f5219a2eef4728b0f97c" | ||
"gitHead": "2bc86e3e5d1f6f3228703da3928894c201d72584" | ||
} |
@@ -5,2 +5,3 @@ import { gql } from '@apollo/client/core'; | ||
fragment DynamicForm on Form { | ||
entryTitle | ||
title | ||
@@ -7,0 +8,0 @@ fieldsCollection(limit: 100) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
914876
8423
5
4