diff --git a/classes/blocks/class-enform.php b/classes/blocks/class-enform.php index e3ecbb6..4d80a12 100644 --- a/classes/blocks/class-enform.php +++ b/classes/blocks/class-enform.php @@ -191,7 +191,8 @@ public function add_block_shortcode( $attributes, $content ) { * @return array The data to be passed in the View. */ public function prepare_data( $attributes ): array { - global $pagenow; + + global $post; // Enqueue js for the frontend. if ( ! $this->is_rest_request() ) { @@ -248,6 +249,24 @@ public function prepare_data( $attributes ): array { $rendered_form = ''; } + $campaign_data = array(); + + if ( 'campaign' === get_post_type() && isset( $attributes['campaign_logo'] ) ) { + if ( 'true' == $attributes['campaign_logo'] ) { + $page_meta_data = get_post_meta( $post->ID ); + $campaign_template = ! empty( $page_meta_data['_campaign_page_template'][0] ) ? $page_meta_data['_campaign_page_template'][0] : false; + + if ( $campaign_template ) { + $campaign_logo_path = get_bloginfo( 'template_directory' ) . '/images/' . $campaign_template . '/logo-light.png'; + $campaign_data = [ + 'template' => $campaign_template, + 'logo_path' => $campaign_logo_path, + 'logo' => $attributes['campaign_logo'], + ]; + } + } + } + $data = array_merge( $data, [ @@ -255,6 +274,7 @@ public function prepare_data( $attributes ): array { 'redirect_url' => isset( $attributes['thankyou_url'] ) ? filter_var( $attributes['thankyou_url'], FILTER_VALIDATE_URL ) : '', 'nonce_action' => 'enform_submit', 'form' => $rendered_form, + 'campaign_data' => $campaign_data, ] ); diff --git a/react-blocks/build/editorIndex.js b/react-blocks/build/editorIndex.js index 9a72cc5..330e4c7 100644 --- a/react-blocks/build/editorIndex.js +++ b/react-blocks/build/editorIndex.js @@ -1 +1 @@ -!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;nNo max items
recommended.","planet4-gutenberg-engagingnetworks")},{label:T("Full page width. With background image.","planet4-gutenberg-engagingnetworks"),image:window.p4en_vars.home+"images/enfullwidthbg.png",value:"full-width-bg",help:T('This form has a background image that expands the full width of the browser (aka "Happy Point").',"planet4-gutenberg-engagingnetworks")},{label:T("Form on the side.","planet4-gutenberg-engagingnetworks"),image:window.p4en_vars.home+"images/submenu-sidebar.jpg",value:"side-style",help:T("Form will be added to the top of the page, on the right side for most languages and on the left side for Right-to-left(RTL) languages.","planet4-gutenberg-engagingnetworks")}]})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:T("Form Title","planet4-gutenberg-engagingnetworks"),placeholder:T("Enter title","planet4-gutenberg-engagingnetworks"),value:this.props.title,onChange:this.props.onTitleChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:T("Form Description","planet4-gutenberg-engagingnetworks"),placeholder:T("Enter description","planet4-gutenberg-engagingnetworks"),value:this.props.description,onChange:this.props.onDescriptionChange})),"side-style"===this.props.en_form_style&&Object(l.createElement)("div",null,"campaign"===t&&Object(l.createElement)("div",null,Object(l.createElement)(w.ToggleControl,{label:T("Use Campaign Logo?","p4ge"),value:this.props.campaign_logo,checked:this.props.campaign_logo,onChange:this.props.onCampaignLogoChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:T("Content Title","planet4-gutenberg-engagingnetworks"),placeholder:T("Enter content title","planet4-gutenberg-engagingnetworks"),value:this.props.content_title,onChange:this.props.onContentTitleChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.SelectControl,{label:T("Content Title text size","planet4-gutenberg-engagingnetworks"),value:this.props.content_title_size,options:[{label:T("Select title size","planet4-gutenberg-engagingnetworks"),value:""},{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"}],onChange:this.props.onContentTitleSizeChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextareaControl,{label:T("Content Description","planet4-gutenberg-engagingnetworks"),placeholder:T("Enter content description","planet4-gutenberg-engagingnetworks"),value:this.props.content_description,onChange:this.props.onContentDescriptionChange}))),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:T('Call to Action button (e.g. "Sign up now!")',"planet4-gutenberg-engagingnetworks"),placeholder:T('Enter the "Call to Action" button text',"planet4-gutenberg-engagingnetworks"),value:this.props.button_text,onChange:this.props.onCTAButtonTextChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextareaControl,{label:T("Text below Call to Action button","planet4-gutenberg-engagingnetworks"),placeholder:T("Enter text to go below the button","planet4-gutenberg-engagingnetworks"),value:this.props.text_below_button,onChange:this.props.onCTATextBelowButtonChange})),Object(l.createElement)(O,null,T('"Thank You" message settings',"planet4-gutenberg-engagingnetworks")),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:T("Main text / Title","planet4-gutenberg-engagingnetworks"),placeholder:T('e.g. "Thank you for signing!"',"planet4-gutenberg-engagingnetworks"),value:this.props.thankyou_title,onChange:this.props.onMainThankYouTextChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:T("Secondary message / Subtitle","planet4-gutenberg-engagingnetworks"),placeholder:T('e.g. "Your support means world"',"planet4-gutenberg-engagingnetworks"),value:this.props.thankyou_subtitle,onChange:this.props.onSecondaryThankYouMessageChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:T("Social media message","planet4-gutenberg-engagingnetworks"),placeholder:T('e.g. "Can you share it with your family and friends?"',"planet4-gutenberg-engagingnetworks"),value:this.props.thankyou_social_media_message,onChange:this.props.onThankYouTakeActionMessageChange})),Object(l.createElement)(w.ToggleControl,{label:T('Hide "Thank You" donate button',"p4ge"),value:this.props.donate_button_checkbox,checked:this.props.donate_button_checkbox,onChange:this.props.onDonateButtonCheckboxChange}),!0!==this.props.donate_button_checkbox&&Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:T("Donate message","planet4-gutenberg-engagingnetworks"),placeholder:T('e.g. "or make a donation"',"planet4-gutenberg-engagingnetworks"),value:this.props.thankyou_donate_message,onChange:this.props.onThankYouDonateMessageChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:T("URL (Title and Subtitle will not be shown)","planet4-gutenberg-engagingnetworks"),placeholder:T('Enter "Thank you page" url',"planet4-gutenberg-engagingnetworks"),value:this.props.thankyou_url,onChange:this.props.onThankYouURLChange})),"full-width"!==this.props.en_form_style&&Object(l.createElement)("div",null,Object(l.createElement)(x.MediaPlaceholder,{labels:{title:T("Background","planet4-gutenberg-engagingnetworks"),instructions:T("Select an image.","planet4-gutenberg-engagingnetworks")},icon:"format-image",onSelect:this.props.onSelectImage,onError:this.props.onUploadError,accept:"image/*",allowedTypes:["image"]})),Object(l.createElement)("div",null,Object(l.createElement)(w.SelectControl,{label:T("Planet 4 Engaging Networks form","planet4-gutenberg-engagingnetworks"),value:this.props.en_form_id,options:[{label:"No forms",value:0}].concat(c()(a)),onChange:this.props.onFormChange}),Object(l.createElement)(E,null,this.props.forms?T("Select the P4EN Form that will be displayed.","planet4-gutenberg-engagingnetworks"):T("Create an EN Form","planet4-gutenberg-engagingnetworks")))))}},{key:"render",value:function(){var e=[];return!1===this.props.isSelected&&(void 0!==this.props.en_page_id&&0!==this.props.en_page_id||e.push(T('"Engaging Network Live Pages" field is required!',"planet4-gutenberg-engagingnetworks")),void 0!==this.props.button_text&&""!==this.props.button_text||e.push(T('"Call to Action button" field is required!',"planet4-gutenberg-engagingnetworks")),void 0!==this.props.en_form_id&&0!==this.props.en_form_id||e.push(T('"Planet 4 Engaging Networks form" field is required!',"planet4-gutenberg-engagingnetworks"))),Object(l.createElement)("div",null,this.props.isSelected?this.renderEdit():null,Object(l.createElement)(v,{showBar:this.props.isSelected,isSelected:this.props.isSelected},e.length?Object(l.createElement)(S,{message:e}):Object(l.createElement)(w.ServerSideRender,{block:"planet4-blocks/enform",attributes:{en_page_id:this.props.en_page_id,en_form_id:this.props.en_form_id,en_form_style:this.props.en_form_style,title:this.props.title,description:this.props.description,campaign_logo:this.props.campaign_logo,content_title:this.props.content_title,content_title_size:this.props.content_title_size,content_description:this.props.content_description,button_text:this.props.button_text,thankyou_title:this.props.thankyou_title,thankyou_subtitle:this.props.thankyou_subtitle,thankyou_donate_message:this.props.thankyou_donate_message,thankyou_social_media_message:this.props.thankyou_social_media_message,donate_button_checkbox:this.props.donate_button_checkbox,thankyou_url:this.props.thankyou_url,background:this.props.background}})))}}]),t}(_.Component);new function e(){i()(this,e),(0,wp.blocks.registerBlockType)("planet4-blocks/enform",{title:"EN Form",icon:"feedback",category:"planet4-blocks",transforms:{from:[{type:"shortcode",tag:"shortcake_enblock",attributes:{en_page_id:{type:"integer",shortcode:function(e){return Number(e.named.en_page_id)}},enform_goal:{type:"string",shortcode:function(e){return e.named.enform_goal}},en_form_style:{type:"string",shortcode:function(e){return e.named.en_form_style}},title:{type:"string",shortcode:function(e){return e.named.title}},description:{type:"string",shortcode:function(e){return e.named.description}},campaign_logo:{type:"boolean",shortcode:function(e){return boolean(e.named.campaign_logo)}},content_title:{type:"string",shortcode:function(e){return e.named.content_title}},content_title_size:{type:"string",shortcode:function(e){return e.named.content_title_size}},content_description:{type:"string",shortcode:function(e){return e.named.content_description}},button_text:{type:"string",shortcode:function(e){return e.named.button_text}},text_below_button:{type:"string",shortcode:function(e){return e.named.text_below_button}},thankyou_title:{type:"string",shortcode:function(e){return e.named.thankyou_title}},thankyou_subtitle:{type:"string",shortcode:function(e){return e.named.thankyou_subtitle}},thankyou_donate_message:{type:"string",shortcode:function(e){return e.named.thankyou_donate_message}},thankyou_social_media_message:{type:"string",shortcode:function(e){return e.named.thankyou_social_media_message}},donate_button_checkbox:{type:"boolean",shortcode:function(e){return boolean(e.named.donate_button_checkbox)}},thankyou_url:{type:"string",shortcode:function(e){return e.named.thankyou_url}},background:{type:"integer",shortcode:function(e){return e.named.background}},en_form_id:{type:"integer",shortcode:function(e){return Number(e.named.en_form_id)}}}}]},attributes:{en_page_id:{type:"integer"},enform_goal:{type:"string"},en_form_style:{type:"string"},title:{type:"string"},description:{type:"string"},campaign_logo:{type:"boolean"},content_title:{type:"string"},content_title_size:{type:"string"},content_description:{type:"string"},button_text:{type:"string"},text_below_button:{type:"string"},thankyou_title:{type:"string"},thankyou_subtitle:{type:"string"},thankyou_donate_message:{type:"string"},thankyou_social_media_message:{type:"string"},donate_button_checkbox:{type:"boolean"},thankyou_url:{type:"string"},background:{type:"integer"},en_form_id:{type:"integer"}},edit:function(e){var t=e.attributes,n=e.isSelected,o=e.setAttributes;return Object(l.createElement)(N,r()({},t,{isSelected:n,onPageChange:function(e){o({en_page_id:parseInt(e)})},onGoalChange:function(e){o({enform_goal:e})},onTitleChange:function(e){o({title:e})},onDescriptionChange:function(e){o({description:e})},onCampaignLogoChange:function(e){o({campaign_logo:e})},onContentTitleChange:function(e){o({content_title:e})},onContentTitleSizeChange:function(e){o({content_title_size:e})},onContentDescriptionChange:function(e){o({content_description:e})},onCTAButtonTextChange:function(e){o({button_text:e})},onCTATextBelowButtonChange:function(e){o({text_below_button:e})},onSelectedLayoutChange:function(e){o({en_form_style:e})},onSelectImage:function(e){o({background:Number(e.id)})},onSelectURL:function(e){e.url,o({id:null})},onMainThankYouTextChange:function(e){o({thankyou_title:e})},onSecondaryThankYouMessageChange:function(e){o({thankyou_subtitle:e})},onThankYouTakeActionMessageChange:function(e){o({thankyou_social_media_message:e})},onDonateButtonCheckboxChange:function(e){o({donate_button_checkbox:e})},onThankYouURLChange:function(e){o({thankyou_url:e})},onThankYouDonateMessageChange:function(e){o({thankyou_donate_message:e})},onFormChange:function(e){o({en_form_id:Number(e)})},onUploadError:function(e){var t=e.message;console.log(t)}}))},save:function(){return null}})}}]); \ No newline at end of file +!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){!function(){e.exports=this.React}()},function(e,t,n){var o=n(16);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var o=n(17),r=n(8);e.exports=function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?r(e):t}},function(e,t){function n(e,t){for(var n=0;nNo max items
recommended.","planet4-gutenberg-engagingnetworks")},{label:S("Full page width. With background image.","planet4-gutenberg-engagingnetworks"),image:window.p4en_vars.home+"images/enfullwidthbg.png",value:"full-width-bg",help:S('This form has a background image that expands the full width of the browser (aka "Happy Point").',"planet4-gutenberg-engagingnetworks")},{label:S("Form on the side.","planet4-gutenberg-engagingnetworks"),image:window.p4en_vars.home+"images/submenu-sidebar.jpg",value:"side-style",help:S("Form will be added to the top of the page, on the right side for most languages and on the left side for Right-to-left(RTL) languages.","planet4-gutenberg-engagingnetworks")}]})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:S("Form Title","planet4-gutenberg-engagingnetworks"),placeholder:S("Enter title","planet4-gutenberg-engagingnetworks"),value:this.props.title,onChange:this.props.onTitleChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:S("Form Description","planet4-gutenberg-engagingnetworks"),placeholder:S("Enter description","planet4-gutenberg-engagingnetworks"),value:this.props.description,onChange:this.props.onDescriptionChange})),"side-style"===this.props.en_form_style&&Object(l.createElement)("div",null,"campaign"===e&&Object(l.createElement)("div",null,Object(l.createElement)(w.ToggleControl,{label:S("Use Campaign Logo?","p4ge"),value:this.props.campaign_logo,checked:this.props.campaign_logo,onChange:this.props.onCampaignLogoChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:S("Content Title","planet4-gutenberg-engagingnetworks"),placeholder:S("Enter content title","planet4-gutenberg-engagingnetworks"),value:this.props.content_title,onChange:this.props.onContentTitleChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.SelectControl,{label:S("Content Title text size","planet4-gutenberg-engagingnetworks"),value:this.props.content_title_size,options:[{label:S("Select title size","planet4-gutenberg-engagingnetworks"),value:""},{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"}],onChange:this.props.onContentTitleSizeChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextareaControl,{label:S("Content Description","planet4-gutenberg-engagingnetworks"),placeholder:S("Enter content description","planet4-gutenberg-engagingnetworks"),value:this.props.content_description,onChange:this.props.onContentDescriptionChange}))),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:S('Call to Action button (e.g. "Sign up now!")',"planet4-gutenberg-engagingnetworks"),placeholder:S('Enter the "Call to Action" button text',"planet4-gutenberg-engagingnetworks"),value:this.props.button_text,onChange:this.props.onCTAButtonTextChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextareaControl,{label:S("Text below Call to Action button","planet4-gutenberg-engagingnetworks"),placeholder:S("Enter text to go below the button","planet4-gutenberg-engagingnetworks"),value:this.props.text_below_button,onChange:this.props.onCTATextBelowButtonChange})),Object(l.createElement)(O,null,S('"Thank You" message settings',"planet4-gutenberg-engagingnetworks")),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:S("Main text / Title","planet4-gutenberg-engagingnetworks"),placeholder:S('e.g. "Thank you for signing!"',"planet4-gutenberg-engagingnetworks"),value:this.props.thankyou_title,onChange:this.props.onMainThankYouTextChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:S("Secondary message / Subtitle","planet4-gutenberg-engagingnetworks"),placeholder:S('e.g. "Your support means world"',"planet4-gutenberg-engagingnetworks"),value:this.props.thankyou_subtitle,onChange:this.props.onSecondaryThankYouMessageChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:S("Social media message","planet4-gutenberg-engagingnetworks"),placeholder:S('e.g. "Can you share it with your family and friends?"',"planet4-gutenberg-engagingnetworks"),value:this.props.thankyou_social_media_message,onChange:this.props.onThankYouTakeActionMessageChange})),Object(l.createElement)(w.ToggleControl,{label:S('Hide "Thank You" donate button',"p4ge"),value:this.props.donate_button_checkbox,checked:this.props.donate_button_checkbox,onChange:this.props.onDonateButtonCheckboxChange}),!0!==this.props.donate_button_checkbox&&Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:S("Donate message","planet4-gutenberg-engagingnetworks"),placeholder:S('e.g. "or make a donation"',"planet4-gutenberg-engagingnetworks"),value:this.props.thankyou_donate_message,onChange:this.props.onThankYouDonateMessageChange})),Object(l.createElement)("div",null,Object(l.createElement)(w.TextControl,{label:S("URL (Title and Subtitle will not be shown)","planet4-gutenberg-engagingnetworks"),placeholder:S('Enter "Thank you page" url',"planet4-gutenberg-engagingnetworks"),value:this.props.thankyou_url,onChange:this.props.onThankYouURLChange})),"full-width"!==this.props.en_form_style&&Object(l.createElement)("div",null,Object(l.createElement)(x.MediaPlaceholder,{labels:{title:S("Background","planet4-gutenberg-engagingnetworks"),instructions:S("Select an image.","planet4-gutenberg-engagingnetworks")},icon:"format-image",onSelect:this.props.onSelectImage,onError:this.props.onUploadError,accept:"image/*",allowedTypes:["image"]})),Object(l.createElement)("div",null,Object(l.createElement)(w.SelectControl,{label:S("Planet 4 Engaging Networks form","planet4-gutenberg-engagingnetworks"),value:this.props.en_form_id,options:[{label:"No forms",value:0}].concat(c()(a)),onChange:this.props.onFormChange}),Object(l.createElement)(E,null,this.props.forms?S("Select the P4EN Form that will be displayed.","planet4-gutenberg-engagingnetworks"):S("Create an EN Form","planet4-gutenberg-engagingnetworks")))))}},{key:"render",value:function(){var e=[];return!1===this.props.isSelected&&(void 0!==this.props.en_page_id&&0!==this.props.en_page_id||e.push(S('"Engaging Network Live Pages" field is required!',"planet4-gutenberg-engagingnetworks")),void 0!==this.props.button_text&&""!==this.props.button_text||e.push(S('"Call to Action button" field is required!',"planet4-gutenberg-engagingnetworks")),void 0!==this.props.en_form_id&&0!==this.props.en_form_id||e.push(S('"Planet 4 Engaging Networks form" field is required!',"planet4-gutenberg-engagingnetworks"))),Object(l.createElement)("div",null,this.props.isSelected?this.renderEdit():null,Object(l.createElement)(v,{showBar:this.props.isSelected,isSelected:this.props.isSelected},e.length?Object(l.createElement)(T,{message:e}):Object(l.createElement)(w.ServerSideRender,{block:"planet4-blocks/enform",attributes:{en_page_id:this.props.en_page_id,en_form_id:this.props.en_form_id,en_form_style:this.props.en_form_style,title:this.props.title,description:this.props.description,campaign_logo:this.props.campaign_logo,content_title:this.props.content_title,content_title_size:this.props.content_title_size,content_description:this.props.content_description,button_text:this.props.button_text,thankyou_title:this.props.thankyou_title,thankyou_subtitle:this.props.thankyou_subtitle,thankyou_donate_message:this.props.thankyou_donate_message,thankyou_social_media_message:this.props.thankyou_social_media_message,donate_button_checkbox:this.props.donate_button_checkbox,thankyou_url:this.props.thankyou_url,background:this.props.background}})))}}]),t}(_.Component);new function e(){i()(this,e),(0,wp.blocks.registerBlockType)("planet4-blocks/enform",{title:"EN Form",icon:"feedback",category:"planet4-blocks",transforms:{from:[{type:"shortcode",tag:"shortcake_enblock",attributes:{en_page_id:{type:"integer",shortcode:function(e){return Number(e.named.en_page_id)}},enform_goal:{type:"string",shortcode:function(e){return e.named.enform_goal}},en_form_style:{type:"string",shortcode:function(e){return e.named.en_form_style}},title:{type:"string",shortcode:function(e){return e.named.title}},description:{type:"string",shortcode:function(e){return e.named.description}},campaign_logo:{type:"boolean",shortcode:function(e){return boolean(e.named.campaign_logo)}},content_title:{type:"string",shortcode:function(e){return e.named.content_title}},content_title_size:{type:"string",shortcode:function(e){return e.named.content_title_size}},content_description:{type:"string",shortcode:function(e){return e.named.content_description}},button_text:{type:"string",shortcode:function(e){return e.named.button_text}},text_below_button:{type:"string",shortcode:function(e){return e.named.text_below_button}},thankyou_title:{type:"string",shortcode:function(e){return e.named.thankyou_title}},thankyou_subtitle:{type:"string",shortcode:function(e){return e.named.thankyou_subtitle}},thankyou_donate_message:{type:"string",shortcode:function(e){return e.named.thankyou_donate_message}},thankyou_social_media_message:{type:"string",shortcode:function(e){return e.named.thankyou_social_media_message}},donate_button_checkbox:{type:"boolean",shortcode:function(e){return boolean(e.named.donate_button_checkbox)}},thankyou_url:{type:"string",shortcode:function(e){return e.named.thankyou_url}},background:{type:"integer",shortcode:function(e){return e.named.background}},en_form_id:{type:"integer",shortcode:function(e){return Number(e.named.en_form_id)}}}}]},attributes:{en_page_id:{type:"integer"},enform_goal:{type:"string"},en_form_style:{type:"string"},title:{type:"string"},description:{type:"string"},campaign_logo:{type:"boolean"},content_title:{type:"string"},content_title_size:{type:"string"},content_description:{type:"string"},button_text:{type:"string"},text_below_button:{type:"string"},thankyou_title:{type:"string"},thankyou_subtitle:{type:"string"},thankyou_donate_message:{type:"string"},thankyou_social_media_message:{type:"string"},donate_button_checkbox:{type:"boolean"},thankyou_url:{type:"string"},background:{type:"integer"},en_form_id:{type:"integer"}},edit:function(e){var t=e.attributes,n=e.isSelected,o=e.setAttributes;return Object(l.createElement)(N,r()({},t,{isSelected:n,onPageChange:function(e){o({en_page_id:parseInt(e)})},onGoalChange:function(e){o({enform_goal:e})},onTitleChange:function(e){o({title:e})},onDescriptionChange:function(e){o({description:e})},onCampaignLogoChange:function(e){o({campaign_logo:e})},onContentTitleChange:function(e){o({content_title:e})},onContentTitleSizeChange:function(e){o({content_title_size:e})},onContentDescriptionChange:function(e){o({content_description:e})},onCTAButtonTextChange:function(e){o({button_text:e})},onCTATextBelowButtonChange:function(e){o({text_below_button:e})},onSelectedLayoutChange:function(e){o({en_form_style:e})},onSelectImage:function(e){o({background:Number(e.id)})},onSelectURL:function(e){e.url,o({id:null})},onMainThankYouTextChange:function(e){o({thankyou_title:e})},onSecondaryThankYouMessageChange:function(e){o({thankyou_subtitle:e})},onThankYouTakeActionMessageChange:function(e){o({thankyou_social_media_message:e})},onDonateButtonCheckboxChange:function(e){o({donate_button_checkbox:e})},onThankYouURLChange:function(e){o({thankyou_url:e})},onThankYouDonateMessageChange:function(e){o({thankyou_donate_message:e})},onFormChange:function(e){o({en_form_id:Number(e)})},onUploadError:function(e){var t=e.message;console.log(t)}}))},save:function(){return null}})}},,,,function(e,t){function n(t,o){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,o)}e.exports=n},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=o=function(e){return n(e)}:e.exports=o=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},o(t)}e.exports=o},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t {\n return { label: page.name, value: page.id };\n });\n flattenedPages = flattenedPages.concat(\n { label: '-- ' + i, value: i }, // Page type label\n ...pagesByType\n );\n }\n\n const en_forms = window.p4en_vars.forms.map(form => {\n return { label: form.post_title, value: form.ID };\n });\n\n return (\n
\n
\n {__(\n 'EN Form options',\n 'planet4-gutenberg-engagingnetworks'\n )}\n\n {__(\n 'Display options for EN Forms',\n 'planet4-gutenberg-engagingnetworks'\n )}\n\n \n\n { flattenedPages.length\n ? \n { __( 'Select the Live EN page that this form will be submitted to.', 'planet4-gutenberg-engagingnetworks' ) }\n \n : \n { __( 'Check your EngagingNetworks settings!', 'planet4-gutenberg-engagingnetworks' ) }\n \n }\n\n \n\n
\n No max items
recommended.', 'planet4-gutenberg-engagingnetworks'),\n }, {\n label: __('Full page width. With background image.', 'planet4-gutenberg-engagingnetworks'),\n image: window.p4en_vars.home + 'images/enfullwidthbg.png',\n value: 'full-width-bg',\n help: __('This form has a background image that expands the full width of the browser (aka \"Happy Point\").', 'planet4-gutenberg-engagingnetworks'),\n },\n {\n label: __('Form on the side.', 'planet4-gutenberg-engagingnetworks'),\n image: window.p4en_vars.home + 'images/submenu-sidebar.jpg',\n value: 'side-style',\n help: __('Form will be added to the top of the page, on the right side for most languages and on the left side for Right-to-left(RTL) languages.', 'planet4-gutenberg-engagingnetworks'),\n },\n ]}\n />\n
\n\n
\n \n
\n\n
\n \n
\n\n { \"side-style\" === this.props.en_form_style &&\n (
\n\n { \"campaign\" === currentPostType && (\n
\n \n
\n )}\n\n
\n \n
\n\n
\n \n
\n\n
\n \n
\n
)\n }\n\n
\n \n
\n\n
\n \n
\n\n {__(\n '\"Thank You\" message settings',\n 'planet4-gutenberg-engagingnetworks'\n )}\n\n
\n \n
\n\n
\n \n
\n\n
\n \n
\n\n \n { true !== this.props.donate_button_checkbox && (\n
\n \n
)\n }\n\n
\n \n
\n\n { \"full-width\" !== this.props.en_form_style &&\n
\n \n
\n }\n\n
\n \n { this.props.forms\n ? __( 'Select the P4EN Form that will be displayed.', 'planet4-gutenberg-engagingnetworks' )\n : __( 'Create an EN Form', 'planet4-gutenberg-engagingnetworks' )\n }\n
\n
\n
\n );\n }\n\n render() {\n let validationMessage = [];\n\n if ( false === this.props.isSelected ) {\n if ( undefined === this.props.en_page_id || 0 === this.props.en_page_id ) {\n validationMessage.push( __( '\"Engaging Network Live Pages\" field is required!', 'planet4-gutenberg-engagingnetworks' ));\n }\n if ( undefined === this.props.button_text || '' === this.props.button_text ) {\n validationMessage.push( __( '\"Call to Action button\" field is required!', 'planet4-gutenberg-engagingnetworks' ));\n }\n if ( undefined === this.props.en_form_id || 0 === this.props.en_form_id ) {\n validationMessage.push( __( '\"Planet 4 Engaging Networks form\" field is required!', 'planet4-gutenberg-engagingnetworks' ));\n }\n }\n\n return (\n
\n {\n this.props.isSelected\n ? this.renderEdit()\n : null\n }\n \n\n { validationMessage.length ?\n \n :\n \n \n }\n \n
\n );\n };\n}\n","import {ENForm} from './ENForm.js';\n\nexport class ENFormBlock {\n constructor() {\n const {registerBlockType} = wp.blocks;\n\n registerBlockType('planet4-blocks/enform', {\n title: 'EN Form',\n icon: 'feedback',\n category: 'planet4-blocks',\n\n // Transform the shortcode into a Gutenberg block\n // this is used when a user clicks \"Convert to blocks\"\n // on the \"Classic Editor\" block\n transforms: {\n from: [\n {\n type: 'shortcode',\n // Shortcode tag can also be an array of shortcode aliases\n tag: 'shortcake_enblock',\n attributes: {\n en_page_id: {\n type: 'integer',\n shortcode: function (attributes) {\n return Number(attributes.named.en_page_id);\n }\n },\n enform_goal: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.enform_goal;\n }\n },\n en_form_style: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.en_form_style;\n }\n },\n title: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.title;\n }\n },\n description: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.description;\n }\n },\n campaign_logo: {\n type: 'boolean',\n shortcode: function (attributes) {\n return boolean(attributes.named.campaign_logo);\n }\n },\n content_title: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.content_title;\n }\n },\n content_title_size: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.content_title_size;\n }\n },\n content_description: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.content_description;\n }\n },\n button_text: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.button_text;\n }\n },\n text_below_button: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.text_below_button;\n }\n },\n thankyou_title: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.thankyou_title;\n }\n },\n thankyou_subtitle: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.thankyou_subtitle;\n }\n },\n thankyou_donate_message: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.thankyou_donate_message;\n }\n },\n thankyou_social_media_message: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.thankyou_social_media_message;\n }\n },\n donate_button_checkbox: {\n type: 'boolean',\n shortcode: function (attributes) {\n return boolean(attributes.named.donate_button_checkbox);\n }\n },\n thankyou_url: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.thankyou_url;\n }\n },\n background: {\n type: 'integer',\n shortcode: function (attributes) {\n return attributes.named.background;\n }\n },\n en_form_id: {\n type: 'integer',\n shortcode: function (attributes) {\n return Number(attributes.named.en_form_id);\n }\n },\n },\n },\n ]\n },\n attributes: {\n en_page_id: {\n type: 'integer',\n },\n enform_goal: {\n type: 'string',\n },\n en_form_style: {\n type: 'string',\n },\n title: {\n type: 'string',\n },\n description: {\n type: 'string',\n },\n campaign_logo: {\n type: 'boolean',\n },\n content_title: {\n type: 'string',\n },\n content_title_size: {\n type: 'string',\n },\n content_description: {\n type: 'string',\n },\n button_text: {\n type: 'string',\n },\n text_below_button: {\n type: 'string',\n },\n thankyou_title: {\n type: 'string',\n },\n thankyou_subtitle: {\n type: 'string',\n },\n thankyou_donate_message: {\n type: 'string',\n },\n thankyou_social_media_message: {\n type: 'string',\n },\n donate_button_checkbox: {\n type: 'boolean',\n },\n thankyou_url: {\n type: 'string',\n },\n background: {\n type: 'integer',\n },\n en_form_id: {\n type: 'integer',\n },\n },\n edit: ({attributes, isSelected, setAttributes}) => {\n function onPageChange(value) {\n setAttributes({en_page_id: parseInt(value)});\n }\n\n function onGoalChange(value) {\n setAttributes({enform_goal: value});\n }\n\n function onTitleChange(value) {\n setAttributes({title: value});\n }\n\n function onDescriptionChange(value) {\n setAttributes({description: value});\n }\n\n function onCampaignLogoChange(value) {\n setAttributes({campaign_logo: value});\n }\n\n function onContentTitleChange(value) {\n setAttributes({content_title: value});\n }\n\n function onContentTitleSizeChange(value) {\n setAttributes({content_title_size: value});\n }\n\n function onContentDescriptionChange(value) {\n setAttributes({content_description: value});\n }\n\n function onCTAButtonTextChange(value) {\n setAttributes({button_text: value});\n }\n\n function onCTATextBelowButtonChange(value) {\n setAttributes({text_below_button: value});\n }\n\n function onSelectedLayoutChange(value) {\n setAttributes({en_form_style: value});\n }\n\n function onSelectImage(imageData) {\n setAttributes({background: Number(imageData.id)});\n }\n\n function onSelectURL({url}) {\n setAttributes({id: null});\n }\n\n function onMainThankYouTextChange(value) {\n setAttributes({thankyou_title: value});\n }\n\n function onSecondaryThankYouMessageChange(value) {\n setAttributes({thankyou_subtitle: value});\n }\n\n function onThankYouTakeActionMessageChange(value) {\n setAttributes({thankyou_social_media_message: value});\n }\n\n function onDonateButtonCheckboxChange(value) {\n setAttributes({donate_button_checkbox: value});\n }\n\n function onThankYouDonateMessageChange(value) {\n setAttributes({thankyou_donate_message: value});\n }\n\n function onThankYouURLChange(value) {\n setAttributes({thankyou_url: value});\n }\n\n function onFormChange(value) {\n setAttributes({en_form_id: Number(value)});\n }\n\n function onUploadError({message}) {\n console.log(message);\n }\n\n return \n },\n save() {\n return null;\n }\n });\n };\n}\n","import {React, Component} from 'react';\n\nexport class FormHelp extends Component {\n render() {\n return
{this.props.children}
;\n }\n}\n","import {React, Component} from 'react';\n\nexport class FormSectionTitle extends Component {\n render() {\n return
{this.props.children}
;\n }\n}\n","import {React, Component} from 'react';\n\nexport class InlineFormFeedback extends Component {\n render() {\n return
{this.props.children}
;\n }\n}\n","import {React, Component} from 'react';\nimport {RadioControl} from '@wordpress/components';\n\nexport class LayoutSelector extends Component {\n constructor(props) {\n super(props);\n this.state = {\n selectedOption: props.selectedOption\n };\n this.setSelected = this.setSelected.bind(this);\n }\n\n setSelected(option) {\n this.setState({selectedOption: option});\n this.props.onSelectedLayoutChange(option);\n }\n\n render() {\n return
\n {\n this.props.options.map((layoutOption, i) => {\n return (\n
;\n }\n}\n","import { React, Component } from 'react';\n\nexport class Preview extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tdetach: false\n\t\t};\n\t\tthis.detach = this.detach.bind(this);\n\t}\n\tdetach() {\n\t\tthis.setState({ detach: !this.state.detach })\n\t}\n\trender() {\n\t\treturn
\n\t\t\t{\n\t\t\t\tthis.props.showBar\n\t\t\t\t?
\n\t\t\t\t\t\tPreview\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t: null\n\t\t\t}\n\t\t\t
\n\t\t\t\t{ this.props.children }\n\t\t\t
\n\t\t
\n\t}\n}","import {React, Component} from 'react';\n\nexport class ValidationMessage extends Component {\n constructor(props) {\n super(props);\n }\n render() {\n return
\n
    \n {this.props.message.map((validation_message, key) =>\n
  • {validation_message}
  • \n )}\n
\n
;\n }\n}\n","import { ENFormBlock } from './blocks/ENForm/ENFormBlock';\n\nconst enFormBlock = new ENFormBlock();\n","(function() { module.exports = this[\"wp\"][\"components\"]; }());","(function() { module.exports = this[\"wp\"][\"editor\"]; }());","(function() { module.exports = this[\"wp\"][\"element\"]; }());","(function() { module.exports = this[\"React\"]; }());"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack:///./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack:///./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack:///./node_modules/@babel/runtime/helpers/createClass.js","webpack:///./node_modules/@babel/runtime/helpers/extends.js","webpack:///./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack:///./node_modules/@babel/runtime/helpers/inherits.js","webpack:///./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack:///./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack:///./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack:///./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack:///./node_modules/@babel/runtime/helpers/typeof.js","webpack:///./react-blocks/src/blocks/ENForm/ENForm.js","webpack:///./react-blocks/src/blocks/ENForm/ENFormBlock.js","webpack:///./react-blocks/src/components/FormHelp/FormHelp.js","webpack:///./react-blocks/src/components/FormSectionTitle/FormSectionTitle.js","webpack:///./react-blocks/src/components/InlineFormFeedback/InlineFormFeedback.js","webpack:///./react-blocks/src/components/LayoutSelector/LayoutSelector.js","webpack:///./react-blocks/src/components/Preview.js","webpack:///./react-blocks/src/components/ValidationMessage/ValidationMessage.js","webpack:///./react-blocks/src/editorIndex.js","webpack:///external {\"this\":[\"wp\",\"components\"]}","webpack:///external {\"this\":[\"wp\",\"editor\"]}","webpack:///external {\"this\":[\"wp\",\"element\"]}","webpack:///external {\"this\":\"React\"}"],"names":["__","wp","i18n","ENForm","props","data","select","getCurrentPostType","currentPostType","console","log","flattenedPages","pagesByType","i","window","p4en_vars","pages","map","page","label","name","value","id","concat","en_forms","forms","form","post_title","ID","en_page_id","length","onPageChange","enform_goal","onGoalChange","en_form_style","onSelectedLayoutChange","image","home","help","title","onTitleChange","description","onDescriptionChange","campaign_logo","onCampaignLogoChange","content_title","onContentTitleChange","content_title_size","onContentTitleSizeChange","content_description","onContentDescriptionChange","button_text","onCTAButtonTextChange","text_below_button","onCTATextBelowButtonChange","thankyou_title","onMainThankYouTextChange","thankyou_subtitle","onSecondaryThankYouMessageChange","thankyou_social_media_message","onThankYouTakeActionMessageChange","donate_button_checkbox","onDonateButtonCheckboxChange","thankyou_donate_message","onThankYouDonateMessageChange","thankyou_url","onThankYouURLChange","instructions","onSelectImage","onUploadError","en_form_id","onFormChange","validationMessage","isSelected","undefined","push","renderEdit","background","Component","ENFormBlock","registerBlockType","blocks","icon","category","transforms","from","type","tag","attributes","shortcode","Number","named","boolean","edit","setAttributes","parseInt","imageData","onSelectURL","url","message","save","FormHelp","children","FormSectionTitle","InlineFormFeedback","LayoutSelector","state","selectedOption","setSelected","bind","option","setState","options","layoutOption","display","__html","Preview","detach","showBar","ValidationMessage","validation_message","key","enFormBlock"],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;ACnEA;AACA;AACA,iDAAiD,gBAAgB;AACjE;AACA;;AAEA;AACA;AACA;;AAEA,oC;;;;;;;;;;;ACVA;AACA;AACA;AACA;;AAEA;AACA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;AAAA;;AACE,6BAAYnH,KAAZ,EAAmB;AAAA;;AAAA,oNACXA,KADW;AAElB;;AAHH;AAAA;AAAA,6BAIW;AACP,aAAO;AAAK,iBAAS,EAAC;AAAf,SACL,qFACC,KAAKA,KAAL,CAAW+F,OAAX,CAAmBlF,GAAnB,CAAuB,UAACuG,kBAAD,EAAqBC,GAArB;AAAA,eACtB;AAAI,aAAG,EAAEA;AAAT,gBAAgBD,kBAAhB,MADsB;AAAA,OAAvB,CADD,CADK,CAAP;AAOD;AAZH;;AAAA;AAAA,EAAuC1C,+CAAvC,E;;;;;;;;;;;;ACFA;AAAA;AAAA;AAEA,IAAM4C,WAAW,GAAG,IAAI3C,sEAAJ,EAApB,C;;;;;;;;;;;ACFA,aAAa,2CAA2C,EAAE,I;;;;;;;;;;;ACA1D,aAAa,uCAAuC,EAAE,I;;;;;;;;;;;ACAtD,aAAa,wCAAwC,EAAE,I;;;;;;;;;;;ACAvD,aAAa,gCAAgC,EAAE,I","file":"editorIndex.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./react-blocks/src/editorIndex.js\");\n","function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n }\n}\n\nmodule.exports = _arrayWithoutHoles;","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","function _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nmodule.exports = _nonIterableSpread;","var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","var arrayWithoutHoles = require(\"./arrayWithoutHoles\");\n\nvar iterableToArray = require(\"./iterableToArray\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;","function _typeof2(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof2(obj); }\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && _typeof2(Symbol.iterator) === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return _typeof2(obj);\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : _typeof2(obj);\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","import {React, Component } from 'react';\nimport {Preview} from '../../components/Preview';\nimport {LayoutSelector} from '../../components/LayoutSelector/LayoutSelector';\nimport {FormSectionTitle} from '../../components/FormSectionTitle/FormSectionTitle';\nimport {FormHelp} from '../../components/FormHelp/FormHelp';\nimport {InlineFormFeedback} from '../../components/InlineFormFeedback/InlineFormFeedback';\nimport {\n TextControl,\n TextareaControl,\n ToggleControl,\n SelectControl,\n ServerSideRender\n} from '@wordpress/components';\nimport {MediaPlaceholder} from \"@wordpress/editor\";\nimport {ValidationMessage} from \"../../components/ValidationMessage/ValidationMessage\";\n\nconst {__} = wp.i18n;\n\nexport class ENForm extends Component {\n constructor(props) {\n super(props);\n }\n\n renderEdit() {\n const {getCurrentPostType} = wp.data.select(\"core/editor\");\n const currentPostType = getCurrentPostType();\n\n console.log(currentPostType);\n\n let flattenedPages = [];\n let pagesByType;\n\n for (var i in window.p4en_vars.pages) {\n pagesByType = window.p4en_vars.pages[i].map(page => {\n return { label: page.name, value: page.id };\n });\n flattenedPages = flattenedPages.concat(\n { label: '-- ' + i, value: i }, // Page type label\n ...pagesByType\n );\n }\n\n const en_forms = window.p4en_vars.forms.map(form => {\n return { label: form.post_title, value: form.ID };\n });\n\n return (\n
\n
\n {__(\n 'EN Form options',\n 'planet4-gutenberg-engagingnetworks'\n )}\n\n {__(\n 'Display options for EN Forms',\n 'planet4-gutenberg-engagingnetworks'\n )}\n\n \n\n { flattenedPages.length\n ? \n { __( 'Select the Live EN page that this form will be submitted to.', 'planet4-gutenberg-engagingnetworks' ) }\n \n : \n { __( 'Check your EngagingNetworks settings!', 'planet4-gutenberg-engagingnetworks' ) }\n \n }\n\n \n\n
\n No max items
recommended.', 'planet4-gutenberg-engagingnetworks'),\n }, {\n label: __('Full page width. With background image.', 'planet4-gutenberg-engagingnetworks'),\n image: window.p4en_vars.home + 'images/enfullwidthbg.png',\n value: 'full-width-bg',\n help: __('This form has a background image that expands the full width of the browser (aka \"Happy Point\").', 'planet4-gutenberg-engagingnetworks'),\n },\n {\n label: __('Form on the side.', 'planet4-gutenberg-engagingnetworks'),\n image: window.p4en_vars.home + 'images/submenu-sidebar.jpg',\n value: 'side-style',\n help: __('Form will be added to the top of the page, on the right side for most languages and on the left side for Right-to-left(RTL) languages.', 'planet4-gutenberg-engagingnetworks'),\n },\n ]}\n />\n
\n\n
\n \n
\n\n
\n \n
\n\n { \"side-style\" === this.props.en_form_style &&\n (
\n\n { \"campaign\" === currentPostType && (\n
\n \n
\n )}\n\n
\n \n
\n\n
\n \n
\n\n
\n \n
\n
)\n }\n\n
\n \n
\n\n
\n \n
\n\n {__(\n '\"Thank You\" message settings',\n 'planet4-gutenberg-engagingnetworks'\n )}\n\n
\n \n
\n\n
\n \n
\n\n
\n \n
\n\n \n { true !== this.props.donate_button_checkbox && (\n
\n \n
)\n }\n\n
\n \n
\n\n { \"full-width\" !== this.props.en_form_style &&\n
\n \n
\n }\n\n
\n \n { this.props.forms\n ? __( 'Select the P4EN Form that will be displayed.', 'planet4-gutenberg-engagingnetworks' )\n : __( 'Create an EN Form', 'planet4-gutenberg-engagingnetworks' )\n }\n
\n
\n
\n );\n }\n\n render() {\n let validationMessage = [];\n\n if ( false === this.props.isSelected ) {\n if ( undefined === this.props.en_page_id || 0 === this.props.en_page_id ) {\n validationMessage.push( __( '\"Engaging Network Live Pages\" field is required!', 'planet4-gutenberg-engagingnetworks' ));\n }\n if ( undefined === this.props.button_text || '' === this.props.button_text ) {\n validationMessage.push( __( '\"Call to Action button\" field is required!', 'planet4-gutenberg-engagingnetworks' ));\n }\n if ( undefined === this.props.en_form_id || 0 === this.props.en_form_id ) {\n validationMessage.push( __( '\"Planet 4 Engaging Networks form\" field is required!', 'planet4-gutenberg-engagingnetworks' ));\n }\n }\n\n return (\n
\n {\n this.props.isSelected\n ? this.renderEdit()\n : null\n }\n \n\n { validationMessage.length ?\n \n :\n \n \n }\n \n
\n );\n };\n}\n","import {ENForm} from './ENForm.js';\n\nexport class ENFormBlock {\n constructor() {\n const {registerBlockType} = wp.blocks;\n\n registerBlockType('planet4-blocks/enform', {\n title: 'EN Form',\n icon: 'feedback',\n category: 'planet4-blocks',\n\n // Transform the shortcode into a Gutenberg block\n // this is used when a user clicks \"Convert to blocks\"\n // on the \"Classic Editor\" block\n transforms: {\n from: [\n {\n type: 'shortcode',\n // Shortcode tag can also be an array of shortcode aliases\n tag: 'shortcake_enblock',\n attributes: {\n en_page_id: {\n type: 'integer',\n shortcode: function (attributes) {\n return Number(attributes.named.en_page_id);\n }\n },\n enform_goal: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.enform_goal;\n }\n },\n en_form_style: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.en_form_style;\n }\n },\n title: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.title;\n }\n },\n description: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.description;\n }\n },\n campaign_logo: {\n type: 'boolean',\n shortcode: function (attributes) {\n return boolean(attributes.named.campaign_logo);\n }\n },\n content_title: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.content_title;\n }\n },\n content_title_size: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.content_title_size;\n }\n },\n content_description: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.content_description;\n }\n },\n button_text: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.button_text;\n }\n },\n text_below_button: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.text_below_button;\n }\n },\n thankyou_title: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.thankyou_title;\n }\n },\n thankyou_subtitle: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.thankyou_subtitle;\n }\n },\n thankyou_donate_message: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.thankyou_donate_message;\n }\n },\n thankyou_social_media_message: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.thankyou_social_media_message;\n }\n },\n donate_button_checkbox: {\n type: 'boolean',\n shortcode: function (attributes) {\n return boolean(attributes.named.donate_button_checkbox);\n }\n },\n thankyou_url: {\n type: 'string',\n shortcode: function (attributes) {\n return attributes.named.thankyou_url;\n }\n },\n background: {\n type: 'integer',\n shortcode: function (attributes) {\n return attributes.named.background;\n }\n },\n en_form_id: {\n type: 'integer',\n shortcode: function (attributes) {\n return Number(attributes.named.en_form_id);\n }\n },\n },\n },\n ]\n },\n attributes: {\n en_page_id: {\n type: 'integer',\n },\n enform_goal: {\n type: 'string',\n },\n en_form_style: {\n type: 'string',\n },\n title: {\n type: 'string',\n },\n description: {\n type: 'string',\n },\n campaign_logo: {\n type: 'boolean',\n },\n content_title: {\n type: 'string',\n },\n content_title_size: {\n type: 'string',\n },\n content_description: {\n type: 'string',\n },\n button_text: {\n type: 'string',\n },\n text_below_button: {\n type: 'string',\n },\n thankyou_title: {\n type: 'string',\n },\n thankyou_subtitle: {\n type: 'string',\n },\n thankyou_donate_message: {\n type: 'string',\n },\n thankyou_social_media_message: {\n type: 'string',\n },\n donate_button_checkbox: {\n type: 'boolean',\n },\n thankyou_url: {\n type: 'string',\n },\n background: {\n type: 'integer',\n },\n en_form_id: {\n type: 'integer',\n },\n },\n edit: ({attributes, isSelected, setAttributes}) => {\n function onPageChange(value) {\n setAttributes({en_page_id: parseInt(value)});\n }\n\n function onGoalChange(value) {\n setAttributes({enform_goal: value});\n }\n\n function onTitleChange(value) {\n setAttributes({title: value});\n }\n\n function onDescriptionChange(value) {\n setAttributes({description: value});\n }\n\n function onCampaignLogoChange(value) {\n setAttributes({campaign_logo: value});\n }\n\n function onContentTitleChange(value) {\n setAttributes({content_title: value});\n }\n\n function onContentTitleSizeChange(value) {\n setAttributes({content_title_size: value});\n }\n\n function onContentDescriptionChange(value) {\n setAttributes({content_description: value});\n }\n\n function onCTAButtonTextChange(value) {\n setAttributes({button_text: value});\n }\n\n function onCTATextBelowButtonChange(value) {\n setAttributes({text_below_button: value});\n }\n\n function onSelectedLayoutChange(value) {\n setAttributes({en_form_style: value});\n }\n\n function onSelectImage(imageData) {\n setAttributes({background: Number(imageData.id)});\n }\n\n function onSelectURL({url}) {\n setAttributes({id: null});\n }\n\n function onMainThankYouTextChange(value) {\n setAttributes({thankyou_title: value});\n }\n\n function onSecondaryThankYouMessageChange(value) {\n setAttributes({thankyou_subtitle: value});\n }\n\n function onThankYouTakeActionMessageChange(value) {\n setAttributes({thankyou_social_media_message: value});\n }\n\n function onDonateButtonCheckboxChange(value) {\n setAttributes({donate_button_checkbox: value});\n }\n\n function onThankYouDonateMessageChange(value) {\n setAttributes({thankyou_donate_message: value});\n }\n\n function onThankYouURLChange(value) {\n setAttributes({thankyou_url: value});\n }\n\n function onFormChange(value) {\n setAttributes({en_form_id: Number(value)});\n }\n\n function onUploadError({message}) {\n console.log(message);\n }\n\n return \n },\n save() {\n return null;\n }\n });\n };\n}\n","import {React, Component} from 'react';\n\nexport class FormHelp extends Component {\n render() {\n return
{this.props.children}
;\n }\n}\n","import {React, Component} from 'react';\n\nexport class FormSectionTitle extends Component {\n render() {\n return
{this.props.children}
;\n }\n}\n","import {React, Component} from 'react';\n\nexport class InlineFormFeedback extends Component {\n render() {\n return
{this.props.children}
;\n }\n}\n","import {React, Component} from 'react';\nimport {RadioControl} from '@wordpress/components';\n\nexport class LayoutSelector extends Component {\n constructor(props) {\n super(props);\n this.state = {\n selectedOption: props.selectedOption\n };\n this.setSelected = this.setSelected.bind(this);\n }\n\n setSelected(option) {\n this.setState({selectedOption: option});\n this.props.onSelectedLayoutChange(option);\n }\n\n render() {\n return
\n {\n this.props.options.map((layoutOption, i) => {\n return (\n
;\n }\n}\n","import { React, Component } from 'react';\n\nexport class Preview extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tdetach: false\n\t\t};\n\t\tthis.detach = this.detach.bind(this);\n\t}\n\tdetach() {\n\t\tthis.setState({ detach: !this.state.detach })\n\t}\n\trender() {\n\t\treturn
\n\t\t\t{\n\t\t\t\tthis.props.showBar\n\t\t\t\t?
\n\t\t\t\t\t\tPreview\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t: null\n\t\t\t}\n\t\t\t
\n\t\t\t\t{ this.props.children }\n\t\t\t
\n\t\t
\n\t}\n}","import {React, Component} from 'react';\n\nexport class ValidationMessage extends Component {\n constructor(props) {\n super(props);\n }\n render() {\n return
\n
    \n {this.props.message.map((validation_message, key) =>\n
  • {validation_message}
  • \n )}\n
\n
;\n }\n}\n","import { ENFormBlock } from './blocks/ENForm/ENFormBlock';\n\nconst enFormBlock = new ENFormBlock();\n","(function() { module.exports = this[\"wp\"][\"components\"]; }());","(function() { module.exports = this[\"wp\"][\"editor\"]; }());","(function() { module.exports = this[\"wp\"][\"element\"]; }());","(function() { module.exports = this[\"React\"]; }());"],"sourceRoot":""} \ No newline at end of file diff --git a/react-blocks/build/editorStyle.js b/react-blocks/build/editorStyle.js index 9131ef1..56cd518 100644 --- a/react-blocks/build/editorStyle.js +++ b/react-blocks/build/editorStyle.js @@ -1 +1 @@ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=19)}({19:function(e,t,r){}}); \ No newline at end of file +!function(e){var n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=n,r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="",r(r.s=13)}({13:function(e,n,r){}}); \ No newline at end of file diff --git a/react-blocks/build/editorStyle.js.map b/react-blocks/build/editorStyle.js.map index 70c5b33..88617fb 100644 --- a/react-blocks/build/editorStyle.js.map +++ b/react-blocks/build/editorStyle.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./react-blocks/src/styles/editorStyle.scss?d267"],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;AClFA,uC","file":"editorStyle.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./react-blocks/src/styles/editorStyle.scss\");\n","// extracted by mini-css-extract-plugin"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./react-blocks/src/styles/editorStyle.scss?fa01"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;ACnEA,uC","file":"editorStyle.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./react-blocks/src/styles/editorStyle.scss\");\n","// extracted by mini-css-extract-plugin"],"sourceRoot":""} \ No newline at end of file diff --git a/react-blocks/build/editorStyle.min.css b/react-blocks/build/editorStyle.min.css index 13cbc43..436491a 100644 --- a/react-blocks/build/editorStyle.min.css +++ b/react-blocks/build/editorStyle.min.css @@ -1 +1 @@ -.FormSectionTitle{font-size:14pt;border-bottom:1px solid #ccc;padding-top:16px;padding-bottom:8px;margin-bottom:16px}.FormHelp{font-style:italic;color:#666}.InlineFormFeedback{padding:10px;background:#fff6cd;border:1px solid #ffd204;margin-bottom:16px}.LayoutSelector{display:flex;width:100%;margin-bottom:30px;cursor:pointer}.LayoutSelector .LayoutOption{padding:20px;border-right:1px solid #ccc;width:100%}.LayoutSelector .LayoutOption:last-child{border-right:0}.LayoutSelector .help{font-family:Roboto,sans-serif;font-size:10pt;margin-top:10px}.ValidationMessage{font-family:Roboto,sans-serif;padding:32px;background:#eaccbb}.ValidationMessage li{list-style-type:none}.Preview{transition:padding .5s}.Preview section:first-child{margin-top:0}.Preview .PreviewContainer{position:relative}.Preview.FloatingPreview{position:fixed;right:32px;bottom:0;width:500px;background:#fff;padding:16px;box-shadow:0 0 10px #6c0;border-radius:16px 16px 0 0;z-index:9999999;max-height:450px}.Preview.FloatingPreview .PreviewContainer{transform:scale(.5) translateX(-50%) translateY(-50%);width:200%}.Preview.FloatingPreview .PreviewBar{font-size:9pt;padding:8px}.Preview .PreviewBar{border-bottom:1px solid #8bcc49;font-style:italic;padding:12px}.Preview .PreviewBar .DetachPreview{cursor:pointer;float:right}.Preview .submenu-sidebar{float:unset!important} \ No newline at end of file +.has-dark-shade-black-color{color:#1a1a1a}.has-dark-shade-black-background-color{background-color:#1a1a1a}.has-grey-60-color{color:#666}.has-grey-60-background-color{background-color:#666}.has-grey-40-color{color:#999}.has-grey-40-background-color{background-color:#999}.has-grey-20-color{color:#ccc}.has-grey-20-background-color{background-color:#ccc}.has-grey-10-color{color:#e5e5e5}.has-grey-10-background-color{background-color:#e5e5e5}.has-grey-color{color:#333}.has-grey-background-color{background-color:#333}.has-green-color{color:#030}.has-green-background-color{background-color:#030}.has-green-80-color{color:#1b4a1b}.has-green-80-background-color{background-color:#1b4a1b}.has-gp-green-color{color:#6c0}.has-gp-green-background-color{background-color:#6c0}.has-dark-tiber-color{color:#052a30}.has-dark-tiber-background-color{background-color:#052a30}.has-genoa-color{color:#186a70}.has-genoa-background-color{background-color:#186a70}.has-inch-worm-color{color:#a7e021}.has-inch-worm-background-color{background-color:#a7e021}.has-x-dark-blue-color{color:#042233}.has-x-dark-blue-background-color{background-color:#042233}.has-allports-color{color:#079}.has-allports-background-color{background-color:#079}.has-spray-color{color:spray}.has-spray-background-color{background-color:spray}.has-dark-blue-color{color:#074365}.has-dark-blue-background-color{background-color:#074365}.has-blue-color{color:#2980b9}.has-blue-background-color{background-color:#2980b9}.has-blue-60-color{color:#63bbfd}.has-blue-60-background-color{background-color:#63bbfd}.has-crimson-color{color:#e51538}.has-crimson-background-color{background-color:#e51538}.has-orange-hover-color{color:#ee562d}.has-orange-hover-background-color{background-color:#ee562d}.has-yellow-color{color:#ffd204}.has-yellow-background-color{background-color:#ffd204}.FormSectionTitle{font-size:14pt;border-bottom:1px solid #ccc;padding-top:16px;padding-bottom:8px;margin-bottom:16px}.FormHelp{font-style:italic;color:#666}.InlineFormFeedback{padding:10px;background:#fff6cd;border:1px solid #ffd204;margin-bottom:16px}.LayoutSelector{display:flex;width:100%;margin-bottom:30px;cursor:pointer}.LayoutSelector .LayoutOption{padding:20px;border-right:1px solid #ccc;width:100%}.LayoutSelector .LayoutOption:last-child{border-right:0}.LayoutSelector .help{font-family:Roboto,sans-serif;font-size:10pt;margin-top:10px}.ValidationMessage{font-family:Roboto,sans-serif;padding:32px;background:#eaccbb}.ValidationMessage li{list-style-type:none}.Preview{transition:padding .5s}.Preview section:first-child{margin-top:0}.Preview .PreviewContainer{position:relative}.Preview.FloatingPreview{position:fixed;right:32px;bottom:0;width:500px;background:#fff;padding:16px;box-shadow:0 0 10px #6c0;border-radius:16px 16px 0 0;z-index:9999999;max-height:450px}.Preview.FloatingPreview .PreviewContainer{transform:scale(.5) translateX(-50%) translateY(-50%);width:200%}.Preview.FloatingPreview .PreviewBar{font-size:9pt;padding:8px}.Preview .PreviewBar{border-bottom:1px solid #8bcc49;font-style:italic;padding:12px}.Preview .PreviewBar .DetachPreview{cursor:pointer;float:right}.Preview .submenu-sidebar{float:unset!important} \ No newline at end of file diff --git a/react-blocks/build/editorStyle.min.css.map b/react-blocks/build/editorStyle.min.css.map index a50e4fc..6bfb114 100644 --- a/react-blocks/build/editorStyle.min.css.map +++ b/react-blocks/build/editorStyle.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./react-blocks/src/styles/editorStyle.scss"],"names":[],"mappings":"AAAA;AACA;AACA;AACA,UAAU,EAAE;AACZ,WAAW;AACX;AACA;AACA;AACA;AACA,UAAU,gBAAgB;AAC1B,YAAY,SAAS;AACrB,YAAY,SAAS;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;;AAEtB;AACA;AACA,cAAc;;AAEd;AACA;AACA;AACA;AACA,sBAAsB;;AAEtB;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,gBAAgB;AAChB;AACA,oBAAoB;AACpB;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA,sBAAsB;;AAEtB;AACA,wBAAwB;;AAExB;AACA,0BAA0B;AAC1B;AACA,kBAAkB;AAClB;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,mBAAmB;AACnB;AACA,4BAA4B","file":"./editorStyle.min.css","sourcesContent":["/**\n* Test if `$value` is a valid direction\n*\n* @param {*} $value - Value to test\n* @return {Bool}\n*/\n/**\n* Convert a direction to legacy syntax\n*\n* @param {Keyword | Angle} $value - Value to convert\n* @require {function} is-direction\n* @require {function} convert-angle\n*/\n/* Generates mutilevel nested comments\nlevel-1 is the first level comment with a margin of 50px\nlevel-2 is the first level comment with a margin of 100px\nand so on...\n*/\n.FormSectionTitle {\n font-size: 14pt;\n border-bottom: 1px solid #ccc;\n padding-top: 16px;\n padding-bottom: 8px;\n margin-bottom: 16px; }\n\n.FormHelp {\n font-style: italic;\n color: #666; }\n\n.InlineFormFeedback {\n padding: 10px;\n background: #fff6cd;\n border: 1px solid #ffd204;\n margin-bottom: 16px; }\n\n.LayoutSelector {\n display: flex;\n width: 100%;\n margin-bottom: 30px;\n cursor: pointer; }\n .LayoutSelector .LayoutOption {\n padding: 20px;\n border-right: 1px solid #ccc;\n width: 100%; }\n .LayoutSelector .LayoutOption:last-child {\n border-right: 0; }\n .LayoutSelector .help {\n font-family: \"Roboto\", sans-serif;\n font-size: 10pt;\n margin-top: 10px; }\n\n.ValidationMessage {\n font-family: \"Roboto\", sans-serif;\n padding: 32px;\n background: #eaccbb; }\n\n.ValidationMessage li {\n list-style-type: none; }\n\n.Preview {\n transition: padding .5s; }\n .Preview section:first-child {\n margin-top: 0; }\n .Preview .PreviewContainer {\n position: relative; }\n .Preview.FloatingPreview {\n position: fixed;\n right: 32px;\n bottom: 0;\n width: 500px;\n background: white;\n padding: 16px;\n box-shadow: 0 0 10px #66cc00;\n border-radius: 16px 16px 0 0;\n z-index: 9999999;\n max-height: 450px; }\n .Preview.FloatingPreview .PreviewContainer {\n transform: scale(0.5) translateX(-50%) translateY(-50%);\n width: 200%; }\n .Preview.FloatingPreview .PreviewBar {\n font-size: 9pt;\n padding: 8px; }\n .Preview .PreviewBar {\n border-bottom: 1px solid #8bcc49;\n font-style: italic;\n padding: 12px; }\n .Preview .PreviewBar .DetachPreview {\n cursor: pointer;\n float: right; }\n .Preview .submenu-sidebar {\n float: unset !important; }\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///./react-blocks/src/styles/editorStyle.scss"],"names":[],"mappings":"AAAA;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,cAAc;;AAEd;AACA,yBAAyB;;AAEzB;AACA,cAAc;;AAEd;AACA,yBAAyB;;AAEzB;AACA,cAAc;;AAEd;AACA,yBAAyB;;AAEzB;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,cAAc;;AAEd;AACA,yBAAyB;;AAEzB;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,eAAe;;AAEf;AACA,0BAA0B;;AAE1B;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA;AACA;AACA,UAAU,EAAE;AACZ,WAAW;AACX;AACA;AACA;AACA;AACA,UAAU,gBAAgB;AAC1B,YAAY,SAAS;AACrB,YAAY,SAAS;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;;AAEtB;AACA;AACA,cAAc;;AAEd;AACA;AACA;AACA;AACA,sBAAsB;;AAEtB;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,gBAAgB;AAChB;AACA,oBAAoB;AACpB;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA,sBAAsB;;AAEtB;AACA,wBAAwB;;AAExB;AACA,0BAA0B;AAC1B;AACA,kBAAkB;AAClB;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,mBAAmB;AACnB;AACA,4BAA4B","file":"./editorStyle.min.css","sourcesContent":[".has-dark-shade-black-color {\n color: #1a1a1a; }\n\n.has-dark-shade-black-background-color {\n background-color: #1a1a1a; }\n\n.has-grey-60-color {\n color: #666; }\n\n.has-grey-60-background-color {\n background-color: #666; }\n\n.has-grey-40-color {\n color: #999; }\n\n.has-grey-40-background-color {\n background-color: #999; }\n\n.has-grey-20-color {\n color: #ccc; }\n\n.has-grey-20-background-color {\n background-color: #ccc; }\n\n.has-grey-10-color {\n color: #e5e5e5; }\n\n.has-grey-10-background-color {\n background-color: #e5e5e5; }\n\n.has-grey-color {\n color: #333; }\n\n.has-grey-background-color {\n background-color: #333; }\n\n.has-green-color {\n color: #003300; }\n\n.has-green-background-color {\n background-color: #003300; }\n\n.has-green-80-color {\n color: #1b4a1b; }\n\n.has-green-80-background-color {\n background-color: #1b4a1b; }\n\n.has-gp-green-color {\n color: #66cc00; }\n\n.has-gp-green-background-color {\n background-color: #66cc00; }\n\n.has-dark-tiber-color {\n color: #052a30; }\n\n.has-dark-tiber-background-color {\n background-color: #052a30; }\n\n.has-genoa-color {\n color: #186a70; }\n\n.has-genoa-background-color {\n background-color: #186a70; }\n\n.has-inch-worm-color {\n color: #a7e021; }\n\n.has-inch-worm-background-color {\n background-color: #a7e021; }\n\n.has-x-dark-blue-color {\n color: #042233; }\n\n.has-x-dark-blue-background-color {\n background-color: #042233; }\n\n.has-allports-color {\n color: #007799; }\n\n.has-allports-background-color {\n background-color: #007799; }\n\n.has-spray-color {\n color: spray; }\n\n.has-spray-background-color {\n background-color: spray; }\n\n.has-dark-blue-color {\n color: #074365; }\n\n.has-dark-blue-background-color {\n background-color: #074365; }\n\n.has-blue-color {\n color: #2980b9; }\n\n.has-blue-background-color {\n background-color: #2980b9; }\n\n.has-blue-60-color {\n color: #63bbfd; }\n\n.has-blue-60-background-color {\n background-color: #63bbfd; }\n\n.has-crimson-color {\n color: #e51538; }\n\n.has-crimson-background-color {\n background-color: #e51538; }\n\n.has-orange-hover-color {\n color: #ee562d; }\n\n.has-orange-hover-background-color {\n background-color: #ee562d; }\n\n.has-yellow-color {\n color: #ffd204; }\n\n.has-yellow-background-color {\n background-color: #ffd204; }\n\n/**\n* Test if `$value` is a valid direction\n*\n* @param {*} $value - Value to test\n* @return {Bool}\n*/\n/**\n* Convert a direction to legacy syntax\n*\n* @param {Keyword | Angle} $value - Value to convert\n* @require {function} is-direction\n* @require {function} convert-angle\n*/\n/* Generates mutilevel nested comments\nlevel-1 is the first level comment with a margin of 50px\nlevel-2 is the first level comment with a margin of 100px\nand so on...\n*/\n.FormSectionTitle {\n font-size: 14pt;\n border-bottom: 1px solid #ccc;\n padding-top: 16px;\n padding-bottom: 8px;\n margin-bottom: 16px; }\n\n.FormHelp {\n font-style: italic;\n color: #666; }\n\n.InlineFormFeedback {\n padding: 10px;\n background: #fff6cd;\n border: 1px solid #ffd204;\n margin-bottom: 16px; }\n\n.LayoutSelector {\n display: flex;\n width: 100%;\n margin-bottom: 30px;\n cursor: pointer; }\n .LayoutSelector .LayoutOption {\n padding: 20px;\n border-right: 1px solid #ccc;\n width: 100%; }\n .LayoutSelector .LayoutOption:last-child {\n border-right: 0; }\n .LayoutSelector .help {\n font-family: \"Roboto\", sans-serif;\n font-size: 10pt;\n margin-top: 10px; }\n\n.ValidationMessage {\n font-family: \"Roboto\", sans-serif;\n padding: 32px;\n background: #eaccbb; }\n\n.ValidationMessage li {\n list-style-type: none; }\n\n.Preview {\n transition: padding .5s; }\n .Preview section:first-child {\n margin-top: 0; }\n .Preview .PreviewContainer {\n position: relative; }\n .Preview.FloatingPreview {\n position: fixed;\n right: 32px;\n bottom: 0;\n width: 500px;\n background: white;\n padding: 16px;\n box-shadow: 0 0 10px #66cc00;\n border-radius: 16px 16px 0 0;\n z-index: 9999999;\n max-height: 450px; }\n .Preview.FloatingPreview .PreviewContainer {\n transform: scale(0.5) translateX(-50%) translateY(-50%);\n width: 200%; }\n .Preview.FloatingPreview .PreviewBar {\n font-size: 9pt;\n padding: 8px; }\n .Preview .PreviewBar {\n border-bottom: 1px solid #8bcc49;\n font-style: italic;\n padding: 12px; }\n .Preview .PreviewBar .DetachPreview {\n cursor: pointer;\n float: right; }\n .Preview .submenu-sidebar {\n float: unset !important; }\n"],"sourceRoot":""} \ No newline at end of file diff --git a/react-blocks/build/frontendIndex.js b/react-blocks/build/frontendIndex.js index 213bdff..e110dc9 100644 --- a/react-blocks/build/frontendIndex.js +++ b/react-blocks/build/frontendIndex.js @@ -1 +1 @@ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=17)}({17:function(e,t){}}); \ No newline at end of file +!function(e){var n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=n,r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="",r(r.s=15)}({15:function(e,n){}}); \ No newline at end of file diff --git a/react-blocks/build/frontendIndex.js.map b/react-blocks/build/frontendIndex.js.map index 2fce37f..5966f4f 100644 --- a/react-blocks/build/frontendIndex.js.map +++ b/react-blocks/build/frontendIndex.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./react-blocks/src/frontendIndex.js"],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;AClFA;AACA;AACA;AACA;AACA;AACA,E","file":"frontendIndex.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./react-blocks/src/frontendIndex.js\");\n","// import { ShipModel } from './components/ShipModel/ShipModel';\n//\n// document.querySelectorAll('.ArcticSunriseBlock').forEach(\n// \tarcticSunriseContainer => wp.element.render(, arcticSunriseContainer )\n// );\n//\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./react-blocks/src/frontendIndex.js"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;ACnEA;AACA;AACA;AACA;AACA;AACA,E","file":"frontendIndex.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./react-blocks/src/frontendIndex.js\");\n","// import { ShipModel } from './components/ShipModel/ShipModel';\n//\n// document.querySelectorAll('.ArcticSunriseBlock').forEach(\n// \tarcticSunriseContainer => wp.element.render(, arcticSunriseContainer )\n// );\n//\n"],"sourceRoot":""} \ No newline at end of file diff --git a/react-blocks/build/style.js b/react-blocks/build/style.js index d784ebf..eddff0b 100644 --- a/react-blocks/build/style.js +++ b/react-blocks/build/style.js @@ -1 +1 @@ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=18)}({18:function(e,t,r){}}); \ No newline at end of file +!function(e){var n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=n,r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="",r(r.s=14)}({14:function(e,n,r){}}); \ No newline at end of file diff --git a/react-blocks/build/style.js.map b/react-blocks/build/style.js.map index 21fbc90..c300805 100644 --- a/react-blocks/build/style.js.map +++ b/react-blocks/build/style.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./react-blocks/src/styles/style.scss?6326"],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;AClFA,uC","file":"style.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./react-blocks/src/styles/style.scss\");\n","// extracted by mini-css-extract-plugin"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./react-blocks/src/styles/style.scss?f295"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;ACnEA,uC","file":"style.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./react-blocks/src/styles/style.scss\");\n","// extracted by mini-css-extract-plugin"],"sourceRoot":""} \ No newline at end of file diff --git a/react-blocks/build/style.min.css b/react-blocks/build/style.min.css index f4fd923..c67ec81 100644 --- a/react-blocks/build/style.min.css +++ b/react-blocks/build/style.min.css @@ -1 +1 @@ -.enform-full-width-bg{width:100vw;min-height:444px;overflow:hidden;display:flex;align-items:center}.enform-full-width-bg:before{content:"";background:#d6e6f2;position:absolute;left:0;top:0;height:100%;width:100%;opacity:.6}.enform-full-width-bg picture{align-self:start}.enform-full-width-bg picture img{position:absolute;height:auto;width:100%;object-fit:cover;object-position:center center;opacity:.3}@supports (object-fit:cover){.enform-full-width-bg picture img{height:100%}}.form-caption{float:none;width:100%;padding:53px 15px}@media (min-width:768px){.form-caption{padding-top:106px;padding-bottom:106px}}@media (min-width:992px){.form-caption{float:left;padding-top:176px;width:50%;padding-left:0;padding-right:0}html[dir=rtl] .form-caption{float:right}.form-caption .form-caption-background{display:none}}.form-caption h1,.form-caption h2,.form-caption h3{color:#fff;font-family:Roboto,sans-serif}.form-caption h1{margin-bottom:24px;line-height:1.1}@media (min-width:992px){.form-caption h1{margin-bottom:32px}}.form-caption h2{margin-bottom:18px;line-height:1.2}@media (min-width:992px){.form-caption h2{margin-bottom:24px}}.form-caption h3{margin-bottom:8px;font-size:1.25rem}@media (min-width:768px){.form-caption h3{font-size:1.675rem}}@media (min-width:992px){.form-caption h3{font-size:1.75rem}}.form-caption p{color:#fff;font-size:1rem;line-height:1.37rem}.enform,.form-caption p{font-family:Roboto,sans-serif}.enform{margin-top:36px;height:inherit;padding:20px;background:#074365;width:100%}.enform-full-width .enform{color:#fff}.enform-full-width-bg .enform{background:none}.enform form{margin:0}.enform form .custom-select,.enform form button,.enform form input,.enform form select.form-control.en__field__input--select{height:46px;border-radius:0;border-color:transparent;margin-bottom:16px;min-width:200px}@media (min-width:768px){.enform form .custom-select,.enform form button,.enform form input,.enform form select.form-control.en__field__input--select{margin-bottom:inherit}}.enform form .custom-select.is-invalid,.enform form button.is-invalid,.enform form input.is-invalid,.enform form select.form-control.en__field__input--select.is-invalid{border-color:#f33}.enform form .custom-select+.invalid-feedback,.enform form button+.invalid-feedback,.enform form input+.invalid-feedback,.enform form select.form-control.en__field__input--select+.invalid-feedback{background:#f33;color:#fff;padding:5px}.enform form .custom-checkbox input{height:auto}.enform form .disable-checkbox{opacity:.5}.enform form .formblock-flex{display:flex;flex-wrap:wrap;width:100%}@media (min-width:768px){.enform form .formblock-flex{justify-content:space-between}}.enform form .formblock-flex .en__field{width:100%}@media (min-width:768px){.enform form .formblock-flex .en__field{width:49%}}.enform form .submit{margin:0;line-height:1}@media (min-width:768px){.enform form .submit{display:flex;flex-direction:row-reverse}}.enform form input[type=submit]{margin-bottom:0;line-height:1}.enform form .form-check-label-block{display:inline-block;padding:10px 0 0;margin-bottom:5px}.enform-full-width-bg .enform form .form-check-label-block{color:#000}.enform form .form-check-label-block input[type=checkbox]+.custom-control-description,.enform form .form-check-label-block input[type=radio]+.custom-control-description{font-size:.85rem}.enform form .form-check-label-block input[type=checkbox]+.custom-control-description:before,.enform form .form-check-label-block input[type=radio]+.custom-control-description:before{border:1px solid #1a1a1a;vertical-align:middle}.enform-full-width-bg .enform form .form-check-label-block input[type=checkbox]+.custom-control-description:before,.enform-full-width-bg .enform form .form-check-label-block input[type=radio]+.custom-control-description:before{border:3px solid #0a3351}.enform form .enform-legal{padding-top:1em}.enform form .enform-legal p{font-size:.75rem;line-height:1rem;float:right}.enform-full-width .enform h2{color:#fff}.enform h2.thankyou{margin-bottom:0}@media (min-width:768px){.enform h2{font-size:1.75rem;line-height:34px}}@media (min-width:992px){.enform h2{font-size:2.125rem}}@media (min-width:1200px){.enform h2{font-size:2.25rem}}.enform .thankyou-subtitle{font-weight:400}.en-spinner{border-color:#fff transparent #fff #fff!important;display:none;vertical-align:middle}body.wp-admin .enform-full-width-bg,body.wp-admin .enform-side-style{pointer-events:none;width:100%}body.wp-admin .enform-full-width-bg .container,body.wp-admin .enform-side-style .container{z-index:1}body.wp-admin .enform .form-container input{box-sizing:border-box}.enform-side-style{width:100vw;min-height:444px;overflow:hidden;display:flex;align-items:center}.enform-side-style .caption-overlay{display:block;background-position:100% 100%;background-size:cover;height:100%;width:90%;position:absolute;margin-left:0;z-index:1}html[dir=rtl] .enform-side-style .caption-overlay{background-position:0 100%}@media (min-width:768px){.enform-side-style .caption-overlay{width:50%}}.enform-side-style:after{position:absolute;top:0;right:0;bottom:0;left:0;content:"";background:rgba(30,30,30,.45)}.enform-side-style picture{align-self:start}@media (min-width:992px){.enform-side-style picture{display:block}}.enform-side-style picture img{position:absolute;height:auto;width:100%;object-fit:cover;object-position:center center;opacity:1}@supports (object-fit:cover){.enform-side-style picture img{height:100%}}.enform-side-style .enform{overflow:hidden;align-items:center;min-height:444px;background:#fff;padding-top:28px;float:none;width:100vw;margin-top:0;margin-bottom:0}@media (min-width:992px){.enform-side-style .enform{margin-top:96px;margin-bottom:60px;float:right;width:40%;max-width:444px;box-sizing:content-box;box-shadow:0 2px 5px rgba(0,0,0,.25);padding:28px 30px 24px}html[dir=rtl] .enform-side-style .enform{float:left}}.enform-side-style .enform .enform-legal p{float:none}.enform-side-style .title-and-description{color:#1a1a1a;padding:15px}@media (min-width:992px){.enform-side-style .title-and-description{padding:0}}.enform-side-style .form-container{background:#fff;padding:15px}@media (min-width:992px){.enform-side-style .form-container{padding:0}}.enform-side-style .form-container .formblock-flex .en__field{width:100%}.enform-side-style .form-container .en__field__element{position:relative}.enform-side-style .form-container .en__field__element input[type=email],.enform-side-style .form-container .en__field__element input[type=tel],.enform-side-style .form-container .en__field__element input[type=text],.enform-side-style .form-container .en__field__element select{border:1px solid #1a1a1a;margin-bottom:20px;padding:10px}.enform-side-style .form-container .en__field__element input[type=email].is-invalid,.enform-side-style .form-container .en__field__element input[type=tel].is-invalid,.enform-side-style .form-container .en__field__element input[type=text].is-invalid,.enform-side-style .form-container .en__field__element select.is-invalid{border:1px solid #f33;margin-bottom:6px}.enform-side-style .form-container .invalid-feedback{color:#f33;font-weight:700;margin:0;padding:0;background:none}.enform-side-style .en__field__top__label{position:absolute;top:-.6rem;background:#fff;left:10px;padding:0 8px;font-weight:600;font-size:.75rem}html[dir=rtl] .enform-side-style .en__field__top__label{left:auto;right:10px}.thankyou{position:relative;min-height:inherit}@media (max-width:576px){.thankyou{margin:0 20px}}.thankyou.full-width{max-width:444px;left:33%}.thankyou .page-section-header{line-height:1.2}.thankyou .page-section-description{line-height:1.4}.thankyou .sub-section{margin-bottom:2em;width:100%}.thankyou .sub-section .form-group{margin-bottom:2em}.thankyou .sub-section .social-media .share-buttons{float:none}.thankyou .sub-section .social-media .share-btn{width:32.5%;box-shadow:0 2px 5px rgba(0,0,0,.25)}.thankyou .sub-section .social-media .twitter{background:#00acee none repeat scroll 0 0}.en__field--select{border:1px solid #1a1a1a;border-radius:0;width:100%;margin-bottom:1rem}.en__field--select .en__field__element--select{margin-bottom:0}.en__field--select .en__field__element--select select.form-control.en__field__input--select{width:100%;display:block;margin-bottom:0;-webkit-appearance:none;-moz-appearance:none;appearance:none} \ No newline at end of file +.has-dark-shade-black-color{color:#1a1a1a}.has-dark-shade-black-background-color{background-color:#1a1a1a}.has-grey-60-color{color:#666}.has-grey-60-background-color{background-color:#666}.has-grey-40-color{color:#999}.has-grey-40-background-color{background-color:#999}.has-grey-20-color{color:#ccc}.has-grey-20-background-color{background-color:#ccc}.has-grey-10-color{color:#e5e5e5}.has-grey-10-background-color{background-color:#e5e5e5}.has-grey-color{color:#333}.has-grey-background-color{background-color:#333}.has-green-color{color:#030}.has-green-background-color{background-color:#030}.has-green-80-color{color:#1b4a1b}.has-green-80-background-color{background-color:#1b4a1b}.has-gp-green-color{color:#6c0}.has-gp-green-background-color{background-color:#6c0}.has-dark-tiber-color{color:#052a30}.has-dark-tiber-background-color{background-color:#052a30}.has-genoa-color{color:#186a70}.has-genoa-background-color{background-color:#186a70}.has-inch-worm-color{color:#a7e021}.has-inch-worm-background-color{background-color:#a7e021}.has-x-dark-blue-color{color:#042233}.has-x-dark-blue-background-color{background-color:#042233}.has-allports-color{color:#079}.has-allports-background-color{background-color:#079}.has-spray-color{color:spray}.has-spray-background-color{background-color:spray}.has-dark-blue-color{color:#074365}.has-dark-blue-background-color{background-color:#074365}.has-blue-color{color:#2980b9}.has-blue-background-color{background-color:#2980b9}.has-blue-60-color{color:#63bbfd}.has-blue-60-background-color{background-color:#63bbfd}.has-crimson-color{color:#e51538}.has-crimson-background-color{background-color:#e51538}.has-orange-hover-color{color:#ee562d}.has-orange-hover-background-color{background-color:#ee562d}.has-yellow-color{color:#ffd204}.has-yellow-background-color{background-color:#ffd204}.enform-full-width-bg{width:100vw;min-height:444px;overflow:hidden;display:flex;align-items:center}.enform-full-width-bg:before{content:"";background:#d6e6f2;position:absolute;left:0;top:0;height:100%;width:100%;opacity:.6}.enform-full-width-bg picture{align-self:start}.enform-full-width-bg picture img{position:absolute;height:auto;width:100%;object-fit:cover;object-position:center center;opacity:.3}@supports (object-fit:cover){.enform-full-width-bg picture img{height:100%}}.form-caption{float:none;width:100%;padding:53px 15px}@media (min-width:768px){.form-caption{padding-top:106px;padding-bottom:106px}}@media (min-width:992px){.form-caption{float:left;padding-top:176px;width:50%;padding-left:0;padding-right:0}html[dir=rtl] .form-caption{float:right}.form-caption .form-caption-background{display:none}}.form-caption h1,.form-caption h2,.form-caption h3{color:#fff;font-family:Roboto,sans-serif}.form-caption h1{margin-bottom:24px;line-height:1.1}@media (min-width:992px){.form-caption h1{margin-bottom:32px}}.form-caption h2{margin-bottom:18px;line-height:1.2}@media (min-width:992px){.form-caption h2{margin-bottom:24px}}.form-caption h3{margin-bottom:8px;font-size:1.25rem}@media (min-width:768px){.form-caption h3{font-size:1.675rem}}@media (min-width:992px){.form-caption h3{font-size:1.75rem}}.form-caption p{color:#fff;font-size:1rem;line-height:1.37rem}.enform,.form-caption p{font-family:Roboto,sans-serif}.enform{margin-top:36px;height:inherit;padding:20px;background:#074365;width:100%}.enform-full-width .enform{color:#fff}.enform-full-width-bg .enform{background:none}.enform form{margin:0}.enform form .custom-select,.enform form button,.enform form input,.enform form select.form-control.en__field__input--select{height:46px;border-radius:0;border-color:transparent;margin-bottom:16px;min-width:200px}@media (min-width:768px){.enform form .custom-select,.enform form button,.enform form input,.enform form select.form-control.en__field__input--select{margin-bottom:inherit}}.enform form .custom-select.is-invalid,.enform form button.is-invalid,.enform form input.is-invalid,.enform form select.form-control.en__field__input--select.is-invalid{border-color:#f33}.enform form .custom-select+.invalid-feedback,.enform form button+.invalid-feedback,.enform form input+.invalid-feedback,.enform form select.form-control.en__field__input--select+.invalid-feedback{background:#f33;color:#fff;padding:5px}.enform form .custom-checkbox input{height:auto}.enform form .disable-checkbox{opacity:.5}.enform form .formblock-flex{display:flex;flex-wrap:wrap;width:100%}@media (min-width:768px){.enform form .formblock-flex{justify-content:space-between}}.enform form .formblock-flex .en__field{width:100%}@media (min-width:768px){.enform form .formblock-flex .en__field{width:49%}}.enform form .submit{margin:0;line-height:1}@media (min-width:768px){.enform form .submit{display:flex;flex-direction:row-reverse}}.enform form input[type=submit]{margin-bottom:0;line-height:1}.enform form .form-check-label-block{display:inline-block;padding:10px 0 0;margin-bottom:5px}.enform-full-width-bg .enform form .form-check-label-block{color:#000}.enform form .form-check-label-block input[type=checkbox]+.custom-control-description,.enform form .form-check-label-block input[type=radio]+.custom-control-description{font-size:.85rem}.enform form .form-check-label-block input[type=checkbox]+.custom-control-description:before,.enform form .form-check-label-block input[type=radio]+.custom-control-description:before{border:1px solid #1a1a1a;vertical-align:middle}.enform-full-width-bg .enform form .form-check-label-block input[type=checkbox]+.custom-control-description:before,.enform-full-width-bg .enform form .form-check-label-block input[type=radio]+.custom-control-description:before{border:3px solid #0a3351}.enform form .enform-legal{padding-top:1em}.enform form .enform-legal p{font-size:.75rem;line-height:1rem;float:right}.enform-full-width .enform h2{color:#fff}.enform h2.thankyou{margin-bottom:0}@media (min-width:768px){.enform h2{font-size:1.75rem;line-height:34px}}@media (min-width:992px){.enform h2{font-size:2.125rem}}@media (min-width:1200px){.enform h2{font-size:2.25rem}}.enform .thankyou-subtitle{font-weight:400}.en-spinner{border-color:#fff transparent #fff #fff!important;display:none;vertical-align:middle}body.wp-admin .enform-full-width-bg,body.wp-admin .enform-side-style{pointer-events:none;width:100%}body.wp-admin .enform-full-width-bg .container,body.wp-admin .enform-side-style .container{z-index:1}body.wp-admin .enform .form-container input{box-sizing:border-box}.enform-side-style{width:100vw;min-height:444px;overflow:hidden;display:flex;align-items:center}.enform-side-style .caption-overlay{display:block;background-position:100% 100%;background-size:cover;height:100%;width:90%;position:absolute;margin-left:0;z-index:1}html[dir=rtl] .enform-side-style .caption-overlay{background-position:0 100%}@media (min-width:768px){.enform-side-style .caption-overlay{width:50%}}.enform-side-style:after{position:absolute;top:0;right:0;bottom:0;left:0;content:"";background:rgba(30,30,30,.45)}.enform-side-style picture{align-self:start}@media (min-width:992px){.enform-side-style picture{display:block}}.enform-side-style picture img{position:absolute;height:auto;width:100%;object-fit:cover;object-position:center center;opacity:1}@supports (object-fit:cover){.enform-side-style picture img{height:100%}}.enform-side-style .enform{overflow:hidden;align-items:center;min-height:444px;background:#fff;padding-top:28px;float:none;width:100vw;margin-top:0;margin-bottom:0}@media (min-width:992px){.enform-side-style .enform{margin-top:96px;margin-bottom:60px;float:right;width:40%;max-width:444px;box-sizing:content-box;box-shadow:0 2px 5px rgba(0,0,0,.25);padding:28px 30px 24px}html[dir=rtl] .enform-side-style .enform{float:left}}.enform-side-style .enform .enform-legal p{float:none}.enform-side-style .title-and-description{color:#1a1a1a;padding:15px}@media (min-width:992px){.enform-side-style .title-and-description{padding:0}}.enform-side-style .form-container{background:#fff;padding:15px}@media (min-width:992px){.enform-side-style .form-container{padding:0}}.enform-side-style .form-container .formblock-flex .en__field{width:100%}.enform-side-style .form-container .en__field__element{position:relative}.enform-side-style .form-container .en__field__element input[type=email],.enform-side-style .form-container .en__field__element input[type=tel],.enform-side-style .form-container .en__field__element input[type=text],.enform-side-style .form-container .en__field__element select{border:1px solid #1a1a1a;margin-bottom:20px;padding:10px}.enform-side-style .form-container .en__field__element input[type=email].is-invalid,.enform-side-style .form-container .en__field__element input[type=tel].is-invalid,.enform-side-style .form-container .en__field__element input[type=text].is-invalid,.enform-side-style .form-container .en__field__element select.is-invalid{border:1px solid #f33;margin-bottom:6px}.enform-side-style .form-container .invalid-feedback{color:#f33;font-weight:700;margin:0;padding:0;background:none}.enform-side-style .en__field__top__label{position:absolute;top:-.6rem;background:#fff;left:10px;padding:0 8px;font-weight:600;font-size:.75rem}html[dir=rtl] .enform-side-style .en__field__top__label{left:auto;right:10px}.thankyou{position:relative;min-height:inherit}@media (max-width:576px){.thankyou{margin:0 20px}}.thankyou.full-width{max-width:444px;left:33%}.thankyou .page-section-header{line-height:1.2}.thankyou .page-section-description{line-height:1.4}.thankyou .sub-section{margin-bottom:2em;width:100%}.thankyou .sub-section .form-group{margin-bottom:2em}.thankyou .sub-section .social-media .share-buttons{float:none}.thankyou .sub-section .social-media .share-btn{width:32.5%;box-shadow:0 2px 5px rgba(0,0,0,.25)}.thankyou .sub-section .social-media .twitter{background:#00acee none repeat scroll 0 0}.en__field--select{border:1px solid #1a1a1a;border-radius:0;width:100%;margin-bottom:1rem}.en__field--select .en__field__element--select{margin-bottom:0}.en__field--select .en__field__element--select select.form-control.en__field__input--select{width:100%;display:block;margin-bottom:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}body.theme-oil .form-caption h1,body.theme-oil .form-caption h2,body.theme-oil .form-caption h3{font-family:Anton,sans-serif!important}body.theme-oil .form-caption h1{margin-bottom:32px;line-height:1.225}body.theme-oil .form-caption h2{margin-bottom:18px}body.theme-oil .form-caption h3{margin-bottom:16px}body.theme-oil .form-caption .campaign-logo{width:380px;max-width:100%;padding-bottom:30px;padding-top:10px;display:block}body.theme-oil .enform #enform-content .title-and-description h2{font-family:Anton,sans-serif!important}body.theme-climate .enform-wrap .form-caption h1,body.theme-climate .enform-wrap .form-caption h2,body.theme-climate .enform-wrap .form-caption h3{font-family:Jost,sans-serif!important;text-transform:uppercase}body.theme-climate .enform-wrap .form-caption h1{margin-bottom:32px;line-height:1.225}body.theme-climate .enform-wrap .form-caption h2{margin-bottom:18px}body.theme-climate .enform-wrap .form-caption h3{margin-bottom:16px}body.theme-climate .enform-wrap .form-caption .campaign-logo{width:380px;max-width:100%;padding-bottom:30px;padding-top:10px;display:block}body.theme-climate .enform-wrap .enform #enform-content .title-and-description h2{font-family:Jost,sans-serif!important}body.theme-climate .enform-wrap.enform-side-style:after{position:absolute;top:0;left:0;height:100%;width:100%;z-index:1;background:red;background:linear-gradient(135deg,red,rgba(255,0,0,0))}body.theme-climate .enform-wrap.enform-side-style .form-caption{padding-top:33px}@media (min-width:992px){body.theme-climate .enform-wrap.enform-side-style .form-caption{padding-top:117px}}@media (min-width:992px){body.theme-climate .enform-wrap.enform-side-style .enform{padding:32px}}body.theme-climate .enform-wrap.enform-side-style .enform .form-description{font-family:Jost,sans-serif;margin-bottom:16px}@media (min-width:992px){body.theme-climate .enform-wrap.enform-side-style .enform .form-description{margin-bottom:32px}}body.theme-climate .enform-wrap.enform-side-style .enform .form-description .first-line{font-weight:700;font-size:1.2rem;text-transform:uppercase;font-family:Jost,sans-serif;margin-bottom:4px;display:inline-block} \ No newline at end of file diff --git a/react-blocks/build/style.min.css.map b/react-blocks/build/style.min.css.map index 9636b82..c7e4fd9 100644 --- a/react-blocks/build/style.min.css.map +++ b/react-blocks/build/style.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./react-blocks/src/styles/style.scss"],"names":[],"mappings":"AAAA;AACA;AACA;AACA,UAAU,EAAE;AACZ,WAAW;AACX;AACA;AACA;AACA;AACA,UAAU,gBAAgB;AAC1B,YAAY,SAAS;AACrB,YAAY,SAAS;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA,uBAAuB,EAAE;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA,4BAA4B,EAAE;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA,qBAAqB;AACrB;AACA,sBAAsB,EAAE;AACxB;AACA;AACA,sCAAsC;AACtC;AACA;AACA,qBAAqB;AACrB;AACA;AACA,4BAA4B,EAAE;AAC9B;AACA;AACA,qBAAqB;AACrB;AACA;AACA,4BAA4B,EAAE;AAC9B;AACA;AACA,uBAAuB;AACvB;AACA;AACA,4BAA4B,EAAE;AAC9B;AACA;AACA,2BAA2B,EAAE;AAC7B;AACA;AACA;AACA;AACA,yBAAyB;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,iBAAiB;AACjB;AACA,qBAAqB;AACrB;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA,iCAAiC,EAAE;AACnC;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,mBAAmB;AACnB;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,yCAAyC,EAAE;AAC3C;AACA,oBAAoB;AACpB;AACA;AACA,uBAAuB,EAAE;AACzB;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,sCAAsC,EAAE;AACxC;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,yBAAyB;AACzB;AACA,oBAAoB;AACpB;AACA,2BAA2B;AAC3B;AACA;AACA,+BAA+B;AAC/B;AACA,oCAAoC;AACpC;AACA,uBAAuB;AACvB;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iBAAiB;AACjB;AACA,qBAAqB;AACrB;AACA;AACA;AACA,wBAAwB,EAAE;AAC1B;AACA;AACA,0BAA0B,EAAE;AAC5B;AACA;AACA,yBAAyB,EAAE;AAC3B;AACA,wBAAwB;;AAExB;AACA;AACA;AACA;AACA,yBAAyB;;AAEzB;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,eAAe;;AAEf;AACA,yBAAyB;;AAEzB;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA,oEAAoE;AACpE;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA,uCAAuC;AACvC;AACA;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA,sBAAsB;AACtB;AACA;AACA,uBAAuB,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,uBAAuB,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA,sBAAsB,EAAE;AACxB;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA,kBAAkB;AAClB;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA,kBAAkB;;AAElB;AACA;AACA,sBAAsB;AACtB;AACA;AACA,qBAAqB,EAAE;AACvB;AACA;AACA,cAAc;AACd;AACA,qBAAqB;AACrB;AACA,qBAAqB;AACrB;AACA;AACA,gBAAgB;AAChB;AACA,yBAAyB;AACzB;AACA,kBAAkB;AAClB;AACA;AACA,gDAAgD;AAChD;AACA,iDAAiD;;AAEjD;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB","file":"./style.min.css","sourcesContent":["/**\n* Test if `$value` is a valid direction\n*\n* @param {*} $value - Value to test\n* @return {Bool}\n*/\n/**\n* Convert a direction to legacy syntax\n*\n* @param {Keyword | Angle} $value - Value to convert\n* @require {function} is-direction\n* @require {function} convert-angle\n*/\n/* Generates mutilevel nested comments\nlevel-1 is the first level comment with a margin of 50px\nlevel-2 is the first level comment with a margin of 100px\nand so on...\n*/\n.enform-full-width-bg {\n width: 100vw;\n min-height: 444px;\n overflow: hidden;\n display: flex;\n align-items: center; }\n .enform-full-width-bg:before {\n content: \"\";\n background: #d6e6f2;\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n width: 100%;\n opacity: 0.6; }\n .enform-full-width-bg picture {\n align-self: start; }\n .enform-full-width-bg picture img {\n position: absolute;\n height: auto;\n width: 100%;\n object-fit: cover;\n object-position: center center;\n opacity: 0.3; }\n @supports (object-fit: cover) {\n .enform-full-width-bg picture img {\n height: 100%; } }\n\n.form-caption {\n float: none;\n width: 100%;\n padding-top: 53px;\n padding-bottom: 53px;\n padding-left: 15px;\n padding-right: 15px; }\n @media (min-width: 768px) {\n .form-caption {\n padding-top: 106px;\n padding-bottom: 106px; } }\n @media (min-width: 992px) {\n .form-caption {\n float: left;\n padding-top: 176px;\n width: 50%;\n padding-left: 0;\n padding-right: 0; }\n html[dir=\"rtl\"] .form-caption {\n float: right; }\n .form-caption .form-caption-background {\n display: none; } }\n .form-caption h1, .form-caption h2, .form-caption h3 {\n color: white;\n font-family: \"Roboto\", sans-serif; }\n .form-caption h1 {\n margin-bottom: 24px;\n line-height: 1.1; }\n @media (min-width: 992px) {\n .form-caption h1 {\n margin-bottom: 32px; } }\n .form-caption h2 {\n margin-bottom: 18px;\n line-height: 1.2; }\n @media (min-width: 992px) {\n .form-caption h2 {\n margin-bottom: 24px; } }\n .form-caption h3 {\n margin-bottom: 8px;\n font-size: 1.25rem; }\n @media (min-width: 768px) {\n .form-caption h3 {\n font-size: 1.675rem; } }\n @media (min-width: 992px) {\n .form-caption h3 {\n font-size: 1.75rem; } }\n .form-caption p {\n color: white;\n font-family: \"Roboto\", sans-serif;\n font-size: 1rem;\n line-height: 1.37rem; }\n\n.enform {\n margin-top: 36px;\n font-family: \"Roboto\", sans-serif;\n height: inherit;\n padding: 20px;\n background: #074365;\n width: 100%; }\n .enform-full-width .enform {\n color: white; }\n .enform-full-width-bg .enform {\n background: none; }\n .enform form {\n margin: 0; }\n .enform form input,\n .enform form .custom-select,\n .enform form select.form-control.en__field__input--select,\n .enform form button {\n height: 46px;\n border-radius: 0;\n border-color: transparent;\n margin-bottom: 16px;\n min-width: 200px; }\n @media (min-width: 768px) {\n .enform form input,\n .enform form .custom-select,\n .enform form select.form-control.en__field__input--select,\n .enform form button {\n margin-bottom: inherit; } }\n .enform form input.is-invalid,\n .enform form .custom-select.is-invalid,\n .enform form select.form-control.en__field__input--select.is-invalid,\n .enform form button.is-invalid {\n border-color: #ff3333; }\n .enform form input + .invalid-feedback,\n .enform form .custom-select + .invalid-feedback,\n .enform form select.form-control.en__field__input--select + .invalid-feedback,\n .enform form button + .invalid-feedback {\n background: #ff3333;\n color: white;\n padding: 5px; }\n .enform form .custom-checkbox input {\n height: auto; }\n .enform form .formblock-flex {\n display: flex;\n flex-wrap: wrap;\n width: 100%; }\n @media (min-width: 768px) {\n .enform form .formblock-flex {\n justify-content: space-between; } }\n .enform form .formblock-flex .en__field {\n width: 100%; }\n @media (min-width: 768px) {\n .enform form .formblock-flex .en__field {\n width: 49%; } }\n .enform form .submit {\n margin: 0;\n line-height: 1; }\n @media (min-width: 768px) {\n .enform form .submit {\n display: flex;\n flex-direction: row-reverse; } }\n .enform form input[type=submit] {\n margin-bottom: 0;\n line-height: 1; }\n .enform form .form-check-label-block {\n display: inline-block;\n padding: 10px 0 0 0;\n margin-bottom: 5px; }\n .enform-full-width-bg .enform form .form-check-label-block {\n color: #000; }\n .enform form .form-check-label-block input[type=checkbox] + .custom-control-description, .enform form .form-check-label-block input[type=radio] + .custom-control-description {\n font-size: 0.85rem; }\n .enform form .form-check-label-block input[type=checkbox] + .custom-control-description:before, .enform form .form-check-label-block input[type=radio] + .custom-control-description:before {\n border: 1px solid #1a1a1a;\n vertical-align: middle; }\n .enform-full-width-bg .enform form .form-check-label-block input[type=checkbox] + .custom-control-description:before, .enform-full-width-bg .enform form .form-check-label-block input[type=radio] + .custom-control-description:before {\n border: 3px solid #0a3351; }\n .enform form .enform-legal {\n padding-top: 1em; }\n .enform form .enform-legal p {\n font-size: 0.75rem;\n line-height: 1rem;\n float: right; }\n .enform-full-width .enform h2 {\n color: white; }\n .enform h2.thankyou {\n margin-bottom: 0; }\n @media (min-width: 768px) {\n .enform h2 {\n font-size: 1.75rem;\n line-height: 34px; } }\n @media (min-width: 992px) {\n .enform h2 {\n font-size: 2.125rem; } }\n @media (min-width: 1200px) {\n .enform h2 {\n font-size: 2.25rem; } }\n .enform .thankyou-subtitle {\n font-weight: normal; }\n\n.en-spinner {\n border-color: #fff !important;\n border-right-color: transparent !important;\n display: none;\n vertical-align: middle; }\n\nbody.wp-admin .enform-side-style,\nbody.wp-admin .enform-full-width-bg {\n pointer-events: none;\n width: 100%; }\n body.wp-admin .enform-side-style .container,\n body.wp-admin .enform-full-width-bg .container {\n z-index: 1; }\n\nbody.wp-admin .enform .form-container input {\n box-sizing: border-box; }\n\n.enform-side-style {\n width: 100vw;\n min-height: 444px;\n overflow: hidden;\n display: flex;\n align-items: center; }\n .enform-side-style .caption-overlay {\n display: block;\n /*background: url(\"public/images/carousel-blurred-overlay.png\");*/\n background-position: bottom right;\n background-size: cover;\n height: 100%;\n width: 90%;\n position: absolute;\n margin-left: 0;\n z-index: 1; }\n html[dir=\"rtl\"] .enform-side-style .caption-overlay {\n background-position: bottom left; }\n @media (min-width: 768px) {\n .enform-side-style .caption-overlay {\n width: 50%; } }\n .enform-side-style::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n content: \"\";\n background: rgba(30, 30, 30, 0.45); }\n .enform-side-style picture {\n align-self: start; }\n @media (min-width: 992px) {\n .enform-side-style picture {\n display: block; } }\n .enform-side-style picture img {\n position: absolute;\n height: auto;\n width: 100%;\n object-fit: cover;\n object-position: center center;\n opacity: 1; }\n @supports (object-fit: cover) {\n .enform-side-style picture img {\n height: 100%; } }\n .enform-side-style .enform {\n overflow: hidden;\n align-items: center;\n min-height: 444px;\n background: white;\n padding-top: 28px;\n float: none;\n width: 100vw;\n margin-top: 0;\n margin-bottom: 0; }\n @media (min-width: 992px) {\n .enform-side-style .enform {\n margin-top: 96px;\n margin-bottom: 60px;\n float: right;\n width: 40%;\n max-width: 444px;\n box-sizing: content-box;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n padding: 28px 30px 24px 30px; }\n html[dir=\"rtl\"] .enform-side-style .enform {\n float: left; } }\n .enform-side-style .enform .enform-legal p {\n float: none; }\n .enform-side-style .title-and-description {\n color: #1a1a1a;\n padding: 15px; }\n @media (min-width: 992px) {\n .enform-side-style .title-and-description {\n padding: 0; } }\n .enform-side-style .form-container {\n background: #fff;\n padding: 15px; }\n @media (min-width: 992px) {\n .enform-side-style .form-container {\n padding: 0; } }\n .enform-side-style .form-container .formblock-flex .en__field {\n width: 100%; }\n .enform-side-style .form-container .en__field__element {\n position: relative; }\n .enform-side-style .form-container .en__field__element input[type=text],\n .enform-side-style .form-container .en__field__element select,\n .enform-side-style .form-container .en__field__element input[type=email],\n .enform-side-style .form-container .en__field__element input[type=tel] {\n border: 1px solid #1a1a1a;\n margin-bottom: 20px;\n padding: 10px; }\n .enform-side-style .form-container .en__field__element input[type=text].is-invalid,\n .enform-side-style .form-container .en__field__element select.is-invalid,\n .enform-side-style .form-container .en__field__element input[type=email].is-invalid,\n .enform-side-style .form-container .en__field__element input[type=tel].is-invalid {\n border: 1px solid #ff3333;\n margin-bottom: 6px; }\n .enform-side-style .form-container .invalid-feedback {\n color: #ff3333;\n font-weight: bold;\n margin: 0;\n padding: 0;\n background: none; }\n .enform-side-style .en__field__top__label {\n position: absolute;\n top: -.6rem;\n background: white;\n left: 10px;\n padding: 0 8px;\n font-weight: 600;\n font-size: .75rem; }\n html[dir=\"rtl\"] .enform-side-style .en__field__top__label {\n left: auto;\n right: 10px; }\n\n.thankyou {\n position: relative;\n min-height: inherit; }\n @media (max-width: 576px) {\n .thankyou {\n margin: 0 20px; } }\n .thankyou.full-width {\n max-width: 444px;\n left: 33%; }\n .thankyou .page-section-header {\n line-height: 1.2; }\n .thankyou .page-section-description {\n line-height: 1.4; }\n .thankyou .sub-section {\n margin-bottom: 2em;\n width: 100%; }\n .thankyou .sub-section .form-group {\n margin-bottom: 2em; }\n .thankyou .sub-section .social-media .share-buttons {\n float: none; }\n .thankyou .sub-section .social-media .share-btn {\n width: 32.5%;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); }\n .thankyou .sub-section .social-media .twitter {\n background: #00acee none repeat scroll 0 0; }\n\n.en__field--select {\n border: 1px solid #1a1a1a;\n border-radius: 0;\n width: 100%;\n margin-bottom: 1rem; }\n .en__field--select .en__field__element--select {\n margin-bottom: 0; }\n .en__field--select .en__field__element--select select.form-control.en__field__input--select {\n width: 100%;\n display: block;\n margin-bottom: 0;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none; }\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///./react-blocks/src/styles/style.scss"],"names":[],"mappings":"AAAA;AACA,iBAAiB;;AAEjB;AACA,4BAA4B;;AAE5B;AACA,cAAc;;AAEd;AACA,yBAAyB;;AAEzB;AACA,cA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ACA;AACA;AACA,uBAAuB;AACvB;AACA,qBAAqB;AACrB;AACA,sBAAsB,EAAE;AACxB;AACA;AACA,sCAAsC;AACtC;AACA;AACA,qBAAqB;AACrB;AACA;AACA,4BAA4B,EAAE;AAC9B;AACA;AACA,qBAAqB;AACrB;AACA;AACA,4BAA4B,EAAE;AAC9B;AACA;AACA,uBAAuB;AACvB;AACA;AACA,4BAA4B,EAAE;AAC9B;AACA;AACA,2BAA2B,EAAE;AAC7B;AACA;AACA;AACA;AACA,yBAAyB;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,iBAAiB;AACjB;AACA,qBAAqB;AACrB;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA,iCAAiC,EAAE;AACnC;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,mBAAmB;AACnB;AACA,mBAAmB;AACnB;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,yCAAyC,EAAE;AAC3C;AACA,oBAAoB;AACpB;AACA;AACA,uBAAuB,EAAE;AACzB;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,sCAAsC,EAAE;AACxC;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,yBAAyB;AACzB;AACA,oBAAoB;AACpB;AACA,2BAA2B;AAC3B;AACA;AACA,+BAA+B;AAC/B;AACA,oCAAoC;AACpC;AACA,uBAAuB;AACvB;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iBAAiB;AACjB;AACA,qBAAqB;AACrB;AACA;AACA;AACA,wBAAwB,EAAE;AAC1B;AACA;AACA,0BAA0B,EAAE;AAC5B;AACA;AACA,yBAAyB,EAAE;AAC3B;AACA,wBAAwB;;AAExB;AACA;AACA;AACA;AACA,yBAAyB;;AAEzB;AACA;AACA;AACA,cAAc;AACd;AACA;AACA,eAAe;;AAEf;AACA,yBAAyB;;AAEzB;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA,oEAAoE;AACpE;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA,uCAAuC;AACvC;AACA;AACA,mBAAmB,EAAE;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA,sBAAsB;AACtB;AACA;AACA,uBAAuB,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,uBAAuB,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA,sBAAsB,EAAE;AACxB;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,mBAAmB,EAAE;AACrB;AACA,kBAAkB;AAClB;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA,kBAAkB;;AAElB;AACA;AACA,sBAAsB;AACtB;AACA;AACA,qBAAqB,EAAE;AACvB;AACA;AACA,cAAc;AACd;AACA,qBAAqB;AACrB;AACA,qBAAqB;AACrB;AACA;AACA,gBAAgB;AAChB;AACA,yBAAyB;AACzB;AACA,kBAAkB;AAClB;AACA;AACA,gDAAgD;AAChD;AACA,iDAAiD;;AAEjD;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB","file":"./style.min.css","sourcesContent":[".has-dark-shade-black-color {\n color: #1a1a1a; }\n\n.has-dark-shade-black-background-color {\n background-color: #1a1a1a; }\n\n.has-grey-60-color {\n color: #666; }\n\n.has-grey-60-background-color {\n background-color: #666; }\n\n.has-grey-40-color {\n color: #999; }\n\n.has-grey-40-background-color {\n background-color: #999; }\n\n.has-grey-20-color {\n color: #ccc; }\n\n.has-grey-20-background-color {\n background-color: #ccc; }\n\n.has-grey-10-color {\n color: #e5e5e5; }\n\n.has-grey-10-background-color {\n background-color: #e5e5e5; }\n\n.has-grey-color {\n color: #333; }\n\n.has-grey-background-color {\n background-color: #333; }\n\n.has-green-color {\n color: #003300; }\n\n.has-green-background-color {\n background-color: #003300; }\n\n.has-green-80-color {\n color: #1b4a1b; }\n\n.has-green-80-background-color {\n background-color: #1b4a1b; }\n\n.has-gp-green-color {\n color: #66cc00; }\n\n.has-gp-green-background-color {\n background-color: #66cc00; }\n\n.has-dark-tiber-color {\n color: #052a30; }\n\n.has-dark-tiber-background-color {\n background-color: #052a30; }\n\n.has-genoa-color {\n color: #186a70; }\n\n.has-genoa-background-color {\n background-color: #186a70; }\n\n.has-inch-worm-color {\n color: #a7e021; }\n\n.has-inch-worm-background-color {\n background-color: #a7e021; }\n\n.has-x-dark-blue-color {\n color: #042233; }\n\n.has-x-dark-blue-background-color {\n background-color: #042233; }\n\n.has-allports-color {\n color: #007799; }\n\n.has-allports-background-color {\n background-color: #007799; }\n\n.has-spray-color {\n color: spray; }\n\n.has-spray-background-color {\n background-color: spray; }\n\n.has-dark-blue-color {\n color: #074365; }\n\n.has-dark-blue-background-color {\n background-color: #074365; }\n\n.has-blue-color {\n color: #2980b9; }\n\n.has-blue-background-color {\n background-color: #2980b9; }\n\n.has-blue-60-color {\n color: #63bbfd; }\n\n.has-blue-60-background-color {\n background-color: #63bbfd; }\n\n.has-crimson-color {\n color: #e51538; }\n\n.has-crimson-background-color {\n background-color: #e51538; }\n\n.has-orange-hover-color {\n color: #ee562d; }\n\n.has-orange-hover-background-color {\n background-color: #ee562d; }\n\n.has-yellow-color {\n color: #ffd204; }\n\n.has-yellow-background-color {\n background-color: #ffd204; }\n\n/**\n* Test if `$value` is a valid direction\n*\n* @param {*} $value - Value to test\n* @return {Bool}\n*/\n/**\n* Convert a direction to legacy syntax\n*\n* @param {Keyword | Angle} $value - Value to convert\n* @require {function} is-direction\n* @require {function} convert-angle\n*/\n/* Generates mutilevel nested comments\nlevel-1 is the first level comment with a margin of 50px\nlevel-2 is the first level comment with a margin of 100px\nand so on...\n*/\n.enform-full-width-bg {\n width: 100vw;\n min-height: 444px;\n overflow: hidden;\n display: flex;\n align-items: center; }\n .enform-full-width-bg:before {\n content: \"\";\n background: #d6e6f2;\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n width: 100%;\n opacity: 0.6; }\n .enform-full-width-bg picture {\n align-self: start; }\n .enform-full-width-bg picture img {\n position: absolute;\n height: auto;\n width: 100%;\n object-fit: cover;\n object-position: center center;\n opacity: 0.3; }\n @supports (object-fit: cover) {\n .enform-full-width-bg picture img {\n height: 100%; } }\n\n.form-caption {\n float: none;\n width: 100%;\n padding-top: 53px;\n padding-bottom: 53px;\n padding-left: 15px;\n padding-right: 15px; }\n @media (min-width: 768px) {\n .form-caption {\n padding-top: 106px;\n padding-bottom: 106px; } }\n @media (min-width: 992px) {\n .form-caption {\n float: left;\n padding-top: 176px;\n width: 50%;\n padding-left: 0;\n padding-right: 0; }\n html[dir=\"rtl\"] .form-caption {\n float: right; }\n .form-caption .form-caption-background {\n display: none; } }\n .form-caption h1, .form-caption h2, .form-caption h3 {\n color: white;\n font-family: \"Roboto\", sans-serif; }\n .form-caption h1 {\n margin-bottom: 24px;\n line-height: 1.1; }\n @media (min-width: 992px) {\n .form-caption h1 {\n margin-bottom: 32px; } }\n .form-caption h2 {\n margin-bottom: 18px;\n line-height: 1.2; }\n @media (min-width: 992px) {\n .form-caption h2 {\n margin-bottom: 24px; } }\n .form-caption h3 {\n margin-bottom: 8px;\n font-size: 1.25rem; }\n @media (min-width: 768px) {\n .form-caption h3 {\n font-size: 1.675rem; } }\n @media (min-width: 992px) {\n .form-caption h3 {\n font-size: 1.75rem; } }\n .form-caption p {\n color: white;\n font-family: \"Roboto\", sans-serif;\n font-size: 1rem;\n line-height: 1.37rem; }\n\n.enform {\n margin-top: 36px;\n font-family: \"Roboto\", sans-serif;\n height: inherit;\n padding: 20px;\n background: #074365;\n width: 100%; }\n .enform-full-width .enform {\n color: white; }\n .enform-full-width-bg .enform {\n background: none; }\n .enform form {\n margin: 0; }\n .enform form input,\n .enform form .custom-select,\n .enform form select.form-control.en__field__input--select,\n .enform form button {\n height: 46px;\n border-radius: 0;\n border-color: transparent;\n margin-bottom: 16px;\n min-width: 200px; }\n @media (min-width: 768px) {\n .enform form input,\n .enform form .custom-select,\n .enform form select.form-control.en__field__input--select,\n .enform form button {\n margin-bottom: inherit; } }\n .enform form input.is-invalid,\n .enform form .custom-select.is-invalid,\n .enform form select.form-control.en__field__input--select.is-invalid,\n .enform form button.is-invalid {\n border-color: #ff3333; }\n .enform form input + .invalid-feedback,\n .enform form .custom-select + .invalid-feedback,\n .enform form select.form-control.en__field__input--select + .invalid-feedback,\n .enform form button + .invalid-feedback {\n background: #ff3333;\n color: white;\n padding: 5px; }\n .enform form .custom-checkbox input {\n height: auto; }\n .enform form .disable-checkbox {\n opacity: 0.5; }\n .enform form .formblock-flex {\n display: flex;\n flex-wrap: wrap;\n width: 100%; }\n @media (min-width: 768px) {\n .enform form .formblock-flex {\n justify-content: space-between; } }\n .enform form .formblock-flex .en__field {\n width: 100%; }\n @media (min-width: 768px) {\n .enform form .formblock-flex .en__field {\n width: 49%; } }\n .enform form .submit {\n margin: 0;\n line-height: 1; }\n @media (min-width: 768px) {\n .enform form .submit {\n display: flex;\n flex-direction: row-reverse; } }\n .enform form input[type=submit] {\n margin-bottom: 0;\n line-height: 1; }\n .enform form .form-check-label-block {\n display: inline-block;\n padding: 10px 0 0 0;\n margin-bottom: 5px; }\n .enform-full-width-bg .enform form .form-check-label-block {\n color: #000; }\n .enform form .form-check-label-block input[type=checkbox] + .custom-control-description, .enform form .form-check-label-block input[type=radio] + .custom-control-description {\n font-size: 0.85rem; }\n .enform form .form-check-label-block input[type=checkbox] + .custom-control-description:before, .enform form .form-check-label-block input[type=radio] + .custom-control-description:before {\n border: 1px solid #1a1a1a;\n vertical-align: middle; }\n .enform-full-width-bg .enform form .form-check-label-block input[type=checkbox] + .custom-control-description:before, .enform-full-width-bg .enform form .form-check-label-block input[type=radio] + .custom-control-description:before {\n border: 3px solid #0a3351; }\n .enform form .enform-legal {\n padding-top: 1em; }\n .enform form .enform-legal p {\n font-size: 0.75rem;\n line-height: 1rem;\n float: right; }\n .enform-full-width .enform h2 {\n color: white; }\n .enform h2.thankyou {\n margin-bottom: 0; }\n @media (min-width: 768px) {\n .enform h2 {\n font-size: 1.75rem;\n line-height: 34px; } }\n @media (min-width: 992px) {\n .enform h2 {\n font-size: 2.125rem; } }\n @media (min-width: 1200px) {\n .enform h2 {\n font-size: 2.25rem; } }\n .enform .thankyou-subtitle {\n font-weight: normal; }\n\n.en-spinner {\n border-color: #fff !important;\n border-right-color: transparent !important;\n display: none;\n vertical-align: middle; }\n\nbody.wp-admin .enform-side-style,\nbody.wp-admin .enform-full-width-bg {\n pointer-events: none;\n width: 100%; }\n body.wp-admin .enform-side-style .container,\n body.wp-admin .enform-full-width-bg .container {\n z-index: 1; }\n\nbody.wp-admin .enform .form-container input {\n box-sizing: border-box; }\n\n.enform-side-style {\n width: 100vw;\n min-height: 444px;\n overflow: hidden;\n display: flex;\n align-items: center; }\n .enform-side-style .caption-overlay {\n display: block;\n /*background: url(\"public/images/carousel-blurred-overlay.png\");*/\n background-position: bottom right;\n background-size: cover;\n height: 100%;\n width: 90%;\n position: absolute;\n margin-left: 0;\n z-index: 1; }\n html[dir=\"rtl\"] .enform-side-style .caption-overlay {\n background-position: bottom left; }\n @media (min-width: 768px) {\n .enform-side-style .caption-overlay {\n width: 50%; } }\n .enform-side-style::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n content: \"\";\n background: rgba(30, 30, 30, 0.45); }\n .enform-side-style picture {\n align-self: start; }\n @media (min-width: 992px) {\n .enform-side-style picture {\n display: block; } }\n .enform-side-style picture img {\n position: absolute;\n height: auto;\n width: 100%;\n object-fit: cover;\n object-position: center center;\n opacity: 1; }\n @supports (object-fit: cover) {\n .enform-side-style picture img {\n height: 100%; } }\n .enform-side-style .enform {\n overflow: hidden;\n align-items: center;\n min-height: 444px;\n background: white;\n padding-top: 28px;\n float: none;\n width: 100vw;\n margin-top: 0;\n margin-bottom: 0; }\n @media (min-width: 992px) {\n .enform-side-style .enform {\n margin-top: 96px;\n margin-bottom: 60px;\n float: right;\n width: 40%;\n max-width: 444px;\n box-sizing: content-box;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n padding: 28px 30px 24px 30px; }\n html[dir=\"rtl\"] .enform-side-style .enform {\n float: left; } }\n .enform-side-style .enform .enform-legal p {\n float: none; }\n .enform-side-style .title-and-description {\n color: #1a1a1a;\n padding: 15px; }\n @media (min-width: 992px) {\n .enform-side-style .title-and-description {\n padding: 0; } }\n .enform-side-style .form-container {\n background: #fff;\n padding: 15px; }\n @media (min-width: 992px) {\n .enform-side-style .form-container {\n padding: 0; } }\n .enform-side-style .form-container .formblock-flex .en__field {\n width: 100%; }\n .enform-side-style .form-container .en__field__element {\n position: relative; }\n .enform-side-style .form-container .en__field__element input[type=text],\n .enform-side-style .form-container .en__field__element select,\n .enform-side-style .form-container .en__field__element input[type=email],\n .enform-side-style .form-container .en__field__element input[type=tel] {\n border: 1px solid #1a1a1a;\n margin-bottom: 20px;\n padding: 10px; }\n .enform-side-style .form-container .en__field__element input[type=text].is-invalid,\n .enform-side-style .form-container .en__field__element select.is-invalid,\n .enform-side-style .form-container .en__field__element input[type=email].is-invalid,\n .enform-side-style .form-container .en__field__element input[type=tel].is-invalid {\n border: 1px solid #ff3333;\n margin-bottom: 6px; }\n .enform-side-style .form-container .invalid-feedback {\n color: #ff3333;\n font-weight: bold;\n margin: 0;\n padding: 0;\n background: none; }\n .enform-side-style .en__field__top__label {\n position: absolute;\n top: -.6rem;\n background: white;\n left: 10px;\n padding: 0 8px;\n font-weight: 600;\n font-size: .75rem; }\n html[dir=\"rtl\"] .enform-side-style .en__field__top__label {\n left: auto;\n right: 10px; }\n\n.thankyou {\n position: relative;\n min-height: inherit; }\n @media (max-width: 576px) {\n .thankyou {\n margin: 0 20px; } }\n .thankyou.full-width {\n max-width: 444px;\n left: 33%; }\n .thankyou .page-section-header {\n line-height: 1.2; }\n .thankyou .page-section-description {\n line-height: 1.4; }\n .thankyou .sub-section {\n margin-bottom: 2em;\n width: 100%; }\n .thankyou .sub-section .form-group {\n margin-bottom: 2em; }\n .thankyou .sub-section .social-media .share-buttons {\n float: none; }\n .thankyou .sub-section .social-media .share-btn {\n width: 32.5%;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); }\n .thankyou .sub-section .social-media .twitter {\n background: #00acee none repeat scroll 0 0; }\n\n.en__field--select {\n border: 1px solid #1a1a1a;\n border-radius: 0;\n width: 100%;\n margin-bottom: 1rem; }\n .en__field--select .en__field__element--select {\n margin-bottom: 0; }\n .en__field--select .en__field__element--select select.form-control.en__field__input--select {\n width: 100%;\n display: block;\n margin-bottom: 0;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none; }\n"],"sourceRoot":""} \ No newline at end of file diff --git a/react-blocks/src/blocks/ENForm/ENForm.js b/react-blocks/src/blocks/ENForm/ENForm.js index 0719297..d75cf57 100644 --- a/react-blocks/src/blocks/ENForm/ENForm.js +++ b/react-blocks/src/blocks/ENForm/ENForm.js @@ -25,6 +25,8 @@ export class ENForm extends Component { const {getCurrentPostType} = wp.data.select("core/editor"); const currentPostType = getCurrentPostType(); + console.log(currentPostType); + let flattenedPages = []; let pagesByType; diff --git a/react-blocks/src/styles/blocks/ENForm/campaigns/block-overrides/_campaign_en_block.scss b/react-blocks/src/styles/blocks/ENForm/campaigns/block-overrides/_campaign_en_block.scss index ee6ae73..7647c7b 100644 --- a/react-blocks/src/styles/blocks/ENForm/campaigns/block-overrides/_campaign_en_block.scss +++ b/react-blocks/src/styles/blocks/ENForm/campaigns/block-overrides/_campaign_en_block.scss @@ -1,7 +1,11 @@ -@mixin campaign-en-block($form-caption-heading-font) { +@mixin campaign-en-block($form-caption-heading-font, $en-form-content-heading-font, $form-caption-transform: false) { .form-caption { h1, h2, h3 { font-family: $form-caption-heading-font !important; + + @if $form-caption-transform { + text-transform: $form-caption-transform; + } } h1 { @@ -16,5 +20,23 @@ h3 { margin-bottom: 16px; } + + .campaign-logo { + width: 380px; + max-width: 100%; + padding-bottom: 30px; + padding-top: 10px; + display: block; + } + } + + .enform { + #enform-content { + .title-and-description { + h2 { + font-family: $en-form-content-heading-font !important; + } + } + } } } diff --git a/react-blocks/src/styles/blocks/ENForm/campaigns/themes/_theme_climate.scss b/react-blocks/src/styles/blocks/ENForm/campaigns/themes/_theme_climate.scss new file mode 100644 index 0000000..e279852 --- /dev/null +++ b/react-blocks/src/styles/blocks/ENForm/campaigns/themes/_theme_climate.scss @@ -0,0 +1,54 @@ +body.theme-climate { + $jost: "Jost", sans-serif; + $gradient-color: red; + $form-caption-transform: uppercase; + + .enform-wrap { + @include campaign-en-block($jost, $jost, $form-caption-transform); + + &.enform-side-style { + &::after { + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 100%; + z-index: 1; + background: $gradient-color; + background: linear-gradient(135deg, rgba($gradient-color, 1) 0%, rgba($gradient-color, 0) 100%); + } + + .form-caption { + padding-top: 33px; + + @include large-and-up { + padding-top: 117px; + } + } + + .enform { + @include large-and-up { + padding: $space-lg; + } + + .form-description { + font-family: $jost; + margin-bottom: $space-md; + + @include large-and-up { + margin-bottom: $space-lg; + } + + .first-line { + font-weight: bold; + font-size: 1.2rem; + text-transform: uppercase; + font-family: $jost; + margin-bottom: 4px; + display: inline-block; + } + } + } + } + } +} diff --git a/react-blocks/src/styles/blocks/ENForm/campaigns/themes/_theme_oil.scss b/react-blocks/src/styles/blocks/ENForm/campaigns/themes/_theme_oil.scss index cad185f..10afd14 100644 --- a/react-blocks/src/styles/blocks/ENForm/campaigns/themes/_theme_oil.scss +++ b/react-blocks/src/styles/blocks/ENForm/campaigns/themes/_theme_oil.scss @@ -1,4 +1,4 @@ body.theme-oil { $anton: "Anton", sans-serif; - @include campaign-en-block($anton); + @include campaign-en-block($anton, $anton); } diff --git a/react-blocks/src/styles/style.scss b/react-blocks/src/styles/style.scss index c743f96..ca28696 100644 --- a/react-blocks/src/styles/style.scss +++ b/react-blocks/src/styles/style.scss @@ -5,3 +5,13 @@ @import "styleguide/src/base/mixins"; @import "blocks/ENForm/components/enform"; + +// Blocks +@import "blocks/ENForm/components/enform"; + +// Campaigns - block overrides +@import "blocks/ENForm/campaigns/block-overrides/campaign_en_block"; + +// Campaigns - themes +@import "blocks/ENForm/campaigns/themes/theme_oil"; +@import "blocks/ENForm/campaigns/themes/theme_climate"; diff --git a/templates/blocks/enblock.twig b/templates/blocks/enblock.twig index 67caddb..f46db34 100644 --- a/templates/blocks/enblock.twig +++ b/templates/blocks/enblock.twig @@ -1,5 +1,5 @@ {% block enblock %} -