1"use strict";(self.hometalkChunk=self.hometalkChunk||[]).push([["react-components_common_icons_ic-image-library_jsx-react-components_public_MyEditor_jsx-react-f19ab2"],{6155(e,t,s){s.d(t,{U$:()=>n,Vi:()=>r,ZB:()=>o,tE:()=>l,yq:()=>a});var i=s(25529);const a=e=>{let t=0;return e.map((e,s)=>{e.ingredients.map(e=>{e.text&&t++})}),t},r=(e,t,s)=>{let i=e.find(e=>"recipe_info"===e.type).recipe_info[0];["prep_time","prep_time_unit","cooking_time","cooking_time_unit","yield","yield_unit"].map(e=>{let a=!0;!s.isAdmin()&&!s.permissionGranted("skip_post_info")||i[e]||(a=!1),a&&(o(e,i[e])||t.push("recipe_info_"+e))})},o=(e,t)=>{let s=["cooking_time"],i=!1;switch({prep_time:"int",prep_time_unit:"unit",cooking_time:"int",cooking_time_unit:"unit",yield:"numeric",yield_unit:"unit"}[e]){case"unit":i=!!t;break;case"int":i=!!t&&(s.indexOf(e)>-1||"0"!==t)&&/^\s*\d+\s*$/.test(t);break;case"numeric":i=!!t&&(s.indexOf(e)>-1||"0"!==t)&&/^[^\/](\d|\s|\/|\.|-)*$/.test(t)}return i},n=e=>{e.sections.find(e=>"ingredients"===e.type)||e.sections.push({type:"ingredients",title:"",order:1,ingredients:[]}),e.sections.filter(e=>"ingredients"===e.type).map((e,t)=>{for(e.cid=(0,i.t)();e.ingredients.length<2;)e.ingredients.push({text:"",order:e.ingredients.length,cid:(0,i.t)()})})},l=e=>{e.sections.find(e=>"instructions"===e.type)||e.sections.push({type:"instructions",title:"",order:2,instructions:[]}),e.sections.filter(e=>"instructions"===e.type).map((e,t)=>{for(e.cid=(0,i.t)();e.instructions.length<2;)e.instructions.push({text:"",order:e.instructions.length,cid:(0,i.t)()})})}},8509(e,t,s){s.d(t,{A:()=>u});var i=s(58168),a=s(54705),r=s(96540),o=s.n(r),n=s(26542),l=s(5556),p=s.n(l),d=s(29967),c=s(44171),h=s(10029);class m extends o().Component{constructor(e){super(e),this.state={onDragging:!1,uploading:!1,uploadingStarted:!1}}process(){this.input.click()}onUploadFiles(e){this.processFiles(e.dataTransfer.files)}onChooseFiles(e){(0,c.default)("Upload Media",this.props.trackData);let t=e.target.files;this.processFiles(t),e.target.value=""}processFiles(e){let t=this,s=[],i=[];this.props.onProcessStarts(e),this.setState({uploading:!0,uploadingStarted:!0});const a=this.props.member.permissionGranted("post_pic_without_limit"),r=Math.max(50,this.props.maxFileUpload);s.maxFileUpload=a?r:this.props.maxFileUpload,s.api=`${d.A.API_URL}/${this.props.api}`,s.maxWidth=this.props.maxWidth,s.maxHeight=this.props.maxHeight,s.itemId=this.props.itemId,s.acceptVideo=this.props.acceptVideo,s.videoUpload=this.props.videoUpload;try{(s.maxFileUpload<e.length||s.maxFileUpload<=t.props.uploadCount)&&t.props.onError(new Error("Max number of files exceeded"),0),s.maxFileUpload>t.props.uploadCount&&(i=(0,n.A)(e,s,(e,t,s)=>this.props.onProgress(e,t,s),this.props.onAdd,this.props.formData,this.props.page.pageType))}catch(o){t.props.onError(o,0)}i.length?(i.forEach(function(e){e.then(e=>{let{data:s,index:i,file:a}=e;t.props.onSuccess(s,i,a)},function(e){let{data:s,index:i,file:a}=e;t.props.onError(s,i,a),t.props.onProcessEnds()})}),Promise.all(i).then(function(e){t.setState({uploading:!1}),t.props.onSuccessMulti(),t.props.onProcessEnds()})):this.setState({uploading:!1})}render(){let e={};return this.props.multiple&&(e.multiple="multiple"),o().createElement("span",{className:`content-wrap ${this.state.uploading?"sl-uploading":""} ${this.state.uploadingStarted?"sl-uploading-started":""}`,style:this.state.onDragging?{borderStyle:"dotted"}:{borderStyle:"none"},onDrop:e=>{e.preventDefault(),e.stopPropagation(),this.onUploadFiles(e),this.setState({onDragging:!1})},onDragEnter:e=>{e.stopPropagation(),e.preventDefault()},onDragOver:e=>{e.stopPropagation(),e.preventDefault(),this.setState({onDragging:!0})},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),this.setState({onDragging:!1})}},o().createElement("input",(0,i.A)({onClick:e=>{this.props.preventClick&&e.preventDefault()},ref:e=>this.input=e,type:"file","data-ht-track":this.props.uploadTracking,className:this.props.inputClassName},e,{"aria-label":"Upload media",title:"Upload",onChange:e=>this.onChooseFiles(e)})),this.props.children)}}(0,a.A)(m,"defaultProps",{onError:function(){},onProgress:function(){},onSuccessMulti:function(){},onAdd:function(){},formData:function(){},onProcessStarts:function(){},onProcessEnds:function(){},maxFileUpload:15,maxWidth:1500,maxHeight:1500,preventClick:!1,uploadCount:0,uploadTracking:"Upload Media",multiple:"multiple",trackData:{}});const u=(0,h.nT)((0,h.g_)(m));m.propTypes={api:p().string,maxWidth:p().number,maxHeight:p().number,maxFileUpload:p().number,onSuccess:p().func,onSuccessMulti:p().func,onError:p().func,onProgress:p().func,onAdd:p().func,formData:p().func,itemId:p().number,acceptVideo:p().bool,inputClassName:p().string,preventClick:p().bool,uploadCount:p().number,uploadTracking:p().string,onProcessStarts:p().func,onProcessEnds:p().func}},13913(e,t,s){s.d(t,{C:()=>a,t:()=>r});var i=s(58807);function a(e){let t=[],s="";
1e.forEach(e=>{e.title&&t.push(e.title),e.elements&&e.elements.forEach(e=>{switch(e.type){case"productCard":e.foreign_object&&(e.foreign_object.title&&t.push(e.foreign_object.title),e.foreign_object.prices.forEach(e=>{e.store&&t.push(e.store),e.text&&t.push(e.text)}),e.foreign_object.specs.forEach(e=>{e.key&&t.push(e.key),e.value&&t.push(e.value)}));break;case"singleList":case"doubleList":s=e.content||e.html,s&&s.forEach(e=>{e.title&&t.push(e.title),e.bullets&&e.bullets.length&&t.push(...e.bullets)});break;case"tableOfContent":case"photoSlider":case"photoGrid":s=e.content||e.html,s&&s.title&&t.push(s.title);break;case"photoLinksCard":s=e.content||e.html,s&&(s.title&&t.push(s.title),s.data&&s.data.length&&t.push(...s.data));break;case"paragraph":case"table":s=e.content||e.html,s&&t.push(s)}})});for(let a=0;a<t.length;a++)t[a]=t[a].replace(/(<([^>]+)>)/gi," "),t[a]=t[a].replace(" ","");let i=t.join(" ").replace(/\[.*?\]/g," ").trim();return i?(i.replace(/['";:,.?\-!]+/g,"").match(/\S+/g)||[]).length:0}function r(e,t){let s,a=e.text?[e.text]:[];for(let o=0;o<t.length;o++)t[o].text&&!(0,i.A)(t[o].text)&&a.push(t[o].text);for(let i=0;i<a.length;i++)a[i]=a[i].replace(/(<([^>]+)>)/gi,""),a[i]=a[i].replace(" ","");let r=a.join(" ").trim();return s=r?(r.replace(/['";:,.?\-!]+/g,"").match(/\S+/g)||[]).length:0,s}},17013(e,t,s){s.d(t,{$S:()=>l,cZ:()=>n,o7:()=>o});var i=s(29967),a=s(70533),r=s(97470);function o(e,t){let s=e.video,i=e.media,r=new a.Ay("media/uploaded_video");return new Promise(e=>{r.create({filename:s.filename,media_id:i.id,storage_type:s.storage_type,storage_location:s.storage_location,bucket_name:s.bucket_name}).then(()=>{e({data:i,index:i.id,file:t})})})}function n(e){return e&&e.type&&"video"===e.type}function l(e){if(e){const t="?size=720x845&nocrop=1";if((0,r.nt)(e))return e+t;{const s=e.split(/\.(.+)/);return i.A.B_HOST+"/media/"+s[0]+"/img."+s[1]+t}}return""}},18082(t,s,i){i.d(s,{J:()=>l});var a=i(58202),r=i.n(a),o=i(48893),n=i(89757);async function l(e,t,s,i,a,o){return"phone"===HT_DATA_LAYER.getData().view.platform&&e.type.startsWith("image/")&&(e=await function(e,t){return new Promise((s,i)=>{r()(e,function(t){"error"===t.type?i("Image resize failed"):t.toBlob(t=>{s(new File([t],e.name,{type:e.type}))},e.type)},{maxWidth:t.maxWidth,maxHeight:t.maxHeight,canvas:!0,orientation:!0})})}(e,s)),a(e),p(e,s.api,i,t,o)}function p(t,s,i,a,r){let l=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],d=new FormData,c=new XMLHttpRequest;const h=r(t);for(let e in h)d.set(e,h[e]);d.set("photo",t,t.name),c.open("POST",s),c.setRequestHeader("Credentials","same-origin"),c.setRequestHeader("X-CSRF",HT_DATA_LAYER.getData().csrfToken),c.upload.onprogress=function(e){let t=e.position||e.loaded,s=e.totalSize||e.total,r=Math.floor(t/s*100);i(r,a,"photo")};let m=new Promise((d,h)=>{c.onreadystatechange=function(){if(c.readyState===XMLHttpRequest.DONE){let m;try{m=JSON.parse(c.response)}catch(e){m=c.response}if(200===c.status||201===c.status)delete m.alt,d({data:m,index:a,file:t});else if(l&&403===c.status&&"csrf"===m.errors.field)(0,o.Nw)().then(()=>p(t,s,i,a,r,!1)).then(d,h);else{switch(m.message){case"Invalid file resolution":m.message=n.in;break;case"File resolution too small":m.message=n.vH;break;case"Resource does not exist":m.message=n.dw;break;case"Connection Error":m.message=n.Yh;break;case"Formatting of a field is invalid":m=n.nO;break;default:m.message="Error"}h({data:m,index:a,file:t})}}}});return c.send(d),m}},23500(t,s,i){i.d(s,{default:()=>G});var a=i(54705),r=i(96540),o=i.n(r),n=i(6281),l=(i(41131),i(29967)),p=i(44171);class d extends o().Component{constructor(e){super(e),this.state={rating:null,tempRating:e.rating}}componentDidUpdate(e){this.props.rating!==e.rating&&this.setState({tempRating:this.props.rating})}handleClick(e,t){e==this.props.rating?this.rate(0,0):this.rate(e,t),(0,p.default)("Review Stars - Click Element",{element_type:"Review Stars",element_zone:"Comment Box"}),this.props.updateRating(t)}rate(e,t){this.setState({tempRating:e,rating:t})}render(){for(var e=[],t=1;t<=5;t++)e.push(o().createElement("label",{key:t,className:`star-rating__star sl-star-${t} ${this.state.tempRating>=t&&null!=this.state.tempRating?"is-selected":this.props.invalidRating?"error":""}`,"aria-label":`${t} star out of 5`,role:"button",tabindex:"0",onClick:this.handleClick.bind(this,t,t),onMouseOver:this.rate.bind(this,t,this.state.rating),onMouseOut:this.rate.bind(this,this.state.rating,this.state.rating)}));return o().createElement("div",{className:"star-rating sl-star-rating","data-reactid":".0.1"},e)}}const c=d;var h=i(49014),m=i(40538),u=(i(8397),i(97470)),_=i(80337),g=i(18082),y=i(90826),f=i(10029);const b=n.Ay.import("blots/block/embed");class w extends b{}w.blotName="hr",w.tagName="hr",n.Ay.register({"formats/hr":w});const x=n.Ay.import("formats/link");n.Ay.register("formats/customLink",class extends x{static create(e){const t=e&&0!==e.indexOf("mailto:")?(0,u.S8)(e):e;return super.create(t)}format(e,t){if("link"===e){let s=t;return t&&0!==t.indexOf("mailto:")&&(s=(0,u.S8)(t)),super.format(e,s)}}});class A extends b{}A.blotName="cuttext",A.tagName="cuttext",n.Ay.register({"formats/cuttext":A});const v=n.Ay.import("blots/embed"),E="cdn.jsdelivr.net/emojione",S=`https://${E}/assets/3.1/png/32/`,k=y.A.getState().user.features;class N extends v{static create(e){let t=super.create();return t.setAttribute("src",e.url),e.mediaId&&(t.setAttribute("style","display: block; margin: 20px 0"),t.setAttribute("data-embed-media-id",e.mediaId)),t}static value(e){let t={};return t.url=e.getAttribute("src"),t.url.includes(E)||(t.mediaId=e.getAttribute("data-embed-media-id")),t}}
1(0,a.A)(N,"blotName","embedImage"),(0,a.A)(N,"tagName","img"),n.Ay.register({"formats/imageBlot":N});class L extends o().Component{constructor(e){super(e),(0,a.A)(this,"classContainer",this.props.quillId?this.props.quillId:"container"),(0,a.A)(this,"toolbarUniqueId",Math.random().toString(36).slice(2,11)),(0,a.A)(this,"modules",{toolbar:{container:`#${this.toolbarSelector()}`,handlers:{emojiInsert:()=>{this.quill.blur(),!1===this.state.emojiOpen?this.setState({emojiOpen:!0}):this.setState({emojiOpen:!1})},link:function(e){if(e){let e=this.quill.getSelection();if(null==e||0==e.length)return;let t=this.quill.getText(e);t=/^\S+@\S+\.\S+$/.test(t)&&0!==t.indexOf("mailto:")?"mailto:"+t:(0,u.S8)(t);let s=this.quill.theme.tooltip;s.textbox&&s.textbox.dataset&&(s.textbox.dataset.link="https://www.hometalk.com/"),s.edit("link",t)}else this.quill.format("link",!1)},hr:function(){let e=this.quill.getSelection();if(e){this.quill.insertEmbed(e.index,"hr","null");const t=e.index+1;setTimeout(()=>{this.quill.setSelection(t,"silent")},0)}},cut:function(){let e=this.quill.getSelection();e&&(this.quill.insertEmbed(e.index,"cuttext","null"),this.quill.setSelection(e.index+1,"silent"))},image:()=>{if(!this.props.mediaApi||!this.props.shareboxType.toLowerCase().includes("structured_post")&&this.props.shareboxType.toLowerCase().includes("post")&&k&&"1"===k.get("html_post_process.enabled")||this.props.shareboxType.toLowerCase().includes("structured_post")&&this.props.html_post_process)return;const e=document.createElement("input"),t=this.quill;e.setAttribute("type","file"),e.setAttribute("accept","image/*"),e.setAttribute("style","visibility:hidden"),e.classList.add("sl-paragraph-file-uploader","sl-uploading","sl-uploading-started"),e.onchange=s=>{const i=e.files[0],a={api:`${l.A.API_URL}/${this.props.mediaApi}`,maxWidth:1500,maxHeight:1500};i.type.startsWith("image/")?(0,g.J)(i,0,a,()=>{},()=>{},()=>({type:"embedPhoto",...this.props.media.formData()})).then(s=>{e.classList.remove("sl-uploading");let i=t.getSelection();i&&t.insertEmbed(i.index,"embedImage",{url:s.data.source,mediaId:s.data.id})},t=>{e.classList.remove("sl-uploading"),this.props.media.uploadError(t.data,t.id,t.file)}):this.props.media.uploadError("Type of file not accepted",0,i),s.target.value=""},document.body.appendChild(e),(0,_.PZ)()||(e.click(),window.requestAnimationFrame(()=>{document.body.removeChild(e)}))},"image-library":()=>{const e=this.quill.getSelection();if(!this.props.mediaApi||!this.props.shareboxType.toLowerCase().includes("structured_post")&&this.props.shareboxType.toLowerCase().includes("post")&&k&&"1"===k.get("html_post_process.enabled")||this.props.shareboxType.toLowerCase().includes("structured_post")&&this.props.html_post_process)return;let t=Number(this.props.mediaApi.split("/")[1]);this.props.onLightBoxOpen(o().createElement(h.A,{itemId:t,type:"embedPhoto",onSuccess:t=>{e&&this.quill.insertEmbed(e.index,"embedImage",{url:t.source,mediaId:t.id}),this.props.onLightBoxClose()},singleSelect:!0}))},"split-component":()=>{const e=this.quill;let t=e.getSelection();if(t&&t.index){let s=e.getContents(t.index).ops;e.deleteText(t.index,e.getLength()),this.props.splitElement(s)}},"followable-link":()=>{const e=this.quill;let t=e.getSelection(),s=0;t&&t.index&&(s=t.index),e.insertText(s,"[followable-link=place your link here]Add Anchor text here[/followable-link]",{color:"#000000"})},"sponsored-link":()=>{const e=this.quill;let t=e.getSelection(),s=0;t&&t.index&&(s=t.index),e.insertText(s,"[sponsored-link=place your link here]Add Anchor text here[/sponsored-link]",{color:"#000000"})},align:function(e){const t=this.quill.getSelection();if(t){const[s]=this.quill.scroll.descendant(n.Ay.import("blots/block"),t.index);if(s&&["BLOCKQUOTE","LI"].includes(s.domNode.tagName))return;this.quill.format("align",e)}}}},clipboard:{matchVisual:!1,matchers:[["IMG",(e,t)=>this.extractImages(e,t)],["PICTURE",(e,t)=>this.extractImages(e,t)]]}}),(0,a.A)(this,"showImgLibraryButton",()=>this.props.member.permissionGranted(["image_library"])&&l.A.THEME.embed_images_text&&l.A.THEME.show_image_library&&(this.props.shareboxType.toLowerCase().includes("post")||this.props.shareboxType.toLowerCase().includes("structured_post")));let t=this.handleFormatting(this.props.value);this.state={editorHtml:t,emojiOpen:!1,textBoxFocused:!1},this.quill=null,this.quillElement=null,this.pathImage=l.A.B_HOST+"/resources/design"}componentDidMount(){this.quill=new n.Ay(this.quillElement,{theme:"snow",modules:this.modules,placeholder:this.props.placeholder}),this.props.isFocused&&this.quill.focus(),this.state.editorHtml?this.quill.clipboard.dangerouslyPasteHTML(this.state.editorHtml):this.props.delta&&(this.quill.setContents(this.props.delta),Object.keys(this.props.delta).length>0&&this.handleChange(this.quillElement.innerHTML,!0,!0)),this.quill.on("text-change",()=>{this.handleChange(this.getSemanticHTML())}),this.quill.on("selection-change",(e,t,s)=>{e?this.setFocus(!0):this.setFocus(!1)})}
1componentDidUpdate(e,t,s){this.props.value!==e.value&&this.handleChange(this.props.value,!0,this.props.value!==this.state.editorHtml),this.props.itemId!==e.itemId&&this.handleChange(""),this.props.fileId!==e.fileId&&this.handleChange(this.props.value,!1),this.props.reorderingItems&&!e.reorderingItems&&this.setState({emojiOpen:!1}),this.props.placeholder!==e.placeholder&&(this.quill.root.dataset.placeholder=this.props.placeholder)}handleChange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.props.maxLength&&this.quill&&this.quill.getLength()>this.props.maxLength&&this.quill.deleteText(this.props.maxLength,this.quill.getLength()),this.setState({editorHtml:e}),this.props.value!=e&&t){let t="";this.quill&&(t=this.quill.getText()),this.props.updateContent(e,t)}if(s){const t=this.quill.getSelection();this.quill.clipboard.dangerouslyPasteHTML(e),Promise.resolve().then(()=>this.quill.setSelection(this.quill,t))}}componentWillUnmount(){this.quill&&(this.quill.off("text-change"),this.quill=null)}showHeaderTool(){return this.props.member.permissionGranted("edit_post")&&(-1!==["shareboxDiscussion","shareboxPost"].indexOf(this.props.quillId)||0===this.props.quillId.indexOf("shareboxUploader")||0===this.props.quillId.indexOf("shareboxParagraph"))}showListQuill(){return"shareboxPost"===this.props.quillId||this.props.quillId.startsWith("shareboxUploader_")||this.props.quillId.startsWith("shareboxParagraph_")||this.props.quillId.startsWith("footnotesId_")}showLinkQuill(){return"shareboxClassified"!==this.props.quillId&&"shareboxPost"!==this.props.quillId&&"editorPost"!==this.props.quillId&&"post"!==this.props.shareboxType||"blogger"===this.props.member.internal_contributor||"instagram"===this.props.member.internal_contributor||this.props.member.permissionGranted("unlimited_links")||this.props.member.is_homeowner_contributor||this.props.allowLinks}showCutQuill(){return!!l.A.THEME.theme_feed.show_cut_text}showSeoLinks(){if(!this.props.member.permissionGranted("seo_links"))return!1;const e=this.props.quillId.startsWith("linksCardId"),t=this.props.quillId.startsWith("bulletsId"),s=this.props.quillId.startsWith("slideshowCardDescription");return!e&&!t&&!s}showImageQuill(){return l.A.THEME.embed_images_text&&this.props.mediaApi&&this.props.media&&(this.props.shareboxType.toLowerCase().includes("post")||this.props.shareboxType.toLowerCase().includes("structured_post"))}showAlignQuill(){return-1!==["shareboxDiscussion","shareboxPost"].indexOf(this.props.quillId)||0===this.props.quillId.indexOf("shareboxUploader")||0===this.props.quillId.indexOf("shareboxParagraph")}showEmojiQuill(){return"shareboxClassified"!==this.props.quillId}showStrikethroughQuill(){return this.props.shareboxType.toLowerCase().includes("post")||this.props.shareboxType.toLowerCase().includes("structured_post")}showBlockquoteQuill(){return this.props.shareboxType.toLowerCase().includes("post")||this.props.shareboxType.toLowerCase().includes("structured_post")}showSplitComponentQuill(){return this.props.shareboxType.toLowerCase().includes("structured_post")}handleFormatting(e){return e}getSemanticHTML(){let e=this.quill.getSemanticHTML();return e=e.replaceAll("<p></p>","<p><br></p>"),e}toolbarSelector(){return`toolbar-${this.toolbarUniqueId}-${this.classContainer}`}onDrop(){e.preventDefault();let t=e.dataTransfer.getData("text/html").replace(/<(img)[^>]*>/g,"");this.handleChange(this.state.editorHtml+t)}insertEmoji(e){this.quill.focus();let t=this.quill.getSelection();this.quill.insertEmbed(t.index,"image",S+e.unified+".png"),this.quill.setSelection(t.index+1),this.setState({emojiOpen:!1})}extractImages(e,t){return e&&(e.src&&e.src.includes(E)||e.getAttribute("data-embed-media-id"))||k&&k.get("html_post_process.enabled")||this.props.html_post_process?t:(new(n.Ay.import("delta"))).insert("")}setFocus(e){this.setState({textBoxFocused:e})}render(){let e="small"===this.props.screenSize?{height:28}:{},t="small"===this.props.screenSize?{padding:0,height:28}:{padding:0};const s=this.props.focusedClassName||"",i=this.props.errorClass||"";let a=this.state.textBoxFocused?s:"";const r=this.props.onFeed&&!this.state.textBoxFocused||this.props.noToolbar?"hidden":"notHidden";return o().createElement(o().Fragment,null,o().createElement("div",{className:"ht-editor-container-new "+this.props.className+a+i,style:this.props.style,id:this.props.id,"data-tr_zone":"quill_editor"},o().createElement("div",{id:"content-container",className:"input-field",style:{border:"1px solid #c4cdd5",marginLeft:"auto",marginRight:"auto",width:"100%",borderRadius:"6px"}},o().createElement("div",{className:"advanced-wrapper",id:this.props.quillId,style:{border:"none"},onDrop:this.onDrop},l.A.THEME.ratings_on&&null!=this.props.rating&&o().createElement(c,{rating:this.props.rating,updateRating:this.props.updateRating}),o().createElement("div",{className:"quill",ref:e=>{this.quillElement=e}}),o().createElement("div",{id:this.toolbarSelector(),style:{border:"0"},className:"toolbar toolbar-container ql-toolbar ios ql-snow "+r},o().createElement("button",{className:"ql-bold sl-format-bold",style:e,"data-ht-track":"Formatting Tools","aria-label":"Add bold text"}
1),o().createElement("button",{className:"ql-italic sl-format-italic",style:e,"data-ht-track":"Formatting Tools","aria-label":"Add italic text"}),o().createElement("button",{className:"ql-underline sl-format-underline",style:e,"data-ht-track":"Formatting Tools","aria-label":"Underline text"}),this.showStrikethroughQuill()&&o().createElement("button",{className:"ql-strike sl-strike","data-ht-track":"Formatting Tools","aria-label":"Add strikethrough",type:"button"}),this.showAlignQuill()&&o().createElement(o().Fragment,null,o().createElement("button",{className:"ql-align ql-align-left sl-align-left","data-ht-track":"Formatting Tools","aria-label":"Align left",value:""},o().createElement("svg",{clipRule:"evenodd",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1",viewBox:"0 0 24 24"},o().createElement("path",{fill:"#919eab",d:"m17 17.75c0-.414-.336-.75-.75-.75h-13.5c-.414 0-.75.336-.75.75s.336.75.75.75h13.5c.414 0 .75-.336.75-.75zm5-4c0-.414-.336-.75-.75-.75h-18.5c-.414 0-.75.336-.75.75s.336.75.75.75h18.5c.414 0 .75-.336.75-.75zm-9-4c0-.414-.336-.75-.75-.75h-9.5c-.414 0-.75.336-.75.75s.336.75.75.75h9.5c.414 0 .75-.336.75-.75zm7-4c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z",fillRule:"nonzero"}))),o().createElement("button",{className:"ql-align ql-align-center sl-align-center","data-ht-track":"Formatting Tools","aria-label":"Align Center",value:"center"},o().createElement("svg",{clipRule:"evenodd",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1",viewBox:"0 0 24 24"},o().createElement("path",{fill:"#919eab",d:"m6 17.75c0-.414.336-.75.75-.75h10.5c.414 0 .75.336.75.75s-.336.75-.75.75h-10.5c-.414 0-.75-.336-.75-.75zm-4-4c0-.414.336-.75.75-.75h18.5c.414 0 .75.336.75.75s-.336.75-.75.75h-18.5c-.414 0-.75-.336-.75-.75zm0-4c0-.414.336-.75.75-.75h18.5c.414 0 .75.336.75.75s-.336.75-.75.75h-18.5c-.414 0-.75-.336-.75-.75zm4-4c0-.414.336-.75.75-.75h10.5c.414 0 .75.336.75.75s-.336.75-.75.75h-10.5c-.414 0-.75-.336-.75-.75z",fillRule:"nonzero"}))),o().createElement("button",{className:"ql-align ql-align-right sl-align-right","data-ht-track":"Formatting Tools","aria-label":"Align right",value:"right"},o().createElement("svg",{clipRule:"evenodd",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1",viewBox:"0 0 24 24"},o().createElement("path",{fill:"#919eab",d:"m7 17.75c0-.414.336-.75.75-.75h13.5c.414 0 .75.336.75.75s-.336.75-.75.75h-13.5c-.414 0-.75-.336-.75-.75zm-5-4c0-.414.336-.75.75-.75h18.5c.414 0 .75.336.75.75s-.336.75-.75.75h-18.5c-.414 0-.75-.336-.75-.75zm9-4c0-.414.336-.75.75-.75h9.5c.414 0 .75.336.75.75s-.336.75-.75.75h-9.5c-.414 0-.75-.336-.75-.75zm-7-4c0-.414.336-.75.75-.75h16.5c.414 0 .75.336.75.75s-.336.75-.75.75h-16.5c-.414 0-.75-.336-.75-.75z",fillRule:"nonzero"})))),this.showHeaderTool()&&o().createElement(o().Fragment,null,o().createElement("button",{className:"ql-header sl-format-header",value:"2",style:e,"data-ht-track":"Formatting Tools","aria-label":"Add headline"}),o().createElement("button",{className:"ql-header sl-format-header",value:"3",style:e,"data-ht-track":"Formatting Tools","aria-label":"Add headline"},o().createElement("svg",{viewBox:"0 0 18 18"},o().createElement("path",{className:"ql-fill",d:"M 9 3 C 8.447655492864145 2.999855966170671 7.999856334636465 3.4476554927681846 8 4 L 8 8 L 3 8 L 3 4 C 3 3.2301996410804987 2.166666666666667 2.749074416755811 1.5000000000000002 3.133974596215561 C 1.190598923241497 3.3126073911696428 1 3.6427344100918364 1 4 L 1 14 C 1 14.7698003589195 1.8333333333333335 15.25092558324419 2.5 14.86602540378444 C 2.809401076758503 14.687392608830358 3 14.357265589908163 3 14 L 3 10 L 8 10 L 8 14 C 8 14.7698003589195 8.833333333333334 15.25092558324419 9.5 14.86602540378444 C 9.809401076758503 14.687392608830358 10 14.357265589908163 10 14 L 10 4 C 10.000143665363534 3.4476554927681846 9.552344507135855 2.9998559661706707 9 3 Z"}),o().createElement("path",{className:"ql-fill",d:"M 13.939 15.012 C 13.546 15.012 13.146 14.969 12.739 14.882 C 12.332 14.789 11.979 14.655 11.679 14.482 C 11.439 14.355 11.289 14.195 11.229 14.002 C 11.169 13.809 11.179 13.632 11.259 13.472 C 11.332 13.305 11.459 13.185 11.639 13.112 C 11.819 13.045 12.026 13.069 12.259 13.182 C 12.552 13.322 12.829 13.422 13.089 13.482 C 13.349 13.542 13.609
113.572 13.869 13.572 C 14.782 13.572 15.239 13.232 15.239 12.552 C 15.239 11.925 14.812 11.612 13.959 11.612 L 13.299 11.612 C 13.052 11.612 12.866 11.549 12.739 11.422 C 12.606 11.302 12.539 11.132 12.539 10.912 C 12.539 10.692 12.606 10.519 12.739 10.392 C 12.866 10.272 13.052 10.212 13.299 10.212 L 13.789 10.212 C 14.162 10.212 14.459 10.125 14.679 9.952 C 14.892 9.779 14.999 9.539 14.999 9.232 C 14.999 8.625 14.602 8.322 13.809 8.322 C 13.562 8.322 13.322 8.349 13.089 8.402 C 12.862 8.455 12.616 8.555 12.349 8.702 C 12.142 8.802 11.956 8.819 11.789 8.752 C 11.622 8.685 11.502 8.572 11.429 8.412 C 11.349 8.245 11.329 8.072 11.369 7.892 C 11.416 7.712 11.549 7.562 11.769 7.442 C 12.416 7.062 13.146 6.872 13.959 6.872 C 14.812 6.872 15.479 7.062 15.959 7.442 C 16.432 7.822 16.669 8.345 16.669 9.012 C 16.669 9.425 16.566 9.789 16.359 10.102 C 16.152 10.415 15.862 10.642 15.489 10.782 C 15.936 10.909 16.282 11.142 16.529 11.482 C 16.782 11.822 16.909 12.232 16.909 12.712 C 16.909 13.425 16.642 13.989 16.109 14.402 C 15.582 14.809 14.859 15.012 13.939 15.012 Z",transform:"matrix(1, 0, 0, 1, 0, 0)"}))),o().createElement("button",{className:"ql-hr sl-format-hr",style:e,"data-ht-track":"Formatting Tools","aria-label":"Add horizontal line",title:"Add horizontal line"},o().createElement("svg",{viewBox:"0 0 18 18"},o().createElement("line",{className:"ql-stroke light",x1:"3",x2:"15",y1:"4",y2:"4"}),o().createElement("line",{className:"ql-stroke",x1:"3",x2:"15",y1:"9",y2:"9"}),o().createElement("line",{className:"ql-stroke light",x1:"3",x2:"15",y1:"14",y2:"14"})))),this.showListQuill()&&o().createElement("button",{className:"ql-list sl-format-button",style:e,value:"ordered","data-ht-track":"Formatting Tools","aria-label":"Add ordered list",title:"Add ordered list"}),this.showListQuill()&&!this.props.quillId.startsWith("footnotesId_")&&o().createElement("button",{className:"ql-list sl-format-bullet",style:e,value:"bullet","data-ht-track":"Formatting Tools","aria-label":"Add unordered list",title:"Add unordered list"},o().createElement("svg",{viewBox:"0 0 18 18"},o().createElement("line",{className:"ql-stroke",x1:"6",x2:"15",y1:"4",y2:"4"}),o().createElement("line",{className:"ql-stroke",x1:"6",x2:"15",y1:"9",y2:"9"}),o().createElement("line",{className:"ql-stroke",x1:"6",x2:"15",y1:"14",y2:"14"}),o().createElement("line",{className:"ql-stroke",x1:"3",x2:"3",y1:"4",y2:"4"}),o().createElement("line",{className:"ql-stroke",x1:"3",x2:"3",y1:"9",y2:"9"}),o().createElement("line",{className:"ql-stroke",x1:"3",x2:"3",y1:"14",y2:"14"}))),this.showLinkQuill()&&o().createElement("button",{className:"ql-link sl-format-link",style:e,"data-ht-track":"Formatting Tools","aria-label":"Add link",title:"Add link"}),this.showEmojiQuill()&&o().createElement("button",{className:"ql-emojiInsert sl-format-emoji",style:t,"data-ht-track":"Formatting Tools"},o().createElement("span",{id:"emojiClick",title:"Emoji",className:"ht-format-button ql-format-button","data-ht-track":"Formatting Tools","aria-label":"Add emoji"},o().createElement("img",{style:{verticalAlign:"bottom"},alt:"smiley",src:this.pathImage+"/emojis/smiley_redesign.svg"}))),this.showCutQuill()&&o().createElement("button",{className:"ql-cut sl-cuttext","data-ht-track":"Formatting Tools","aria-label":"Cut text",type:"button",style:e},"â"),this.showImageQuill()&&o().createElement("button",{className:"ql-image sl-paragraph-image","data-ht-track":"Formatting Tools","aria-label":"Add image",type:"button"}),this.showImageQuill()&&this.showImgLibraryButton()&&o().createElement("button",{className:"ql-image-library sl-img-library","data-ht-track":"Formatting Tools","aria-label":"Image Library",type:"button"},o().createElement("svg",{className:"image-library",viewBox:"0 0 24 24",width:"18",height:"18"},o().createElement("path",{fill:"currentColor",d:"m1.9 6-.5-2h21.2l-.5 2H2zm1.5-4L3 0h18l-.4 2H3.4zM24 18H0l2 6h20l2-6zM3.1 16l-.8-6h19.4l-.8 6h2L24 8H0l1 8h2.1zm2.8-4c0-.6.4-1 1-1 .7 0 1.2.4 1.2 1s-.4 1-1 1-1.2-.4-1.2-1zm7.6-.2-1.9 2.7L9.8 13 7 16h10l-3.5-4.2z"}))),this.showBlockquoteQuill()&&o().createElement("button",{className:"ql-blockquote sl-blockquote","data-ht-track":"Formatting Tools","aria-label":"Add blockquote",type:"button"}),this.showSeoLinks()&&o().createElement(o().Fragment,null,o().createElement("button",{className:"ql-followable-link sl-followable-link",style:e,"data-ht-track":"Formatting Tools","aria-label":"Follow link",title:"Follow Link"},o().createElement("svg",{width:"17",height:"17",viewBox:"0 0 24 24"},o().createElement("path",{fill:"currentColor",d:"M23.739.293c-.392-.391-1.026-.391-1.417 0l-4.304 4.303c-2.571-1.836-6.31-1.481-8.789.998l-3.646 3.65c-2.479 2.478-2.835 6.213-.999 8.788l-4.259 4.258c-.392.392-.391 1.024 0 1.415.392.392 1.025.394 1.417.002l4.259-4.26c2.572 1.837 6.311 1.48 8.788-.998l3.649-3.649c2.478-2.478 2.834-6.215.996-8.789l4.3
105-4.302c.391-.39.391-1.025 0-1.416zm-6.718 13.09l-3.648 3.649c-1.683 1.682-4.149 2.025-5.925.968l2.738-2.736c.39-.392.39-1.026-.002-1.418-.39-.39-1.024-.39-1.416.001l-2.736 2.737c-1.058-1.777-.713-4.242.967-5.924l3.648-3.649c1.682-1.681 4.148-2.024 5.924-.966l-2.736 2.735c-.392.392-.391 1.025-.002 1.417.393.39 1.027.392 1.417 0l2.737-2.737c1.058 1.775.715 4.243-.966 5.923z"}))),o().createElement("button",{className:"ql-sponsored-link sl-sponsored-link",style:e,"data-ht-track":"Formatting Tools","aria-label":"Sponsored link",title:"Sponsored Link"},o().createElement("svg",{width:"19",height:"19",viewBox:"0 0 512 512"},o().createElement("path",{d:"M240 32c-132.548 0-240 107.452-240 240s107.452 240 240 240c132.549 0 240-107.451 240-240s-107.451-240-240-240zM240 464c-106.039 0-192-85.961-192-192s85.961-192 192-192c106.039 0 192 85.961 192 192s-85.961 192-192 192zM256 256v-64h64v-32h-64v-32h-32v32h-64v128h64v64h-64v32h64v32h32v-32h64.001l-0.001-128h-64zM224 256h-32v-64h32v64zM288.001 352h-32.001v-64h32.001v64z",fill:"currentColor"})))),this.showSplitComponentQuill()&&o().createElement("button",{className:"ql-split-component sl-split-component","data-ht-track":"Formatting Tools","aria-label":"Split component",title:"Split component",type:"button"},o().createElement("svg",{width:"22",height:"22",viewBox:"0 0 22 22"},o().createElement("path",{fill:"var(--colorPrimary)",d:"M3 14v3h16v-3h2v3a2 2 0 0 1-2 2H3c-1.11 0-2-.89-2-2v-3h2m9-4h4v2h-4v-2m10 2h-4v-2h4v2M6 10h4v2H6v-2M3 8V5h16v3h2V5a2 2 0 0 0-2-2H3c-1.11 0-2 .89-2 2v3h2m1 4v-2H0v2z"}))))))),this.state.emojiOpen&&o().createElement("div",{className:"sl-emoji-mart"},o().createElement(m.LC,{set:"emojione",emoji:"",title:"",showPreview:!1,onClick:e=>this.insertEmoji(e),perLine:10,emojiSize:30,i18n:{categories:{recent:l.A.LANG.quill_emoji.frequently_used,people:l.A.LANG.quill_emoji.people_body,nature:l.A.LANG.quill_emoji.animal_nature,foods:l.A.LANG.quill_emoji.food_drink,activity:l.A.LANG.quill_emoji.activity,places:l.A.LANG.quill_emoji.travel_places,objects:l.A.LANG.quill_emoji.objects,symbols:l.A.LANG.quill_emoji.symbols,flags:l.A.LANG.quill_emoji.flags}}})))}}L.defaultProps={quillId:"",className:"",style:{},id:0,rating:null,shareboxType:"",value:"",isFocused:!1,delta:{},placeholder:"",allow_links:!1,itemId:null};const G=(0,f.Tg)((0,f.g_)((0,f.fQ)(L)))},25529(e,t,s){function i(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}s.d(t,{t:()=>i})},26542(t,s,i){i.d(s,{A:()=>c});var a=i(18082),r=i(44171),o=i(48893),n=i(29967),l=i(70533);function p(t,s,i,a,l){let c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,m=!(arguments.length>7&&void 0!==arguments[7])||arguments[7],u=new FormData,_=new XMLHttpRequest,g=c.api||`${n.A.API_URL}/media/upload`;const y={item_id:s,type:"video",filename:t.name,filesize:t.size,filetype:t.type,uploaded_from:h};for(let e in y)u.set(e,y[e]||"");t.table_id&&u.set("table_id",t.table_id),c.top_activity_id&&u.set("top_activity_id",c.top_activity_id),_.open("POST",g),_.setRequestHeader("Credentials","same-origin"),_.setRequestHeader("X-CSRF",HT_DATA_LAYER.getData().csrfToken);let f=new Promise((s,n)=>{_.onreadystatechange=function(){if(_.readyState===XMLHttpRequest.DONE){let u;try{u=JSON.parse(_.response)}catch(e){u=_.response}200===_.status||201===_.status?(l(u,!0),function(e,t,s,i,a){let o=new XMLHttpRequest,n=e.video;o.open("PUT",n.signedURL),o.setRequestHeader("Content-Type",t.type),o.upload.onprogress=function(t){let s=t.position||t.loaded,a=t.totalSize||t.total,r=Math.floor(s/a*100);i(r,e,"video")};let l=new Promise((i,n)=>{o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&(200===o.status||201===o.status?a(e,t,s).then(e=>{i(e),(0,r.default)("Upload Video")}):n({data:o.response,index:s}))}});return o.send(t),l}(u,t,i,a,c.videoUpload?c.videoUpload:d).then(e=>{s(e)})):m&&403===_.status&&"csrf"===u.errors.field?(0,o.Nw)().then(()=>p(t,api,a,i,data,c,h,!1)).then(s,n):n({data:u,index:i,file:t})}}});return _.send(u),f}function d(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=e.video,a=e.media,r=new l.Ay("media/uploaded_video");return e.html&&(a.html=e.html),new Promise(e=>{r.create({filename:i.filename,media_id:a.id,storage_type:i.storage_type,storage_location:i.storage_location,bucket_name:i.bucket_name}).then(()=>{e({data:a,index:null!=s?s:a.id,file:t})})})}const c=function(e,t,s,i,r){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,n=[];return Array.prototype.forEach.call(e,(e,l)=>{l<t.maxFileUpload&&(e.type.startsWith("image/")?n.push((0,a.J)(e,l,t,s,i,r)):e.type.startsWith("video/")?n.push(t.acceptVideo?p(e,t.itemId,l,s,i,t,o):Promise.reject({data:{message:"Video not accepted"},index:l,file:e}
vendor: 5,419 bytes, line 1
1)):n.push(Promise.reject({data:"Type of file not accepted",index:l,file:e})))}),n}},34114(e,t,s){s.d(t,{A:()=>r});var i=s(96540),a=s.n(i);const r=e=>a().createElement("svg",{width:"170px",height:"170px",viewBox:"0 0 201 201",preserveAspectRatio:"xMinYMin meet"},a().createElement("g",null,a().createElement("defs",null,a().createElement("rect",{id:"SVGID_1_",x:"0.5",width:"200",height:"200.763"})),a().createElement("clipPath",{id:"SVGID_00000052795368040170184640000005515824665771345815_"},a().createElement("use",{xlinkHref:"#SVGID_1_",style:{overflow:"visible"}})),a().createElement("path",{style:{clipPath:"url(#SVGID_00000052795368040170184640000005515824665771345815_)",fill:"var(--colorPrimaryLightest)"},d:"M106.564,12.891\r c-8.13,0-16.018,1.034-23.541,2.975c-3.463-0.661-7.034-1.02-10.689-1.02c-31.305,0-56.682,25.377-56.682,56.682\r c0,3.06,0.25,6.061,0.717,8.99c-2.431,8.349-3.74,17.175-3.74,26.309c0,51.88,42.057,93.936,93.936,93.936\r c51.88,0,93.936-42.056,93.936-93.936C200.5,54.947,158.444,12.891,106.564,12.891z"})),a().createElement("g",null,a().createElement("path",{fill:"fill:var(--colorPrimary);",className:"st1",d:"M40.434,34.008c24.317-19.472,59.941-15.533,79.415,8.784c0.936,1.169,1.801,2.371,2.63,3.59\r c-1.829-3.824-4.102-7.505-6.863-10.954c-19.474-24.317-55.1-28.256-79.415-8.784C13.053,45.181,8.386,78.347,24.788,102.469\r C13.722,79.322,19.565,50.72,40.434,34.008z"}),a().createElement("path",{className:"st1",d:"M143.385,75.953c-0.203-7.346-1.475-14.498-3.736-21.278c1.239,5.206,1.914,10.632,1.914,16.217\r c0,38.565-31.263,69.828-69.828,69.828c-24.877,0-46.7-13.02-59.069-32.606c0.083,6.005,0.729,12.004,1.956,17.908\r c1.573,1.813,3.245,3.568,5.025,5.252c16.374,15.49,38.073,21.947,58.884,19.544c16.535-1.91,32.509-9.412,44.817-22.421\r C136.813,114.164,143.928,95.538,143.385,75.953z"})),a().createElement("path",{className:"st2",d:"M141.591,68.868c-1.226-38.659-33.559-69.004-72.217-67.777C30.715,2.317,0.37,34.649,1.596,73.308\r c1.226,38.659,33.559,69.004,72.218,67.778c17.003-0.54,32.394-7.101,44.202-17.567l12.665,11.767l8-8.884l-12.44-11.543\r C136.313,102.295,142.141,86.225,141.591,68.868z M71.591,127.455c-31.13,0-56.366-25.236-56.366-56.366\r c0-31.13,25.236-56.366,56.366-56.366c31.13,0,56.366,25.236,56.366,56.366C127.957,102.219,102.721,127.455,71.591,127.455z"}),a().createElement("g",null,a().createElement("path",{className:"st3",d:"M49.855,67.81c2.752,0,4.982-2.231,4.982-4.982s-2.231-4.982-4.982-4.982c-2.752,0-4.982,2.231-4.982,4.982\r S47.103,67.81,49.855,67.81z"}),a().createElement("path",{className:"st3",d:"M95.733,67.81c2.751,0,4.982-2.231,4.982-4.982s-2.23-4.982-4.982-4.982c-2.752,0-4.982,2.231-4.982,4.982\r S92.981,67.81,95.733,67.81z"}),a().createElement("path",{className:"st3",d:"M61.57,91.406c0.752-5.529,5.492-9.808,11.225-9.808c5.733,0,10.473,4.279,11.225,9.808h3.818\r c-0.77-7.621-7.223-13.59-15.043-13.59s-14.273,5.968-15.043,13.59H61.57z"}),a().createElement("path",{className:"st3",d:"M192.919,165.859L146.4,121.852c-2.061-1.949-5.325-1.859-7.275,0.203l-1.731,1.83l-9.681-9.158\r c4.433-5.682,7.95-11.953,10.478-18.725c3.216-8.61,4.717-17.656,4.462-26.885c-0.256-9.229-2.256-18.177-5.946-26.596\r c-3.82-8.716-9.29-16.48-16.262-23.075c-6.972-6.595-15.026-11.628-23.942-14.957c-8.611-3.216-17.656-4.717-26.885-4.461\r c-9.229,0.256-18.177,2.256-26.596,5.946c-8.716,3.82-16.48,9.292-23.076,16.262C13.351,29.207,8.319,37.262,4.989,46.177\r c-3.216,8.611-4.717,17.656-4.461,26.885c0.256,9.229,2.258,18.178,5.946,26.596c3.82,8.718,9.292,16.481,16.264,23.076\r c6.972,6.595,15.026,11.626,23.942,14.958c8.61,3.216,17.656,4.717,26.885,4.461c2.108-0.058,4.2-0.207,6.275-0.447\r c7.012-0.81,13.824-2.651,20.321-5.5c6.619-2.901,12.685-6.759,18.111-11.498l9.681,9.158l-1.731,1.829\r c-1.949,2.062-1.859,5.325,0.203,7.275l46.518,44.007c2.372,2.245,5.517,3.181,8.532,2.832c2.396-0.278,4.711-1.365,6.496-3.25\r l5.366-5.675c1.952-2.061,2.982-4.761,2.904-7.599C196.161,170.448,194.982,167.81,192.919,165.859z M79.557,139.575\r c-19.569,2.259-39.971-3.812-55.368-18.377C-3.441,95.06-4.655,51.319,21.482,23.689C32.73,11.8,47.49,4.434,63.556,2.578\r c2.02-0.233,4.063-0.38,6.122-0.437c18.416-0.512,35.931,6.181,49.313,18.843c13.385,12.661,21.037,29.777,21.548,48.194\r c0.512,18.417-6.18,35.931-18.841,49.315C110.125,130.726,95.105,137.78,79.557,139.575z M129.404,132.331l-9.567-9.05\r c1.16-1.075,2.301-2.177,3.397-3.336c1.096-1.159,2.132-2.358,3.141-3.575l9.567,9.05L129.404,132.331z"}),a().createElement("path",{className:"st3",d:"M78.279,128.13c-1.683,0.194-3.382,0.315-5.096,0.364c-15.333,0.426-29.913-5.146-41.055-15.686\r c-11.142-10.542-17.514-24.79-17.939-40.123c-0.426-15.333,5.146-29.913,15.686-41.055c10.54-11.142,24.79-17.514,40.122-17.939\r c15.332-0.426,29.913,5.146,41.055,15.686c11.142,10.54,17.514,24.79,17.94,40.122c0.425,15.333-5.146,29.913-15.687,41.056\r C103.942,120.452,91.653,126.584,78.279,128.13z M33.58,111.272c10.732,10.152,24.776,15.517,39.544,15.109\r c14.767-0.409,28.492-6.546,38.645-17.278c20.958-22.154,19.985-57.23-2.171-78.188C87.446,9.955,52.37,10.928,31.412,33.082\r C10.454,55.238,11.426,90.312,33.58,111.272z"})),a().createElement("path",{fill:"var(--colorPrimaryLightest)",className:"st4",d:"M181.372,167.485c-0.514,0.06-1.052-0.096-1.462-0.475l-37.747-34.614c-0.754-0.691-0.805-1.861-0.114-2.615\r c0.691-0.752,1.861-0.804,2.615-0.113l37.747,34.616c0.753,0.691,0.804,1.861,0.113,2.615\r C182.21,167.239,181.798,167.43
16,181.372,167.485z"}))},49014(e,t,s){s.d(t,{A:()=>G});var i=s(54705),a=s(96540),r=s.n(a),o=s(8509),n=s(81420),l=s.n(n),p=s(17847),d=s(4211),c=s(34114);class h extends r().Component{constructor(e){super(e),(0,i.A)(this,"setSearchTerm",e=>{this.setState({searchTerm:e})}),(0,i.A)(this,"submitSearch",e=>{e.preventDefault(),this.props.setSearchTerm(this.state.searchTerm)}),this.state={searchTerm:""}}render(){return r().createElement(r().Fragment,null,r().createElement("div",{className:"pretty-scrollbar sl-feed-wrap"},r().createElement("div",{className:"imglib-search-light flex"},r().createElement("div",{className:"search-site-block flex flex-one flex-align-center"},r().createElement("form",{className:"sl-search-form",onSubmit:this.submitSearch},r().createElement("button",{type:"submit",className:"sl-search-btn tr_zone","aria-label":"Search"},r().createElement("i",{className:"ics-search"})),r().createElement("input",{type:"search",placeholder:"Search...",value:this.state.searchTerm,onChange:e=>this.setSearchTerm(e.target.value),className:"sl-search-bar"})))),!this.props.loading&&!this.props.media.length&&r().createElement("div",{className:"no-items no-elements flex-center flex-column sl-no-items"},r().createElement("div",{className:"no-items no-elements flex-center flex-column sl-no-items"},r().createElement("div",{className:"no-results-illustration"},r().createElement(c.A,null))),r().createElement("span",{className:"footer flex-center flex-column"},r().createElement("span",{className:"fs18 centered"},"Oops, we could not find results matching your search"))),r().createElement(l(),{className:"imgs-container-box",useWindow:!1,loadMore:()=>{this.props.loadMore()},hasMore:!this.props.is_finished&&!this.props.loading,loader:r().createElement(p.A,{key:0})},r().createElement("div",{className:"imglib-grid-light"},this.props.media&&this.props.media.map((e,t)=>{const s=e.media.some(e=>e.top_activity&&Object.keys(e.top_activity).length>0);let i=e.media[0],a=i&&i.top_activity&&i.top_activity.summary||"",o=i&&i.title||"";return i?r().createElement("div",{className:`img-wrap flex flex-center relative sl-feed-item-${t} ${s?"sl-media-has-posts":""}`,"data-post-title":a,"data-image-title":o,key:e.original_file_path},r().createElement("input",{type:"radio",name:"toggle-info",id:`toggle_info_${t}`,onClick:()=>{this.props.selectMedia(e)}}),r().createElement("input",{type:"checkbox",checked:(0,d.Jt)(e,"is_selected",!1),name:"select-to-insert",id:`select_to_insert_${t}`,className:"sl-select_to_insert",onChange:()=>{this.props.handleSelect(i.id)}}),e.is_new&&r().createElement("div",{className:"new fs12 sl-new-tag"},"NEW"),r().createElement("img",{src:`${i.source}?size=414x575&nocrop=1`,loading:"lazy",alt:""})):r().createElement(r().Fragment,null)})))))}}const m=h;var u=s(29967);class _ extends r().Component{constructor(e){super(e)}getPosts(e){let t=[],s={};return e.media.forEach(e=>{e.top_activity&&(s[e.top_activity.id]||(t.push(e.top_activity),s[e.top_activity.id]=!0))}),t}isCurrentPost(e){return parseInt(e)===parseInt(this.props.itemId)}render(){let e=this.props.selectedMedia.media[0],t=this.getPosts(this.props.selectedMedia),s=(0,d.Jt)(this.props.selectedMedia,"total_media",0);return r().createElement(r().Fragment,null,r().createElement("div",{className:"imglib-info-panel pretty-scrollbar show-detail
1s fs14 lh15 sl-info-panel-wrap"},r().createElement("div",{className:"header flex flex-align-center flex-space-between"},r().createElement("span",{className:"fs20 bold black"},"Info")),r().createElement("div",{className:"img-wrap flex flex-justify-center"},r().createElement("img",{src:`${e.source}?size=414x575&nocrop=1`,alt:""})),e.title&&r().createElement("div",{className:"stat"},r().createElement("label",{className:"bold"},"Caption"),e.title),r().createElement("div",{className:"stat"},r().createElement("label",{className:"bold"},"File name"),r().createElement("div",{className:"tab-row flex flex-align-center flex-gapped-15 flex-space-between w100"},r().createElement("div",{className:"td ellipsis name"},`${u.A.B_HOST}${e.original_source}`),r().createElement("div",{className:"td"},r().createElement("div",{className:"flex actions flex-align-center flex-gapped"},r().createElement("a",{className:"linksBlack sl-download-img",href:e.original_source,download:e.original_source},r().createElement("i",{className:"ics-download fs20"})),r().createElement("a",{className:"linksBlack sl-img-link",onClick:()=>navigator.clipboard.writeText(`${u.A.B_HOST}${e.original_source}`),"data-clipboard-copy":`${u.A.B_HOST}${e.original_source}`},r().createElement("i",{className:"ics-new-link-chain fs20"})))))),r().createElement("div",{className:"stat"},r().createElement("label",{className:"bold"},"IMG Details"),e.width,"x",e.height),t.length?r().createElement(r().Fragment,null,r().createElement("div",{className:"stat sl-info-panel-post-items"},r().createElement("label",{className:"bold"},"Posts"),r().createElement("ul",{className:"listul"},t.map(e=>r().createElement("li",{key:e.id},r().createElement("a",{href:e.site_url,target:"_blank"},e.summary||"[Draft]"," ",this.isCurrentPost(e.id)&&r().createElement("i",{className:"ics-check-right fs15",title:"This post"}))))),s>5&&r().createElement("em",{className:"dib grayTxt"},"+",s-5," more")),r().createElement("span",{className:"flex flex-column flex-gapped-5 flex-align-center"},r().createElement("span",{className:"button neutral-button upload-button small overflowHidden"},r().createElement("i",{className:"ics-upload"}),"Replace photo",r().createElement(o.A,{api:"imagelibrary/upload",formData:()=>({replaceAllMediaId:e.id}),onAdd:()=>this.props.disableLightbox(),onSuccess:e=>this.props.replaceMediaSource(e),multiple:!1,inputClassName:"fileupload sl-fileupload"})),r().createElement("span",{className:"fs13 lh14 error centered bold"},r().createElement("i",{className:"ics-alert"})," WARNING: photo will be replaced everywhere it is used  (",s," ",s>1?"places":"place",")"))):r().createElement("span",{className:"flex flex-column flex-align-center sl-delete-button"},r().createElement("a",{onClick:()=>{this.props.deleteMedia(e.id,this.props.selectedMedia)},className:"delete-button button neutral-button small"},r().createElement("i",{className:"ics-trash fs15 "})," Delete photo"))))}}const g=_;class y extends r().Component{constructor(e){super(e)}render(){return r().createElement(r().Fragment,null,r().createElement("div",{className:"selected-footer-tray flex-one sl-selected-tray"},r().createElement("div",{className:"flex flex-gapped-5 flex-wrap pretty-scrollbar"},this.props.media&&this.props.media.map((e,t)=>r().createElement("div",{className:"img-wrap sl-selected-item",key:"selected_item_"+e.media[0].original_file_path},r().createElement("img",{src:`${e.media[0].source}?size=414x575&nocrop=1`,alt:""}),r().createElement("input",{type:"radio",name:"toggle-clear-select",id:`toggle_clear_select_${t}`}),r().createElement("a",{onClick:()=>this.props.handleSelect(e.media[0].id),className:"del-button flex flex-center"},r().createElement("i",{className:"ics-check-wrong"})))))))}}const f=y;var b=s(70533),w=s(5556),x=s.n(w),A=s(46894),v=s.n(A),E=s(54036),S=s(8356);class k extends S.A{static deleteMedia(e){return this.deleteFromPath("imagelibrary/:id",{id:e})}}(0,i.A)(k,"apiPath","imagelibrary");var N=s(54378);class L extends r().Component{constructor(e){super(e),(0,i.A)(this,"setSearchTerm",e=>{this.setState({media:[],searchTerm:e}),this.paginationAfterKey=null,this.loadMore()}),(0,i.A)(this,"loadMore",()=>{this.state.loading||this.setState({loading:!0},()=>{b.Ay.list(k.apiPath+`?filter=${this.state.searchTerm}`,{limit:40,after:this.paginationAfterKey},!1,!0).then(e=>{this.setPaginationAfterKey(e);const t=this.getNewItems();let s=this.state.media;this.state.searchTerm||0!==s.length||s.unshift(...t),s=s.concat(e),this.setState({media:s,loading:!1,isFinished:0===e.length||Number(this.state.media.length)>=Number(e.headers.get("X-Total-Count"))})})})}),(0,i.A)(this,"selectMedia",e=>{this.setState({displayedMedia:e})}),(0,i.A)(this,"deleteMedia",(e,t)=>{k.deleteMedia(e).then(e=>{this.setState({media:v()(this.state.media,{$splice:[[t,1]]}),displayedMedia:null,selected:!1});const s=this.getNewItems(),i=s.indexOf(t);s.splice(i,1),this.setNewItems(s)})}),(0,i.A)(this,"handleSelect",e=>{let t=[...this.state.media],s=t.map(e=>e.media[0].id).indexOf(e),i=(0,d.Jt)(t[s],"is_selected",!1);
1this.props.singleSelect&&t.forEach(e=>{e.is_selected=!1}),t[s].is_selected=!i,this.setState({media:t})}),(0,i.A)(this,"uploadImage",e=>{e.is_new=!0,this.setState({media:v()(this.state.media,{$unshift:[e]}),uploadFinished:!0});let t=this.getNewItems();t.unshift(e),this.setNewItems(t)}),(0,i.A)(this,"replaceMediaSource",e=>{const t=this.state.displayedMedia,s=this.state.media,i=s.indexOf(t),a=e.media[0];(s[i].media||[]).length&&s[i].media.forEach(e=>{e.source=a.source,e.original_source=a.original_source,e.width=a.width,e.height=a.height}),this.setState({mediaList:s,displayedMedia:s[i]},this.enableLightbox)}),(0,i.A)(this,"disableLightbox",()=>{this.setState({disabledLightbox:!0})}),(0,i.A)(this,"enableLightbox",()=>{this.setState({disabledLightbox:!1})}),this.state={selected:!1,media:[],loading:!1,displayedMedia:null,totalItems:0,isFinished:!1,newImages:[],searchTerm:"",disabledLightbox:!1,uploadFinished:!0},this.paginationAfterKey=null}getSelectedMedia(){return this.state.media.filter(e=>!0===e.is_selected)}getSelectedMediaCount(){return this.getSelectedMedia().length}insertIntoPost(){let e=this.getSelectedMedia(),t=[],s=[];e.forEach(e=>{s.push({original_file_path:e.original_file_path})}),this.props.onProcessStarts(s),e.forEach(e=>{e=e.media[0],this.props.onAdd(e),e.type=this.props.type||e.type;let s=this.props.api||`posts/${this.props.itemId}/media_library`;t.push(b.Ay.create(s,{media:e}))}),t.length&&t.forEach(e=>{e.then(e=>{this.props.onSuccess(e)})}),Promise.all(t).then(e=>{this.props.onProcessEnds()})}setPaginationAfterKey(e){e.headers.get("X-Pagination-After-Key")&&(this.paginationAfterKey=e.headers.get("X-Pagination-After-Key"))}getNewItems(){let e=E.Cc.getItem("mediaLibrary_newImages");return e=e?JSON.parse(e):[],e}setNewItems(e){E.Cc.setItem("mediaLibrary_newImages",JSON.stringify(e))}render(){let e={media:this.state.media,loading:this.state.loading,is_finished:this.state.isFinished,loadMore:this.loadMore,selectMedia:this.selectMedia,handleSelect:this.handleSelect,setSearchTerm:this.setSearchTerm};return r().createElement("div",{className:"sl-image-library-wrap"},r().createElement("header",null,r().createElement("h1",null,"Image library"),r().createElement("span",{className:"button neutral-button upload-button overflowHidden "+(this.state.uploadFinished?"sl-upload-finished":"")},r().createElement("i",{className:"ics-upload"}),"Upload new",r().createElement(o.A,{api:"imagelibrary/upload",inputClassName:"fileupload sl-fileupload",onSuccess:this.uploadImage,onError:N.A.handleError,onProcessStarts:()=>this.setState({uploadFinished:!1})}))),r().createElement("div",{className:"container-box-overflow "+(this.state.disabledLightbox?"loading sl-image-library-loading":"")},r().createElement("div",{className:"imglib-split-container"},r().createElement(m,e),this.state.displayedMedia&&r().createElement(g,{itemId:this.props.itemId,deleteMedia:this.deleteMedia,selectedMedia:this.state.displayedMedia,disableLightbox:this.disableLightbox,replaceMediaSource:this.replaceMediaSource})),r().createElement(p.A,null)),r().createElement("footer",null,r().createElement(f,{media:this.getSelectedMedia(),handleSelect:this.handleSelect}),r().createElement("div",{className:"fs15 "+(this.getSelectedMediaCount()?"":"hidden")},r().createElement("label",{className:"opensans-it"},this.getSelectedMediaCount()," selected")),r().createElement("a",{onClick:()=>this.insertIntoPost(),className:"button primary-button large sl-insert-btn "+(this.getSelectedMedia().length?"":"disabled")},"Insert")))}}(0,i.A)(L,"defaultProps",{onAdd:function(){},onProcessStarts:function(){},onProcessEnds:function(){}}),L.useResponsive=!0,L.propTypes={singleSelect:x().bool,onSuccess:x().func,onAdd:x().func,itemId:x().number,type:x().string,onProcessStarts:x().func,onProcessEnds:x().func,api:x().string};const G=L},54378(e,t,s){s.d(t,{A:()=>l});var i=s(54705),a=s(8356),r=s(44171),o=s(29967),n=s(89757);class l extends a.A{static rotateImage(e,t){return this.createFromPath("media/:id/rotate",{id:e},{id:e,degree:t})}static upload(e){return this.createFromPath("media/upload",{},e)}static getBreadcrumbCombinations(e){return this.listFromPath("media/:id/combinations",{id:e})}static getMediaApproval(e){return this.getFromPath("media/:id/item_approval",{id:e})}static getMediaSkills(e){return this.getFromPath("media/:id/skills",{id:e})}static deleteMediaApproval(e){return this.deleteFromPath("media/:id/item_approval",{id:e})}static updateMedia(e,t){return this.updateFromPath("media/:id",{id:e},{title:t})}static deleteMedia(e){return this.deleteFromPath("media/:id/library",{id:e})}static prepareMedia(e,t){let s={};for(let i=0,a=e.length;i<a;i++){let t=e[i];switch(s[t.id]={id:t.id,post_activity_id:t.post_id,order:i+1,type:t.type,title:t.title||"",link:t.link||"",alt:t.alt||""},t.embed_post&&(s[t.id].embed_post=!0,s[t.id].embed_media_id=t.embed_media_id),t.video_library_id&&(s[t.id].video_library_id=t.video_library_id),t.type){case"photo":s[t.id].rotation=t.rotation||null;break;case"video":s[t.id].url=t.url}}return s}static prepareRichMedia(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=l.prepareMedia(e);for(let i=0,a=e.length;i<a;i++){let a=e[i];!0===a.deleted?s[a.id].description="":s[a.id].description=t?a.formatted_text:a.text,"video"===a.type&&(s[a.id].hash=a.hash)}return s}static orderMedia(e){for(let t=0;t<e.length;t++)e[t].order=t+1;return e}static handleError(e,t,s){if(e.message&&(alert(e.message+"\nFilename: "+s.name),e.message==n.vH?(0,r.default)("Upload Photo - Validation Error",{upload_error_type:"too small"}):(0,r.default)("Upload Photo - Validation Error",{upload_error_type:e.message})),e===n.nO){let e=s.name.split(".").pop();alert(o.A.LANG.sharebox.upload_error_type+"\nFilename: "+s.name+"\nExtension: "+e),(0,r.default)("Upload Photo - Validation Error",{upload_error_type:"unsupported type: "+e})}}}(0,i.A)(l,"apiPath","media")},64861(e,t,s){s.d(t,{q:()=>H,d:()=>j});var i=s(73372),a=s(29967),r=s(4211),o=s(70772),n=s(57761),l=s.n(n);const p={sections:[{type:"in_depth_guide",condition:e=>e.props.member.permissionGranted("in_depth_guide")},{type:"materials",condition:e=>!e.props.showScrape,show_separator:!1},{type:"stats",condition:e=>!e.props.showScrape&&0!==(0,r.Jt)(e,"props.uploadQueue.length",0)||e.props.hasMissingScrapeElement("stats")},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape||e.props.isEdit||e.props.uploadQueue.length>0||e.props.data.isDraft(e.props.data.type)&&e.props.member.permissionGranted("post_without_image")||e.state.isDirty&&(e.props.canSaveDraft||e.props.savingDraft),settings:{show_steps:!0,total_steps:2}},{type:"tooltip",condition:e=>!e.props.showScrape&&!e.props.isEdit},{type:"word_count",condition:e=>!e.props.showScrape}],validation:(e,t,s,i,n)=>{let p="",d=[];if(!e.summary||l().isEmpty(e.summary))i.length||s.permissionGranted("post_without_image")?(p=a.A.LANG.sharebox.no_title_error,d.push("summary")):(p=a.A.LANG.sharebox.empty_project_error,d.push("uploadCount"));else{e.url&&!l().isURL(e.url)&&(p=a.A.LANG.sharebox.invalid_url_error),i.length||s.permissionGranted("post_without_image")||(p=a.A.LANG.sharebox.no_photo_error,d.push("uploadCount")),n&&(p=a.A.LANG.sharebox.upload_in_progress_error,d.push("uploadProgress"));const r=(0,o.WB)(e,i)+(0,o.nS)(e,i);e.fromScrape||!(r>0&&!s.permissionGranted("unlimited_links")&&!e.formatting_enabled||e.url)||s.isMember()&&"instagram"!==s.internal_contributor||!(0,o.Zw)(t,e,i)||(d.push("url"),p=a.A.LANG.sharebox.blog_link_error)}if(!s.isAdmin()&&!s.permissionGranted("skip_post_info")){let t=["time","cost"];if(["time","cost","time_unit","difficulty"].map(s=>{e[s]&&(-1===t.indexOf(s)||l().isEmpty(e[s])||l().isInt(e[s]))||(d.push(s),p=p||a.A.LANG.sharebox.missing_details_error)}),!e.fromScrape){let t=0;
1e.materials.forEach(e=>{l().isEmpty(e.material)||t++}),t<2&&(l().isEmpty(e.materials[0].material)&&(d.push("materials0"),p=p||a.A.LANG.sharebox.missing_details_error),(0,r.Jt)(e,"materials[1].material")&&!l().isEmpty((0,r.Jt)(e,"materials[1].material"))||(d.push("materials1"),p=p||a.A.LANG.sharebox.missing_details_error))}}return{errors:d,msg:p}},initEmptyItem:e=>{if(e.materials&&e.materials.length||(e.materials=[{material:"",purchased_at:""},{material:"",purchased_at:""}]),1===e.materials.length&&e.materials.push({material:"",purchased_at:""}),!e.hashtags||e.hashtags.length<4)for(e.hashtags||(e.hashtags=[]);e.hashtags.length<4;)e.hashtags.push({hashtag:""});if(e.time){const[t,s]=e.time.split(" ");e.time=t,e.time_unit=s}e.published_at&&(e.published_at=new Date(e.published_at))}},d={sections:[{type:"in_depth_guide",condition:e=>e.props.member.permissionGranted("in_depth_guide")},{type:"materials",condition:e=>!e.props.showScrape,show_separator:!1},{type:"stats",condition:e=>!e.props.showScrape&&0!==(0,r.Jt)(e,"props.uploadQueue.length",0)||e.props.hasMissingScrapeElement("stats")},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape||e.props.isEdit||e.props.uploadQueue.length>0||e.props.data.isDraft(e.props.data.type)&&e.props.member.permissionGranted("post_without_image")||e.state.isDirty&&(e.props.canSaveDraft||e.props.savingDraft),settings:{show_steps:!0,total_steps:2}},{type:"tooltip",condition:e=>!e.props.showScrape&&!e.props.isEdit},{type:"add_hashtags",condition:e=>!e.props.showScrape},{type:"hashtags",condition:e=>!e.props.showScrape&&!!e.state.showHashtags}],validation:(e,t,s,i,n)=>{let p="",d=[];if(!e.summary||l().isEmpty(e.summary))i.length||s.permissionGranted("post_without_image")?(p=a.A.LANG.sharebox.no_title_error,d.push("summary")):(p=a.A.LANG.sharebox.empty_project_error,d.push("uploadCount"));else{e.url&&!l().isURL(e.url)&&(p=a.A.LANG.sharebox.invalid_url_error),i.length||s.permissionGranted("post_without_image")||(p=a.A.LANG.sharebox.no_photo_error,d.push("uploadCount")),n&&(p=a.A.LANG.sharebox.upload_in_progress_error,d.push("uploadProgress"));const r=(0,o.WB)(e,i)+(0,o.nS)(e,i);e.fromScrape||!(r>0&&!s.permissionGranted("unlimited_links")&&!e.formatting_enabled||e.url)||s.isMember()&&"instagram"!==s.internal_contributor||!(0,o.Zw)(t,e,i)||(d.push("url"),p=a.A.LANG.sharebox.blog_link_error)}if(!s.isAdmin()&&!s.permissionGranted("skip_post_info")){let t=["time","cost"];if(["time","cost","time_unit","difficulty"].map(s=>{e[s]&&(-1===t.indexOf(s)||l().isEmpty(e[s])||l().isInt(e[s]))||(d.push(s),p=p||a.A.LANG.sharebox.missing_details_error)}),!e.fromScrape){let t=0;e.materials.forEach(e=>{l().isEmpty(e.material)||t++}),t<2&&(l().isEmpty(e.materials[0].material)&&(d.push("materials0"),p=p||a.A.LANG.sharebox.missing_details_error),(0,r.Jt)(e,"materials[1].material")&&!l().isEmpty((0,r.Jt)(e,"materials[1].material"))||(d.push("materials1"),p=p||a.A.LANG.sharebox.missing_details_error))}}return{errors:d,msg:p}},initEmptyItem:e=>{if(e.materials&&e.materials.length||(e.materials=[{material:"",purchased_at:""},{material:"",purchased_at:""}]),1===e.materials.length&&e.materials.push({material:"",purchased_at:""}),!e.hashtags||e.hashtags.length<4)for(e.hashtags||(e.hashtags=[]);e.hashtags.length<4;)e.hashtags.push({hashtag:""});if(e.time){const[t,s]=e.time.split(" ");e.time=t,e.time_unit=s}e.published_at&&(e.published_at=new Date(e.published_at))}},c={sections:[{type:"in_depth_guide",condition:e=>e.props.member.permissionGranted("in_depth_guide")},{type:"materials",condition:e=>!e.props.showScrape,show_separator:!1},{type:"stats",condition:e=>!e.props.showScrape&&0!==(0,r.Jt)(e,"props.uploadQueue.length",0)||e.props.hasMissingScrapeElement("stats")},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape||e.props.isEdit||e.props.uploadQueue.length>0||e.props.data.isDraft(e.props.data.type)&&e.props.member.permissionGranted("post_without_image")||e.state.isDirty&&(e.props.canSaveDraft||e.props.savingDraft),settings:{show_steps:!0,total_steps:2}},{type:"tooltip",condition:e=>!e.props.showScrape&&!e.props.isEdit},{type:"add_hashtags",condition:e=>!e.props.showScrape},{type:"hashtags",condition:e=>!e.props.showScrape&&!!e.state.showHashtags}],validation:(e,t,s,i,n)=>{let p="",d=[];if(!e.summary||l().isEmpty(e.summary))i.length||s.permissionGranted("post_without_image")?(p=a.A.LANG.sharebox.no_title_error,d.push("summary")):(p=a.A.LANG.sharebox.empty_project_error,d.push("uploadCount"));else{e.url&&!l().isURL(e.url)&&(p=a.A.LANG.sharebox.invalid_url_error),i.length||s.permissionGranted("post_without_image")||(p=a.A.LANG.sharebox.no_photo_error,d.push("uploadCount")),n&&(p=a.A.LANG.sharebox.upload_in_progress_error,d.push("uploadProgress"));const r=(0,o.WB)(e,i)+(0,o.nS)(e,i);e.fromScrape||!(r>0&&!s.permissionGranted("unlimited_links")&&!e.formatting_enabled||e.url)||s.isMember()&&"instagram"!==s.internal_contributor||!(0,o.Zw)(t,e,i)||(d.push("url"),p=a.A.LANG.sharebox.blog_link_error)}if(!s.isAdmin()&&!s.permissionGranted("skip_post_info")){let t=["time","cost"];if(["time","cost","time_unit","difficulty"].map(s=>{e[s]&&(-1===t.indexOf(s)||l().isEmpty(e[s])||l().isInt(e[s]))||(d.push(s),p=p||a.A.LANG.sharebox.missing_details_error)}),!e.fromScrape){let t=0;
1e.materials.forEach(e=>{l().isEmpty(e.material)||t++}),t<2&&(l().isEmpty(e.materials[0].material)&&(d.push("materials0"),p=p||a.A.LANG.sharebox.missing_details_error),(0,r.Jt)(e,"materials[1].material")&&!l().isEmpty((0,r.Jt)(e,"materials[1].material"))||(d.push("materials1"),p=p||a.A.LANG.sharebox.missing_details_error))}}return{errors:d,msg:p}},initEmptyItem:e=>{if(e.materials&&e.materials.length||(e.materials=[{material:"",purchased_at:""},{material:"",purchased_at:""}]),1===e.materials.length&&e.materials.push({material:"",purchased_at:""}),!e.hashtags||e.hashtags.length<4)for(e.hashtags||(e.hashtags=[]);e.hashtags.length<4;)e.hashtags.push({hashtag:""});if(e.time){const[t,s]=e.time.split(" ");e.time=t,e.time_unit=s}e.published_at&&(e.published_at=new Date(e.published_at))}};var h=s(25529),m=s(6155);const u={sections:[{type:"scrape_post",condition:e=>!!e.props.showScrape,wrapper:{title:"Import blog post",hide_separator:!0},settings:{text:"Paste your blog link below to to copy the recipe directly from your blog (plus photos!) with one click! We support Wordpress 'Recipe Maker,' 'Create by Mediavine', 'Tasty', 'ZipList', 'Cooked', 'WP Ultimate Recipe', 'Zip Recipes', and 'WPZOOM' Wordpress plugins",link_title:"Blog link",link_placeholder:"https://www.mysite.com/best-chocolate-cookies",button_text:"Import post"}},{type:"after_scrape_header",condition:e=>e.props.hasMissingScrapeElement(),settings:{header:a.A.LANG.sharebox.scrape_final_info}},{type:"post_top",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("post_top"),wrapper:{title:"The story of your recipe",hide_separator:!0},settings:{title_placeholder:"Name your recipe",description_placeholder:"Add an introduction"}},{type:"media",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("media")},{type:"upload_buttons",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("media"),wrapper:{hide_separator:!1}},{type:"word_count",condition:e=>!e.props.showScrape},{type:"recipe_info",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("recipe_info"),wrapper:{title:"Recipe Info"}},{type:"instructions",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("instructions"),wrapper:{title:"Instructions",subtitle:"If there are multiple parts of your recipe (like crust, filling, and topping), you can create additional instruction lists to make the recipe easier to follow",title_placeholder:"Ex/ For the crust",ex_placeholder:"Ex/ Heat the oven to 425°F\n\nEx/ In a small bowl, whisk together the banana, cream, egg, and vanilla"}},{type:"ingredients",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("ingredients"),wrapper:{title:"Ingredients",subtitle:"If there are multiple parts of your recipe (like crust, filling, and topping), you can create additional instruction lists to make the recipe easier to follow",title_placeholder:"Ex/ For the crust",ex_placeholder:"Ingredient (ex/ 1 cup flour)\n\nIngredient (ex/ 1 stick butter)"}},{type:"tips",condition:e=>!e.props.showScrape,wrapper:{title:"Tips"}},{type:"scrape_recipe",condition:e=>!e.props.showScrape,wrapper:{pretitle:"New!",title:"Import recipe info from blog (optional)",subtitle:"We support the following Wordpress plugins: WP Recipe Maker, Create by Mediavine, Tasty, ZipList, Cooked, WP Ultimate Recipe, Zip Recipes, and WPZOOM."}},{type:"blogger_url",condition:e=>!e.props.showScrape,wrapper:{title:"Credit",hide_separator:!0},settings:{blog_text:"Add a link to the original recipe post on your blog or social channel",link:!1,in_vertical:!0}},{type:"schedule",condition:e=>!e.props.showScrape,settings:{text:"Schedule posting this recipe"}},{type:"preview_post_btns",condition:e=>(e.showDraftFooter()||e.props.isEdit)&&(e.props.uploadQueue.length>0||e.props.member.permissionGranted("post_without_image"))},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape&&e.props.hasMissingScrapeElement()||!e.props.showScrape&&(e.props.isEdit||e.props.uploadQueue.length>0||e.props.member.permissionGranted("post_without_image")),settings:{show_steps:!1}},{type:"tooltip",condition:e=>!e.props.showScrape&&!e.props.isEdit}],general:{project_name:"recipe",header:"Post a Recipe",wrapper_class:"foodtalk",exit_text:"Exit posting recipe",allow_links:!0,description_reminder_title:"Description Reminder",description_reminder_txt:"Want to add a de
1scription to your recipe so others can learn more about it?",description_reminder_min_words:0},success:{header:"Recipe Posted!",text:'The more you know, the more you can create. Thereâs no\nend to imagination in the kitchen." - Julia Child',view_now:"View recipe now!",activity_type:"recipe"},reminders:["unidentified_blog","description","minimum_words"],validation:(e,t,s,i,a)=>{let o="",n=[];!e.summary||l().isEmpty(e.summary)?i.length||s.permissionGranted("post_without_image")?(o="Please give your recipe a title",n.push("summary")):(o="Oops! It looks like you're missing some recipe details",n.push("uploadCount")):(e.url&&!l().isURL(e.url)&&(o="Enter a valid URL or leave URL field empty"),i.length||s.permissionGranted("post_without_image")||(o="Oops! It looks like you're missing a photo for your recipe",n.push("uploadCount")),a&&(o="Upload is still in progress",n.push("uploadProgress"))),(0,m.Vi)(e.sections,n,s),n.length&&(o=o||"Oops! It looks like you're missing some recipe details");let p=e.sections.filter(e=>"ingredients"===e.type);return(0,m.yq)(p)<2&&!s.permissionGranted("skip_post_info")&&(p[0].ingredients[0].text&&!l().isEmpty(p[0].ingredients[0].text)||(n.push("ingredients_0_0"),o=o||"Oops! It looks like you're missing some recipe details"),(0,r.Jt)(p[0],"ingredients[1].text")&&!l().isEmpty(p[0].ingredients[1].text)||(n.push("ingredients_0_1"),o=o||"Oops! It looks like you're missing some recipe details")),{errors:n,msg:o}},initEmptyItem:e=>{e.sections||(e.sections=[]),e.sections.find(e=>"recipe_info"===e.type)||e.sections.push({type:"recipe_info",title:"",order:0,recipe_info:[{prep_time:"",prep_time_unit:"",cooking_time:"",cooking_time_unit:"",yield:"",yield_unit:"",cid:(0,h.t)()}]}),e.sections.find(e=>"recipe_info"===e.type).cid=(0,h.t)(),(0,m.U$)(e),(0,m.tE)(e),e.sections.find(e=>"tips"===e.type)||e.sections.push({type:"tips",title:"",order:3,tips:[]}),e.sections.filter(e=>"tips"===e.type).map((e,t)=>{for(e.cid=(0,h.t)();e.tips.length<2;)e.tips.push({text:"",order:e.tips.length,cid:(0,h.t)()})}),e.published_at&&(e.published_at=new Date(e.published_at))},canSubmit(){return!!(this.props.uploadQueue.length>0||this.props.member.permissionGranted("post_without_image"))}},_={sections:[{type:"scrape_post",wrapper:{title:"Import blog post",hide_separator:!0},condition:e=>!!e.props.showScrape,settings:{text:"Paste your blog link below to copy over the whole post (plus photos!) with one click!",link_title:"Blog link",link_placeholder:"https://www.mysite.com",button_text:"Import post"}},{type:"after_scrape_header",condition:e=>e.props.hasMissingScrapeElement(),settings:{header:a.A.LANG.sharebox.scrape_final_info}},{type:"post_top",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("post_top"),settings:{title_placeholder:"Give your tutorial a title",description_placeholder:"Give a brief introduction... (We recommend at least 30 words for optimal visibility)"}},{type:"instructions",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("instructions"),wrapper:{title:"Instructions",subtitle:"If there are multiple parts of your recipe, you can create additional instruction lists to make the recipe easier to follow",title_placeholder:"Ex/ For the soap",ex_placeholder:"Ex/ Melt the soap\n\nEx/ Add 1 teaspoon of fragrance per pound of soap",hide_separator:!0}},{type:"ingredients",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("ingredients"),wrapper:{title:"Ingredients",subtitle:"If there are multiple parts of your recipe, you can create additional instruction lists to make the recipe easier to follow",title_placeholder:"Ex/ For the soap",ex_placeholder:"Ingredient (ex/ clear melt soap)\n\nIngredient (ex/ fragrance oil)"}},{type:"media",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("media"),settings:{header:"Drag and drop photos with corresponding text areas to reorder them."}},{type:"upload_buttons",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("media")},{type:"word_count",condition:e=>!e.props.showScrape&&0!==(0,r.Jt)(e,"props.uploadQueue.length",0)},{type:"materials",condition:e=>!e.props.showScrape,show_separator:!0},{type:"stats",condition:e=>!e.props.showScrape&&0!==(0,r.Jt)(e,"props.uploadQueue.length",0)||e.props.hasMissingScrapeElement("stats")},{type:"blogger_url",condition:e=>!e.props.showScrape&&e.props.uploadQueue.length>0,settings:{blog_text:"To add your Blog URL and hyperlinks, your project should contain at least 3 photos and 100 words in total. ",link:!0}},{type:"tooltip",condition:e=>!e.props.showScrape&&!e.props.isEdit},{type:"schedule",settings:{text:"Schedule Tutorial"}},{type:"add_hashtags",condition:e=>!e.props.showScrape},{type:"hashtags",condition:e=>!e.props.showScrape&&!!e.state.showHashtags}
1,{type:"add_link_cta"},{type:"preview_post_btns",condition:e=>(e.showDraftFooter()||e.props.isEdit)&&(e.props.uploadQueue.length>0||e.props.member.permissionGranted("post_without_image"))},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape||e.props.isEdit||e.props.uploadQueue.length>0||e.props.data.isDraft(e.props.data.type)&&e.props.member.permissionGranted("post_without_image")||e.state.isDirty&&(e.props.canSaveDraft||e.props.savingDraft),settings:{show_steps:!0,total_steps:2}},{type:"show_recipe_toggle"}],emptyItem:{},general:{project_name:"tutorial",header:"Post a Tutorial",wrapper_class:"upstyle",title_placeholder:"Give your tutorial a title",description_placeholder:"Give a brief introduction... (We recommend at least 30 words for optimal visibility)",allow_links:!0,exit_text:"Exit posting tutorial",description_reminder_title:"Your word count is a bit low!",description_reminder_txt:"To get your tutorials in front of our readers, it will need to have at least 180 words.",description_reminder_min_words:180},success:{header:"Tutorial Posted!",text:"We like your style!",view_now:"View now!",img_with_link:!0,activity_type:"tutorial"},reminders:["unidentified_blog","description"],validation:(e,t,s,i,a)=>{let r="",n=[];if(!e.summary||l().isEmpty(e.summary))i.length||s.permissionGranted("post_without_image")?(r="Please give your project a title",n.push("summary")):(r="Your project is empty - please include a title & photos",n.push("uploadCount"));else{e.url&&!l().isURL(e.url)&&(r="Enter a valid URL or leave URL field empty"),i.length||s.permissionGranted("post_without_image")||(r="Please include at least one photo or video",n.push("uploadCount")),a&&(r="Upload is still in progress",n.push("uploadProgress"));const p=(0,o.WB)(e,i)+(0,o.nS)(e,i);!e.fromScrape&&p>0&&!s.permissionGranted("unlimited_links")&&(0,o.Zw)(t,e,i)&&(n.push("url"),r="In order to include hyperlinks or a blog link, your project must contain at least 3 photos and 100 words.")}if(!s.isAdmin()&&!s.permissionGranted("skip_post_info")){let t=["time","cost","time_unit","difficulty"],s=["time","cost"];t.map(i=>{e[i]&&-1!==s.indexOf(i)&&(l().isInt(e[i])?-1===t.indexOf(i+"_unit")||e[i+"_unit"]||(n.push(i+"_unit"),r=r||"Oops! It looks like you're missing some project details."):(n.push(i),r=r||"Oops! It looks like you're missing some project details."))})}return{errors:n,msg:r}},initEmptyItem:e=>{if(e.materials&&e.materials.length||(e.materials=[{material:"",purchased_at:""},{material:"",purchased_at:""}]),1===e.materials.length&&e.materials.push({material:"",purchased_at:""}),!e.hashtags||e.hashtags.length<4)for(;e.hashtags.length<4;)e.hashtags.push({hashtag:""});if(e.time){const[t,s]=e.time.split(" ");e.time=t,e.time_unit=s}(0,m.tE)(e),(0,m.U$)(e),e.published_at&&(e.published_at=new Date(e.published_at))},canSubmit(){return!!(this.props.uploadQueue.length>0||this.props.member.permissionGranted("post_without_image"))}};var g=s(40184);const y={sections:[{type:"scrape_post",wrapper:{title:a.A.LANG.sharebox.import_blog_button,hide_separator:!0},condition:e=>!!e.props.showScrape,settings:{text:a.A.LANG.sharebox.scrape_subtext,link_title:a.A.LANG.sharebox.scrape_blog_link,link_placeholder:"https://www.mysite.com",button_text:a.A.LANG.sharebox.import_post_button}},{type:"after_scrape_header",condition:e=>e.props.hasMissingScrapeElement(),settings:{header:a.A.LANG.sharebox.scrape_final_info}},{type:"post_top",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("post_top"),settings:{title_placeholder:a.A.LANG.sharebox.title_placeholder,description_placeholder:a.A.LANG.sharebox.description_placeholder}},{type:"media",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("media"),settings:{header:a.A.LANG.sharebox.drag_drop_photos}},{type:"upload_buttons",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("media")},{type:"word_count",condition:e=>!e.props.showScrape&&0!==(0,r.Jt)(e,"props.uploadQueue.length",0)},{type:"blogger_url",condition:e=>!e.props.showScrape&&e.props.uploadQueue.length>0,settings:{blog_text:a.A.LANG.sharebox.add_blogger_link,link:!0}},{type:"schedule",settings:{text:a.A.LANG.sharebox.schedule_project}},{type:"add_link_cta"},{type:"preview_post_btns",condition:e=>(e.showDraftFooter()||e.props.isEdit)&&(e.props.uploadQueue.length>0||e.props.member.permissionGranted("post_without_image"))},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape||e.props.isEdit||e.props.uploadQueue.length>0||e.props.data.isDraft(e.props.data.type)&&e.props.member.permissionGranted("post_without_image")||e.state.isDirty&&(e.props.canSaveDraft||e.props.savingDraft),settings:{show_steps:!1,total_steps:1}},{type:"send_push_notification",condition:e=>((0,r.Jt)(e.props,"uploadQueue.length",0)>0||(0,r.Jt)(e.props,"structures.length",0)>0)&&(0,g.lX)(e.props.member)},{type:"send_to_twitter",condition:e=>((0,r.Jt)(e.props,"uploadQueue.length",0)>0||(0,r.Jt)(e.props,"structures.length",0)>0)&&(0,g.f2)(e.props.member)}],emptyItem:{},general:{project_name:a.A.LANG.general.project,header:a.A.LANG.sharebox.header,wrapper_class:"",title_placeholder:a.A.LANG.sharebox.title_placeholder,description_placeholder:a.A.LANG.sharebox.description_placeholder,allow_links:!1,description_reminder_title:a.A.LANG.sharebox.description_reminder_title,de
1scription_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:a.A.LANG.sharebox.success_title,text:a.A.LANG.sharebox.success_subtext,unpublished_text:a.A.LANG.sharebox.scheduled_success,view_now:a.A.LANG.sharebox.view_project_button,activity_type:a.A.LANG.general.project},reminders:["unidentified_blog","description"],validation:(e,t,s,i,r)=>{let n="",p=[];if(!e.summary||l().isEmpty(e.summary))n=a.A.LANG.sharebox.no_title_error,p.push("summary");else{e.url&&!l().isURL(e.url)&&(n=a.A.LANG.sharebox.invalid_url_error),i.length||s.permissionGranted("post_without_image")||(n=a.A.LANG.sharebox.no_photo_error,p.push("uploadCount")),r&&(n=a.A.LANG.sharebox.upload_in_progress_error,p.push("uploadProgress"));const d=(0,o.WB)(e,i)+(0,o.nS)(e,i);e.fromScrape||!(d>0&&!s.permissionGranted("unlimited_links")&&!e.formatting_enabled||e.url)||s.isMember()&&"instagram"!==s.internal_contributor||!(0,o.Zw)(t,e,i)||(p.push("url"),n=a.A.LANG.sharebox.blog_link_error)}return{errors:p,msg:n}},initEmptyItem:e=>{if(!e.hashtags||e.hashtags.length<4)for(e.hashtags||(e.hashtags=[]);e.hashtags.length<4;)e.hashtags.push({hashtag:""});e.published_at&&(e.published_at=new Date(e.published_at))},canSubmit(){return!!(this.props.uploadQueue.length>0||this.props.member.permissionGranted("post_without_image"))}},f={sections:[{type:"add_hashtags",condition:e=>!e.props.showScrape},{type:"hashtags",condition:e=>!e.props.showScrape&&!!e.state.showHashtags}],general:{project_name:"story",header:"Post a story",wrapper_class:"",allow_links:!0,exit_text:"Exit posting story",description_reminder_title:a.A.LANG.sharebox.description_reminder_title,description_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"You did it!",text:"Your story has been created!",view_now:"View now",activity_type:"story"}},b={sections:[{type:"post_top",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("post_top"),settings:{title_placeholder:"Give your article a title",description_placeholder:"Give a brief introduction... (We recommend at least 30 words for optimal visibility)"}},{type:"add_meta_tags",condition:e=>!e.props.showScrape},{type:"meta_data",condition:e=>!e.props.showScrape&&!!e.state.showMetaData},{type:"preview_post_btns",condition:e=>e.showDraftFooter()||e.props.isEdit},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape||e.props.isEdit||e.props.uploadQueue.length>0||e.props.data.isDraft(e.props.data.type)&&e.props.member.permissionGranted("post_without_image")||e.state.isDirty&&(e.props.canSaveDraft||e.props.savingDraft),settings:{show_steps:!1,total_steps:1}},{type:"tooltip",condition:e=>!e.props.showScrape&&!e.props.isEdit},{type:"add_hashtags",condition:e=>!e.props.showScrape},{type:"hashtags",condition:e=>!e.props.showScrape&&!!e.state.showHashtags}],validation:(e,t,s,i,r)=>{let o="",n=[];return!e.summary||l().isEmpty(e.summary)?(o=a.A.LANG.sharebox.no_title_error,n.push("summary")):(e.url&&!l().isURL(e.url)&&(o=a.A.LANG.sharebox.invalid_url_error),r&&(o=a.A.LANG.sharebox.upload_in_progress_error,n.push("uploadProgress"))),{errors:n,msg:o}},initEmptyItem:e=>{if(!e.hashtags||e.hashtags.length<4)for(e.hashtags||(e.hashtags=[]);e.hashtags.length<4;)e.hashtags.push({hashtag:""});if(!e.meta_data||!e.meta_data.length)for(e.meta_data||(e.meta_data=[]);e.meta_data.length<2;)e.meta_data.push({key:"",value:"",type:"specs"});e.published_at&&(e.published_at=new Date(e.published_at))},canSubmit:()=>!0,general:{project_name:"article",header:"Post an article",wrapper_class:"",allow_links:!0,description_reminder_title:a.A.LANG.sharebox.description_reminder_title,description_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"Article Posted!",text:"Your article will be shared with pet enthusiasts around the world!",view_now:"View now",activity_type:"article"}},w={sections:[{type:"post_top",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("post_top"),settings:{title_placeholder:"Give your article a title",description_placeholder:"Give a brief introduction... (We recommend at least 30 w
1ords for optimal visibility)"}},{type:"preview_post_btns",condition:e=>e.showDraftFooter()||e.props.isEdit},{type:"tooltip",condition:e=>!e.props.showScrape&&!e.props.isEdit},{type:"add_hashtags",condition:e=>!e.props.showScrape},{type:"hashtags",condition:e=>!e.props.showScrape&&!!e.state.showHashtags}],validation:(e,t,s,i,r)=>{let o="",n=[];return!e.summary||l().isEmpty(e.summary)?(o=a.A.LANG.sharebox.no_title_error,n.push("summary")):(e.url&&!l().isURL(e.url)&&(o=a.A.LANG.sharebox.invalid_url_error),r&&(o=a.A.LANG.sharebox.upload_in_progress_error,n.push("uploadProgress"))),{errors:n,msg:o}},canSubmit:()=>!0,general:{project_name:"article",header:"Post an article",wrapper_class:"",allow_links:!0,description_reminder_title:a.A.LANG.sharebox.description_reminder_title,description_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"Article Posted!",text:"Your article will be shared with RV enthusiasts around the world!",view_now:"View now",activity_type:"article"}},x={sections:[{type:"add_meta_tags",condition:e=>!e.props.showScrape},{type:"meta_data",condition:e=>!e.props.showScrape&&!!e.state.showMetaData},{type:"preview_post_btns",condition:e=>e.showDraftFooter()||e.props.isEdit},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape||e.props.isEdit||e.props.uploadQueue.length>0||e.props.data.isDraft(e.props.data.type)&&e.props.member.permissionGranted("post_without_image")||e.state.isDirty&&(e.props.canSaveDraft||e.props.savingDraft),settings:{show_steps:!1,total_steps:1}},{type:"add_hashtags",condition:e=>!e.props.showScrape},{type:"hashtags",condition:e=>!e.props.showScrape&&!!e.state.showHashtags}],validation:(e,t,s,i,r)=>{let o="",n=[];return!e.summary||l().isEmpty(e.summary)?(o=a.A.LANG.sharebox.no_title_error,n.push("summary")):(e.url&&!l().isURL(e.url)&&(o=a.A.LANG.sharebox.invalid_url_error),r&&(o=a.A.LANG.sharebox.upload_in_progress_error,n.push("uploadProgress"))),{errors:n,msg:o}},initEmptyItem:e=>{if(!e.hashtags||e.hashtags.length<4)for(e.hashtags||(e.hashtags=[]);e.hashtags.length<4;)e.hashtags.push({hashtag:""});if(!e.meta_data||!e.meta_data.length)for(e.meta_data||(e.meta_data=[]);e.meta_data.length<2;)e.meta_data.push({key:"",value:"",type:"specs"});e.published_at&&(e.published_at=new Date(e.published_at))},canSubmit:()=>!0,general:{project_name:"article",header:"Post an article",wrapper_class:"",allow_links:!0,description_reminder_title:a.A.LANG.sharebox.description_reminder_title,description_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"Article Posted!",text:"Your article will be shared with car enthusiasts around the world!",view_now:"View now",activity_type:"article"}};var A=s(3587),v=s.n(A);const E={sections:[{type:"post_top",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("post_top"),settings:{title_placeholder:"Give your article a title",description_placeholder:"Give a brief introduction... (We recommend at least 30 words for optimal visibility)"}},{type:"add_meta_tags",condition:e=>!e.props.showScrape},{type:"meta_data",condition:e=>!e.props.showScrape&&!!e.state.showMetaData},{type:"preview_post_btns",condition:e=>e.showDraftFooter()||e.props.isEdit},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape||e.props.isEdit||e.props.uploadQueue.length>0||e.props.data.isDraft(e.props.data.type)&&e.props.member.permissionGranted("post_without_image")||e.state.isDirty&&(e.props.canSaveDraft||e.props.savingDraft),settings:{show_steps:!1,total_steps:1}},{type:"add_hashtags",condition:e=>!e.props.showScrape},{type:"hashtags",condition:e=>!e.props.showScrape&&!!e.state.showHashtags}],validation:(e,t,s,i,r)=>{let o="",n=[];return!e.summary||l().isEmpty(e.summary)?(o=a.A.LANG.sharebox.no_title_error,n.push("summary")):(e.url&&!l().isURL(e.url)&&(o=a.A.LANG.sharebox.invalid_url_error),r&&(o=a.A.LANG.sharebox.upload_in_progress_error,n.push("uploadProgress"))),{errors:n,msg:o}},initEmptyItem:e=>{if(!e.hashtags||e.hashtags.length<4)for(e.hashtags||(e.hashtags=[]);e.hashtags.length<4;)e.hashtags.push({hashtag:""});if(!e.meta_data||!e.meta_data.length)for(e.meta_data||(e.meta_data=[]);e.meta_data.length<2;)e.meta_data.push({key:"",value:"",type:"specs"});e.published_at&&(e.published_at=new Date(e.published_at))},canSubmit:()=>!0,general:{project_name:"article",header:"Post an article",wrapper_class:"",allow_links:!0,description_reminder_title:a.A.LANG.sharebox.description_reminder_title,de
1scription_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"Article Posted!",text:"Your article will be shared with ATV enthusiasts around the world!",view_now:"View now",activity_type:"article"}},S={sections:[],success:{header:"Classified Posted!",text:"Your classified has been created!",unpublished_text:"Your classified will be posted on the day it's created!",view_now:"View classified now!",activity_type:"Classified"},validation:(e,t,s,i,r)=>{let n="",p=[],d=e.classified;if(!e.summary||l().isEmpty(e.summary))n=a.A.LANG.sharebox.no_title_error,p.push("summary");else{e.url&&!l().isURL(e.url)&&(n=a.A.LANG.sharebox.invalid_url_error),r&&(n=a.A.LANG.sharebox.upload_in_progress_error,p.push("uploadProgress")),i.length||s.permissionGranted("post_without_image")||(n=a.A.LANG.sharebox.no_photo_error,p.push("uploadCount"));const c=(0,o.WB)(e,i)+(0,o.nS)(e,i);e.fromScrape||!(c>0&&!s.permissionGranted("unlimited_links")&&!e.formatting_enabled||e.url)||s.isMember()&&"instagram"!==s.internal_contributor||!(0,o.Zw)(t,e,i)||(p.push("url"),n=a.A.LANG.sharebox.blog_link_error),d.price||(n="Missing price",p.push("price")),d.color||(n="Missing color",p.push("color")),d.year||(n="Missing year",p.push("year")),d.mileage||(n="Missing mileage",p.push("mileage")),d.manufacturer||(n="Missing manufacturer",p.push("manufacturer")),d.model||(n="Missing model",p.push("model")),d.price&&null==d.price.match(/^\d+(?:[.]\d+)?$/)&&(n="Price must be a number",p.push("price")),d.mileage&&null==d.mileage.match(/^[0-9]+$/)&&(n="Mileage must be a number",p.push("mileage")),e.mediaOwner||(n="Please accept our terms and conditions to continue",p.push("terms"))}return{errors:p,msg:n}},canSubmit:()=>!0,general:{allow_links:!0}},k={sections:[{type:"post_top",settings:{title_placeholder:"Give your article a title"}},{type:"add_meta_tags",condition:e=>!e.props.showScrape},{type:"meta_data",condition:e=>!e.props.showScrape&&!!e.state.showMetaData},{type:"preview_post_btns",condition:e=>e.showDraftFooter()||e.props.isEdit},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape||e.props.isEdit||e.props.uploadQueue.length>0||e.props.data.isDraft(e.props.data.type)&&e.props.member.permissionGranted("post_without_image")||e.state.isDirty&&(e.props.canSaveDraft||e.props.savingDraft),settings:{show_steps:!1,total_steps:1}},{type:"add_hashtags",condition:e=>!e.props.showScrape},{type:"hashtags",condition:e=>!e.props.showScrape&&!!e.state.showHashtags}],validation:(e,t,s,i,r)=>{let o="",n=[];return!e.summary||l().isEmpty(e.summary)?(o=a.A.LANG.sharebox.no_title_error,n.push("summary")):(e.url&&!l().isURL(e.url)&&(o=a.A.LANG.sharebox.invalid_url_error),r&&(o=a.A.LANG.sharebox.upload_in_progress_error,n.push("uploadProgress"))),{errors:n,msg:o}},initEmptyItem:e=>{if(!e.hashtags||e.hashtags.length<4)for(e.hashtags||(e.hashtags=[]);e.hashtags.length<4;)e.hashtags.push({hashtag:""});if(!e.meta_data||!e.meta_data.length)for(e.meta_data||(e.meta_data=[]);e.meta_data.length<2;)e.meta_data.push({key:"",value:"",type:"specs"});e.published_at&&(e.published_at=new Date(e.published_at))},canSubmit:()=>!0,general:{project_name:"article",header:"Post an article",wrapper_class:"",allow_links:!0,description_reminder_title:a.A.LANG.sharebox.description_reminder_title,description_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"Article Posted!",text:"Your article will be shared with motorcycle enthusiasts around the world!",view_now:"View now",activity_type:"article"}},N={sections:[{type:"post_top",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("post_top"),settings:{title_placeholder:"Give your tutorial a title",description_placeholder:"Give a brief introduction... (We recommend at least 30 words for optimal visibility)"}},{type:"schedule",settings:{text:"Schedule Tutorial"}}],general:{project_name:"tutorial",header:"Post a tutorial",wrapper_class:"",allow_links:!0,exit_text:"Exit posting tutorial",description_reminder_title:a.A.LANG.sharebox.description_reminder_title,de
1scription_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"Tutorial Posted!",text:"You just made this site a prettier place!",view_now:"View now",activity_type:"tutorial"}},L={sections:[{type:"post_top",settings:{title_placeholder:"Give your article a title"}},{type:"add_meta_tags",condition:e=>!e.props.showScrape},{type:"meta_data",condition:e=>!e.props.showScrape&&!!e.state.showMetaData},{type:"preview_post_btns",condition:e=>e.showDraftFooter()||e.props.isEdit},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape||e.props.isEdit||e.props.uploadQueue.length>0||e.props.data.isDraft(e.props.data.type)&&e.props.member.permissionGranted("post_without_image")||e.state.isDirty&&(e.props.canSaveDraft||e.props.savingDraft),settings:{show_steps:!1,total_steps:1}},{type:"add_hashtags",condition:e=>!e.props.showScrape},{type:"hashtags",condition:e=>!e.props.showScrape&&!!e.state.showHashtags},{type:"send_push_notification",condition:()=>!1}],validation:(e,t,s,i,r)=>{let o="",n=[];return!e.summary||l().isEmpty(e.summary)?(o=a.A.LANG.sharebox.no_title_error,n.push("summary")):(e.url&&!l().isURL(e.url)&&(o=a.A.LANG.sharebox.invalid_url_error),r&&(o=a.A.LANG.sharebox.upload_in_progress_error,n.push("uploadProgress"))),{errors:n,msg:o}},initEmptyItem:e=>{if(!e.hashtags||e.hashtags.length<4)for(e.hashtags||(e.hashtags=[]);e.hashtags.length<4;)e.hashtags.push({hashtag:""});if(!e.meta_data||!e.meta_data.length)for(e.meta_data||(e.meta_data=[]);e.meta_data.length<2;)e.meta_data.push({key:"",value:"",type:"specs"});e.published_at&&(e.published_at=new Date(e.published_at))},canSubmit:()=>!0,general:{project_name:"article",header:"Post an article",wrapper_class:"",allow_links:!0,description_reminder_title:a.A.LANG.sharebox.description_reminder_title,description_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"Article Posted!",text:"Your article will be shared with car enthusiasts around the world!",view_now:"View now",activity_type:"article"}},G={sections:[{type:"post_top",settings:{title_placeholder:"Give your article a title"}},{type:"add_meta_tags",condition:e=>!e.props.showScrape},{type:"meta_data",condition:e=>!e.props.showScrape&&!!e.state.showMetaData},{type:"preview_post_btns",condition:e=>e.showDraftFooter()||e.props.isEdit},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape||e.props.isEdit||e.props.uploadQueue.length>0||e.props.data.isDraft(e.props.data.type)&&e.props.member.permissionGranted("post_without_image")||e.state.isDirty&&(e.props.canSaveDraft||e.props.savingDraft),settings:{show_steps:!1,total_steps:1}},{type:"add_hashtags",condition:e=>!e.props.showScrape},{type:"hashtags",condition:e=>!e.props.showScrape&&!!e.state.showHashtags},{type:"send_push_notification",condition:()=>!1}],validation:(e,t,s,i,r)=>{let o="",n=[];return!e.summary||l().isEmpty(e.summary)?(o=a.A.LANG.sharebox.no_title_error,n.push("summary")):(e.url&&!l().isURL(e.url)&&(o=a.A.LANG.sharebox.invalid_url_error),r&&(o=a.A.LANG.sharebox.upload_in_progress_error,n.push("uploadProgress"))),{errors:n,msg:o}},initEmptyItem:e=>{if(!e.hashtags||e.hashtags.length<4)for(e.hashtags||(e.hashtags=[]);e.hashtags.length<4;)e.hashtags.push({hashtag:""});if(!e.meta_data||!e.meta_data.length)for(e.meta_data||(e.meta_data=[]);e.meta_data.length<2;)e.meta_data.push({key:"",value:"",type:"specs"});e.published_at&&(e.published_at=new Date(e.published_at))},canSubmit:()=>!0,general:{project_name:"article",header:"Post an article",wrapper_class:"",allow_links:!0,description_reminder_title:a.A.LANG.sharebox.description_reminder_title,description_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"Article Posted!",text:"Your article will be shared with Home Improvement enthusiasts and Housekeeping fans worldwide!",view_now:"View now",activity_type:"article"}},M={sections:[{type:"post_top",settings:{title_placeholder:"Give your article a title"}},{type:"add_meta_tags",condition:e=>!e.props.showScrape},{type:"meta_data",condition:e=>!e.props.showScrape&&!!e.state.showMetaData},{type:"preview_post_btns",condition:e=>e.showDraftFooter()||e.props.isEdit},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape||e.props.isEdit||e.props.uploadQueue.length>0||e.props.data.isDraft(e.props.data.type)&&e.props.member.permissionGranted("post_without_image")||e.state.isDirty&&(e.props.canSaveDraft||e.props.savingDraft),settings:{show_steps:!1,total_steps:1}},{type:"add_hashtags",condition:e=>!e.props.showScrape},{type:"hashtags",condition:e=>!e.props.showScrape&&!!e.state.showHashtags}
1,{type:"send_push_notification",condition:()=>!1}],validation:(e,t,s,i,r)=>{let o="",n=[];return!e.summary||l().isEmpty(e.summary)?(o=a.A.LANG.sharebox.no_title_error,n.push("summary")):(e.url&&!l().isURL(e.url)&&(o=a.A.LANG.sharebox.invalid_url_error),r&&(o=a.A.LANG.sharebox.upload_in_progress_error,n.push("uploadProgress"))),{errors:n,msg:o}},initEmptyItem:e=>{if(!e.hashtags||e.hashtags.length<4)for(e.hashtags||(e.hashtags=[]);e.hashtags.length<4;)e.hashtags.push({hashtag:""});if(!e.meta_data||!e.meta_data.length)for(e.meta_data||(e.meta_data=[]);e.meta_data.length<2;)e.meta_data.push({key:"",value:"",type:"specs"});e.published_at&&(e.published_at=new Date(e.published_at))},canSubmit:()=>!0,general:{project_name:"article",header:"Post an article",wrapper_class:"",allow_links:!0,description_reminder_title:a.A.LANG.sharebox.description_reminder_title,description_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"Article Posted!",text:"Your article will be shared with home enthusiasts worldwide!",view_now:"View now",activity_type:"article"}},C={sections:[{type:"post_top",settings:{title_placeholder:"Give your article a title"}},{type:"add_meta_tags",condition:e=>!e.props.showScrape},{type:"meta_data",condition:e=>!e.props.showScrape&&!!e.state.showMetaData},{type:"preview_post_btns",condition:e=>e.showDraftFooter()||e.props.isEdit},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape||e.props.isEdit||e.props.uploadQueue.length>0||e.props.data.isDraft(e.props.data.type)&&e.props.member.permissionGranted("post_without_image")||e.state.isDirty&&(e.props.canSaveDraft||e.props.savingDraft),settings:{show_steps:!1,total_steps:1}},{type:"add_hashtags",condition:e=>!e.props.showScrape},{type:"hashtags",condition:e=>!e.props.showScrape&&!!e.state.showHashtags},{type:"send_push_notification",condition:()=>!1}],validation:(e,t,s,i,r)=>{let o="",n=[];return!e.summary||l().isEmpty(e.summary)?(o=a.A.LANG.sharebox.no_title_error,n.push("summary")):(e.url&&!l().isURL(e.url)&&(o=a.A.LANG.sharebox.invalid_url_error),r&&(o=a.A.LANG.sharebox.upload_in_progress_error,n.push("uploadProgress"))),{errors:n,msg:o}},initEmptyItem:e=>{if(!e.hashtags||e.hashtags.length<4)for(e.hashtags||(e.hashtags=[]);e.hashtags.length<4;)e.hashtags.push({hashtag:""});if(!e.meta_data||!e.meta_data.length)for(e.meta_data||(e.meta_data=[]);e.meta_data.length<2;)e.meta_data.push({key:"",value:"",type:"specs"});e.published_at&&(e.published_at=new Date(e.published_at))},canSubmit:()=>!0,general:{project_name:"article",header:"Post an article",wrapper_class:"",allow_links:!0,description_reminder_title:a.A.LANG.sharebox.description_reminder_title,description_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"Article Posted!",text:"Your article will be shared with firearms enthusiasts worldwide!",view_now:"View now",activity_type:"article"}},I={sections:[{type:"post_top",settings:{title_placeholder:"Give your article a title"}},{type:"add_meta_tags",condition:e=>!e.props.showScrape},{type:"meta_data",condition:e=>!e.props.showScrape&&!!e.state.showMetaData},{type:"preview_post_btns",condition:e=>e.showDraftFooter()||e.props.isEdit},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape||e.props.isEdit||e.props.uploadQueue.length>0||e.props.data.isDraft(e.props.data.type)&&e.props.member.permissionGranted("post_without_image")||e.state.isDirty&&(e.props.canSaveDraft||e.props.savingDraft),settings:{show_steps:!1,total_steps:1}},{type:"add_hashtags",condition:e=>!e.props.showScrape},{type:"hashtags",condition:e=>!e.props.showScrape&&!!e.state.showHashtags},{type:"send_push_notification",condition:()=>!1}],validation:(e,t,s,i,r)=>{let o="",n=[];return!e.summary||l().isEmpty(e.summary)?(o=a.A.LANG.sharebox.no_title_error,n.push("summary")):(e.url&&!l().isURL(e.url)&&(o=a.A.LANG.sharebox.invalid_url_error),r&&(o=a.A.LANG.sharebox.upload_in_progress_error,n.push("uploadProgress"))),{errors:n,msg:o}},initEmptyItem:e=>{if(!e.hashtags||e.hashtags.length<4)for(e.hashtags||(e.hashtags=[]);e.hashtags.length<4;)e.hashtags.push({hashtag:""});if(!e.meta_data||!e.meta_data.length)for(e.meta_data||(e.meta_data=[]);e.meta_data.length<2;)e.meta_data.push({key:"",value:"",type:"specs"});e.published_at&&(e.published_at=new Date(e.published_at))},canSubmit:()=>!0,general:{project_name:"article",header:"Post an article",wrapper_class:"",allow_links:!0,description_reminder_title:a.A.LANG.sharebox.description_reminder_title,de
1scription_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"Article Posted!",text:"Your article will be shared with tech enthusiasts worldwide!",view_now:"View now",activity_type:"article"}},P={sections:[{type:"post_top",settings:{title_placeholder:"Give your article a title"}},{type:"add_meta_tags",condition:e=>!e.props.showScrape},{type:"meta_data",condition:e=>!e.props.showScrape&&!!e.state.showMetaData},{type:"preview_post_btns",condition:e=>e.showDraftFooter()||e.props.isEdit},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape||e.props.isEdit||e.props.uploadQueue.length>0||e.props.data.isDraft(e.props.data.type)&&e.props.member.permissionGranted("post_without_image")||e.state.isDirty&&(e.props.canSaveDraft||e.props.savingDraft),settings:{show_steps:!1,total_steps:1}},{type:"add_hashtags",condition:e=>!e.props.showScrape},{type:"hashtags",condition:e=>!e.props.showScrape&&!!e.state.showHashtags},{type:"send_push_notification",condition:()=>!1}],validation:(e,t,s,i,r)=>{let o="",n=[];return!e.summary||l().isEmpty(e.summary)?(o=a.A.LANG.sharebox.no_title_error,n.push("summary")):(e.url&&!l().isURL(e.url)&&(o=a.A.LANG.sharebox.invalid_url_error),r&&(o=a.A.LANG.sharebox.upload_in_progress_error,n.push("uploadProgress"))),{errors:n,msg:o}},initEmptyItem:e=>{if(!e.hashtags||e.hashtags.length<4)for(e.hashtags||(e.hashtags=[]);e.hashtags.length<4;)e.hashtags.push({hashtag:""});if(!e.meta_data||!e.meta_data.length)for(e.meta_data||(e.meta_data=[]);e.meta_data.length<2;)e.meta_data.push({key:"",value:"",type:"specs"});e.published_at&&(e.published_at=new Date(e.published_at))},canSubmit:()=>!0,general:{project_name:"article",header:"Post an article",wrapper_class:"",allow_links:!0,description_reminder_title:a.A.LANG.sharebox.description_reminder_title,description_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"Article Posted!",text:"Your article will be shared with home enthusiasts worldwide!",view_now:"View now",activity_type:"article"}},D={sections:[{type:"post_top",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("post_top"),settings:{title_placeholder:"Give your article a title",description_placeholder:"Give a brief introduction... (We recommend at least 30 words for optimal visibility)"}},{type:"schedule",settings:{text:"Schedule Article"}},{type:"blogger_url",condition:()=>!1}],general:{project_name:"article",header:"Post an article",wrapper_class:"",allow_links:!0,description_reminder_title:a.A.LANG.sharebox.description_reminder_title,description_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"Article Posted!",text:"Wellness starts with sharing - your tip just made a difference!",view_now:"View now",activity_type:"article"}},q={sections:[{type:"post_top",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("post_top"),settings:{title_placeholder:"Give your article a title",description_placeholder:"Give a brief introduction... (We recommend at least 30 words for optimal visibility)"}},{type:"schedule",settings:{text:"Schedule Article"}},{type:"blogger_url",condition:()=>!1}],general:{project_name:"article",header:"Post an article",wrapper_class:"",allow_links:!0,description_reminder_title:a.A.LANG.sharebox.description_reminder_title,description_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"Article Posted!",text:"Your post just made travel easier for fellow explorers.",view_now:"View now",activity_type:"article"}},T={sections:[{type:"post_top",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("post_top"),settings:{title_placeholder:"Give your article a title",description_placeholder:"Give a brief introduction... (We recommend at least 30 words for optimal visibility)"}},{type:"schedule",settings:{text:"Schedule Article"}},{type:"blogger_url",condition:()=>!1}],general:{project_name:"article",header:"Post an article",wrapper_class:"",allow_links:!0,description_reminder_title:a.A.LANG.sharebox.description_reminder_title,de
1scription_reminder_txt:a.A.LANG.sharebox.description_subtext,description_reminder_min_words:0},success:{header:"Article Posted!",text:"Curious minds don't retire and they are going to love this!",view_now:"View now",activity_type:"article"}},F={sections:[{type:"scrape_post",condition:e=>!!e.props.showScrape,wrapper:{title:"Import blog post",hide_separator:!0},settings:{text:"Paste your blog link below to to copy the recipe directly from your blog (plus photos!) with one click! We support Wordpress 'Recipe Maker,' 'Create by Mediavine', 'Tasty', 'ZipList', 'Cooked', 'WP Ultimate Recipe', 'Zip Recipes', and 'WPZOOM' Wordpress plugins",link_title:"Blog link",link_placeholder:"https://www.mysite.com/best-chocolate-cookies",button_text:"Import post"}},{type:"after_scrape_header",condition:e=>e.props.hasMissingScrapeElement(),settings:{header:a.A.LANG.sharebox.scrape_final_info}},{type:"post_top",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("post_top"),wrapper:{title:"The story of your recipe",hide_separator:!0},settings:{title_placeholder:"Name your recipe",description_placeholder:"Add an introduction"}},{type:"media",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("media")},{type:"upload_buttons",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("media"),wrapper:{hide_separator:!1}},{type:"word_count",condition:e=>!e.props.showScrape},{type:"recipe_info",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("recipe_info"),wrapper:{title:"Recipe Info"}},{type:"instructions",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("instructions"),wrapper:{title:"Instructions",subtitle:"If there are multiple parts of your recipe (like crust, filling, and topping), you can create additional instruction lists to make the recipe easier to follow",title_placeholder:"Ex/ For the crust",ex_placeholder:"Ex/ Heat the oven to 425°F\n\nEx/ In a small bowl, whisk together the banana, cream, egg, and vanilla"}},{type:"ingredients",condition:e=>!e.props.showScrape||e.props.hasMissingScrapeElement("ingredients"),wrapper:{title:"Ingredients",subtitle:"If there are multiple parts of your recipe (like crust, filling, and topping), you can create additional instruction lists to make the recipe easier to follow",title_placeholder:"Ex/ For the crust",ex_placeholder:"Ingredient (ex/ 1 cup flour)\n\nIngredient (ex/ 1 stick butter)"}},{type:"tips",condition:e=>!e.props.showScrape,wrapper:{title:"Tips"}},{type:"scrape_recipe",condition:e=>!e.props.showScrape,wrapper:{pretitle:"New!",title:"Import recipe info from blog (optional)",subtitle:"We support the following Wordpress plugins: WP Recipe Maker, Create by Mediavine, Tasty, ZipList, Cooked, WP Ultimate Recipe, Zip Recipes, and WPZOOM."}},{type:"blogger_url",condition:e=>!e.props.showScrape,wrapper:{title:"Credit",hide_separator:!0},settings:{blog_text:"Add a link to the original recipe post on your blog or social channel",link:!1,in_vertical:!0}},{type:"schedule",condition:e=>!e.props.showScrape,settings:{text:"Schedule posting this recipe"}},{type:"preview_post_btns",condition:e=>(e.showDraftFooter()||e.props.isEdit)&&(e.props.uploadQueue.length>0||e.props.member.permissionGranted("post_without_image"))},{type:"footer_and_buttons",condition:e=>!!e.props.showScrape&&e.props.hasMissingScrapeElement()||!e.props.showScrape&&(e.props.isEdit||e.props.uploadQueue.length>0||e.props.member.permissionGranted("post_without_image")),settings:{show_steps:!1}},{type:"tooltip",condition:e=>!e.props.showScrape&&!e.props.isEdit}],general:{project_name:"recipe",header:"Post a Recipe",wrapper_class:"somethingsweetdaily",exit_text:"Exit posting recipe",allow_links:!0,description_reminder_title:"Description Reminder",description_reminder_txt:"Want to add a description to your recipe so others can learn more about it?",description_reminder_min_words:0},success:{header:"Recipe Posted!",text:'The more you know, the more you can create. Thereâs no\nend to imagination in the kitchen." - Julia Child',view_now:"View recipe now!",activity_type:"recipe"},reminders:["unidentified_blog","description","minimum_words"],validation:(e,t,s,i,a)=>{let o="",n=[];!e.summary||l().isEmpty(e.summary)?i.length||s.permissionGranted("post_without_image")?(o="Please give your recipe a title",n.push("summary")):(o="Oops! It looks like you're missing some recipe details",n.push("uploadCount")):(e.url&&!l().isURL(e.url)&&(o="Enter a valid URL or leave URL field empty"),i.length||s.permissionGranted("post_without_image")||(o="Oops! It looks like you're missing a photo for your recipe",n.push("uploadCount")),a&&(o="Upload is still in progress",n.push("uploadProgress"))),(0,m.Vi)(e.sections,n,s),n.length&&(o=o||"Oops! It looks like you're missing some recipe details");let p=e.sections.filter(e=>"ingredients"===e.type);return(0,m.yq)(p)<2&&!s.permissionGranted("skip_post_info")&&(p[0].ingredients[0].text&&!l().isEmpty(p[0].ingredients[0].text)||(n.push("ingredients_0_0"),o=o||"Oops! It looks like you're missing some recipe details"),(0,r.Jt)(p[0],"ingredients[1].text")&&!l().isEmpty(p[0].ingredients[1].text)||(n.push("ingredients_0_1"),o=o||"Oops! It looks like you're missing some recipe details")),{errors:n,msg:o}},initEmptyItem:e=>{e.sections||(e.sections=[]),e.sections.find(e=>"recipe_info"===e.type)||e.sections.push({type:"recipe_info",title:"",order:0,recipe_info:[{prep_time:"",prep_time_unit:"",cooking_time:"",cooking_time_unit:"",yield:"",yield_unit:"",cid:(0,h.t)()}]}),e.sections.find(e=>"recipe_info"===e.type).cid=(0,h.t)(),(0,m.U$)(e),(0,m.tE)(e),e.sections.find(e=>"tips"===e.type)||e.sections.push({type:"tips",title:"",order:3,tips:[]}),e.sections.filter(e=>"tips"===e.type).map((e,t)=>{for(e.cid=(0,h.t)();e.tips.length<2;)e.tips.push({text:"",order:e.tips.length,cid:(0,h.t)()})}),e.published_at&&(e.published_at=new Date(e.published_at))},canSubmit(){return!!(this.props.uploadQueue.length>0||this.props.member.permissionGranted("post_without_image"))}},R={hometalk:Q(p),es_hometalk:Q(d),pt_hometalk:Q(c),foodtalk:u,upstyle:_,petguide:Q(b),rvguide:Q(w),simplify:Q(f),ttac:Q(x),atv:Q(E),atvClassified:Q(S),motorcycle:Q(k),redesign:Q(N),autoguide:Q(L),upgradedhome:Q(G),homeideasdaily:Q(M),firearmblog:Q(C),cesphere:Q(I),homehobbiesdaily:Q(P),wellnowdaily:Q(D),thesavvyexplorers:Q(q),thegoldendaily:Q(T),somethingsweetdaily:F},O=()=>{throw new Error("shareboxConfig object is read-only")},j=v().Proxy?new Proxy(R,{get:(e,t)=>t in e?e[t]:y,set:O,deleteProperty:O,defineProperty:O}):a.A;function Q(e){let t=(0,i.A)(e),s=(0,i.A)(y),a=Object.keys(t),r={};
1return Object.keys(s).forEach(e=>{"sections"===e?(r.sections=function(e,t){let s=e.map(e=>e.type);return t.forEach((e,i)=>{s.includes(e.type)&&t.splice(i,1)}),t.concat(e)}(t[e]||[],s[e]),delete t.sections):a.includes(e)||(r[e]=s[e])}),{...t,...r}}function H(e){let t={...j[a.A.THEME.name]},s=t.sections.find(t=>t.type===e)||{},i=!1,r=!1;return s&&(i=s.condition?s.condition(this):t.sections.findIndex(t=>t.type===e)>=0,r=!!s.wrapper&&s.wrapper),s.show=!!i,s.wrapper=r||!1,s}},70772(e,t,s){s.d(t,{Dy:()=>N,FL:()=>x,Ry:()=>k,UF:()=>f,VH:()=>G,WB:()=>b,XO:()=>L,YW:()=>g,Zw:()=>y,cU:()=>M,l:()=>S,nE:()=>E,nS:()=>w,tC:()=>P,zx:()=>A});var i=s(73323),a=s(58807),r=s(46894),o=s.n(r),n=s(90826),l=s(40184),p=s(54378),d=s(77399),c=s.n(d),h=s(13913),m=s(29967),u=s(25529),_=s(17013);function g(){var e=this;return{uploadQueue:()=>this.state.uploadQueue,uploadSuccess:(e,t,s)=>{this.setState(i=>{let a=this.state.uploadQueue.indexOf(s);return"video"==e.type&&-1===a&&(a=this.state.uploadQueue.findIndex(e=>e.id===t)),"photo"==e.type&&-1===a&&(a=t),{uploadQueue:o()(i.uploadQueue,{[a]:{$set:e}}),uploadProgress:!1}})},uploadError:(e,t,s)=>{"Max number of files exceeded"===e.message?this.toggleReminder("maxImagesUpload",!0):p.A.handleError(e,t,s);const i=this.state.uploadQueue.indexOf(s);-1!==i&&this.setState(e=>({uploadQueue:o()(e.uploadQueue,{$splice:[[i,1]]}),uploadProgress:!1}))},onProgress:(e,t,s)=>{"photo"!==s?this.setState(s=>{const i=this.state.uploadQueue.findIndex(e=>e.id===t.media.id);return{uploadQueue:o()(s.uploadQueue,{[i]:{$merge:{video_upload:e+"% Uploading"}}}),uploadProgress:!0}}):this.setState({uploadProgress:!0})},add:function(t){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{id:t.media.id,isLoading:!0}:t;return new Promise(t=>{e.setState(t=>{let i={uploadQueue:o()(t.uploadQueue,{$push:[s]}),uploadProgress:!1};return e.state.isDirty||(i.isDirty=!0),{...i}},()=>{t()})})},replace:(e,t)=>{const s={...t,id:e.id,height:e.height,width:e.width,ratio:e.ratio,source:e.source},i=this.state.uploadQueue.findIndex(e=>e.id===t.id);this.setState({uploadQueue:o()(this.state.uploadQueue,{[i]:{$set:s}})})},formData:()=>({order_id:this.state.uploadQueue.length+1,uploadOptions:"check_min_size"}),orderQueue:(e,t)=>{e!==t&&this.setState(s=>{let{uploadQueue:i}=s;return{uploadQueue:I(i,e,t)}})},remove:e=>new Promise(t=>{this.setState(t=>{const s=this.state.uploadQueue.indexOf(e);return{uploadQueue:o()(t.uploadQueue,{$splice:[[s,1]]})}},()=>{t()})}),setText:function(t,s,i){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"post";e.setState(a=>{const r=e.state.uploadQueue.indexOf(t);if(-1!==r)return{uploadQueue:o()(a.uploadQueue,{[r]:{[s]:{$set:i}}})}}),"title"!==s&&"post"==a&&e.saveDraft()},rotate:e=>{let t=e.cssRotation||0;270===t?t=0:t+=90,this.setState(s=>{const i=this.state.uploadQueue.indexOf(e);return{uploadQueue:o()(s.uploadQueue,{[i]:{$merge:{rotation:t,cssRotation:t}}})}})},lockDraft:()=>{this.setState({lockedUntil:Math.max(this.state.lockedUntil,Date.now()+1e3)})},videoUpload:(e,t)=>(0,_.o7)(e,t)}}function y(e,t,s){if(!e||t.created_at&&new Date(t.created_at)>new Date("2014-05-15")){let e=(0,h.t)(t,s);return f(s)<3||e<100}return!1}function f(e){let t=0;for(let s=0;s<e.length;s++)e[s].removed||t++;return t}function b(e,t){let s,i=0,a=[e];return a=a.concat(t),a.map(e=>{e.text&&"string"==typeof e.text&&(s=e.text.match(/\[\/url\]/gi)||[],i+=s.length),e.title&&"string"==typeof e.title&&(s=e.title.match(/\[\/url\]/gi)||[],i+=s.length)}),i}function w(e,t){let s=0,i=[e];return i=i.concat(t),i.map(e=>{if(e.text&&"string"==typeof e.text){let t=e.text.match(/<a href=/gi)||[];s+=t.length}if(e.title&&"string"==typeof e.title){let t=e.title.match(/<a href=/gi)||[];s+=t.length}}),s}function x(e){let t=n.A.getState().user.permissionGranted("unlimited_links")||e.formatting_enabled?500:45;return e.isOldPost()?235:t}function A(e,t,s){let i=v(e)||v(t);if(!i)for(let r=0;r<s.length;r++)if(!(0,a.A)(s[r].text)&&v(s[r].text))return 1;return i}function v(e){if(null==e)return 0;let t,s,i,a,r;for(r=e.split(/[\s\r\n]+/),t=[],s=0,i=r.length;s<i;
1s++)if(a=r[s],0===a.indexOf("#")&&a.length>1){var o=a.split("#");(a.length>3||isNaN(o[1]))&&t.push(a)}return t.length}function E(e){return e.refresh||e.hashtag||e.description||e.maxImagesUpload||e.maxImagesSize||e.minimum_words||e.unidentified_blog?"call-for-action":""}function S(e,t,s){return(!e||!t.url)&&y(e,t,s)}function k(e){return e.isOldForHashtags()?50:30}function N(e){let t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(s||this.props.id){let i=e===m.A.THEME.default_draft_type||e===m.A.THEME.default_post_type||e===m.A.THEME.gallery_type;t=l.Ay.get(s||this.props.id,{is_edit:!0},i)}else{let s=new l.Ay;s.type="discussion"==e?"emptyDiscussion":"recipe"==e?"emptyRecipe":"gallery"==e?"emptyGallery":"trending_gallery"==e?"emptyTrending_gallery":"empty"+this.shareboxType.charAt(0).toUpperCase()+this.shareboxType.slice(1),t=s.save()}t.then(t=>{"draftPost"!==t.type||this.props.member.id===t.writer.id||this.props.member.permissionGranted("set_author")?(this.setData(t,a),"discussion"==e&&this.setState({topic:(0,i.A)(t,"breadcrumb_combination[0].id"),subtopic:(0,i.A)(t,"breadcrumb_combination[1].id")})):c()("/404")})}function L(e,t){this.config.initEmptyItem(e);let s={};var i;i=e,Array.isArray(i.sections)&&i.sections.map((e,t)=>{let s=e.type;if(-1!==["ingredients","instructions","tips"].indexOf(s)){let t=e[s].map((e,t)=>e.text);t&&(t=`<p> ${t.join("</p><p>")} </p>`,e[s]=[],e[s][0]={text:t,order:0,cid:(0,u.t)()})}}),s.data=e,s.uploadQueue=e.media&&e.media.length?e.media:[],s.isEdit=Boolean(this.props.id),s.canSaveDraft=!e.fromScrape&&(!s.isEdit||s.isEdit&&e.isDraft()),s.isLoaded=!0,s.recipeScraped=t,this.setState({...s},()=>{this.setState({isLocked:!1})})}function G(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"post";!e&&(this.alreadySubmitted=!0);let s=new l.Ay(this.state.data);if(s.media=p.A.prepareRichMedia(p.A.orderMedia(this.state.uploadQueue),(0,i.A)(this.state,"data.fromScrape")),P(s),"post"==t)!function(e,t,s){let i=-1!==e.type.indexOf("depth_guide")?"In_depth_guide":s.postType.charAt(0).toUpperCase()+s.postType.substr(1);!s.isEdit&&t||s.isEdit&&t&&e.isDraft()?e.type="draft"+i:e.type=-1!==e.type.indexOf("depth_guide")?"in_depth_guide":s.postType}(s,e,this),"Medium"===s.difficulty&&(s.difficulty="Moderate"),"Advanced"===s.difficulty&&(s.difficulty="Challenging"),s.sections&&(s.sections=function(e){let t=[];return e.map(e=>{let s={...e},i=e[e.type],a=[];i.map(e=>{for(const[t,s]of Object.entries(e))(!s||""===s||"string"==typeof s&&""===s.replace(/<[^>]*>?/gm,"").replace(/\s/g,""))&&delete e[t];(Object.keys(e).length>2||2===Object.keys(e).length&&!e.order)&&a.push(e)}),0===a.length&&""===s.title||(s[e.type]=a,t.push(s))}),t}(s.sections));else if("gallery"==t){const t=-1!==["trending_gallery","draftTrending_gallery","unpublishedTrending_gallery","emptyTrending_gallery"].indexOf(this.state.data.type);s.type=t?e?"draftTrending_gallery":"trending_gallery":e?"draftGallery":"gallery"}else s.type=this.state.data.type&&"emptyDiscussion"!=this.state.data.type?this.state.data.type:"question",this.props.member.permissionGranted("admin_discussion")&&(this.state.topic||this.state.subtopic)&&(s.breadcrumbs=[{level:1,id:this.state.topic},{level:2,id:this.state.subtopic}]);return("gallery"==t?s.updateSlideshow():s.update()).then(i=>{if("post"==t||"gallery"==t)if(e){let e={};if(this.state.data.type!==s.type&&(e.data=o()(this.state.data,{type:{$set:s.type}})),s.media.length>0)for(let t=0;t<this.state.uploadQueue.length;t++)this.state.uploadQueue[t].rotation>0&&(this.state.uploadQueue[t].rotation=0);i.sections.length>0&&C.call(this,i,e),this.setState({...e})}else this.isEdit&&!this.state.data.isDraft()&&(window.location.href=s.site_url),s.published_at=new Date(s.published_at),this.setState({data:s}),this.setState({success:!0}),l.Ay.clearCache(s.id);else this.isEdit?window.location.href=s.site_url:this.setState({success:!0,data:s,uploadQueue:[]});return s}).catch(e=>{this.setState({saveError:e.message})})}function M(){let e=new l.Ay(this.state.data);return e.type="draftPost",e.text=(0,i.A)(this.state,"data.copyPasteText"),e.copyPasteUrl=(0,i.A)(this.state,"data.copyPasteUrl"),e.updateWholeDraft(e).then(()=>{let t={};return this.state.data.type!==e.type&&(t.data=o()(this.state.data,{type:{$set:e.type}})),this.setState({...t}),e})}function C(e,t){this.state.data.sections.forEach(s=>{let i=e.sections.find(e=>e.cid==s.cid||e.id==s.id);if(i){let e=this.state.data.sections.findIndex(e=>e.cid===s.cid);s.id||(t.data=o()(t.data?t.data:this.state.data,{sections:{[e]:{id:{$set:i.id}}}})),s[s.type].length>0&&i[s.type]&&i[s.type].length>0&&s[s.type].forEach(a=>{if(!a.id){let r=i[s.type].find(e=>a.cid==e.cid);if(r){let i=this.state.data.sections[e][s.type].findIndex(e=>e.cid===a.cid);t.data=o()(t.data?t.data:this.state.data,{sections:{[e]:{[s.type]:{[i]:{id:{$set:r.id}}}}}})}}})}})}function I(e,t,s){var i=e.slice(0);if(s>=i.length)for(var a=s-i.length;1+a--;)i.push(void 0);return i.splice(s,0,i.splice(t,1)[0]),i}function P(e){(0,i.A)(e,"sections")&&e.sections.map((e,t)=>{let s=e.type;if(-1!==["ingredients","instructions","tips"].indexOf(s)){let t=e[s][0].text;if(t){let i=-1!==t.indexOf("<li>")?"<li>":-1!==t.indexOf("</p>")?"</p>":"\n";
1if(t=t.split(i),t.length>1){if(2===t.length&&""===t[1])return;e[s]=[];let a=0;t.map((t,r)=>{t&&("</p>"===i&&(t=t.replace("<p>",""),t+="\n"),e[s][a]={text:t,order:a,cid:(0,u.t)()},a++)})}}}})}},79992(e,t,s){s.d(t,{A:()=>r});var i=s(96540),a=s.n(i);const r=e=>a().createElement("svg",{className:"image-library",width:"24",height:"24",viewBox:"0 0 24 24"},a().createElement("path",{fill:"currentColor",d:"m1.9 6-.5-2h21.2l-.5 2H2zm1.5-4L3 0h18l-.4 2H3.4zM24 18H0l2 6h20l2-6zM3.1 16l-.8-6h19.4l-.8 6h2L24 8H0l1 8h2.1zm2.8-4c0-.6.4-1 1-1 .7 0 1.2.4 1.2 1s-.4 1-1 1-1.2-.4-1.2-1zm7.6-.2-1.9 2.7L9.8 13 7 16h10l-3.5-4.2z"}))},89757(e,t,s){s.d(t,{Yh:()=>n,dw:()=>o,in:()=>a,nO:()=>l,vH:()=>r});var i=s(29967);const a=i.A.LANG.sharebox.upload_error_invalid_file_resolution,r=i.A.LANG.sharebox.upload_error_too_small,o=i.A.LANG.sharebox.upload_error_resource_not_exist,n=i.A.LANG.sharebox.upload_error_connection_error,l=i.A.LANG.sharebox.upload_error_file_not_accepted}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.