HEX
Server: LiteSpeed
System: Linux chromium.pvtwebs.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: plandeptncgov (1317)
PHP: 8.3.31
Disabled: exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/plandeptncgov/public_html/wp-content/plugins/otter-blocks/build/dashboard/index.js
!function(){var e,t={571:function(e,t,o){"use strict";var a=window.wp.element,l=o(184),n=o.n(l),s=window.wp.components,r=window.wp.i18n,i=window.wp.hooks;const{version:c}=window.themeisleGutenberg?window.themeisleGutenberg:window.otterObj,m=[{name:(0,r.__)("Plugin version","otter-blocks"),value:c},{name:(0,r.__)("Feedback","otter-blocks"),value:(0,r.__)("Text from the above text area","otter-blocks")}],d={error:(0,r.__)("There has been an error. Your feedback couldn't be sent."),emptyFeedback:(0,r.__)("Please provide a feedback before submitting the form.","otter-blocks")};var u=({source:e,status:t,setStatus:o})=>{const[l,i]=(0,a.useState)(""),[u,b]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{const e=document.querySelector(".o-feedback-form .info");e&&(e.style.height=u?`${e.querySelector(".wrapper")?.clientHeight}px`:"0")}),[u]),(0,a.createElement)("form",{className:"o-feedback-form",onSubmit:t=>{t.preventDefault(),(()=>{const t=l.trim();if(5>=t.length)o("emptyFeedback");else{o("loading");try{fetch("https://api.themeisle.com/tracking/feedback",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json, */*;q=0.1","Cache-Control":"no-cache"},body:JSON.stringify({slug:"otter-blocks",version:c,feedback:t,data:{"feedback-area":e}})}).then((e=>{e.ok?o("submitted"):o("error")}))?.catch((e=>{console.warn(e.message),o("error")}))}catch(e){console.warn(e.message),o("error")}}})()}},(0,a.createElement)(s.TextareaControl,{className:n()({invalid:"emptyFeedback"===t,"f-error":"error"===t}),placeholder:(0,r.__)("Tell us how can we help you better with Otter Blocks","otter-blocks"),value:l,rows:7,cols:50,onChange:e=>{i(e),5<e.trim().length&&o("notSubmitted")},help:d[t]||!1,autoFocus:!0}),(0,a.createElement)("div",{className:"info"},(0,a.createElement)("div",{className:"wrapper"},(0,a.createElement)("p",null,(0,r.__)("We value privacy, that's why no domain name, email address or IP addresses are collected after you submit the survey. Below is a detailed view of all data that Themeisle will receive if you fill in this survey.","otter-blocks")),m.map(((e,t)=>(0,a.createElement)("div",{className:"info-row",key:t},(0,a.createElement)("p",null,(0,a.createElement)("b",null,e.name)),(0,a.createElement)("p",null,e.value)))))),(0,a.createElement)("div",{className:"buttons-wrap"},(0,a.createElement)(s.Button,{className:"toggle-info","aria-expanded":u,variant:"link",isLink:!0,onClick:()=>b(!u)},(0,r.__)("What info do we collect?","otter-blocks")),(0,a.createElement)(s.Button,{className:"f-send",variant:"primary",type:"submit",isPrimary:!0,disabled:"loading"===t},"loading"===t?(0,a.createElement)(s.Spinner,null):(0,r.__)("Send feedback","otter-blocks"))))};const{assetsPath:b}=window.themeisleGutenberg?window.themeisleGutenberg:window.otterObj,_=b+("/"===b[b.length-1]?"":"/")+"icons/finish-feedback.svg",p=({source:e,status:t,setStatus:o,closeModal:l,isOpen:i})=>(0,a.createElement)(a.Fragment,null,i&&(0,a.createElement)(s.Modal,{className:n()("o-feedback-modal",{"no-header":"submitted"===t}),overlayClassName:"o-feedback-modal-overlay",title:(0,r.__)("What's the one thing you need in Otter?","otter-blocks"),onRequestClose:l,shouldCloseOnClickOutside:!1},"submitted"!==t?(0,a.createElement)(u,{source:e,status:t,setStatus:o}):(0,a.createElement)("div",{className:"finish-feedback"},(0,a.createElement)("img",{src:_}),(0,a.createElement)("p",{className:"f-title"},(0,r.__)("Thank you for your feedback","otter-blocks")),(0,a.createElement)("p",{className:"f-description"},(0,r.__)("Your feedback is highly appreciated and will help us to improve Otter Blocks.","otter-blocks")),(0,a.createElement)(s.Button,{className:"f-done",variant:"secondary",isSecondary:!0,onClick:l},(0,r.__)("Done","otter-blocks")))));(0,i.addFilter)("otter.feedback","themeisle-gutenberg/feedback-modal",((e,t,o=(0,r.__)("Help us improve","otter-blocks"),l="link")=>{const[n,i]=(0,a.useState)(!1),[c,m]=(0,a.useState)("notSubmitted");return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(s.Button,{id:"o-feedback",variant:l,isLink:"link"===l,isSecondary:"secondary"===l,isPrimary:"primary"===l,onClick:()=>i(!n)},o),(0,a.createElement)(p,{isOpen:n,status:c,closeModal:()=>{i(!1),m("notSubmitted")},source:t,setStatus:m}))}));var k=window.lodash,h=window.wp.data,g=window.wp.notices,v=()=>{const e=(0,h.useSelect)((e=>e(g.store).getNotices()),[]),{removeNotice:t}=(0,h.useDispatch)(g.store),o=(0,k.filter)(e,{type:"snackbar"});return(0,a.createElement)(s.SnackbarList,{notices:o,className:"components-editor-notices__snackbar",onRemove:t})};const y=[{slug:"dashboard",label:(0,r.__)("Dashboard","otter-blocks"),visibility:!0},{slug:"integrations",label:(0,r.__)("Integrations","otter-blocks"),visibility:!0},{slug:"upsell",label:(0,r.__)("Free vs PRO","otter-blocks"),visibility:!Boolean(window.otterObj.hasPro)},{slug:"feedback",label:(0,r.__)("Feedback","otter-blocks"),visibility:!0}];var E=({isActive:e,setActive:t})=>(0,a.createElement)("header",{className:"otter-header"},(0,a.createElement)("div",{className:"otter-container"},(0,a.createElement)("div",{className:"otter-logo"},(0,a.createElement)("img",{src:window.otterObj.assetsPath+"images/logo.png",title:(0,r.__)("Otter – Page Builder Blocks & Extensions for Gutenberg","otter-blocks")}),(0,a.createElement)("abbr",{title:(0,r.sprintf)((0,r.__)("Version: %s","otter-blocks"),window.otterObj.version),className:"version"},window.otterObj.version)),(0,a.createElement)("nav",{className:"otter-navigation"},y.map((o=>o.visibility&&(0,a.createElement)("button",{className:n()({"is-active":o.slug===e}),onClick:()=>t(o.slug),key:o.slug},(0,a.createElement)("span",null,o.label))))))),f=window.wp.api,w=o.n(f),S=()=>{const{createNotice:e}=(0,h.dispatch)("core/notices"),[t,o]=(0,a.useState)({}),[l,n]=(0,a.useState)("loading"),s=()=>{w().loadPromise.then((async()=>{try{const e=new(w().models.Settings),t=await e.fetch();o(t)}catch(e){n("error")}finally{n("loaded")}}))};return(0,a.useEffect)((()=>{s()}),[]),[e=>t?.[e],(t,o,a=(0,r.__)("Settings saved.","otter-blocks"),l=void 0,i=(()=>{}),c=(()=>{}))=>{n("saving");const m=new(w().models.Settings)({[t]:o}).save();m.success(((t,o)=>{"success"===o&&(n("loaded"),e("success",a,{isDismissible:!0,type:"snackbar",id:l})),"error"===o&&(n("error"),e("error",(0,r.__)("An unknown error occurred.","otter-blocks"),{isDismissible:!0,type:"snackbar",id:l})),s(),i?.(t)})),m.error((t=>{var o;n("error"),e("error",null!==(o=t?.responseJSON?.message)&&void 0!==o?o:(0,r.__)("An unknown error occurred.","otter-blocks"),{isDismissible:!0,type:"snackbar",id:l}),c?.(t)}))},l]},C=({title:e,children:t})=>(0,a.createElement)(s.PanelBody,null,(0,a.createElement)("div",{className:"otter-info"},(0,a.createElement)("h3",null,e),t)),B=window.wp.apiFetch,P=o.n(B),O=()=>{const[e,t]=(0,a.useState)(!1),[o,l]=(0,a.useState)(window.otterObj?.license),[n,i]=(0,a.useState)(""),{createNotice:c}=(0,h.dispatch)("core/notices");(0,a.useEffect)((()=>{o.key&&["valid","active_expired"].includes(o.valid)&&i(o.key)}),[o]);const m="valid"===o?.valid||"valid"===o?.license;return(0,a.createElement)(C,{title:(0,r.__)("Otter Pro License","otter-blocks")},(0,a.createElement)("p",null,(0,r.__)("Enter your license from ThemeIsle purchase history in order to get plugin updates.","otter-blocks")),Boolean(window.otterObj.hasNevePro)&&(0,a.createElement)("p",null,(0,r.__)("Neve Pro license can also be used to activate Otter Pro.","otter-blocks")),(0,a.createElement)("input",{type:"text",value:m?"******************************"+n.slice(-5):n,placeholder:(0,r.__)("Enter license key","otter-blocks"),disabled:e||m,onChange:e=>i(e.target.value)}),(0,a.createElement)("div",{className:"otter-info-button-group is-single"},(0,a.createElement)(s.Button,{variant:m?"secondary":"primary",isPrimary:!m,isSecondary:m,isBusy:e,disabled:e,onClick:()=>{return e={action:m?"deactivate":"activate",key:n},t(!0),void P()({path:"otter/v1/toggle_license",method:"POST",data:e}).then((e=>{t(!1),c(e.success?"success":"error",e.message,{isDismissible:!0,type:"snackbar"}),e?.success&&e.license&&"free"!==e.license.key?(l(e.license),i(e.license.key)):(l({}),i("")),window.location.reload()})).catch((e=>{t(!1),console.log(e)}));var e}},m?(0,r.__)("Deactivate","otter-blocks"):(0,r.__)("Activate","otter-blocks"))),m&&(0,a.createElement)("div",{className:"otter-license-footer"},(0,a.createElement)("p",null,(0,a.createElement)(s.Icon,{icon:"yes"}),(0,r.sprintf)((0,r.__)("Valid - Expires %s","otter-blocks"),o.expiration))),"active_expired"===o?.valid&&(0,a.createElement)("div",{className:"otter-license-footer is-expired"},(0,a.createElement)("p",null,(0,r.__)("License Key has expired. In order to continue receiving support and software updates you must renew your license key.","otter-blocks")),(0,a.createElement)("p",null,(0,a.createElement)(s.ExternalLink,{href:`${window.otterObj.storeURL}?license=${n}`},(0,r.__)("Renew License","otter-blocks")))),!m&&(0,a.createElement)("p",{className:"otter-license-purchase-history"},(0,a.createElement)(s.ExternalLink,{href:window.otterObj.purchaseHistoryURL},(0,r.__)("Get license from Purchase History","otter-blocks"))))};window.wp.date;const N=(e,t)=>{const o=new URL(e);return o.searchParams.set("utm_campaign",t),o.toString()};var A=({setTab:e})=>(0,a.createElement)(a.Fragment,null,Boolean(window.otterObj.hasPro)?(0,a.createElement)(O,null):(0,a.createElement)(C,{title:(0,r.__)("Otter Pro","otter-blocks")},(0,a.createElement)("ul",null,(0,a.createElement)("li",null,(0,r.__)("Pro Block Addons","otter-blocks")),(0,a.createElement)("li",null,(0,r.__)("Pro Block Patterns","otter-blocks")),(0,a.createElement)("li",null,(0,r.__)("Dynamic Content","otter-blocks")),(0,a.createElement)("li",null,(0,r.__)("Block Conditions","otter-blocks")),(0,a.createElement)("li",null,(0,r.__)("WooCommerce Product Builder","otter-blocks")),(0,a.createElement)("li",null,(0,r.__)("Priority Support","otter-blocks"))),(0,a.createElement)("div",{className:"otter-info-button-group"},(0,a.createElement)(s.Button,{variant:"secondary",isSecondary:!0,onClick:()=>e("upsell")},(0,r.__)("Learn More","otter-blocks")),(0,a.createElement)(s.Button,{variant:"primary",isPrimary:!0,target:"_blank",href:N(window.otterObj.upgradeLink,"infobox")},(0,r.__)("Explore Otter Pro","otter-blocks")))),(0,a.createElement)(C,{title:(0,r.__)("Useful links","otter-blocks")},(0,a.createElement)("ul",{className:"otter-info-links"},(0,a.createElement)("li",null,(0,a.createElement)("a",{href:"https://wordpress.org/support/plugin/otter-blocks",target:"_blank"},(0,r.__)("Support","otter-blocks"))),(0,a.createElement)("li",null,(0,a.createElement)("a",{href:"https://github.com/Codeinwp/otter-blocks/discussions",target:"_blank"},(0,r.__)("Feature request","otter-blocks"))),(0,a.createElement)("li",null,(0,a.createElement)("a",{href:"https://wordpress.org/support/plugin/otter-blocks/reviews/#new-post",target:"_blank"},(0,r.__)("Leave a review","otter-blocks")))),(0,a.createElement)("div",{className:"otter-info-button-group is-single"},(0,a.createElement)(s.Button,{variant:"secondary",isSecondary:!0,target:"_blank",href:window.otterObj.docsLink},(0,r.__)("Documentation","otter-blocks"))))),x=({label:e,help:t,buttonLabel:o,disabled:l,action:r,className:i})=>(0,a.createElement)("div",{className:n()("components-base-control","otter-button-control",i)},(0,a.createElement)("div",{className:"components-base-control_labels"},(0,a.createElement)("span",{className:"components-base-control__label"},e),(0,a.createElement)("p",{className:"components-base-control__help"},t)),(0,a.createElement)("div",{className:"otter-button-control-group"},(0,a.createElement)(s.Button,{variant:"secondary",isSecondary:!0,disabled:l,onClick:r},o)));const L={enableCustomCss:"themeisle_blocks_settings_css_module",enableBlocksAnimation:"themeisle_blocks_settings_blocks_animation",enableBlockConditions:"themeisle_blocks_settings_block_conditions",enableSectionDefaultBlock:"themeisle_blocks_settings_default_block",enableOptimizeAnimationsCss:"themeisle_blocks_settings_optimize_animations_css",enableRichSchema:"themeisle_blocks_settings_disable_review_schema",enableReviewScale:"themeisle_blocks_settings_review_scale",enableHighlightDynamic:"themeisle_blocks_settings_highlight_dynamic",enableAnonymousDataTracking:"otter_blocks_logger_flag"},R={values:{enableCustomCss:!1,enableBlocksAnimation:!1,enableBlockConditions:!1,enableSectionDefaultBlock:!1,enableOptimizeAnimationsCss:!1,enableRichSchema:!1,enableReviewScale:!1,enableHighlightDynamic:!1,enableAnonymousDataTracking:"no"},status:{enableCustomCss:"init",enableBlocksAnimation:"init",enableBlockConditions:"init",enableSectionDefaultBlock:"init",enableOptimizeAnimationsCss:"init",enableRichSchema:"init",enableReviewScale:"init",enableHighlightDynamic:"init",enableAnonymousDataTracking:"init"},dirty:{enableCustomCss:!1,enableBlocksAnimation:!1,enableBlockConditions:!1,enableSectionDefaultBlock:!1,enableOptimizeAnimationsCss:!1,enableRichSchema:!1,enableReviewScale:!1,enableHighlightDynamic:!1,enableAnonymousDataTracking:!1},old:{}},T=(e,t)=>{switch(t.type){case"init":return e.values[t.name]=t.value,e.status[t.name]="saved",{...e};case"update":return e.old[t.name]=(0,k.isString)(e.values[t.name])?e.values[t.name]:Boolean(e.values[t.name]),e.values[t.name]=t.value,e.dirty[t.name]=!0,{...e};case"status_bulk":return t.names.forEach((o=>{e.status[o]=t.value,e.dirty[o]=!1})),{...e};case"saved":return e.status[t.name]="saved",e.values[t.name]=t.value,e.old[t.name]=void 0,{...e};case"rollback":return void 0!==e.old[t.name]&&(e.values[t.name]=e.old[t.name]),e.old[t.name]=void 0,e.dirty[t.name]=!1,e.status[t.name]="saved",{...e};default:return e}};var D=()=>{(0,a.useEffect)((()=>{Boolean(window.otterObj.stylesExist)||i(!0)}),[]);const[e,t,o]=S(),{createNotice:l}=(0,h.dispatch)("core/notices"),[n,i]=(0,a.useState)(!1),[c,m]=(0,a.useState)(!1),[d,u]=(0,a.useReducer)(T,R);return(0,a.useEffect)((()=>{"loaded"===o&&Object.entries(d.status).filter((([e,t])=>"init"===t)).forEach((([t,o])=>{u({type:"init",name:t,value:e(L[t])})}))}),[d,o,e]),(0,a.useEffect)((()=>{const e=Object.entries(d.dirty).filter((([e,t])=>t)).map((([e,t])=>e));if(e.length){"error"!==o&&u({type:"status_bulk",value:"saving",names:e});for(const o of e)t(L[o],d.values[o],(0,r.__)("Settings saved.","otter-blocks"),"o-settings-saved-notice",(e=>{u({type:"saved",name:o,value:e[L[o]]})}),(()=>{u({type:"rollback",name:o})}))}}),[d,o]),(0,a.createElement)(a.Fragment,null,(0,a.createElement)(s.PanelBody,{title:(0,r.__)("Modules","otter-blocks")},(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.ToggleControl,{label:(0,r.__)("Enable Custom CSS Module","otter-blocks"),help:(0,r.__)("Custom CSS module allows to add custom CSS to each block in Block Editor.","otter-blocks"),checked:d.values.enableCustomCss,disabled:"saving"===d.status.enableCustomCss,onChange:e=>{u({type:"update",name:"enableCustomCss",value:e})}})),(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.ToggleControl,{label:(0,r.__)("Enable Blocks Animation Module","otter-blocks"),help:(0,r.__)("Blocks Animation module allows to add CSS animations to each block in Block Editor.","otter-blocks"),checked:d.values.enableBlocksAnimation,disabled:"saving"===d.status.enableBlocksAnimation,onChange:e=>u({type:"update",name:"enableBlocksAnimation",value:e})})),(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.ToggleControl,{label:(0,r.__)("Enable Visibility Condition Module","otter-blocks"),help:(0,r.__)("Blocks Conditions module allows to hide/display blocks to your users based on selected conditions.","otter-blocks"),checked:d.values.enableBlockConditions,disabled:"saving"===d.status.enableBlockConditions,onChange:e=>u({type:"update",name:"enableBlockConditions",value:e})}))),(0,a.createElement)(s.PanelBody,{title:(0,r.__)("Other","otter-blocks")},(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.ToggleControl,{label:(0,r.__)("Make Section your default block for Pages","otter-blocks"),help:(0,r.__)("Everytime you create a new page, Section block will be appended there by default.","otter-blocks"),checked:d.values.enableSectionDefaultBlock,disabled:"saving"===d.status.enableSectionDefaultBlock,onChange:e=>u({type:"update",name:"enableSectionDefaultBlock",value:e})})),(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.ToggleControl,{label:(0,r.__)("Optimize Animations CSS","otter-blocks"),help:(0,r.__)("Only load CSS for the animations that are used on the page. We recommend you to regenerate styles after you toggle this option.","otter-blocks"),checked:d.values.enableOptimizeAnimationsCss,disabled:"saving"===d.status.enableOptimizeAnimationsCss,onChange:e=>u({type:"update",name:"enableOptimizeAnimationsCss",value:e})})),(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.ToggleControl,{label:(0,r.__)("Enable Rich Schema","otter-blocks"),help:(0,r.__)("Control if you want to show rich schema in Product Review Block.","otter-blocks"),checked:d.values.enableRichSchema,disabled:"saving"===d.status.enableRichSchema,onChange:e=>u({type:"update",name:"enableRichSchema",value:e})})),(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.ToggleControl,{label:(0,r.__)("Use 1-5 Scale for Review Block","otter-blocks"),help:(0,r.__)("Use 1-5 rating scale instead of the default 1-10.","otter-blocks"),checked:d.values.enableReviewScale,disabled:"saving"===d.status.enableReviewScale,onChange:e=>u({type:"update",name:"enableReviewScale",value:e})})),(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.ToggleControl,{label:(0,r.__)("Highlight the Dynamic Text","otter-blocks"),help:(0,r.__)("Easily differentiate between dynamic and normal text in the editor.","otter-blocks"),checked:d.values.enableHighlightDynamic,disabled:"saving"===d.status.enableHighlightDynamic,onChange:e=>u({type:"update",name:"enableHighlightDynamic",value:e})})),(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.ToggleControl,{label:(0,r.__)("Anonymous Data Tracking.","otter-blocks"),help:(0,r.__)("Become a contributor by opting in to our anonymous data tracking. We guarantee no sensitive data is collected.","otter-blocks"),checked:"yes"===d.values.enableAnonymousDataTracking,disabled:"saving"===d.status.enableAnonymousDataTracking,onChange:e=>u({type:"update",name:"enableAnonymousDataTracking",value:e?"yes":"no"})}))),(0,a.createElement)(s.PanelBody,null,(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(x,{label:(0,r.__)("Regenerate Styles","otter-blocks"),help:(0,r.__)("Clicking on this will delete all the Otter generated CSS files.","otter-blocks"),buttonLabel:(0,r.__)("Regenerate","otter-blocks"),disabled:n,action:()=>m(!0)}))),c&&(0,a.createElement)(s.Modal,{title:(0,r.__)("Are you sure?","otter-blocks"),onRequestClose:()=>m(!1)},(0,a.createElement)("p",null,(0,r.__)("Are you sure you want to delete all Otter generated CSS files?","otter-blocks")),(0,a.createElement)("p",null,(0,r.__)("Note: Styles will be regenerated as users start visiting your pages.","otter-blocks")),(0,a.createElement)("div",{className:"otter-modal-actions"},(0,a.createElement)(s.Button,{isSecondary:!0,onClick:()=>m(!1)},(0,r.__)("Cancel","otter-blocks")),(0,a.createElement)(s.Button,{isPrimary:!0,disabled:"saving"===o,isBusy:"saving"===o,onClick:async()=>{const e=await P()({path:"otter/v1/regenerate",method:"DELETE"});l(e.success?"success":"error",e.data.message,{isDismissible:!0,type:"snackbar"}),i(!0),m(!1)}},(0,r.__)("Confirm","otter-blocks")))))};const j=[{label:(0,r.__)("More than 30 Custom Blocks","otter-blocks"),description:(0,r.__)("Harness the potential of the new WordPress era with the growing list of 30+ page building blocks, covering all the elements needed to build a website.","otter-blocks"),inFree:!0},{label:(0,r.__)("Extra Functionalities for all Blocks","otter-blocks"),description:(0,r.__)("Otter Blocks adds extra functionality such as Custom CSS, Animations and Visibility Conditions to default or third party blocks present on your website.","otter-blocks"),inFree:!0},{label:(0,r.__)("Premium Blocks","otter-blocks"),description:(0,r.__)("Enhance your website's design with powerful Pro Blocks, like the Add to Cart Block, Business Hours Block and more blocks are coming soon.","otter-blocks")},{label:(0,r.__)("Extended Visibility Conditions & Sticky Blocks functionality","otter-blocks"),description:(0,r.__)("The Visibility Conditions feature allows you to set which conditions should be met for your chosen blocks to be displayed on the page. While the Sticky feature lets you set a Block as sticky, so that it sticks to its parent. ","otter-blocks")},{label:(0,r.__)("Dynamic Values","otter-blocks"),description:(0,r.__)("Streamline your Workflow with Otter Dynamic Values, which allows you to bind certain elements in the editor - with the dynamic data from your website database.","otter-blocks")},{label:(0,r.__)("Review Comparison Table","otter-blocks"),description:(0,r.__)("Allows you to display and compare a selection of product reviews made on the website.","otter-blocks")},{label:(0,r.__)("WooCommerce Builder Blocks","otter-blocks"),description:(0,r.__)("Build custom Single Product Pages using WooCommerce Builder Blocks by Otter. All the new features from Otter Pro are designed to maximize your conversion rate.","otter-blocks")},{label:(0,r.__)("Extended Popups","otter-blocks"),description:(0,r.__)("Display your content in beautiful popup with many customization options. Otter Pro extends the functionality of the popups in the free Otter version, with more advanced options.","otter-blocks")},{label:(0,r.__)("Priority Support","otter-blocks"),description:(0,r.__)("Our Happiness Engineers are happy to help you get the best results from our products. On average, Otter Pro user get a reply in five hours or less.","otter-blocks")}],F=(0,a.createElement)("svg",{width:"31",height:"31",viewBox:"0 0 31 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-hidden":"true"},(0,a.createElement)("path",{d:"M22.5326 10.5767L17.2226 15.8867L22.5326 21.1967L20.4176 23.3117L15.1076 18.0167L9.81262 23.3117L7.68262 21.1817L12.9776 15.8867L7.68262 10.5917L9.81262 8.46167L15.1076 13.7567L20.4176 8.46167L22.5326 10.5767Z",fill:"#FF7E65"})),I=(0,a.createElement)("svg",{width:"31",height:"31",viewBox:"0 0 31 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-hidden":"true"},(0,a.createElement)("path",{d:"M22.9863 7.99243L12.7863 18.1924L8.58633 13.9924L6.48633 16.0924L12.7863 22.3924L25.0863 10.0924",fill:"#5FBFD5"}));var M=()=>(0,a.createElement)("div",{className:"otter-upsell"},(0,a.createElement)("div",{className:"upsell-title"},(0,a.createElement)("h2",null,(0,r.__)("Powerful features available only in Otter Pro","otter-blocks"))),(0,a.createElement)("ul",{className:"upsell-table"},(0,a.createElement)("li",{className:"t-head"},(0,a.createElement)("div",null),(0,a.createElement)("div",{className:"c"},(0,r.__)("Free","otter-blocks")),(0,a.createElement)("div",{className:"c"},(0,r.__)("Pro","otter-blocks"))),j.map(((e,t)=>(0,a.createElement)("li",{key:t,className:"t-row"},(0,a.createElement)("div",{className:"content"},(0,a.createElement)("div",{className:"h-wrap"},(0,a.createElement)("h4",null,e.label)),(0,a.createElement)("p",null,e.description)),(0,a.createElement)("div",{className:"c"},e?.inFree?I:F),(0,a.createElement)("div",{className:"c"},I))))),(0,a.createElement)(s.Button,{variant:"primary",href:N(window.otterObj.upgradeLink,"viewallfvsp"),target:"_blank"},(0,r.__)("View all Otter Pro features","otter-blocks"))),G=()=>{const[e,t,o]=S();(0,a.useEffect)((()=>{n(e("themeisle_google_map_block_api_key"))}),[e("themeisle_google_map_block_api_key")]),(0,a.useEffect)((()=>{m(e("themeisle_google_captcha_api_site_key")),u(e("themeisle_google_captcha_api_secret_key"))}),[e("themeisle_google_captcha_api_site_key"),e("themeisle_google_captcha_api_secret_key")]),(0,a.useEffect)((()=>{_(e("themeisle_stripe_api_key"))}),[e("themeisle_stripe_api_key")]),(0,a.useEffect)((()=>{k(e("themeisle_open_ai_api_key"))}),[e("themeisle_open_ai_api_key")]);const[l,n]=(0,a.useState)(""),[c,m]=(0,a.useState)(""),[d,u]=(0,a.useState)(""),[b,_]=(0,a.useState)(""),[p,k]=(0,a.useState)("");let h=()=>(0,a.createElement)(s.PanelBody,{title:(0,r.__)("Fonts Module","otter-blocks"),className:"is-pro"},(0,a.createElement)(s.Disabled,null,(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.ToggleControl,{label:(0,r.__)("Save Google Fonts Locally","otter-blocks"),help:(0,r.__)("Enable this option to save Google Fonts locally to make your website faster","otter-blocks"),checked:!1,disabled:!0}))));return h=(0,i.applyFilters)("otter.dashboard.integrations",(0,a.createElement)(h,null)),(0,a.createElement)(a.Fragment,null,(0,a.createElement)(s.PanelBody,{title:(0,r.__)("Google Maps","otter-blocks")},(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.BaseControl,{label:(0,r.__)("Google Maps API","otter-blocks"),help:(0,r.__)("In order to use Google Maps block, you need to use Google Maps and Places API.","otter-blocks"),id:"otter-options-google-map-api",className:"otter-button-field"},(0,a.createElement)(s.TextControl,{type:"password",label:(0,r.__)("Secret Key","otter-blocks"),value:l,placeholder:(0,r.__)("Google Maps API Key","otter-blocks"),disabled:"saving"===o,onChange:e=>n(e)}),(0,a.createElement)("div",{className:"otter-button-group"},(0,a.createElement)(s.Button,{variant:"secondary",isSecondary:!0,disabled:"saving"===o,onClick:()=>t("themeisle_google_map_block_api_key",l)},(0,r.__)("Save","otter-blocks")),(0,a.createElement)(s.ExternalLink,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},(0,r.__)("Get API Key","otter-blocks")))))),h,(0,a.createElement)(s.PanelBody,{title:(0,r.__)("Google reCaptcha API","otter-blocks"),initialOpen:!1},(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.BaseControl,{help:(0,r.__)("In order to use reCaptcha field in the Form block, you need to use Google reCaptcha API.","otter-blocks"),id:"otter-options-google-recaptcha-api",className:"otter-button-field"},(0,a.createElement)(s.TextControl,{type:"password",label:(0,r.__)("Site Key","otter-blocks"),value:c,placeholder:(0,r.__)("Site Key","otter-blocks"),disabled:"saving"===o,onChange:e=>m(e)}),(0,a.createElement)(s.TextControl,{type:"password",label:(0,r.__)("Secret Key","otter-blocks"),value:d,placeholder:(0,r.__)("Secret Key","otter-blocks"),disabled:"saving"===o,onChange:e=>u(e)}),(0,a.createElement)("div",{className:"otter-button-group"},(0,a.createElement)(s.Button,{variant:"secondary",isSecondary:!0,disabled:"saving"===o,onClick:()=>{t("themeisle_google_captcha_api_site_key",c),t("themeisle_google_captcha_api_secret_key",d)}},(0,r.__)("Save","otter-blocks")),(0,a.createElement)(s.ExternalLink,{href:"https://www.google.com/recaptcha/admin"},(0,r.__)("Get API Key","otter-blocks")))))),(0,a.createElement)(s.PanelBody,{title:(0,r.__)("Stripe","otter-blocks"),initialOpen:!1},(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.BaseControl,{label:(0,r.__)("Stripe API","otter-blocks"),help:(0,r.__)("In order to use Stripe block, you need to use Stripe API. You can also use Restricted keys.","otter-blocks"),id:"otter-options-stripe-api",className:"otter-button-field"},(0,a.createElement)(s.TextControl,{type:"password",label:(0,r.__)("Secret Key","otter-blocks"),value:b,placeholder:(0,r.__)("Stripe API Key","otter-blocks"),disabled:"saving"===o,onChange:e=>_(e)}),(0,a.createElement)("div",{className:"otter-button-group"},(0,a.createElement)(s.Button,{variant:"secondary",isSecondary:!0,disabled:"saving"===o,onClick:()=>t("themeisle_stripe_api_key",b)},(0,r.__)("Save","otter-blocks")),(0,a.createElement)(s.ExternalLink,{href:"https://stripe.com/docs/keys"},(0,r.__)("Get API Key","otter-blocks")),(0,a.createElement)(s.ExternalLink,{href:"https://docs.themeisle.com/article/1688-integrations-related-blocks#stripe-checkout"},(0,r.__)("More Info","otter-blocks")))))),(0,a.createElement)(s.PanelBody,{title:(0,r.__)("OpenAI","otter-blocks"),initialOpen:!1},(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.BaseControl,{label:(0,r.__)("Open API","otter-blocks"),help:(0,r.__)("In order to use AI Block, you need to use OpenAI API.","otter-blocks"),id:"otter-options-stripe-api",className:"otter-button-field"},(0,a.createElement)(s.TextControl,{type:"password",label:(0,r.__)("Secret Key","otter-blocks"),value:p,placeholder:(0,r.__)("OpenAI API Key","otter-blocks"),disabled:"saving"===o,onChange:e=>k(e)}),(0,a.createElement)("div",{className:"otter-button-group"},(0,a.createElement)(s.Button,{variant:"secondary",isSecondary:!0,disabled:"saving"===o,onClick:()=>t("themeisle_open_ai_api_key",p)},(0,r.__)("Save","otter-blocks")),(0,a.createElement)(s.ExternalLink,{href:"https://platform.openai.com/account/api-keys"},(0,r.__)("Get API Key","otter-blocks")),(0,a.createElement)(s.ExternalLink,{href:"https://docs.themeisle.com/article/1916-how-to-generate-an-openai-api-key"},(0,r.__)("More Info","otter-blocks")))))))};const H=`${window.otterObj.assetsPath}icons/finish-feedback.svg`;var K=()=>{const[e,t]=(0,a.useState)("notSubmitted");return(0,a.createElement)(C,{title:"submitted"!==e&&(0,r.__)("What's one thing you need in Otter Blocks?","otter-blocks")},"submitted"!==e?(0,a.createElement)(u,{source:"dashboard",status:e,setStatus:t}):(0,a.createElement)("div",{className:"finish-feedback"},(0,a.createElement)("img",{src:H}),(0,a.createElement)("p",{className:"f-title"},(0,r.__)("Thank you for your feedback","otter-blocks")),(0,a.createElement)("p",{className:"f-description"},(0,r.__)("Your feedback is highly appreciated and will help us to improve Otter Blocks.","otter-blocks"))))},W=(0,a.forwardRef)((function({icon:e,size:t=24,...o},l){return(0,a.cloneElement)(e,{width:t,height:t,...o,ref:l})})),z=window.React,U=window.wp.primitives,V=(0,z.createElement)(U.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,z.createElement)(U.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),q=({slug:e,className:t,children:o})=>{const l=`otter-${e}-dismissed`,[r,i]=(0,a.useState)(localStorage.getItem(l));return r?null:(0,a.createElement)(s.PanelBody,{className:n()("notice-card",t)},(0,a.createElement)(s.Button,{className:"dismiss",onClick:()=>{localStorage.setItem(l,"true"),i("true")}},(0,a.createElement)(W,{icon:V})),o)},$=e=>(0,a.createElement)("div",{className:"otter-deal"},(0,a.createElement)("a",{href:e.link,target:"_blank",rel:"external noreferrer noopener"},(0,a.createElement)("img",{src:e.image,alt:e.alt}),(0,a.createElement)("div",{className:"o-urgency"},e.urgencyText)));let Y=(0,r.sprintf)((0,r.__)("%s Days","otter-blocks"),Number(window.otterObj.daysLeft));1===Number(window.otterObj.daysLeft)&&(Y=(0,r.__)("Less than 24 hours","otter-blocks"));var J=({currentTab:e,setTab:t})=>{const[o,l,n]=S(),c=(0,i.applyFilters)("otter.feedback","","dashboard",(0,r.__)("Share your Feedback","otter-blocks"),"secondary");return"loading"===n?(0,a.createElement)(s.Placeholder,null,(0,a.createElement)(s.Spinner,null)):(0,a.createElement)(a.Fragment,null,window.otterObj.deal.active&&(0,a.createElement)($,{link:window.otterObj.deal.linkDashboard,image:window.otterObj.deal.bannerUrl,alt:window.otterObj.deal.bannerAlt,urgencyText:window.otterObj.deal.urgencyText}),(0,a.createElement)("div",{className:`otter-main is-${e}`},"dashboard"===e&&window.otterObj.showFeedbackNotice&&(0,a.createElement)(q,{slug:"feedback"},(0,a.createElement)("img",{src:window.otterObj.assetsPath+"images/dashboard-feedback.png",style:{maxWidth:"100%",objectFit:"cover"}}),(0,a.createElement)("div",{className:"notice-text"},(0,a.createElement)("h3",null,(0,r.__)("What's the one thing you need in Otter Blocks?","otter-blocks")),(0,a.createElement)("span",null,(0,r.__)("We're always looking for suggestions to further improve Otter Blocks and your feedback can help us do that.","otter-blocks"))),(0,a.createElement)("span",null,c)),(0,a.createElement)((()=>{switch(e){case"integrations":return(0,a.createElement)("div",{className:"otter-left"},(0,a.createElement)(G,null));case"upsell":return(0,a.createElement)(M,null);case"feedback":return(0,a.createElement)(K,null);default:return(0,a.createElement)("div",{className:"otter-left"},(0,a.createElement)(D,{status:n,getOption:o,updateOption:l}))}}),null),"upsell"!==e&&(0,a.createElement)("div",{className:"otter-right"},(0,a.createElement)(A,{setTab:t}))))},Z=()=>(0,a.createElement)("footer",{className:"otter-footer"},(0,a.createElement)("div",{className:"otter-container"},(0,r.__)("No otters were harmed during the making of this plugin.","otter-blocks")));void 0===window.otterUtils&&(window.otterUtils={}),window.otterUtils.useSettings=S,(0,a.render)((0,a.createElement)((()=>{const[e,t]=(0,a.useState)("dashboard");return(0,a.createElement)(a.Fragment,null,void 0!==wp.notices.store&&(0,a.createElement)(v,null),(0,a.createElement)(E,{isActive:e,setActive:t}),(0,a.createElement)(J,{currentTab:e,setTab:t}),(0,a.createElement)(Z,null))}),null),document.getElementById("otter"))},184:function(e,t){var o;!function(){"use strict";var a={}.hasOwnProperty;function l(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var n=typeof o;if("string"===n||"number"===n)e.push(o);else if(Array.isArray(o)){if(o.length){var s=l.apply(null,o);s&&e.push(s)}}else if("object"===n){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var r in o)a.call(o,r)&&o[r]&&e.push(r)}}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):void 0===(o=function(){return l}.apply(t,[]))||(e.exports=o)}()}},o={};function a(e){var l=o[e];if(void 0!==l)return l.exports;var n=o[e]={exports:{}};return t[e](n,n.exports,a),n.exports}a.m=t,e=[],a.O=function(t,o,l,n){if(!o){var s=1/0;for(m=0;m<e.length;m++){o=e[m][0],l=e[m][1],n=e[m][2];for(var r=!0,i=0;i<o.length;i++)(!1&n||s>=n)&&Object.keys(a.O).every((function(e){return a.O[e](o[i])}))?o.splice(i--,1):(r=!1,n<s&&(s=n));if(r){e.splice(m--,1);var c=l();void 0!==c&&(t=c)}}return t}n=n||0;for(var m=e.length;m>0&&e[m-1][2]>n;m--)e[m]=e[m-1];e[m]=[o,l,n]},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={826:0,431:0};a.O.j=function(t){return 0===e[t]};var t=function(t,o){var l,n,s=o[0],r=o[1],i=o[2],c=0;if(s.some((function(t){return 0!==e[t]}))){for(l in r)a.o(r,l)&&(a.m[l]=r[l]);if(i)var m=i(a)}for(t&&t(o);c<s.length;c++)n=s[c],a.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return a.O(m)},o=self.webpackChunkotter_blocks=self.webpackChunkotter_blocks||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}();var l=a.O(void 0,[431],(function(){return a(571)}));l=a.O(l)}();