@contentful/app-sdk 5.0.0-alpha.1 → 5.0.0-alpha.2

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.
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("contentful-management")):"function"==typeof define&&define.amd?define(["exports","contentful-management"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).contentfulExtension={},e.contentfulManagement)}(this,(function(e,t){"use strict";var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}"function"==typeof SuppressedError&&SuppressedError;var a=function(){function e(){this._id=0,this._listeners={}}return e.prototype.dispatch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r in this._listeners)(e=this._listeners)[r].apply(e,t)},e.prototype.attach=function(e){var t=this;if("function"!=typeof e)throw new Error("listener function expected");var n=this._id++;return this._listeners[n]=e,function(){return delete t._listeners[n]}},e}(),s=function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.call(this)||this;if(!t.length)throw new Error("Initial value to be memoized expected");return r._memoizedArgs=t,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.dispatch=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._memoizedArgs=t,e.prototype.dispatch.apply(this,t)},t.prototype.attach=function(t){var n=e.prototype.attach.call(this,t);return t.apply(void 0,this._memoizedArgs),n},t.prototype.getMemoizedArgs=function(){return this._memoizedArgs},t}(a);var l,u=function(){function e(e,t){var n=this;this._messageHandlers={},this._responseHandlers={},this._send=function(e,t){return function(n,r){var o=c.getMessageId();try{t.postMessage({source:e,id:o,method:n,params:r},"*")}catch(e){throw e instanceof DOMException&&"DataCloneError"===e.name&&"openDialog"===n&&console.error("Error: openCurrent[App] parameters could not be parsed. You likely tried to pass functions or DOM elements as a parameter. Tip: Use the App SDK directly within the dialog location.\n\nLearn more about the dialog location: https://ctfl.io/app-sdk-dialog"),e}return o}}(e,t.parent),t.addEventListener("message",(function(e){n._handleMessage(e.data)}))}return e.prototype.call=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this._send(e,n);return new Promise((function(e,n){t._responseHandlers[o]={resolve:e,reject:n}}))},e.prototype.send=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._send(e,t)},e.prototype.addHandler=function(e,t){return e in this._messageHandlers||(this._messageHandlers[e]=new a),this._messageHandlers[e].attach(t)},e.prototype._handleMessage=function(e){if(e.method){var t=e.method,n=e.params,r=this._messageHandlers[t];r&&r.dispatch.apply(r,n)}else{var o=e.id,i=this._responseHandlers[o];if(!i)return;"result"in e?i.resolve(e.result):"error"in e&&i.reject(e.error),delete this._responseHandlers[o]}},e}(),c=(l=0,{getMessageId:function(){return l++}});var d=function(){function e(e,t){var n=this;this.id=t.id,this.name=t.name,this.locale=t.locale,this.type=t.type,this.required=t.required,this.validations=t.validations,"Array"===t.type&&(this.items=t.items),"Link"===t.type&&(this.linkType=t.linkType),this._value=t.value,this._valueSignal=new s(this._value),this._isDisabledSignal=new s(t.isDisabled),this._schemaErrorsChangedSignal=new s(t.schemaErrors),this._channel=e,e.addHandler("valueChanged",(function(e,t,r){e!==n.id||t&&t!==n.locale||(n._value=r,n._valueSignal.dispatch(r))})),e.addHandler("isDisabledChangedForFieldLocale",(function(e,t,r){e===n.id&&t===n.locale&&n._isDisabledSignal.dispatch(r)})),e.addHandler("schemaErrorsChangedForFieldLocale",(function(e,t,r){e===n.id&&t===n.locale&&n._schemaErrorsChangedSignal.dispatch(r)}))}return e.prototype.getValue=function(){return this._value},e.prototype.setValue=function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return this._value=e,[4,this._channel.call("setValue",this.id,this.locale,e)];case 1:return[2,t.sent()]}}))}))},e.prototype.removeValue=function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return this._value=void 0,[4,this._channel.call("removeValue",this.id,this.locale)];case 1:return e.sent(),[2]}}))}))},e.prototype.setInvalid=function(e){return this._channel.call("setInvalid",e,this.locale)},e.prototype.onValueChanged=function(e){return this._valueSignal.attach(e)},e.prototype.getIsDisabled=function(){return this._isDisabledSignal.getMemoizedArgs()[0]},e.prototype.onIsDisabledChanged=function(e){return this._isDisabledSignal.attach(e)},e.prototype.getSchemaErrors=function(){return this._schemaErrorsChangedSignal.getMemoizedArgs()[0]},e.prototype.onSchemaErrorsChanged=function(e){return this._schemaErrorsChangedSignal.attach(e)},e}(),f=function(){function e(e,t,n){this.id=t.id,this.name=t.name,this.locales=t.locales,this.type=t.type,this.required=t.required,this.validations=t.validations,"Array"===t.type&&(this.items=t.items),"Link"===t.type&&(this.linkType=t.linkType),this._defaultLocale=n,this._fieldLocales=t.locales.reduce((function(n,o){var i,a=new d(e,{id:t.id,name:t.name,type:t.type,required:t.required,validations:t.validations,locale:o,items:"Array"===t.type?t.items:void 0,linkType:"Link"===t.type?t.linkType:void 0,value:t.values[o],isDisabled:t.isDisabled[o],schemaErrors:t.schemaErrors[o]});return r(r({},n),((i={})[o]=a,i))}),{}),this.assertHasLocale(n)}return e.prototype.getValue=function(e){return this._getFieldLocale(e).getValue()},e.prototype.setValue=function(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return[4,this._getFieldLocale(t).setValue(e)];case 1:return[2,n.sent()]}}))}))},e.prototype.removeValue=function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.setValue(void 0,e)];case 1:return t.sent(),[2]}}))}))},e.prototype.onValueChanged=function(e,t){var n=t||e;return t||(e=""),this._getFieldLocale(e).onValueChanged(n)},e.prototype.onIsDisabledChanged=function(e,t){var n=t||e;return t||(e=""),this._getFieldLocale(e).onIsDisabledChanged(n)},e.prototype._getFieldLocale=function(e){return e=e||this._defaultLocale,this.assertHasLocale(e),this._fieldLocales[e]},e.prototype.getForLocale=function(e){if(!e)throw new Error("getForLocale must be passed a locale");return this._getFieldLocale(e)},e.prototype.assertHasLocale=function(e){if(!this._fieldLocales[e])throw new Error('Unknown locale "'.concat(e,'" for field "').concat(this.id,'"'))},e}();function p(e,t){var n,r=e.document,o=e.MutationObserver,i=e.ResizeObserver,a=!1,s=!1,l=new Set,u=new o((function(e){!function(e){e.forEach((function(e){switch(e.type){case"attributes":if(e.target.nodeType===Node.ELEMENT_NODE){var t=e.target;f(e.type,t)?l.add(t):l.delete(t)}break;case"childList":e.addedNodes.forEach((function(t){if(t.nodeType===Node.ELEMENT_NODE){var n=t;f(e.type,n)&&l.add(n)}})),e.removedNodes.forEach((function(e){var t=e;l.delete(t)}))}}))}(e),a&&d.updateHeight()})),c=new i((function(){d.updateHeight()}));u.observe(r.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0});var d={startAutoResizer:function(e){var t=(void 0===e?{}:e).absoluteElements;if(s=Boolean(t===void 0?false:t),d.updateHeight(),a)return;a=!0,c.observe(r.body)},stopAutoResizer:function(){if(!a)return;a=!1,c.disconnect()},updateHeight:function(e){void 0===e&&(e=null);if(null===e){var o=Math.ceil(r.documentElement.getBoundingClientRect().height);if(s&&l.size){var i=o;l.forEach((function(e){i=Math.max(e.getBoundingClientRect().bottom,i)})),e=i}else e=o}e!==n&&(t.send("setHeight",e),n=e)}};return d;function f(e,t){var n=getComputedStyle(t);return"absolute"===n.position&&("attributes"!==e||"none"!==n.display)}}var h=["getTask","getTasks","createTask","updateTask","deleteTask"];function g(e,t,n,o){var i=t.sys,a=new s(i),l=t.metadata,u=new s(l);e.addHandler("sysChanged",(function(e){i=e,a.dispatch(i)})),e.addHandler("metadataChanged",(function(e){l=e,u.dispatch(l)}));var c={};return h.forEach((function(t){c[t]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.call("callEntryMethod",t,n)}})),r(r(r({getSys:function(){return i},publish:function(t){return e.call("callEntryMethod","publish",[t])},unpublish:function(){return e.call("callEntryMethod","unpublish")},save:function(){return e.call("callEntryMethod","save")},onSysChanged:function(e){return a.attach(e)},fields:n.reduce((function(e,t){return e[t.id]=o(t),e}),{})},l?{metadata:l}:{}),{getMetadata:function(){return l},onMetadataChanged:function(e){return u.attach(e)}}),c)}var v=function(e){return"object"!=typeof(t=e)||null===t||Array.isArray(t)?{}:e;var t};function y(e,t){return{openAlert:n.bind(null,"alert"),openConfirm:n.bind(null,"confirm"),openPrompt:n.bind(null,"prompt"),open:function(n){if(n=v(n),t.app){var o=r(r({},n),{id:t.app});return e.call("openDialog","app",o)}throw new Error("Not in the app context.")},selectSingleEntry:o.bind(null,"Entry",!1),selectSingleAsset:o.bind(null,"Asset",!1),selectMultipleEntries:o.bind(null,"Entry",!0),selectMultipleAssets:o.bind(null,"Asset",!0)};function n(t,n){return e.call("openDialog",t,v(n))}function o(t,n,r){return(r=v(r)).entityType=t,r.multiple=n,e.call("openDialog","entitySelector",r)}}function m(e,t,n){var r=new s(n.localeSettings),o=new s(n.showHiddenFields);return e.addHandler("localeSettingsChanged",(function(e){r.dispatch(e)})),e.addHandler("showHiddenFieldsChanged",(function(e){o.dispatch(e)})),{editorInterface:t,getLocaleSettings:function(){return r.getMemoizedArgs()[0]},onLocaleSettingsChanged:function(e){return r.attach(e)},onShowDisabledFieldsChanged:function(e){return o.attach(e)},getShowHiddenFields:function(){return o.getMemoizedArgs()[0]},onShowHiddenFieldsChanged:function(e){return o.attach(e)}}}function _(e,t){var n=new a;return e.addHandler("navigateSlideIn",(function(e){n.dispatch(e)})),{openEntry:function(t,n){return e.call("navigateToContentEntity",r(r({},n),{entityType:"Entry",id:t}))},openNewEntry:function(t,n){return e.call("navigateToContentEntity",r(r({},n),{entityType:"Entry",id:null,contentTypeId:t}))},openBulkEditor:function(t,n){return e.call("navigateToBulkEditor",r({entryId:t},n))},openAsset:function(t,n){return e.call("navigateToContentEntity",r(r({},n),{entityType:"Asset",id:t}))},openNewAsset:function(t){return e.call("navigateToContentEntity",r(r({},t),{entityType:"Asset",id:null}))},openPage:function(n){return e.call("navigateToPage",r({type:"app",id:t.app},n))},openAppConfig:function(){return e.call("navigateToAppConfig")},openEntriesList:function(){return e.call("navigateToSpaceEnvRoute",{route:"entries"})},openAssetsList:function(){return e.call("navigateToSpaceEnvRoute",{route:"assets"})},onSlideInNavigation:function(e){return n.attach(e)}}}var E="preInstall",b="postInstall",A=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)},w=function(e){return"function"==typeof e},C=function(e){return console.error(e),Promise.resolve(!1)},T=function(e,t,n){if(!w(e))return Promise.resolve(t);var r;try{r=void 0===n?e():e(n)}catch(e){return C(e)}var o,i=r;return A(o=i)&&w(o.then)||(i=Promise.resolve(i)),i.then((function(e){return e instanceof Error?Promise.reject(e):!1!==e&&(A(e)?e:t)}),C).catch(C)};function I(e){var t,n=((t={}).preInstall=null,t.postInstall=null,t),r=function(e,t){if(!w(t))throw new Error("Handler must be a function.");n[e]=t};return e.addHandler("appHook",(function(t){var r=t.stage,o=t.installationRequestId,i=t.err;return r===E?T(n[r],{}).then((function(t){return e.send("appHookResult",{stage:r,installationRequestId:o,result:t})})):r===b?T(n[r],void 0,i||null).then((function(){return e.send("appHookResult",{stage:r,installationRequestId:o})})):Promise.resolve()})),{setReady:function(){return e.call("callAppMethod","setReady")},isInstalled:function(){return e.call("callAppMethod","isInstalled")},getParameters:function(){return e.call("callAppMethod","getParameters")},getCurrentState:function(){return e.call("callAppMethod","getCurrentState")},onConfigure:function(e){r(E,e)},onConfigurationCompleted:function(e){r(b,e)}}}var L,O={LOCATION_ENTRY_FIELD:"entry-field",LOCATION_ENTRY_FIELD_SIDEBAR:"entry-field-sidebar",LOCATION_ENTRY_SIDEBAR:"entry-sidebar",LOCATION_DIALOG:"dialog",LOCATION_ENTRY_EDITOR:"entry-editor",LOCATION_PAGE:"page",LOCATION_APP_CONFIG:"app-config",LOCATION_HOME:"home"},S=function(e){return function(t){return e.call("CMAAdapterCall",t)}};function D(e){return{makeRequest:S(e)}}function N(e,n){var r;return t.createClient({apiAdapter:D(n)},{type:"plain",defaults:{environmentId:null!==(r=e.environmentAlias)&&void 0!==r?r:e.environment,spaceId:e.space,organizationId:e.organization}})}var H=[k,P,function(e,t){var n=t.field;if(!n)throw new Error('FieldAPI called for location without "field" property defined.');return{field:new d(e,n)}},F,R],M=((L={})[O.LOCATION_ENTRY_FIELD]=H,L[O.LOCATION_ENTRY_FIELD_SIDEBAR]=H,L[O.LOCATION_ENTRY_SIDEBAR]=[k,P,F,R],L[O.LOCATION_ENTRY_EDITOR]=[k,P,F],L[O.LOCATION_DIALOG]=[k,function(e){return{close:function(t){return e.send("closeDialog",t)}}},R],L[O.LOCATION_PAGE]=[k],L[O.LOCATION_HOME]=[k],L[O.LOCATION_APP_CONFIG]=[k,function(e){return{app:I(e)}}],L);function k(e,t){var n=t.user,r=t.parameters,o=t.locales,i=t.ids,a=t.location||O.LOCATION_ENTRY_FIELD;return{cma:N(i,e),cmaAdapter:D(e),location:{current:a,is:function(e){return a===e}},user:n,parameters:r,locales:{available:o.available,default:o.default,names:o.names,fallbacks:o.fallbacks,optional:o.optional,direction:o.direction},dialogs:y(e,i),navigator:_(e,i),notifier:{success:function(t){return e.send("notify",{type:"success",message:t})},error:function(t){return e.send("notify",{type:"error",message:t})},warning:function(t){return e.send("notify",{type:"warning",message:t})}},ids:i,access:{can:function(t,n,r){return e.call("checkAccess",t,n,r)},canEditAppConfig:function(){return e.call("checkAppConfigAccess")}}}}function R(e,t,n){return{window:p(n,e)}}function F(e,t){return{editor:m(e,t.editorInterface,t.editor)}}function P(e,t){var n=t.locales,r=t.contentType,o=t.entry,i=t.fieldInfo;return{contentType:r,entry:g(e,o,i,(function(t){return new f(e,t,n.default)}))}}var x=function(e,t){if(void 0===e.window||void 0===e.document)return function(){};var n,r,o=((n={promise:null,resolve:null,isFulfilled:!1}).promise=new Promise((function(e){n.resolve=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];n.isFulfilled=!0,e.apply(void 0,t)}})),n);return o.promise.then((function(t){var n=t[0],r=e.document;r.addEventListener("focus",(function(){return n.send("setActive",!0)}),!0),r.addEventListener("blur",(function(){return n.send("setActive",!1)}),!0)})),function(e,t){!function(e,t){function n(r){var o=r.data;"connect"===o.method&&(e.removeEventListener("message",n),t.apply(void 0,o.params))}e.addEventListener("message",n)}(e,(function(n,r){var o=new u(n.id,e);t(o,n,r)}))}(e,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.resolve(e)})),function(n,i){var a=void 0===i?{supressIframeWarning:!1}:i,s=a.makeCustomApi;a.supressIframeWarning||function(e){e.self===e.top&&console.error("Cannot use App SDK outside of Contenful:\n\nIn order for the App SDK to function correctly, your app needs to be run in an iframe in the Contentful Web App, Compose or Launch.\n\nLearn more about local development with the App SDK here:\nhttps://www.contentful.com/developers/docs/extensibility/ui-extensions/faq/#how-can-i-develop-with-the-ui-extension-sdk-locally")}(e),r||(r=o.promise.then((function(n){var r,o=n[0],i=n[1],a=n[2],l=t(o,i,e);return"function"==typeof s&&(r=s(o,i)),a.forEach((function(e){o._handleMessage(e)})),[l,r]})),o.isFulfilled||function(e){var t=c.getMessageId();e.parent.postMessage({id:t,method:"init",params:[]},"*")}(e)),r.then((function(e){var t=e[0],r=e[1];return n(t,r)}))}}(globalThis,(function(e,t,n){return(M[t.location]||H).reduce((function(o,i){return r(r({},o),i(e,t,n))}),{})}));e.init=x,e.locations=O,Object.defineProperty(e,"__esModule",{value:!0})})),globalThis.contentfulApp=globalThis.contentfulExtension;
@@ -1,600 +0,0 @@
1
- :-moz-ui-invalid {
2
- -webkit-box-shadow: none;
3
- box-shadow: none;
4
- }
5
- * {
6
- -webkit-box-sizing: border-box;
7
- -moz-box-sizing: border-box;
8
- box-sizing: border-box;
9
- }
10
- body {
11
- font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif,
12
- Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
13
- text-rendering: optimizeLegibility;
14
- font-size: 14px;
15
- line-height: 18px;
16
- color: #2d2f31;
17
-
18
- background-image: url("https://api.contentful.com/uie-tracking");
19
- }
20
- b,
21
- strong {
22
- font-weight: bold;
23
- }
24
- em {
25
- font-style: italic;
26
- }
27
- a {
28
- color: #4a90e2;
29
- cursor: pointer;
30
- text-decoration: none;
31
- }
32
- a:link {
33
- color: #1683d0;
34
- text-decoration: none;
35
- }
36
- a:hover {
37
- color: #0c2c52;
38
- }
39
- .cf-text-dimmed {
40
- color: #808080;
41
- }
42
- @-moz-keyframes fa-spin {
43
- 0% {
44
- -webkit-transform: rotate(0deg);
45
- -webkit-transform: rotate(0deg);
46
- -moz-transform: rotate(0deg);
47
- -o-transform: rotate(0deg);
48
- -ms-transform: rotate(0deg);
49
- transform: rotate(0deg);
50
- }
51
- 100% {
52
- -webkit-transform: rotate(359deg);
53
- -webkit-transform: rotate(359deg);
54
- -moz-transform: rotate(359deg);
55
- -o-transform: rotate(359deg);
56
- -ms-transform: rotate(359deg);
57
- transform: rotate(359deg);
58
- }
59
- }
60
- @-webkit-keyframes fa-spin {
61
- 0% {
62
- -webkit-transform: rotate(0deg);
63
- -webkit-transform: rotate(0deg);
64
- -moz-transform: rotate(0deg);
65
- -o-transform: rotate(0deg);
66
- -ms-transform: rotate(0deg);
67
- transform: rotate(0deg);
68
- }
69
- 100% {
70
- -webkit-transform: rotate(359deg);
71
- -webkit-transform: rotate(359deg);
72
- -moz-transform: rotate(359deg);
73
- -o-transform: rotate(359deg);
74
- -ms-transform: rotate(359deg);
75
- transform: rotate(359deg);
76
- }
77
- }
78
- @-o-keyframes fa-spin {
79
- 0% {
80
- -webkit-transform: rotate(0deg);
81
- -webkit-transform: rotate(0deg);
82
- -moz-transform: rotate(0deg);
83
- -o-transform: rotate(0deg);
84
- -ms-transform: rotate(0deg);
85
- transform: rotate(0deg);
86
- }
87
- 100% {
88
- -webkit-transform: rotate(359deg);
89
- -webkit-transform: rotate(359deg);
90
- -moz-transform: rotate(359deg);
91
- -o-transform: rotate(359deg);
92
- -ms-transform: rotate(359deg);
93
- transform: rotate(359deg);
94
- }
95
- }
96
- @keyframes fa-spin {
97
- 0% {
98
- -webkit-transform: rotate(0deg);
99
- -webkit-transform: rotate(0deg);
100
- -moz-transform: rotate(0deg);
101
- -o-transform: rotate(0deg);
102
- -ms-transform: rotate(0deg);
103
- transform: rotate(0deg);
104
- }
105
- 100% {
106
- -webkit-transform: rotate(359deg);
107
- -webkit-transform: rotate(359deg);
108
- -moz-transform: rotate(359deg);
109
- -o-transform: rotate(359deg);
110
- -ms-transform: rotate(359deg);
111
- transform: rotate(359deg);
112
- }
113
- }
114
- .cf-btn-primary {
115
- display: inline-block;
116
- padding: 0.625rem 1.5rem;
117
- cursor: pointer;
118
- text-align: center;
119
- font-size: 0.875rem;
120
- font-weight: 500;
121
- white-space: nowrap;
122
- border: 1px solid transparent;
123
- border-radius: 2px;
124
- line-height: 18px;
125
- color: #fff;
126
- background: -webkit-linear-gradient(bottom, #3c80cf, #5b9fef);
127
- background: -moz-linear-gradient(bottom, #3c80cf, #5b9fef);
128
- background: -o-linear-gradient(bottom, #3c80cf, #5b9fef);
129
- background: -ms-linear-gradient(bottom, #3c80cf, #5b9fef);
130
- background: linear-gradient(to top, #3c80cf, #5b9fef);
131
- -webkit-background-size: 100% 200%;
132
- -moz-background-size: 100% 200%;
133
- background-size: 100% 200%;
134
- -webkit-transition-property: all;
135
- -moz-transition-property: all;
136
- -o-transition-property: all;
137
- -ms-transition-property: all;
138
- transition-property: all;
139
- -webkit-transition-timing-function: ease-in-out;
140
- -moz-transition-timing-function: ease-in-out;
141
- -o-transition-timing-function: ease-in-out;
142
- -ms-transition-timing-function: ease-in-out;
143
- transition-timing-function: ease-in-out;
144
- -webkit-transition-duration: 0.1s;
145
- -moz-transition-duration: 0.1s;
146
- -o-transition-duration: 0.1s;
147
- -ms-transition-duration: 0.1s;
148
- transition-duration: 0.1s;
149
- border-color: #3c80cf;
150
- }
151
- .cf-btn-primary:hover {
152
- background-position: 0 100%;
153
- }
154
- .cf-btn-primary.active,
155
- .cf-btn-primary:active {
156
- -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
157
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
158
- }
159
- .cf-btn-primary:link,
160
- a.cf-btn-primary:hover,
161
- a.cf-btn-primary:link,
162
- a.cf-btn-primary:visited {
163
- color: #fff;
164
- }
165
- .cf-btn-primary:disabled,
166
- .cf-btn-primary[aria-disabled='true'] {
167
- opacity: 0.4;
168
- -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=40)';
169
- filter: alpha(opacity=40);
170
- cursor: default;
171
- background: -webkit-linear-gradient(bottom, #3c80cf, #5b9fef);
172
- background: -moz-linear-gradient(bottom, #3c80cf, #5b9fef);
173
- background: -o-linear-gradient(bottom, #3c80cf, #5b9fef);
174
- background: -ms-linear-gradient(bottom, #3c80cf, #5b9fef);
175
- background: linear-gradient(to top, #3c80cf, #5b9fef);
176
- -webkit-box-shadow: none;
177
- box-shadow: none;
178
- }
179
- .cf-btn-primary > * {
180
- display: inline-block;
181
- }
182
- .cf-btn-primary:after {
183
- content: '';
184
- opacity: 0;
185
- -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=0)';
186
- filter: alpha(opacity=0);
187
- border: 0;
188
- width: 0;
189
- position: relative;
190
- top: -1px;
191
- vertical-align: middle;
192
- -webkit-transition: width 0.2s linear, margin 0.2s linear;
193
- -moz-transition: width 0.2s linear, margin 0.2s linear;
194
- -o-transition: width 0.2s linear, margin 0.2s linear;
195
- -ms-transition: width 0.2s linear, margin 0.2s linear;
196
- transition: width 0.2s linear, margin 0.2s linear;
197
- display: inline-block;
198
- }
199
- .cf-btn-primary.cf-is-loading:disabled {
200
- opacity: 1;
201
- -ms-filter: none;
202
- filter: none;
203
- }
204
- .cf-btn-primary.cf-is-loading:after {
205
- -webkit-transition: width 0.2s linear, margin 0.2s linear, opacity 0.5s ease-in;
206
- -moz-transition: width 0.2s linear, margin 0.2s linear, opacity 0.5s ease-in;
207
- -o-transition: width 0.2s linear, margin 0.2s linear, opacity 0.5s ease-in;
208
- -ms-transition: width 0.2s linear, margin 0.2s linear, opacity 0.5s ease-in;
209
- transition: width 0.2s linear, margin 0.2s linear, opacity 0.5s ease-in;
210
- opacity: 1;
211
- -ms-filter: none;
212
- filter: none;
213
- width: 10px;
214
- height: 10px;
215
- -webkit-animation: fa-spin 2s infinite linear;
216
- -moz-animation: fa-spin 2s infinite linear;
217
- -o-animation: fa-spin 2s infinite linear;
218
- -ms-animation: fa-spin 2s infinite linear;
219
- animation: fa-spin 2s infinite linear;
220
- border-radius: 50%;
221
- border-bottom: 2px solid #fff;
222
- border-left: 2px solid #fff;
223
- border-top: 2px solid rgba(255, 255, 255, 0.6);
224
- border-right: 2px solid rgba(255, 255, 255, 0.6);
225
- margin-left: 5px;
226
- }
227
- .cf-btn-primary:hover,
228
- .cf-btn-primary.active {
229
- border-color: #3072be;
230
- }
231
- .cf-btn-secondary {
232
- display: inline-block;
233
- padding: 0.625rem 1.5rem;
234
- cursor: pointer;
235
- text-align: center;
236
- font-size: 0.875rem;
237
- font-weight: 500;
238
- white-space: nowrap;
239
- border: 1px solid transparent;
240
- border-radius: 2px;
241
- line-height: 18px;
242
- color: #536171;
243
- background: #e5ebed;
244
- -webkit-background-size: 100% 200%;
245
- -moz-background-size: 100% 200%;
246
- background-size: 100% 200%;
247
- -webkit-transition-property: all;
248
- -moz-transition-property: all;
249
- -o-transition-property: all;
250
- -ms-transition-property: all;
251
- transition-property: all;
252
- -webkit-transition-timing-function: ease-in-out;
253
- -moz-transition-timing-function: ease-in-out;
254
- -o-transition-timing-function: ease-in-out;
255
- -ms-transition-timing-function: ease-in-out;
256
- transition-timing-function: ease-in-out;
257
- -webkit-transition-duration: 0.1s;
258
- -moz-transition-duration: 0.1s;
259
- -o-transition-duration: 0.1s;
260
- -ms-transition-duration: 0.1s;
261
- transition-duration: 0.1s;
262
- border-color: #c3cfd5;
263
- }
264
- .cf-btn-secondary:hover {
265
- background-position: 0 100%;
266
- }
267
- .cf-btn-secondary.active,
268
- .cf-btn-secondary:active {
269
- -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
270
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
271
- }
272
- .cf-btn-secondary:link,
273
- a.cf-btn-secondary:hover,
274
- a.cf-btn-secondary:link,
275
- a.cf-btn-secondary:visited {
276
- color: #536171;
277
- }
278
- .cf-btn-secondary:disabled,
279
- .cf-btn-secondary[aria-disabled='true'] {
280
- opacity: 0.4;
281
- -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=40)';
282
- filter: alpha(opacity=40);
283
- cursor: default;
284
- background: #e5ebed;
285
- -webkit-box-shadow: none;
286
- box-shadow: none;
287
- }
288
- .cf-btn-secondary > * {
289
- display: inline-block;
290
- }
291
- .cf-btn-secondary:after {
292
- content: '';
293
- opacity: 0;
294
- -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=0)';
295
- filter: alpha(opacity=0);
296
- border: 0;
297
- width: 0;
298
- position: relative;
299
- top: -1px;
300
- vertical-align: middle;
301
- -webkit-transition: width 0.2s linear, margin 0.2s linear;
302
- -moz-transition: width 0.2s linear, margin 0.2s linear;
303
- -o-transition: width 0.2s linear, margin 0.2s linear;
304
- -ms-transition: width 0.2s linear, margin 0.2s linear;
305
- transition: width 0.2s linear, margin 0.2s linear;
306
- display: inline-block;
307
- }
308
- .cf-btn-secondary.cf-is-loading:disabled {
309
- opacity: 1;
310
- -ms-filter: none;
311
- filter: none;
312
- }
313
- .cf-btn-secondary.cf-is-loading:after {
314
- -webkit-transition: width 0.2s linear, margin 0.2s linear, opacity 0.5s ease-in;
315
- -moz-transition: width 0.2s linear, margin 0.2s linear, opacity 0.5s ease-in;
316
- -o-transition: width 0.2s linear, margin 0.2s linear, opacity 0.5s ease-in;
317
- -ms-transition: width 0.2s linear, margin 0.2s linear, opacity 0.5s ease-in;
318
- transition: width 0.2s linear, margin 0.2s linear, opacity 0.5s ease-in;
319
- opacity: 1;
320
- -ms-filter: none;
321
- filter: none;
322
- width: 10px;
323
- height: 10px;
324
- -webkit-animation: fa-spin 2s infinite linear;
325
- -moz-animation: fa-spin 2s infinite linear;
326
- -o-animation: fa-spin 2s infinite linear;
327
- -ms-animation: fa-spin 2s infinite linear;
328
- animation: fa-spin 2s infinite linear;
329
- border-radius: 50%;
330
- border-bottom: 2px solid #536171;
331
- border-left: 2px solid #536171;
332
- border-top: 2px solid rgba(135, 150, 167, 0.6);
333
- border-right: 2px solid rgba(135, 150, 167, 0.6);
334
- margin-left: 5px;
335
- }
336
- .cf-btn-secondary:hover,
337
- .cf-btn-secondary.active {
338
- background-color: #d3dce0;
339
- border-color: #b4c3ca;
340
- }
341
- .cf-btn-secondary > cf-icon[name='plus'] circle {
342
- fill: #536171;
343
- }
344
- .cf-btn-secondary > cf-icon[name='plus'] path {
345
- stroke: #e5ebed;
346
- }
347
- .cf-btn-primary.cf-block,
348
- .cf-btn-secondary.cf-block {
349
- display: block;
350
- width: 100%;
351
- position: relative;
352
- }
353
- .cf-btn-primary.cf-block:after,
354
- .cf-btn-secondary.cf-block:after {
355
- position: absolute;
356
- }
357
- .cf-btn-primary.cf-block.cf-is-loading:after,
358
- .cf-btn-secondary.cf-block.cf-is-loading:after {
359
- -webkit-transition: opacity 0.2s linear;
360
- -moz-transition: opacity 0.2s linear;
361
- -o-transition: opacity 0.2s linear;
362
- -ms-transition: opacity 0.2s linear;
363
- transition: opacity 0.2s linear;
364
- top: 11px;
365
- }
366
- .cf-form-field {
367
- margin-bottom: 1.928571428571429em;
368
- }
369
- .cf-form-field > label {
370
- display: block;
371
- margin-bottom: 0.642857142857143em;
372
- }
373
- .cf-form-hint {
374
- margin-top: 0.642857142857143em;
375
- color: #808080;
376
- font-size: 13px;
377
- }
378
- input.cf-form-input {
379
- font-size: 16px;
380
- color: #2a3039;
381
- font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif,
382
- Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
383
- display: block;
384
- width: 100%;
385
- line-height: 1.5;
386
- padding: 0 2px;
387
- background-color: transparent;
388
- border-width: 0 0 1px 0;
389
- border-style: solid;
390
- border-color: transparent;
391
- border-image-width: 0 0 1px 0;
392
- border-image-source: url('https://static.contentful.com/app/svg/dotted-border.svg');
393
- border-image-repeat: round;
394
- border-image-slice: 1 1;
395
- -webkit-transition: 0.2s linear;
396
- -moz-transition: 0.2s linear;
397
- -o-transition: 0.2s linear;
398
- -ms-transition: 0.2s linear;
399
- transition: 0.2s linear;
400
- -webkit-transition-property: padding, background-color;
401
- -moz-transition-property: padding, background-color;
402
- -o-transition-property: padding, background-color;
403
- -ms-transition-property: padding, background-color;
404
- transition-property: padding, background-color;
405
- height: 36px;
406
- }
407
- input.cf-form-input[aria-invalid='true'],
408
- input.cf-form-input:invalid {
409
- background-color: #fff2f1;
410
- }
411
- input.cf-form-input[aria-disabled='true'],
412
- input.cf-form-input[disabled],
413
- input.cf-form-input:disabled {
414
- background-color: #f7f9fa;
415
- color: #a9b9c0;
416
- -webkit-border-image: none;
417
- -moz-border-image: none;
418
- -o-border-image: none;
419
- border-image: none;
420
- }
421
- input.cf-form-input[size] {
422
- width: auto;
423
- }
424
- textarea.cf-form-input {
425
- font-size: 16px;
426
- color: #2a3039;
427
- font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif,
428
- Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
429
- display: block;
430
- width: 100%;
431
- line-height: 1.5;
432
- padding: 0 2px;
433
- background-color: transparent;
434
- border-width: 0 0 1px 0;
435
- border-style: solid;
436
- border-color: transparent;
437
- border-image-width: 0 0 1px 0;
438
- border-image-source: url('https://static.contentful.com/app/svg/dotted-border.svg');
439
- border-image-repeat: round;
440
- border-image-slice: 1 1;
441
- -webkit-transition: 0.2s linear;
442
- -moz-transition: 0.2s linear;
443
- -o-transition: 0.2s linear;
444
- -ms-transition: 0.2s linear;
445
- transition: 0.2s linear;
446
- -webkit-transition-property: padding, background-color;
447
- -moz-transition-property: padding, background-color;
448
- -o-transition-property: padding, background-color;
449
- -ms-transition-property: padding, background-color;
450
- transition-property: padding, background-color;
451
- padding-top: 0.2em;
452
- height: 4.5em;
453
- max-width: 100%;
454
- }
455
- textarea.cf-form-input[aria-invalid='true'],
456
- textarea.cf-form-input:invalid {
457
- background-color: #fff2f1;
458
- }
459
- textarea.cf-form-input[aria-disabled='true'],
460
- textarea.cf-form-input[disabled],
461
- textarea.cf-form-input:disabled {
462
- background-color: #f7f9fa;
463
- color: #a9b9c0;
464
- -webkit-border-image: none;
465
- -moz-border-image: none;
466
- -o-border-image: none;
467
- border-image: none;
468
- }
469
- select.cf-form-input {
470
- color: inherit;
471
- font-size: inherit;
472
- font-family: inherit;
473
- cursor: inherit;
474
- background: none;
475
- line-height: normal;
476
- border: 0;
477
- -webkit-appearance: none;
478
- -moz-appearance: none;
479
- appearance: none;
480
- font-size: 16px;
481
- color: #2a3039;
482
- font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif,
483
- Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
484
- display: block;
485
- width: 100%;
486
- line-height: 1.5;
487
- padding: 0 2px;
488
- background-color: transparent;
489
- border-width: 0 0 1px 0;
490
- border-style: solid;
491
- border-color: transparent;
492
- border-image-width: 0 0 1px 0;
493
- border-image-source: url('https://static.contentful.com/app/svg/dotted-border.svg');
494
- border-image-repeat: round;
495
- border-image-slice: 1 1;
496
- -webkit-transition: 0.2s linear;
497
- -moz-transition: 0.2s linear;
498
- -o-transition: 0.2s linear;
499
- -ms-transition: 0.2s linear;
500
- transition: 0.2s linear;
501
- -webkit-transition-property: padding, background-color;
502
- -moz-transition-property: padding, background-color;
503
- -o-transition-property: padding, background-color;
504
- -ms-transition-property: padding, background-color;
505
- transition-property: padding, background-color;
506
- width: auto;
507
- padding-right: 1.5em;
508
- padding-left: 0.5em;
509
- height: 36px;
510
- background-image: url('https://static.contentful.com/app/svg/dd-arrow-down.svg');
511
- background-position: center right 5px;
512
- background-repeat: no-repeat;
513
- -webkit-background-size: 0.7em;
514
- -moz-background-size: 0.7em;
515
- background-size: 0.7em;
516
- }
517
- select.cf-form-input::-ms-expand {
518
- display: none;
519
- }
520
- select.cf-form-input[aria-invalid='true'],
521
- select.cf-form-input:invalid {
522
- background-color: #fff2f1;
523
- }
524
- select.cf-form-input[aria-disabled='true'],
525
- select.cf-form-input[disabled],
526
- select.cf-form-input:disabled {
527
- background-color: #f7f9fa;
528
- color: #a9b9c0;
529
- -webkit-border-image: none;
530
- -moz-border-image: none;
531
- -o-border-image: none;
532
- border-image: none;
533
- }
534
- select.cf-form-input > option {
535
- -o-text-overflow: ellipsis;
536
- text-overflow: ellipsis;
537
- overflow: hidden;
538
- }
539
- .cf-field-error {
540
- margin-top: 0.642857142857143em;
541
- color: #f05650;
542
- }
543
- .cf-form-option {
544
- margin-bottom: 1.285714285714286em;
545
- display: -webkit-box;
546
- display: -moz-box;
547
- display: -webkit-flex;
548
- display: -ms-flexbox;
549
- display: box;
550
- display: flex;
551
- }
552
- .cf-form-option:last-child {
553
- margin-bottom: 0;
554
- }
555
- .cf-form-option > input[type='checkbox'],
556
- .cf-form-option > input[type='radio'] {
557
- -webkit-align-self: flex-start;
558
- align-self: flex-start;
559
- -ms-flex-item-align: start;
560
- -webkit-flex-shrink: 0;
561
- flex-shrink: 0;
562
- margin: 1px 0.5em 0 0;
563
- }
564
- .cf-form-option > label {
565
- display: block;
566
- cursor: pointer;
567
- }
568
- .cf-form-label p {
569
- font-size: 13px;
570
- margin: 0;
571
- }
572
- .cf-form-label label {
573
- line-height: 1.928571428571429em;
574
- margin-top: -0.642857142857143em;
575
- display: inline-block;
576
- cursor: pointer;
577
- }
578
- .cf-form-option > input[type='checkbox']:disabled + label {
579
- color: #808080;
580
- }
581
- .cf-form-horizontal {
582
- display: -webkit-box;
583
- display: -moz-box;
584
- display: -webkit-flex;
585
- display: -ms-flexbox;
586
- display: box;
587
- display: flex;
588
- -webkit-box-lines: multiple;
589
- -moz-box-lines: multiple;
590
- -o-box-lines: multiple;
591
- -webkit-flex-wrap: wrap;
592
- -ms-flex-wrap: wrap;
593
- flex-wrap: wrap;
594
- }
595
- .cf-form-horizontal .cf-form-option {
596
- margin-right: 2.571428571428572em;
597
- }
598
- .cf-form-horizontal .cf-form-option:last-child {
599
- margin-right: 0;
600
- }