X7ROOT File Manager
Current Path:
/home/notabjze/caribbeansee.com/wp-content/plugins/feedzy-rss-feeds/js/build
home
/
notabjze
/
caribbeansee.com
/
wp-content
/
plugins
/
feedzy-rss-feeds
/
js
/
build
/
ðŸ“
..
📄
action-popup.asset.php
(173 B)
📄
action-popup.js
(52.93 KB)
📄
block.asset.php
(91 B)
📄
block.js
(39.04 KB)
📄
feedback.asset.php
(146 B)
📄
feedback.js
(4.81 KB)
📄
import-onboarding.asset.php
(156 B)
📄
import-onboarding.js
(98.67 KB)
📄
style-block-rtl.css
(4.23 KB)
📄
style-block.css
(4.23 KB)
Editing: feedback.js
(()=>{var e={485:(e,t)=>{var a;!function(){"use strict";var r={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var n=typeof a;if("string"===n||"number"===n)e.push(a);else if(Array.isArray(a)){if(a.length){var o=s.apply(null,a);o&&e.push(o)}}else if("object"===n){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){e.push(a.toString());continue}for(var l in a)r.call(a,l)&&a[l]&&e.push(l)}}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(a=function(){return s}.apply(t,[]))||(e.exports=a)}()}},t={};function a(r){var s=t[r];if(void 0!==s)return s.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React,t=window.ReactDOM;var r=a.n(t),s=a(485),n=a.n(s);const o=window.wp.element,l=window.wp.components,d=window.wp.i18n,{pluginVersion:i}=window.feedzyObj||{},c=[{name:(0,d.__)("Plugin version","feedzy-rss-feeds"),value:i},{name:(0,d.__)("Feedback","feedzy-rss-feeds"),value:(0,d.__)("Text from the above text area","feedzy-rss-feeds")}],f={error:(0,d.__)("There has been an error. Your feedback couldn't be sent."),emptyFeedback:(0,d.__)("Please provide a feedback before submitting the form.","feedzy-rss-feeds")},u=({source:t,status:a,setStatus:r})=>{const[s,u]=(0,o.useState)(""),[m,p]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{const e=document.querySelector(".fz-feedback-form .info");e&&(e.style.height=m?`${e.querySelector(".wrapper")?.clientHeight}px`:"0")}),[m]),(0,e.createElement)("form",{className:"fz-feedback-form",onSubmit:e=>{e.preventDefault(),(()=>{const e=s.trim();if(5>=e.length)r("emptyFeedback");else{r("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:"feedzy-rss-feeds",version:i,feedback:e,data:{"feedback-area":t}})}).then((e=>{e.ok?r("submitted"):r("error")}))?.catch((e=>{console.warn(e.message),r("error")}))}catch(e){console.warn(e.message),r("error")}}})()}},(0,e.createElement)(l.TextareaControl,{className:n()({invalid:"emptyFeedback"===a,"f-error":"error"===a}),placeholder:(0,d.__)("We would love to hear how we can help you better with Feedzy","feedzy-rss-feeds"),value:s,rows:7,cols:50,onChange:e=>{u(e),5<e.trim().length&&r("notSubmitted")},help:f[a]||!1,autoFocus:!0}),(0,e.createElement)("div",{className:"info"},(0,e.createElement)("div",{className:"wrapper"},(0,e.createElement)("p",null,(0,d.__)("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.","feedzy-rss-feeds")),c.map(((t,a)=>(0,e.createElement)("div",{className:"info-row",key:a},(0,e.createElement)("p",null,(0,e.createElement)("b",null,t.name)),(0,e.createElement)("p",null,t.value)))))),(0,e.createElement)("div",{className:"buttons-wrap"},(0,e.createElement)(l.Button,{className:"toggle-info","aria-expanded":m,variant:"link",isLink:!0,onClick:()=>p(!m)},(0,d.__)("What info do we collect?","feedzy-rss-feeds")),(0,e.createElement)(l.Button,{className:"f-send",variant:"primary",type:"submit",isPrimary:!0,disabled:"loading"===a},"loading"===a?(0,e.createElement)(l.Spinner,null):(0,d.__)("Send feedback","feedzy-rss-feeds"))))},m=`${window.feedzyObj.assetsUrl}img/finish-feedback.svg`;r().render((0,e.createElement)((()=>{const[t,a]=(0,o.useState)(!1),[r,s]=(0,o.useState)("notSubmitted");return document.querySelectorAll('[role="button"]').forEach((e=>{e.addEventListener("keydown",(t=>{13!=t.keyCode&&32!=t.keyCode||e.click()}))})),document.querySelector("#fz-feedback-btn").addEventListener("click",(()=>a(!0))),(0,e.createElement)(o.Fragment,null,t&&(0,e.createElement)(l.Modal,{className:n()("fz-feedback-modal",{"no-header":"submitted"===r}),overlayClassName:"fz-feedback-modal-feedback-modal-overlay",title:(0,d.__)("What's one thing you need in Feedzy?","feedzy-rss-feeds"),onRequestClose:()=>a(!1),shouldCloseOnClickOutside:!1,closeButtonLabel:(0,d.__)("Close","feedzy-rss-feeds")},"submitted"!==r?(0,e.createElement)(u,{source:"dashboard",status:r,setStatus:s}):(0,e.createElement)("div",{className:"finish-feedback"},(0,e.createElement)("img",{src:m}),(0,e.createElement)("p",{className:"f-title"},(0,d.__)("Thank you for your feedback","feedzy-rss-feeds")),(0,e.createElement)("p",{className:"f-description"},(0,d.__)("Your feedback is highly appreciated and will help us to improve Feedzy RSS Feeds.","feedzy-rss-feeds")))))}),null),document.querySelector("#fz-feedback-modal"))})()})();
Upload File
Create Folder