Plugin Directory

Changeset 2907940


Ignore:
Timestamp:
05/04/2023 10:48:22 AM (3 years ago)
Author:
emanadesign
Message:

Version 0.7.1

Location:
flusso-ai-generated-content
Files:
63 added
12 edited

Legend:

Unmodified
Added
Removed
  • flusso-ai-generated-content/trunk/assets/css/style-rtl.css

    r2907116 r2907940  
    835835}
    836836
     837#emn-fl-chat-prompt.emn-fl-can-add-img {
     838    padding-left: 38px;
     839}
     840
    837841#emn-fl-chat-prompt::placeholder {
    838842    color: rgba(143, 155, 186, 0.5);
     843}
     844
     845.emn-fl-form-field-chat-prompt-container {
     846    position: relative;
     847}
     848
     849#emn-fl-chat-add-img, #emn-fl-chat-remove-img {
     850    position: absolute;
     851    left: 10px;
     852    top: 12px;
     853    cursor: pointer;
     854    color: #9ea0a5;
     855}
     856
     857.emn-fl-form-field-chat-prompt-container svg.emn-fl-hidden {
     858    opacity: 0;
     859    visibility: hidden;
    839860}
    840861
  • flusso-ai-generated-content/trunk/assets/css/style-rtl.min.css

    r2907116 r2907940  
    1 #emn-fl-confirm-modal,#emn_fl_meta_page_options .inside,#emn_fl_meta_post_options .inside,#emn_fl_meta_product_options .inside,.emn-fl-white-box{background-color:#fff}#emn-fl-confirm-modal svg,.emn-fl-grid-container{margin-left:auto;margin-right:auto}body[class*=flusso-ai]{background-color:#f4f7fe}.emn-fl-transitions-2s{-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.emn-fl-white-box{padding:20px 26px;border-radius:20px;margin-bottom:22px}.emn-fl-text-right{text-align:left}.emn-fl-white-box>h3{margin-top:6px}.emn-fl-grid-container.emn-fl-no-padding-left-right{padding-right:0;padding-left:0}input[type=checkbox].emn-fl-checkbox{box-sizing:border-box;font-size:1rem;line-height:1.5;padding:10px!important;border:1px solid #ececec;outline:0;border-radius:4px;margin:6px 5px;cursor:pointer;background-color:transparent;opacity:0;position:absolute;z-index:2}.emn-fl-checkbox-control{position:relative;width:28px;height:28px;margin-left:6px;margin-top:2px;border-radius:4px;border:1px solid #d0d0d0;vertical-align:middle;float:right;background-color:inherit;cursor:pointer;margin-bottom:4px;transform:scale(.75)}.emn-fl-feather,.emn-fl-generated-image-actions h3 svg{vertical-align:sub;margin-left:6px}.emn-fl-checkbox:checked+.emn-fl-checkbox-control:after{content:"";display:block;position:absolute;background-color:#422afb;top:6px;right:6px;width:16px;height:16px;border-radius:3px}.emn-fl-checkbox-control+label{padding-top:3px;font-size:16px}.emn-fl-checkbox-control+p.emn-fl-form-field-desc{clear:both}.emn-fl-button,body[class*=flusso-ai] .submit input[type=submit]{background-color:#422afb;color:#fff;border:none;line-height:1.2;border-radius:16px;font-size:1.2em;padding:10px 26px;cursor:pointer;-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.emn-fl-button.emn-fl-key-validate{background-color:#3a9f54;margin-right:8px}.emn-fl-button:not(.emn-fl-button-saved):hover,body[class*=flusso-ai] .submit input[type=submit]:hover{background-color:#3311db}.emn-fl-button.emn-fl-key-validate:hover{background-color:#338a49}.emn-fl-button-delete{background-color:#f70404}.emn-fl-button.emn-fl-button-delete:hover{background-color:#d20404}.emn-fl-wrap{position:relative}.emn-fl-loading,.emn-fl-white-overlay{position:fixed;width:calc(100% - 160px);height:100%;display:none;top:0;right:160px;border-radius:24px;background-color:rgba(255,255,255,.7);z-index:99}.emn-fl-modal-overlay{right:0;width:100%}.emn-fl-loading{z-index:100}@media screen and (max-width:960px){.emn-fl-loading,.emn-fl-white-overlay{width:calc(100% - 36px);right:36px}}@media screen and (max-width:782px){.emn-fl-loading,.emn-fl-white-overlay{width:100%;right:0}body[class*=flusso-ai] form th{margin-bottom:6px}td p.emn-fl-form-field-desc{margin-top:8px}}.emn-fl-loading div span,.emn-fl-loading.emn-fl-show{display:block}.emn-fl-loading div{position:absolute;transform:translate(50%,-50%);top:50%;right:50%;text-align:center}.emn-fl-plugin-header-img-container h1,.emn-fl-plugin-header-img-container img{display:inline-block}.emn-fl-plugin-header-img-container img{width:32px;margin-left:8px;vertical-align:text-bottom}.emn-fl-plugin-header-img-container+p{margin-top:0}#adminmenu a.toplevel_page_flusso-ai-generated-content .wp-menu-image.svg{background-size:18px auto}.emn-fl-dashicons{display:inline-block;margin-left:8px}.emn-fl-dashicons:before{width:27px;height:27px;font-size:27px;vertical-align:bottom}h2.emn-fl-title-outside{display:inline-block;font-size:23px;margin:8px 0 6px}.emn-fl-media-button img{width:18px;margin-left:6px}.emn-fl-l-modal{width:100%;height:100%;position:fixed;top:0;right:0;z-index:9998;background-color:rgba(0,0,0,.6);opacity:0;visibility:hidden}.emn-fl-l-modal.emn-fl-show{opacity:1;visibility:visible}.emn-fl-l-modal-inner{width:80%;position:absolute;transform:translate(50%,-50%);top:35%;right:50%;height:80%;padding:24px;overflow-y:scroll;background-color:#f4f7fe;border-radius:22px}.emn-fl-chat-options div,.emn-fl-l-modal-inner .emn-fl-single-input{margin-bottom:28px}.emn-fl-l-modal-inner .emn-fl-loading{right:0;top:0;position:absolute;width:100%}.emn-fl-l-modal.emn-fl-show .emn-fl-l-modal-inner{top:50%}#emn-fl-confirm-modal button.emn-fl-button-post-type-modal,.emn-fl-l-modal-inner .emn-fl-top-title-small,.emn-fl-post-list-load-more{margin-bottom:12px}.emn-fl-l-modal-inner .emn-fl-section-title-big{margin-bottom:16px}.emn-fl-l-modal-inner .emn-fl-white-box{padding:26px}.emn-fl-l-modal-inner label{cursor:default;font-weight:700;font-size:15px;margin-bottom:4px;display:block}.emn-fl-l-modal-inner label.emn-fl-required-label:after{content:'*';display:inline-block}.emn-fl-l-modal-inner label+small,td p.emn-fl-form-field-desc{font-size:12px}.emn-fl-l-modal-inner input[type=number],.emn-fl-l-modal-inner input[type=text],.emn-fl-l-modal-inner select{margin-top:10px}.emn-fl-meta-logo{width:22px;padding-right:18px}#emn_fl_meta_page_options,#emn_fl_meta_post_options,#emn_fl_meta_product_options{background:0 0;width:100%;margin-right:auto;margin-left:auto;font-family:'DM Sans';border:none}.block-editor-page #emn_fl_meta_page_options,.block-editor-page #emn_fl_meta_post_options,.block-editor-page #emn_fl_meta_product_options{width:90%}#emn_fl_meta_page_options .postbox-header,#emn_fl_meta_post_options .postbox-header,#emn_fl_meta_product_options .postbox-header{border-radius:10px 10px 0 0;padding:8px 12px;background-color:#fff;color:#fff;border:1px solid #cccccc60}#emn_fl_meta_page_options p,#emn_fl_meta_post_options p,#emn_fl_meta_product_options p{font-size:15px;font-weight:400;color:#8a8a8a;margin-top:6px}p.emn-fl-no-margin-top{margin-top:0!important}.emn_fl_post_meta_boxes>.inside>p{padding:22px 0 16px}#emn_fl_meta_page_options>.postbox-header+.inside,#emn_fl_meta_post_options>.postbox-header+.inside,#emn_fl_meta_product_options>.postbox-header+.inside{border-right:1px solid #eee;border-left:1px solid #eee;border-bottom:1px solid #eee}#poststuff #emn_fl_meta_page_options .postbox-header h2.hndle,#poststuff #emn_fl_meta_post_options .postbox-header h2.hndle,#poststuff #emn_fl_meta_product_options .postbox-header h2.hndle{font-size:17px;color:#2d3748;padding-right:12px}#poststuff #emn_fl_meta_page_options .inside,#poststuff #emn_fl_meta_post_options .inside,#poststuff #emn_fl_meta_product_options .inside{margin-top:0;padding-top:6px}#emn_fl_meta_page_options .toggle-indicator,#emn_fl_meta_page_options.postbox .handle-order-higher .order-higher-indicator::before,#emn_fl_meta_page_options.postbox .handle-order-lower .order-lower-indicator::before,#emn_fl_meta_post_options .toggle-indicator,#emn_fl_meta_post_options.postbox .handle-order-higher .order-higher-indicator::before,#emn_fl_meta_post_options.postbox .handle-order-lower .order-lower-indicator::before,#emn_fl_meta_product_options .toggle-indicator,#emn_fl_meta_product_options.postbox .handle-order-higher .order-higher-indicator::before,#emn_fl_meta_product_options.postbox .handle-order-lower .order-lower-indicator::before{color:#2d3748}#emn_fl_meta_page_options table,#emn_fl_meta_post_options table,#emn_fl_meta_product_options table{width:100%;border-collapse:collapse}#emn_fl_meta_page_options table tr,#emn_fl_meta_post_options table tr,#emn_fl_meta_product_options table tr{border-top:1px solid #eee}#emn_fl_meta_page_options table td,#emn_fl_meta_page_options table th,#emn_fl_meta_post_options table td,#emn_fl_meta_post_options table th,#emn_fl_meta_product_options table td,#emn_fl_meta_product_options table th{padding-top:16px;padding-bottom:16px}#emn_fl_meta_page_options h4,#emn_fl_meta_post_options h4,#emn_fl_meta_product_options h4{font-size:16px;margin-bottom:0}#emn_fl_meta_page_options table th,#emn_fl_meta_post_options table th,#emn_fl_meta_product_options table th{width:30%;text-align:right}#emn_fl_meta_page_options table td,#emn_fl_meta_post_options table td,#emn_fl_meta_product_options table td{width:70%;padding-right:26px}#emn-fl-key-points-editor{height:220px}#emn-fl-confirm-modal{position:fixed;z-index:99;transform:translate(50%,-60%);top:50%;right:50%;width:680px;max-width:90%;border-radius:24px;padding:32px;box-shadow:rgb(112 144 176 / 20%) 0 18px 40px;max-height:50vh;overflow-y:scroll}#emn-fl-confirm-modal svg{display:block;width:46px;height:46px}#emn-fl-confirm-modal .emn-fl-medium-title{font-size:2.2em}#emn-fl-confirm-modal .emn-fl-section-p{margin-top:26px}#emn-fl-confirm-modal .emn-fl-grid-container{margin-top:32px}#emn-fl-confirm-modal button:not([id*=mce]):not(.insert-media):not([data-wp-editor-id=emn-fl-new-content-textarea]){padding:14px 26px}.emn-fl-post-list-container{border:1px solid #e0e5f2;padding:16px 10px 6px;border-radius:16px;margin-bottom:12px;display:none;max-height:250px;overflow-y:scroll}.emn-fl-post-list-single{position:relative;text-align:right;font-size:15px;margin-bottom:10px;display:flex}.emn-fl-post-list-no-results{padding:10px}.emn-fl-post-list-single input[type=checkbox]{right:0}.emn-fl-post-list-single label{display:flex;padding-top:7px}.emn-fl-button-post-type-modal-loaded{cursor:default}.emn-fl-post-list-search input{width:80%;margin:10px 0 20px;background-color:transparent!important}.emn-fl-modal-separator{padding-top:30px;margin-top:30px;border-top:1px solid #cccccc30}@-webkit-keyframes emn_fl_rotating{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(-360deg)}}.emn-fl-rotating{-webkit-animation:2s linear infinite emn_fl_rotating;animation:2s linear infinite emn_fl_rotating;-moz-animation:2s linear infinite emn_fl_rotating;-o-animation:2s linear infinite emn_fl_rotating}.emn-fl-dm-sans,.emn-fl-l-modal-inner *,.emn-fl-wrap,.emn-fl-wrap ol li{font-family:'DM Sans',sans-serif}.emn-fl-section-title-big{font-size:34px!important;font-weight:800!important;outline:transparent solid 2px;margin-top:2px!important;outline-offset:2px;color:#2d3748;padding-top:4px!important}.emn-fl-overview-buttons-container .emn-fl-cell,.emn-fl-text-center{text-align:center}.emn-fl-warning{font-weight:700!important;color:#f61717!important;margin-bottom:0}.emn-fl-top-title-small{font-size:.875rem;outline:transparent solid 2px;outline-offset:2px;color:#2d3748;font-weight:400;margin-bottom:0}.emn-fl-section-p,.emn-fl-section-p+ol li,.emn-fl-section-p+ul li{color:#a0aec0;font-weight:500;font-size:16px;margin-top:4px}.emn-fl-section-p+ol,.emn-fl-section-p+ul{margin-right:0;list-style-position:inside}.emn-fl-section-p+ol li,.emn-fl-section-p+ul li{margin-bottom:12px;line-height:24px}.emn-fl-chat___message p:last-child,.emn-fl-section-p+ol li:last-child,.emn-fl-section-p+ul li:last-child{margin-bottom:0}.emn-fl-medium-title{font-size:1.5em;color:#2d3748;margin-bottom:8px}.emn-fl-medium-title-small{font-size:14px;margin-top:24px;margin-bottom:24px}.emn-fl-medium-title-small svg{width:16px;height:16px}.emn-fl-empty-message{position:absolute;transform:translate(50%,-50%);top:60%;right:50%;width:80%;text-align:center}label.emn-fl-dm-sans{font-weight:500;font-size:1.2em;color:#1b2559;margin-bottom:8px}.emn-fl-overview-buttons-container,.emn-fl-overview-buttons-container .emn-fl-button+p,.emn-fl-send-audio-file{margin-top:18px}.emn-fl-overview-buttons-container .emn-fl-button{padding-top:26px;padding-bottom:26px;display:block;font-weight:700;font-size:18px;text-decoration:none}.emn-fl-overview-buttons-container .emn-fl-button[href*="mailto:"],.emn-fl-overview-buttons-container .emn-fl-button[href*=ko-fi],.emn-fl-overview-buttons-container .emn-fl-button[href="https://emana.design/docs/flusso-ai"]{display:inline-block;font-size:16px;font-weight:400;padding-top:16px;padding-bottom:16px}.emn-fl-overview-buttons-container .emn-fl-button[href*="mailto:"] svg,.emn-fl-overview-buttons-container .emn-fl-button[href*=ko-fi] svg,.emn-fl-overview-buttons-container .emn-fl-button[href="https://emana.design/docs/flusso-ai"] svg{vertical-align:middle;width:20px;height:20px}.emn-fl-overview-buttons-container .emn-fl-button:active,.emn-fl-overview-buttons-container .emn-fl-button:focus,.emn-fl-overview-buttons-container .emn-fl-button:hover{color:#fff}.emn-fl-overview-buttons-container .emn-fl-button svg{vertical-align:sub;margin-left:8px}#emn-fl-chat-prompt,.emn-fl-settings-form input[type=password],.emn-fl-settings-form input[type=text]:not(.emn-fl-color-picker){border-radius:16px;padding:6px 10px;border:1px solid #e0e5f2;width:400px;max-width:90%}.emn-fl-settings-form select{width:200px;max-width:100%;border-radius:16px;padding:6px 10px;border:1px solid #e0e5f2}body[class*=flusso-ai] p.submit{padding-bottom:0}.emn-fl-form-single-input{margin-bottom:18px}.emn-fl-textarea-prompt{width:calc(100% - 26px);resize:none;border-radius:12px;padding:16px;font-size:18px;height:150px;border-color:#e0e5f2;border-style:dashed;background-color:#f0f5fa;color:#8f9bba;margin-bottom:8px}.emn-fl-textarea-prompt::placeholder{color:rgba(143,155,186,.5)}.emn-fl-generator-settings-form label,.emn-fl-settings label{display:block;font-weight:700}.emn-fl-input,.emn-fl-select{background-color:#f4f7fe!important;border-radius:14px!important;padding:4px 12px!important;width:90%;color:#2d3748!important}.emn-generated-images-container{min-height:250px;position:relative}.emn-fl-generated-image-container{margin-right:auto;margin-left:auto;padding:32px 30px 30px;margin-bottom:32px;display:inline-flex;border-radius:24px;box-shadow:rgb(112 144 176 / 12%) 0 18px 40px}.emn-fl-generated-image,.emn-fl-image-variation-of{background-size:cover;background-position:center center;background-repeat:no-repeat;border-radius:18px;width:44%;display:inline-block;height:460px}.emn-fl-single-image-variation{border:1px dashed #ccc}.emn-fl-image-variation-of{width:110px;height:110px}.emn-fl-generated-image-actions button{font-size:16px;display:block;margin-bottom:14px;border-radius:12px;font-weight:500}.emn-fl-generated-image-actions button svg,.emn-fl-save-all-images-in-media svg,button svg{vertical-align:text-top;margin-left:8px;width:20px;height:20px}.emn-fl-save-all-images-in-media{margin-bottom:8px}.emn-fl-button-saved{background-color:#007e00;cursor:default}#emn-fl-chat-content-container{height:420px;margin-bottom:18px;width:calc(100% - 8px);padding:0}#emn-fl-chat-prompt{width:100%;max-width:100%;margin-bottom:18px;background-color:#f0f5fa;height:50px;font-size:16px;padding:10px 16px}#emn-fl-chat-prompt::placeholder{color:rgba(143,155,186,.5)}.emn-fl-chat-content-container-inner{width:100%;height:100%;overflow-y:scroll;position:relative}button.emn-fl-new-chat{background-color:#67b5ae}button.emn-fl-new-chat:hover{background-color:#53948e!important}.emn-fl-button+small{display:block;font-size:12px;font-style:italic;margin-top:6px;margin-right:12px}.emn-fl-chat___message p,.emn-fl-transition-container p{font-size:16px;line-height:28px}.emn-fl-button.emn-fl-new-chat+small{margin-right:0;margin-left:12px}.emn-fl-chat___select_all[data-visibility="0"],.emn-fl-new-chat-container[data-visibility="0"]{opacity:0;visibility:hidden}.emn-fl-chat___element{padding:10px 20px}.emn-fl-chat___start{padding:10px 20px;font-size:12px;text-transform:uppercase;font-weight:700;border-bottom:1px solid #e0e5f2}.emn-fl-chat___select_all{position:absolute;top:7px;left:13px;text-transform:uppercase;font-size:12px;font-weight:700;border:1px solid;padding:2px 8px;cursor:pointer}.emn-fl-chat___select_all:hover{background-color:#8f9bba;color:#f0f5fa}.emn-fl-chat___message{padding:8px 64px 20px 20px;position:relative}.emn-fl-chat___message_text{min-height:40px;padding-left:62px}.emn-fl-chat___message_select{position:absolute;transform:translateY(-50%);top:50%;left:30px}@media screen and (max-width:800px){.emn-fl-chat___message_select{left:20px}.emn-fl-chat___message_text{padding-left:42px}}#emn-fl-chat-content-hidden{opacity:0;height:1px;width:1px;overflow:scroll;position:absolute;top:0;z-index:-1}.emn-fl-chat-check-message+.emn-fl-checkbox-control{border:1px solid #8f9bba}.emn-fl-chat-message___signature{position:absolute;right:18px;top:26px;width:30px;height:24px;color:#fff;font-size:11px;text-transform:uppercase;text-align:center;padding-top:6px}.emn-fl-chat___message[data-sender=assistant]{background-color:#dae1e7f5}.emn-fl-chat___message[data-sender=assistant] .emn-fl-chat-message___signature{background-color:#6877bf}.emn-fl-chat___message[data-sender=system] .emn-fl-chat-message___signature,.emn-fl-chat___message[data-sender=user] .emn-fl-chat-message___signature{background-color:#67b5ae}#emn-fl-new-content-textarea{width:100%}#wp-emn-fl-new-content-textarea-wrap .mce-btn.mce-active i{color:#000}.emn-fl-new-content-select-post-type option[value=portfolio],.emn-fl-new-content-select-post-type option[value=product]{display:none}.emn-fl-go-to-new-content{display:table;margin-right:auto;margin-left:auto;font-size:18px;text-decoration:none;color:#fff;background-color:#42ba96;border:1px solid #42ba96;padding:12px 20px;border-radius:16px}#emn-fl-confirm-modal .emn-fl-go-to-new-content svg{display:inline-block;width:20px;height:20px;vertical-align:middle;margin-right:6px}.emn-fl-go-to-new-content:active,.emn-fl-go-to-new-content:focus,.emn-fl-go-to-new-content:hover{background-color:#fff;color:#42ba96}.emn-fl-selected-filename{margin-bottom:12px;display:block;font-size:14px}.emn-fl-selected-filename svg{width:16px;height:16px;margin-left:8px;vertical-align:middle}.emn-fl-transition-container p{padding:0 22px}.emn-fl-alert{width:1140px;max-width:1140px;bottom:-100px;right:50%;transform:translateX(50%);position:fixed;padding:26px 34px;color:#fefefe;border-radius:8px;font-size:18px;-moz-transition:none,.2s;-o-transition:none,.2s;-webkit-transition:none,.2s;transition:none,.2s;z-index:9999}.emn-fl-alert .emn-fl-alert-message{padding-left:35px;display:inline-block}.emn-fl-alert-active{bottom:40px}.emn-fl-alert-general{background-color:#506efa}.emn-fl-alert-success{background-color:#42ba96}.emn-fl-alert-warning{background-color:#df4759}@media screen and (max-width:1200px){.emn-fl-button.emn-fl-openai-key-validate{display:block;margin-right:0;margin-top:12px}.emn-fl-alert{width:90%;max-width:90%}}.emn-fl-delete-button-container{border-bottom:1px solid #e0e0e050;padding-bottom:22px;padding-top:22px}.emn-fl-delete-button-container:first-child{padding-top:0}.emn-fl-delete-button-container button svg{vertical-align:sub;margin-left:6px;height:20px;width:20px}.emn-fl-delete-button-container button+p{margin-top:12px;margin-bottom:0}.emn-fl-remember{color:#a0aec0;text-align:center;margin-top:12px;line-height:24px}
     1 .emn-fl-grid-container {margin-right: auto;margin-left: auto;}body[class*="flusso-ai"] {background-color: #f4f7fe;}.emn-fl-transitions-2s {-webkit-transition: all .2s;-moz-transition: all .2s;-o-transition: all .2s;transition: all .2s;}.emn-fl-white-box {padding: 20px 26px;background-color: white;border-radius: 20px;margin-bottom: 22px;}.emn-fl-text-right {text-align: left;}.emn-fl-white-box > h3 {margin-top: 6px;}.emn-fl-grid-container.emn-fl-no-padding-left-right {padding-right: 0;padding-left: 0;}input[type=checkbox].emn-fl-checkbox {box-sizing: border-box;font-size: 1rem;line-height: 1.5;padding: 10px !important;border: 1px solid #ececec;outline: 0;border-radius: 4px;margin: 6px 5px;cursor: pointer;background-color: transparent;opacity: 0;position: absolute;z-index: 2;}.emn-fl-checkbox-control {position: relative;width: 28px;height: 28px;margin-left: 6px;margin-top: 2px;border-radius: 4px;border: 1px solid #d0d0d0;vertical-align: middle;float: right;background-color: inherit;cursor: pointer;margin-bottom: 4px;}.emn-fl-checkbox:checked + .emn-fl-checkbox-control:after {content: "";display: block;position: absolute;background-color: #422afb;top: 6px;right: 6px;width: 16px;height: 16px;border-radius: 3px;}.emn-fl-checkbox-control + label {padding-top: 3px;font-size: 16px;}.emn-fl-checkbox-control + p.emn-fl-form-field-desc {clear: both;}.emn-fl-checkbox-control {transform: scale(0.75);}.emn-fl-button, body[class*="flusso-ai"] .submit input[type="submit"] {background-color: #422afb;color: white;border: none;line-height: 1.2;border-radius: 16px;font-size: 1.2em;padding: 10px 26px;cursor: pointer;-webkit-transition: all .2s;-moz-transition: all .2s;-o-transition: all .2s;transition: all .2s;}.emn-fl-button.emn-fl-key-validate {background-color: #3a9f54;margin-right: 8px;}.emn-fl-button:not(.emn-fl-button-saved):hover, body[class*="flusso-ai"] .submit input[type="submit"]:hover {background-color: #3311db;}.emn-fl-button.emn-fl-key-validate:hover {background-color: #338a49;}.emn-fl-button-delete {background-color: rgb(247, 4, 4);}.emn-fl-button.emn-fl-button-delete:hover {background-color: rgb(210, 4, 4);}.emn-fl-wrap {position: relative;}.emn-fl-loading, .emn-fl-white-overlay {position: fixed;width: calc(100% - 160px);height: 100%;display: none;top: 0;right: 160px;border-radius: 24px;background-color: rgba(255, 255, 255, 0.7);z-index: 99;}.emn-fl-modal-overlay {right: 0;width: 100%;}.emn-fl-loading {z-index: 100;}@media screen and (max-width: 1200px) {.emn-fl-button.emn-fl-openai-key-validate {display: block;margin-right: 0;margin-top: 12px;}}@media screen and (max-width: 960px){.emn-fl-loading, .emn-fl-white-overlay {width: calc(100% - 36px);right: 36px;}}@media screen and (max-width: 782px){.emn-fl-loading, .emn-fl-white-overlay {width: 100%;right: 0;}body[class*="flusso-ai"] form th {margin-bottom: 6px;}td p.emn-fl-form-field-desc {margin-top: 8px;}}.emn-fl-loading.emn-fl-show {display: block;}.emn-fl-loading div {position: absolute;transform: translate(50%, -50%);top: 50%;right: 50%;text-align: center;}.emn-fl-loading div span {display: block;}.emn-fl-plugin-header-img-container img, .emn-fl-plugin-header-img-container h1 {display: inline-block;}.emn-fl-plugin-header-img-container img {width: 32px;margin-left: 8px;vertical-align: text-bottom;}.emn-fl-plugin-header-img-container + p {margin-top: 0;}#adminmenu a.toplevel_page_flusso-ai-generated-content .wp-menu-image.svg {background-size: 18px auto;}.emn-fl-dashicons {display: inline-block;margin-left: 8px;}.emn-fl-dashicons:before {width: 27px;height: 27px;font-size: 27px;vertical-align: bottom;}h2.emn-fl-title-outside {display: inline-block;font-size: 23px;margin: 8px 0 6px;}.emn-fl-media-button img {width: 18px;margin-left: 6px;}.emn-fl-l-modal {width: 100%;height: 100%;position: fixed;top: 0;right: 0;z-index: 9998;background-color: rgba(0, 0, 0, 0.6);opacity: 0;visibility: hidden;}.emn-fl-l-modal.emn-fl-show {opacity: 1;visibility: visible;}.emn-fl-l-modal-inner {width: 80%;position: absolute;transform: translate(50%, -50%);top: 35%;right: 50%;height: 80%;padding: 24px;overflow-y: scroll;background-color: #f4f7fe;border-radius: 22px;}.emn-fl-l-modal-inner .emn-fl-single-input {margin-bottom: 28px;}.emn-fl-l-modal-inner .emn-fl-loading {right: 0;top: 0;position: absolute;width: 100%;}.emn-fl-l-modal.emn-fl-show .emn-fl-l-modal-inner {top: 50%;}.emn-fl-l-modal-inner .emn-fl-top-title-small {margin-bottom: 12px;}.emn-fl-l-modal-inner .emn-fl-section-title-big {margin-bottom: 16px;}.emn-fl-l-modal-inner .emn-fl-white-box {padding: 26px;}.emn-fl-l-modal-inner label {cursor: default;font-weight: bold;font-size: 15px;margin-bottom: 4px;display: block;}.emn-fl-l-modal-inner label.emn-fl-required-label:after {content: '*';display: inline-block;}.emn-fl-l-modal-inner label + small {font-size: 12px;}.emn-fl-l-modal-inner input[type="text"], .emn-fl-l-modal-inner input[type="number"], .emn-fl-l-modal-inner select {margin-top: 10px;}.emn-fl-meta-logo {width: 22px;padding-right: 18px;}#emn_fl_meta_post_options, #emn_fl_meta_page_options, #emn_fl_meta_product_options {background: transparent;width: 100%;margin-right: auto;margin-left: auto;font-family: 'DM Sans';border: none;}.block-editor-page #emn_fl_meta_post_options, .block-editor-page #emn_fl_meta_page_options, .block-editor-page #emn_fl_meta_product_options {width: 90%;}#emn_fl_meta_post_options .inside, #emn_fl_meta_page_options .inside, #emn_fl_meta_product_options .inside {background-color: white;}#emn_fl_meta_post_options .postbox-header, #emn_fl_meta_page_options .postbox-header, #emn_fl_meta_product_options .postbox-header {border-radius: 10px;border-bottom-left-radius: 0;border-bottom-right-radius: 0;padding: 8px 12px;background-color: #ffffff;color: white;border: 1px solid #cccccc60;}#emn_fl_meta_post_options p, #emn_fl_meta_page_options p, #emn_fl_meta_product_options p {font-size: 15px;font-weight: normal;color: #8a8a8a;margin-top: 6px;}p.emn-fl-no-margin-top {margin-top: 0 !important;}.emn_fl_post_meta_boxes > .inside > p, .emn_fl_post_meta_boxes > .inside > p, .emn_fl_post_meta_boxes > .inside > p {padding: 22px 0 16px;}#emn_fl_meta_post_options > .postbox-header + .inside, #emn_fl_meta_page_options > .postbox-header + .inside, #emn_fl_meta_product_options > .postbox-header + .inside {border-right: 1px solid #eeeeee;border-left: 1px solid #eeeeee;border-bottom: 1px solid #eeeeee;}#poststuff #emn_fl_meta_post_options .postbox-header h2.hndle, #poststuff #emn_fl_meta_page_options .postbox-header h2.hndle, #poststuff #emn_fl_meta_product_options .postbox-header h2.hndle {font-size: 17px;color: #2d3748;padding-right: 12px;}#poststuff #emn_fl_meta_post_options .inside, #poststuff #emn_fl_meta_page_options .inside, #poststuff #emn_fl_meta_product_options .inside {margin-top: 0;padding-top: 6px;}#emn_fl_meta_post_options .toggle-indicator, #emn_fl_meta_page_options .toggle-indicator, #emn_fl_meta_product_options .toggle-indicator, #emn_fl_meta_post_options.postbox .handle-order-higher .order-higher-indicator::before, #emn_fl_meta_post_options.postbox .handle-order-lower .order-lower-indicator::before, #emn_fl_meta_page_options.postbox .handle-order-higher .order-higher-indicator::before, #emn_fl_meta_page_options.postbox .handle-order-lower .order-lower-indicator::before, #emn_fl_meta_product_options.postbox .handle-order-higher .order-higher-indicator::before, #emn_fl_meta_product_options.postbox .handle-order-lower .order-lower-indicator::before {color: #2d3748;}#emn_fl_meta_post_options table, #emn_fl_meta_page_options table, #emn_fl_meta_product_options table {width: 100%;border-collapse: collapse;}#emn_fl_meta_post_options table tr, #emn_fl_meta_page_options table tr, #emn_fl_meta_product_options table tr {border-top: 1px solid #eeeeee;}#emn_fl_meta_post_options table th, #emn_fl_meta_page_options table th, #emn_fl_meta_product_options table th, #emn_fl_meta_post_options table td, #emn_fl_meta_page_options table td, #emn_fl_meta_product_options table td {padding-top: 16px;padding-bottom: 16px;}#emn_fl_meta_post_options h4, #emn_fl_meta_page_options h4, #emn_fl_meta_product_options h4 {font-size: 16px;margin-bottom: 0;}#emn_fl_meta_post_options table th, #emn_fl_meta_page_options table th, #emn_fl_meta_product_options table th {width: 30%;text-align: right;}#emn_fl_meta_post_options table td, #emn_fl_meta_page_options table td, #emn_fl_meta_product_options table td {width: 70%;padding-right: 26px;}#emn-fl-key-points-editor {height: 220px;}#emn-fl-confirm-modal {position: fixed;z-index: 99;transform: translate(50%, -60%);top: 50%;right: 50%;width: 680px;max-width: 90%;border-radius: 24px;background-color: white;padding: 32px;box-shadow: rgb(112 144 176 / 20%) 0px 18px 40px;max-height: 50vh;overflow-y: scroll;}#emn-fl-confirm-modal svg {margin-right: auto;margin-left: auto;display: block;width: 46px;height: 46px;}#emn-fl-confirm-modal .emn-fl-medium-title {font-size: 2.2em;}#emn-fl-confirm-modal .emn-fl-section-p {margin-top: 26px;}#emn-fl-confirm-modal .emn-fl-grid-container {margin-top: 32px;}#emn-fl-confirm-modal button:not([id*='mce']):not(.insert-media):not([data-wp-editor-id="emn-fl-new-content-textarea"]) {padding: 14px 26px;}#emn-fl-confirm-modal button.emn-fl-button-post-type-modal {margin-bottom: 12px;}.emn-fl-post-list-container {border: 1px solid #e0e5f2;padding: 10px;border-radius: 16px;margin-bottom: 12px;display: none;padding: 16px 10px 6px;max-height: 250px;overflow-y: scroll;}.emn-fl-post-list-single {position: relative;text-align: right;font-size: 15px;margin-bottom: 10px;display: flex;}.emn-fl-post-list-no-results {padding: 10px;}.emn-fl-post-list-single input[type="checkbox"] {right: 0;}.emn-fl-post-list-single label {display: flex;padding-top: 7px;}.emn-fl-button-post-type-modal-loaded {cursor: default;}.emn-fl-post-list-search input {width: 80%;margin: 10px 0 20px;background-color: transparent !important;}.emn-fl-post-list-load-more {margin-bottom: 12px;}.emn-fl-modal-separator {padding-top: 30px;margin-top: 30px;border-top: 1px solid #cccccc30;}@-webkit-keyframes emn_fl_rotating {from{-webkit-transform: rotate(0deg);}to{-webkit-transform: rotate(-360deg);}}.emn-fl-rotating {-webkit-animation: emn_fl_rotating 2s linear infinite;animation: emn_fl_rotating 2s linear infinite;-moz-animation: emn_fl_rotating 2s linear infinite;-o-animation: emn_fl_rotating 2s linear infinite;;}.emn-fl-dm-sans, .emn-fl-wrap, .emn-fl-wrap ol li, .emn-fl-l-modal-inner * {font-family: 'DM Sans', sans-serif;}.emn-fl-section-title-big {font-size: 34px !important;font-weight: 800 !important;outline: transparent solid 2px;margin-top: 2px !important;outline-offset: 2px;color: #2d3748;padding-top: 4px !important;}.emn-fl-text-center {text-align: center;}.emn-fl-warning {font-weight: bold !important;color: #f61717 !important;margin-bottom: 0;}.emn-fl-top-title-small {font-size: 0.875rem;outline: transparent solid 2px;outline-offset: 2px;color: #2d3748;font-weight: 400;margin-bottom: 0;}.emn-fl-section-p, .emn-fl-section-p + ol li, .emn-fl-section-p + ul li {color: #a0aec0;font-weight: 500;font-size: 16px;margin-top: 4px;}.emn-fl-section-p + ol, .emn-fl-section-p + ul {margin-right: 0;list-style-position: inside;}.emn-fl-section-p + ol li, .emn-fl-section-p + ul li {margin-bottom: 12px;line-height: 24px;}.emn-fl-section-p + ol li:last-child, .emn-fl-section-p + ul li:last-child {margin-bottom: 0;}.emn-fl-medium-title {font-size: 1.5em;color: #2d3748;margin-bottom: 8px;}.emn-fl-medium-title-small {font-size: 14px;margin-top: 24px;margin-bottom: 24px;}.emn-fl-medium-title-small svg {width: 16px;height: 16px;}.emn-fl-feather {margin-left: 6px;vertical-align: sub;}.emn-fl-empty-message {position: absolute;transform: translate(50%, -50%);top: 60%;right: 50%;width: 80%;text-align: center;}label.emn-fl-dm-sans {font-weight: 500;font-size: 1.2em;color: #1b2559;margin-bottom: 8px;}.emn-fl-overview-buttons-container {margin-top: 18px;}.emn-fl-overview-buttons-container .emn-fl-cell {text-align: center;}.emn-fl-overview-buttons-container .emn-fl-button {padding-top: 26px;padding-bottom: 26px;display: block;font-weight: bold;font-size: 18px;text-decoration: none;}.emn-fl-overview-buttons-container .emn-fl-button[href*="mailto:"], .emn-fl-overview-buttons-container .emn-fl-button[href="https://emana.design/docs/flusso-ai"], .emn-fl-overview-buttons-container .emn-fl-button[href*="ko-fi"] {display: inline-block;font-size: 16px;font-weight: normal;padding-top: 16px;padding-bottom: 16px;}.emn-fl-overview-buttons-container .emn-fl-button[href*="mailto:"] svg, .emn-fl-overview-buttons-container .emn-fl-button[href="https://emana.design/docs/flusso-ai"] svg, .emn-fl-overview-buttons-container .emn-fl-button[href*="ko-fi"] svg {vertical-align: middle;width: 20px;height: 20px;}.emn-fl-overview-buttons-container .emn-fl-button + p {margin-top: 18px;}.emn-fl-overview-buttons-container .emn-fl-button:hover, .emn-fl-overview-buttons-container .emn-fl-button:active, .emn-fl-overview-buttons-container .emn-fl-button:focus {color: white;}.emn-fl-overview-buttons-container .emn-fl-button svg {vertical-align: sub;margin-left: 8px;}.emn-fl-settings-form input[type="password"], .emn-fl-settings-form input[type="text"]:not(.emn-fl-color-picker), #emn-fl-chat-prompt {border-radius: 16px;padding: 6px 10px;border: 1px solid #e0e5f2;width: 400px;max-width: 90%;}.emn-fl-settings-form select {width: 200px;max-width: 100%;border-radius: 16px;padding: 6px 10px;border: 1px solid #e0e5f2;}body[class*="flusso-ai"] p.submit {padding-bottom: 0;}.emn-fl-form-single-input {margin-bottom: 18px;}td p.emn-fl-form-field-desc {font-size: 12px;}.emn-fl-textarea-prompt {width: calc(100% - 26px);resize: none;border-radius: 12px;padding: 16px;font-size: 18px;height: 150px;border-color: #e0e5f2;border-style: dashed;background-color: #f0f5fa;color: rgb(143, 155, 186);margin-bottom: 8px;}.emn-fl-textarea-prompt::placeholder {color: rgba(143, 155, 186, 0.5);}.emn-fl-generator-settings-form label, .emn-fl-settings label {display: block;font-weight: bold;}.emn-fl-input, .emn-fl-select {background-color: #f4f7fe !important;border-radius: 14px !important;padding: 4px 12px !important;width: 90%;color: #2d3748 !important;}.emn-fl-select {}.emn-generated-images-container {min-height: 250px;position: relative;}.emn-fl-generated-image-container {margin-right: auto;margin-left: auto;padding: 30px;margin-bottom: 32px;display: inline-flex;padding-top: 32px;border-radius: 24px;box-shadow: rgb(112 144 176 / 12%) 0px 18px 40px;}.emn-fl-generated-image, .emn-fl-image-variation-of {background-size: cover;background-position: center center;background-repeat: no-repeat;border-radius: 18px;width: 44%;display: inline-block;height: 460px;}.emn-fl-single-image-variation {border: 1px solid #ccc;border-style: dashed;}.emn-fl-image-variation-of {width: 110px;height: 110px;}.emn-fl-generated-image-actions h3 svg {vertical-align: sub;margin-left: 6px;}.emn-fl-generated-image-actions button {font-size: 16px;display: block;margin-bottom: 14px;border-radius: 12px;font-weight: 500;}.emn-fl-generated-image-actions button svg, .emn-fl-save-all-images-in-media svg, button svg {vertical-align: text-top;margin-left: 8px;width: 20px;height: 20px;}.emn-fl-save-all-images-in-media {margin-bottom: 8px;}.emn-fl-button-saved {background-color: #007e00;cursor: default;}#emn-fl-chat-content-container {height: 420px;margin-bottom: 18px;width: calc(100% - 8px);padding: 0;}#emn-fl-chat-prompt {width: 100%;max-width: 100%;margin-bottom: 18px;background-color: #f0f5fa;height: 50px;font-size: 16px;padding: 10px 16px;}#emn-fl-chat-prompt.emn-fl-can-add-img {padding-left: 38px;}#emn-fl-chat-prompt::placeholder {color: rgba(143, 155, 186, 0.5);}.emn-fl-form-field-chat-prompt-container {position: relative;}#emn-fl-chat-add-img, #emn-fl-chat-remove-img {position: absolute;left: 10px;top: 12px;cursor: pointer;color: #9ea0a5;}.emn-fl-form-field-chat-prompt-container svg.emn-fl-hidden {opacity: 0;visibility: hidden;}.emn-fl-chat-content-container-inner {width: 100%;height: 100%;overflow-y: scroll;position: relative;}button.emn-fl-new-chat {background-color: #67b5ae;}button.emn-fl-new-chat:hover {background-color: #53948e !important;}.emn-fl-button + small {display: block;font-size: 12px;font-style: italic;margin-top: 6px;margin-right: 12px;}.emn-fl-button.emn-fl-new-chat + small {margin-right: 0;margin-left: 12px;}.emn-fl-new-chat-container[data-visibility="0"], .emn-fl-chat___select_all[data-visibility="0"] {opacity: 0;visibility: hidden;}.emn-fl-chat___element {padding: 10px 20px;}.emn-fl-chat___start {padding: 10px 20px;font-size: 12px;text-transform: uppercase;font-weight: bold;border-bottom: 1px solid #e0e5f2;}.emn-fl-chat___select_all {position: absolute;top: 7px;left: 13px;text-transform: uppercase;font-size: 12px;font-weight: bold;border: 1px solid;padding: 2px 8px;cursor: pointer;}.emn-fl-chat___select_all:hover {background-color: rgb(143, 155, 186);color: #f0f5fa;}.emn-fl-chat___message {padding: 8px 20px 20px;padding-right: 64px;position: relative;}.emn-fl-chat___message_text {min-height: 40px;padding-left: 62px;}.emn-fl-chat___message_select {position: absolute;transform: translateY(-50%);top: 50%;left: 30px;}@media screen and (max-width: 800px){.emn-fl-chat___message_select {left: 20px;}.emn-fl-chat___message_text {padding-left: 42px;}}#emn-fl-chat-content-hidden {opacity: 0;height: 1px;width: 1px;overflow: scroll;position: absolute;top: 0;z-index: -1;}.emn-fl-chat-check-message + .emn-fl-checkbox-control {border: 1px solid rgb(143, 155, 186);}.emn-fl-chat-message___signature {position: absolute;right: 18px;top: 26px;width: 30px;height: 24px;color: white;font-size: 11px;text-transform: uppercase;text-align: center;padding-top: 6px;}.emn-fl-chat___message p {font-size: 16px;line-height: 28px;}.emn-fl-chat___message p:last-child {margin-bottom: 0;}.emn-fl-chat___message[data-sender="assistant"]{background-color: #dae1e7f5;}.emn-fl-chat___message[data-sender="assistant"] .emn-fl-chat-message___signature {background-color: #6877bf;}.emn-fl-chat___message[data-sender="system"] .emn-fl-chat-message___signature, .emn-fl-chat___message[data-sender="user"] .emn-fl-chat-message___signature {background-color: #67b5ae;}.emn-fl-chat-options div {margin-bottom: 28px;}#emn-fl-new-content-textarea {width: 100%;}#wp-emn-fl-new-content-textarea-wrap .mce-btn.mce-active i {color: black;}.emn-fl-new-content-select-post-type option[value="product"], .emn-fl-new-content-select-post-type option[value="portfolio"] {display: none;}.emn-fl-go-to-new-content {display: table;margin-right: auto;margin-left: auto;font-size: 18px;text-decoration: none;color: white;background-color: #42BA96;border: 1px solid #42BA96;padding: 12px 20px;border-radius: 16px;}#emn-fl-confirm-modal .emn-fl-go-to-new-content svg {display: inline-block;width: 20px;height: 20px;vertical-align: middle;margin-right: 6px;}.emn-fl-go-to-new-content:hover, .emn-fl-go-to-new-content:active, .emn-fl-go-to-new-content:focus {background-color: white;color: #42BA96;}.emn-fl-selected-filename {margin-bottom: 12px;display: block;font-size: 14px;}.emn-fl-selected-filename svg {width: 16px;height: 16px;margin-left: 8px;vertical-align: middle;}.emn-fl-send-audio-file {margin-top: 18px;}.emn-fl-transition-container p {font-size: 16px;line-height: 28px;padding: 0 22px;}.emn-fl-alert {width: 1140px;max-width: 1140px;bottom: -100px;right: 50%;transform: translateX(50%);position: fixed;padding: 26px 34px;color: #fefefe;border-radius: 8px;font-size: 18px;z-index: 9999;-moz-transition: all, 0.2s;-o-transition: all, 0.2s;-webkit-transition: all, 0.2s;transition: all, 0.2s;z-index: 9999;}.emn-fl-alert .emn-fl-alert-message {padding-left: 35px;display: inline-block;}.emn-fl-alert-active {bottom: 40px;}.emn-fl-alert-general {background-color: #506EFA;}.emn-fl-alert-success {background-color: #42BA96;}.emn-fl-alert-warning {background-color: #DF4759;}@media screen and (max-width: 1200px) {.emn-fl-alert {width: 90%;max-width: 90%;}}.emn-fl-delete-button-container {border-bottom: 1px solid #e0e0e050;padding-bottom: 22px;padding-top: 22px;}.emn-fl-delete-button-container:first-child {padding-top: 0;}.emn-fl-delete-button-container button svg {vertical-align: sub;margin-left: 6px;height: 20px;width: 20px;}.emn-fl-delete-button-container button + p {margin-top: 12px;margin-bottom: 0;}.emn-fl-remember {color: #a0aec0;text-align: center;margin-top: 12px;line-height: 24px;}
  • flusso-ai-generated-content/trunk/assets/css/style.css

    r2907116 r2907940  
    835835}
    836836
     837#emn-fl-chat-prompt.emn-fl-can-add-img {
     838    padding-right: 38px;
     839}
     840
    837841#emn-fl-chat-prompt::placeholder {
    838842    color: rgba(143, 155, 186, 0.5);
     843}
     844
     845.emn-fl-form-field-chat-prompt-container {
     846    position: relative;
     847}
     848
     849#emn-fl-chat-add-img, #emn-fl-chat-remove-img {
     850    position: absolute;
     851    right: 10px;
     852    top: 12px;
     853    cursor: pointer;
     854    color: #9ea0a5;
     855}
     856
     857.emn-fl-form-field-chat-prompt-container svg.emn-fl-hidden {
     858    opacity: 0;
     859    visibility: hidden;
    839860}
    840861
  • flusso-ai-generated-content/trunk/assets/css/style.min.css

    r2907116 r2907940  
    1 #emn-fl-confirm-modal,#emn_fl_meta_page_options .inside,#emn_fl_meta_post_options .inside,#emn_fl_meta_product_options .inside,.emn-fl-white-box{background-color:#fff}#emn-fl-confirm-modal svg,.emn-fl-grid-container{margin-right:auto;margin-left:auto}body[class*=flusso-ai]{background-color:#f4f7fe}.emn-fl-transitions-2s{-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.emn-fl-white-box{padding:20px 26px;border-radius:20px;margin-bottom:22px}.emn-fl-text-right{text-align:right}.emn-fl-white-box>h3{margin-top:6px}.emn-fl-grid-container.emn-fl-no-padding-left-right{padding-left:0;padding-right:0}input[type=checkbox].emn-fl-checkbox{box-sizing:border-box;font-size:1rem;line-height:1.5;padding:10px!important;border:1px solid #ececec;outline:0;border-radius:4px;margin:6px 5px;cursor:pointer;background-color:transparent;opacity:0;position:absolute;z-index:2}.emn-fl-checkbox-control{position:relative;width:28px;height:28px;margin-right:6px;margin-top:2px;border-radius:4px;border:1px solid #d0d0d0;vertical-align:middle;float:left;background-color:inherit;cursor:pointer;margin-bottom:4px;transform:scale(.75)}.emn-fl-feather,.emn-fl-generated-image-actions h3 svg{vertical-align:sub;margin-right:6px}.emn-fl-checkbox:checked+.emn-fl-checkbox-control:after{content:"";display:block;position:absolute;background-color:#422afb;top:6px;left:6px;width:16px;height:16px;border-radius:3px}.emn-fl-checkbox-control+label{padding-top:3px;font-size:16px}.emn-fl-checkbox-control+p.emn-fl-form-field-desc{clear:both}.emn-fl-button,body[class*=flusso-ai] .submit input[type=submit]{background-color:#422afb;color:#fff;border:none;line-height:1.2;border-radius:16px;font-size:1.2em;padding:10px 26px;cursor:pointer;-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.emn-fl-button.emn-fl-key-validate{background-color:#3a9f54;margin-left:8px}.emn-fl-button:not(.emn-fl-button-saved):hover,body[class*=flusso-ai] .submit input[type=submit]:hover{background-color:#3311db}.emn-fl-button.emn-fl-key-validate:hover{background-color:#338a49}.emn-fl-button-delete{background-color:#f70404}.emn-fl-button.emn-fl-button-delete:hover{background-color:#d20404}.emn-fl-wrap{position:relative}.emn-fl-loading,.emn-fl-white-overlay{position:fixed;width:calc(100% - 160px);height:100%;display:none;top:0;left:160px;border-radius:24px;background-color:rgba(255,255,255,.7);z-index:99}.emn-fl-modal-overlay{left:0;width:100%}.emn-fl-loading{z-index:100}@media screen and (max-width:960px){.emn-fl-loading,.emn-fl-white-overlay{width:calc(100% - 36px);left:36px}}@media screen and (max-width:782px){.emn-fl-loading,.emn-fl-white-overlay{width:100%;left:0}body[class*=flusso-ai] form th{margin-bottom:6px}td p.emn-fl-form-field-desc{margin-top:8px}}.emn-fl-loading div span,.emn-fl-loading.emn-fl-show{display:block}.emn-fl-loading div{position:absolute;transform:translate(-50%,-50%);top:50%;left:50%;text-align:center}.emn-fl-plugin-header-img-container h1,.emn-fl-plugin-header-img-container img{display:inline-block}.emn-fl-plugin-header-img-container img{width:32px;margin-right:8px;vertical-align:text-bottom}.emn-fl-plugin-header-img-container+p{margin-top:0}#adminmenu a.toplevel_page_flusso-ai-generated-content .wp-menu-image.svg{background-size:18px auto}.emn-fl-dashicons{display:inline-block;margin-right:8px}.emn-fl-dashicons:before{width:27px;height:27px;font-size:27px;vertical-align:bottom}h2.emn-fl-title-outside{display:inline-block;font-size:23px;margin:8px 0 6px}.emn-fl-media-button img{width:18px;margin-right:6px}.emn-fl-l-modal{width:100%;height:100%;position:fixed;top:0;left:0;z-index:9998;background-color:rgba(0,0,0,.6);opacity:0;visibility:hidden}.emn-fl-l-modal.emn-fl-show{opacity:1;visibility:visible}.emn-fl-l-modal-inner{width:80%;position:absolute;transform:translate(-50%,-50%);top:35%;left:50%;height:80%;padding:24px;overflow-y:scroll;background-color:#f4f7fe;border-radius:22px}.emn-fl-chat-options div,.emn-fl-l-modal-inner .emn-fl-single-input{margin-bottom:28px}.emn-fl-l-modal-inner .emn-fl-loading{left:0;top:0;position:absolute;width:100%}.emn-fl-l-modal.emn-fl-show .emn-fl-l-modal-inner{top:50%}#emn-fl-confirm-modal button.emn-fl-button-post-type-modal,.emn-fl-l-modal-inner .emn-fl-top-title-small,.emn-fl-post-list-load-more{margin-bottom:12px}.emn-fl-l-modal-inner .emn-fl-section-title-big{margin-bottom:16px}.emn-fl-l-modal-inner .emn-fl-white-box{padding:26px}.emn-fl-l-modal-inner label{cursor:default;font-weight:700;font-size:15px;margin-bottom:4px;display:block}.emn-fl-l-modal-inner label.emn-fl-required-label:after{content:'*';display:inline-block}.emn-fl-l-modal-inner label+small,td p.emn-fl-form-field-desc{font-size:12px}.emn-fl-l-modal-inner input[type=number],.emn-fl-l-modal-inner input[type=text],.emn-fl-l-modal-inner select{margin-top:10px}.emn-fl-meta-logo{width:22px;padding-left:18px}#emn_fl_meta_page_options,#emn_fl_meta_post_options,#emn_fl_meta_product_options{background:0 0;width:100%;margin-left:auto;margin-right:auto;font-family:'DM Sans';border:none}.block-editor-page #emn_fl_meta_page_options,.block-editor-page #emn_fl_meta_post_options,.block-editor-page #emn_fl_meta_product_options{width:90%}#emn_fl_meta_page_options .postbox-header,#emn_fl_meta_post_options .postbox-header,#emn_fl_meta_product_options .postbox-header{border-radius:10px 10px 0 0;padding:8px 12px;background-color:#fff;color:#fff;border:1px solid #cccccc60}#emn_fl_meta_page_options p,#emn_fl_meta_post_options p,#emn_fl_meta_product_options p{font-size:15px;font-weight:400;color:#8a8a8a;margin-top:6px}p.emn-fl-no-margin-top{margin-top:0!important}.emn_fl_post_meta_boxes>.inside>p{padding:22px 0 16px}#emn_fl_meta_page_options>.postbox-header+.inside,#emn_fl_meta_post_options>.postbox-header+.inside,#emn_fl_meta_product_options>.postbox-header+.inside{border-left:1px solid #eee;border-right:1px solid #eee;border-bottom:1px solid #eee}#poststuff #emn_fl_meta_page_options .postbox-header h2.hndle,#poststuff #emn_fl_meta_post_options .postbox-header h2.hndle,#poststuff #emn_fl_meta_product_options .postbox-header h2.hndle{font-size:17px;color:#2d3748;padding-left:12px}#poststuff #emn_fl_meta_page_options .inside,#poststuff #emn_fl_meta_post_options .inside,#poststuff #emn_fl_meta_product_options .inside{margin-top:0;padding-top:6px}#emn_fl_meta_page_options .toggle-indicator,#emn_fl_meta_page_options.postbox .handle-order-higher .order-higher-indicator::before,#emn_fl_meta_page_options.postbox .handle-order-lower .order-lower-indicator::before,#emn_fl_meta_post_options .toggle-indicator,#emn_fl_meta_post_options.postbox .handle-order-higher .order-higher-indicator::before,#emn_fl_meta_post_options.postbox .handle-order-lower .order-lower-indicator::before,#emn_fl_meta_product_options .toggle-indicator,#emn_fl_meta_product_options.postbox .handle-order-higher .order-higher-indicator::before,#emn_fl_meta_product_options.postbox .handle-order-lower .order-lower-indicator::before{color:#2d3748}#emn_fl_meta_page_options table,#emn_fl_meta_post_options table,#emn_fl_meta_product_options table{width:100%;border-collapse:collapse}#emn_fl_meta_page_options table tr,#emn_fl_meta_post_options table tr,#emn_fl_meta_product_options table tr{border-top:1px solid #eee}#emn_fl_meta_page_options table td,#emn_fl_meta_page_options table th,#emn_fl_meta_post_options table td,#emn_fl_meta_post_options table th,#emn_fl_meta_product_options table td,#emn_fl_meta_product_options table th{padding-top:16px;padding-bottom:16px}#emn_fl_meta_page_options h4,#emn_fl_meta_post_options h4,#emn_fl_meta_product_options h4{font-size:16px;margin-bottom:0}#emn_fl_meta_page_options table th,#emn_fl_meta_post_options table th,#emn_fl_meta_product_options table th{width:30%;text-align:left}#emn_fl_meta_page_options table td,#emn_fl_meta_post_options table td,#emn_fl_meta_product_options table td{width:70%;padding-left:26px}#emn-fl-key-points-editor{height:220px}#emn-fl-confirm-modal{position:fixed;z-index:99;transform:translate(-50%,-60%);top:50%;left:50%;width:680px;max-width:90%;border-radius:24px;padding:32px;box-shadow:rgb(112 144 176 / 20%) 0 18px 40px;max-height:50vh;overflow-y:scroll}#emn-fl-confirm-modal svg{display:block;width:46px;height:46px}#emn-fl-confirm-modal .emn-fl-medium-title{font-size:2.2em}#emn-fl-confirm-modal .emn-fl-section-p{margin-top:26px}#emn-fl-confirm-modal .emn-fl-grid-container{margin-top:32px}#emn-fl-confirm-modal button:not([id*=mce]):not(.insert-media):not([data-wp-editor-id=emn-fl-new-content-textarea]){padding:14px 26px}.emn-fl-post-list-container{border:1px solid #e0e5f2;padding:16px 10px 6px;border-radius:16px;margin-bottom:12px;display:none;max-height:250px;overflow-y:scroll}.emn-fl-post-list-single{position:relative;text-align:left;font-size:15px;margin-bottom:10px;display:flex}.emn-fl-post-list-no-results{padding:10px}.emn-fl-post-list-single input[type=checkbox]{left:0}.emn-fl-post-list-single label{display:flex;padding-top:7px}.emn-fl-button-post-type-modal-loaded{cursor:default}.emn-fl-post-list-search input{width:80%;margin:10px 0 20px;background-color:transparent!important}.emn-fl-modal-separator{padding-top:30px;margin-top:30px;border-top:1px solid #cccccc30}@-webkit-keyframes emn_fl_rotating{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}.emn-fl-rotating{-webkit-animation:2s linear infinite emn_fl_rotating;animation:2s linear infinite emn_fl_rotating;-moz-animation:2s linear infinite emn_fl_rotating;-o-animation:2s linear infinite emn_fl_rotating}.emn-fl-dm-sans,.emn-fl-l-modal-inner *,.emn-fl-wrap,.emn-fl-wrap ol li{font-family:'DM Sans',sans-serif}.emn-fl-section-title-big{font-size:34px!important;font-weight:800!important;outline:transparent solid 2px;margin-top:2px!important;outline-offset:2px;color:#2d3748;padding-top:4px!important}.emn-fl-overview-buttons-container .emn-fl-cell,.emn-fl-text-center{text-align:center}.emn-fl-warning{font-weight:700!important;color:#f61717!important;margin-bottom:0}.emn-fl-top-title-small{font-size:.875rem;outline:transparent solid 2px;outline-offset:2px;color:#2d3748;font-weight:400;margin-bottom:0}.emn-fl-section-p,.emn-fl-section-p+ol li,.emn-fl-section-p+ul li{color:#a0aec0;font-weight:500;font-size:16px;margin-top:4px}.emn-fl-section-p+ol,.emn-fl-section-p+ul{margin-left:0;list-style-position:inside}.emn-fl-section-p+ol li,.emn-fl-section-p+ul li{margin-bottom:12px;line-height:24px}.emn-fl-chat___message p:last-child,.emn-fl-section-p+ol li:last-child,.emn-fl-section-p+ul li:last-child{margin-bottom:0}.emn-fl-medium-title{font-size:1.5em;color:#2d3748;margin-bottom:8px}.emn-fl-medium-title-small{font-size:14px;margin-top:24px;margin-bottom:24px}.emn-fl-medium-title-small svg{width:16px;height:16px}.emn-fl-empty-message{position:absolute;transform:translate(-50%,-50%);top:60%;left:50%;width:80%;text-align:center}label.emn-fl-dm-sans{font-weight:500;font-size:1.2em;color:#1b2559;margin-bottom:8px}.emn-fl-overview-buttons-container,.emn-fl-overview-buttons-container .emn-fl-button+p,.emn-fl-send-audio-file{margin-top:18px}.emn-fl-overview-buttons-container .emn-fl-button{padding-top:26px;padding-bottom:26px;display:block;font-weight:700;font-size:18px;text-decoration:none}.emn-fl-overview-buttons-container .emn-fl-button[href*="mailto:"],.emn-fl-overview-buttons-container .emn-fl-button[href*=ko-fi],.emn-fl-overview-buttons-container .emn-fl-button[href="https://emana.design/docs/flusso-ai"]{display:inline-block;font-size:16px;font-weight:400;padding-top:16px;padding-bottom:16px}.emn-fl-overview-buttons-container .emn-fl-button[href*="mailto:"] svg,.emn-fl-overview-buttons-container .emn-fl-button[href*=ko-fi] svg,.emn-fl-overview-buttons-container .emn-fl-button[href="https://emana.design/docs/flusso-ai"] svg{vertical-align:middle;width:20px;height:20px}.emn-fl-overview-buttons-container .emn-fl-button:active,.emn-fl-overview-buttons-container .emn-fl-button:focus,.emn-fl-overview-buttons-container .emn-fl-button:hover{color:#fff}.emn-fl-overview-buttons-container .emn-fl-button svg{vertical-align:sub;margin-right:8px}#emn-fl-chat-prompt,.emn-fl-settings-form input[type=password],.emn-fl-settings-form input[type=text]:not(.emn-fl-color-picker){border-radius:16px;padding:6px 10px;border:1px solid #e0e5f2;width:400px;max-width:90%}.emn-fl-settings-form select{width:200px;max-width:100%;border-radius:16px;padding:6px 10px;border:1px solid #e0e5f2}body[class*=flusso-ai] p.submit{padding-bottom:0}.emn-fl-form-single-input{margin-bottom:18px}.emn-fl-textarea-prompt{width:calc(100% - 26px);resize:none;border-radius:12px;padding:16px;font-size:18px;height:150px;border-color:#e0e5f2;border-style:dashed;background-color:#f0f5fa;color:#8f9bba;margin-bottom:8px}.emn-fl-textarea-prompt::placeholder{color:rgba(143,155,186,.5)}.emn-fl-generator-settings-form label,.emn-fl-settings label{display:block;font-weight:700}.emn-fl-input,.emn-fl-select{background-color:#f4f7fe!important;border-radius:14px!important;padding:4px 12px!important;width:90%;color:#2d3748!important}.emn-generated-images-container{min-height:250px;position:relative}.emn-fl-generated-image-container{margin-left:auto;margin-right:auto;padding:32px 30px 30px;margin-bottom:32px;display:inline-flex;border-radius:24px;box-shadow:rgb(112 144 176 / 12%) 0 18px 40px}.emn-fl-generated-image,.emn-fl-image-variation-of{background-size:cover;background-position:center center;background-repeat:no-repeat;border-radius:18px;width:44%;display:inline-block;height:460px}.emn-fl-single-image-variation{border:1px dashed #ccc}.emn-fl-image-variation-of{width:110px;height:110px}.emn-fl-generated-image-actions button{font-size:16px;display:block;margin-bottom:14px;border-radius:12px;font-weight:500}.emn-fl-generated-image-actions button svg,.emn-fl-save-all-images-in-media svg,button svg{vertical-align:text-top;margin-right:8px;width:20px;height:20px}.emn-fl-save-all-images-in-media{margin-bottom:8px}.emn-fl-button-saved{background-color:#007e00;cursor:default}#emn-fl-chat-content-container{height:420px;margin-bottom:18px;width:calc(100% - 8px);padding:0}#emn-fl-chat-prompt{width:100%;max-width:100%;margin-bottom:18px;background-color:#f0f5fa;height:50px;font-size:16px;padding:10px 16px}#emn-fl-chat-prompt::placeholder{color:rgba(143,155,186,.5)}.emn-fl-chat-content-container-inner{width:100%;height:100%;overflow-y:scroll;position:relative}button.emn-fl-new-chat{background-color:#67b5ae}button.emn-fl-new-chat:hover{background-color:#53948e!important}.emn-fl-button+small{display:block;font-size:12px;font-style:italic;margin-top:6px;margin-left:12px}.emn-fl-chat___message p,.emn-fl-transition-container p{font-size:16px;line-height:28px}.emn-fl-button.emn-fl-new-chat+small{margin-left:0;margin-right:12px}.emn-fl-chat___select_all[data-visibility="0"],.emn-fl-new-chat-container[data-visibility="0"]{opacity:0;visibility:hidden}.emn-fl-chat___element{padding:10px 20px}.emn-fl-chat___start{padding:10px 20px;font-size:12px;text-transform:uppercase;font-weight:700;border-bottom:1px solid #e0e5f2}.emn-fl-chat___select_all{position:absolute;top:7px;right:13px;text-transform:uppercase;font-size:12px;font-weight:700;border:1px solid;padding:2px 8px;cursor:pointer}.emn-fl-chat___select_all:hover{background-color:#8f9bba;color:#f0f5fa}.emn-fl-chat___message{padding:8px 20px 20px 64px;position:relative}.emn-fl-chat___message_text{min-height:40px;padding-right:62px}.emn-fl-chat___message_select{position:absolute;transform:translateY(-50%);top:50%;right:30px}@media screen and (max-width:800px){.emn-fl-chat___message_select{right:20px}.emn-fl-chat___message_text{padding-right:42px}}#emn-fl-chat-content-hidden{opacity:0;height:1px;width:1px;overflow:scroll;position:absolute;top:0;z-index:-1}.emn-fl-chat-check-message+.emn-fl-checkbox-control{border:1px solid #8f9bba}.emn-fl-chat-message___signature{position:absolute;left:18px;top:26px;width:30px;height:24px;color:#fff;font-size:11px;text-transform:uppercase;text-align:center;padding-top:6px}.emn-fl-chat___message[data-sender=assistant]{background-color:#dae1e7f5}.emn-fl-chat___message[data-sender=assistant] .emn-fl-chat-message___signature{background-color:#6877bf}.emn-fl-chat___message[data-sender=system] .emn-fl-chat-message___signature,.emn-fl-chat___message[data-sender=user] .emn-fl-chat-message___signature{background-color:#67b5ae}#emn-fl-new-content-textarea{width:100%}#wp-emn-fl-new-content-textarea-wrap .mce-btn.mce-active i{color:#000}.emn-fl-new-content-select-post-type option[value=portfolio],.emn-fl-new-content-select-post-type option[value=product]{display:none}.emn-fl-go-to-new-content{display:table;margin-left:auto;margin-right:auto;font-size:18px;text-decoration:none;color:#fff;background-color:#42ba96;border:1px solid #42ba96;padding:12px 20px;border-radius:16px}#emn-fl-confirm-modal .emn-fl-go-to-new-content svg{display:inline-block;width:20px;height:20px;vertical-align:middle;margin-left:6px}.emn-fl-go-to-new-content:active,.emn-fl-go-to-new-content:focus,.emn-fl-go-to-new-content:hover{background-color:#fff;color:#42ba96}.emn-fl-selected-filename{margin-bottom:12px;display:block;font-size:14px}.emn-fl-selected-filename svg{width:16px;height:16px;margin-right:8px;vertical-align:middle}.emn-fl-transition-container p{padding:0 22px}.emn-fl-alert{width:1140px;max-width:1140px;bottom:-100px;left:50%;transform:translateX(-50%);position:fixed;padding:26px 34px;color:#fefefe;border-radius:8px;font-size:18px;-moz-transition:none,.2s;-o-transition:none,.2s;-webkit-transition:none,.2s;transition:none,.2s;z-index:9999}.emn-fl-alert .emn-fl-alert-message{padding-right:35px;display:inline-block}.emn-fl-alert-active{bottom:40px}.emn-fl-alert-general{background-color:#506efa}.emn-fl-alert-success{background-color:#42ba96}.emn-fl-alert-warning{background-color:#df4759}@media screen and (max-width:1200px){.emn-fl-button.emn-fl-openai-key-validate{display:block;margin-left:0;margin-top:12px}.emn-fl-alert{width:90%;max-width:90%}}.emn-fl-delete-button-container{border-bottom:1px solid #e0e0e050;padding-bottom:22px;padding-top:22px}.emn-fl-delete-button-container:first-child{padding-top:0}.emn-fl-delete-button-container button svg{vertical-align:sub;margin-right:6px;height:20px;width:20px}.emn-fl-delete-button-container button+p{margin-top:12px;margin-bottom:0}.emn-fl-remember{color:#a0aec0;text-align:center;margin-top:12px;line-height:24px}
     1 .emn-fl-grid-container {margin-left: auto;margin-right: auto;}body[class*="flusso-ai"] {background-color: #f4f7fe;}.emn-fl-transitions-2s {-webkit-transition: all .2s;-moz-transition: all .2s;-o-transition: all .2s;transition: all .2s;}.emn-fl-white-box {padding: 20px 26px;background-color: white;border-radius: 20px;margin-bottom: 22px;}.emn-fl-text-right {text-align: right;}.emn-fl-white-box > h3 {margin-top: 6px;}.emn-fl-grid-container.emn-fl-no-padding-left-right {padding-left: 0;padding-right: 0;}input[type=checkbox].emn-fl-checkbox {box-sizing: border-box;font-size: 1rem;line-height: 1.5;padding: 10px !important;border: 1px solid #ececec;outline: 0;border-radius: 4px;margin: 6px 5px;cursor: pointer;background-color: transparent;opacity: 0;position: absolute;z-index: 2;}.emn-fl-checkbox-control {position: relative;width: 28px;height: 28px;margin-right: 6px;margin-top: 2px;border-radius: 4px;border: 1px solid #d0d0d0;vertical-align: middle;float: left;background-color: inherit;cursor: pointer;margin-bottom: 4px;}.emn-fl-checkbox:checked + .emn-fl-checkbox-control:after {content: "";display: block;position: absolute;background-color: #422afb;top: 6px;left: 6px;width: 16px;height: 16px;border-radius: 3px;}.emn-fl-checkbox-control + label {padding-top: 3px;font-size: 16px;}.emn-fl-checkbox-control + p.emn-fl-form-field-desc {clear: both;}.emn-fl-checkbox-control {transform: scale(0.75);}.emn-fl-button, body[class*="flusso-ai"] .submit input[type="submit"] {background-color: #422afb;color: white;border: none;line-height: 1.2;border-radius: 16px;font-size: 1.2em;padding: 10px 26px;cursor: pointer;-webkit-transition: all .2s;-moz-transition: all .2s;-o-transition: all .2s;transition: all .2s;}.emn-fl-button.emn-fl-key-validate {background-color: #3a9f54;margin-left: 8px;}.emn-fl-button:not(.emn-fl-button-saved):hover, body[class*="flusso-ai"] .submit input[type="submit"]:hover {background-color: #3311db;}.emn-fl-button.emn-fl-key-validate:hover {background-color: #338a49;}.emn-fl-button-delete {background-color: rgb(247, 4, 4);}.emn-fl-button.emn-fl-button-delete:hover {background-color: rgb(210, 4, 4);}.emn-fl-wrap {position: relative;}.emn-fl-loading, .emn-fl-white-overlay {position: fixed;width: calc(100% - 160px);height: 100%;display: none;top: 0;left: 160px;border-radius: 24px;background-color: rgba(255, 255, 255, 0.7);z-index: 99;}.emn-fl-modal-overlay {left: 0;width: 100%;}.emn-fl-loading {z-index: 100;}@media screen and (max-width: 1200px) {.emn-fl-button.emn-fl-openai-key-validate {display: block;margin-left: 0;margin-top: 12px;}}@media screen and (max-width: 960px){.emn-fl-loading, .emn-fl-white-overlay {width: calc(100% - 36px);left: 36px;}}@media screen and (max-width: 782px){.emn-fl-loading, .emn-fl-white-overlay {width: 100%;left: 0;}body[class*="flusso-ai"] form th {margin-bottom: 6px;}td p.emn-fl-form-field-desc {margin-top: 8px;}}.emn-fl-loading.emn-fl-show {display: block;}.emn-fl-loading div {position: absolute;transform: translate(-50%, -50%);top: 50%;left: 50%;text-align: center;}.emn-fl-loading div span {display: block;}.emn-fl-plugin-header-img-container img, .emn-fl-plugin-header-img-container h1 {display: inline-block;}.emn-fl-plugin-header-img-container img {width: 32px;margin-right: 8px;vertical-align: text-bottom;}.emn-fl-plugin-header-img-container + p {margin-top: 0;}#adminmenu a.toplevel_page_flusso-ai-generated-content .wp-menu-image.svg {background-size: 18px auto;}.emn-fl-dashicons {display: inline-block;margin-right: 8px;}.emn-fl-dashicons:before {width: 27px;height: 27px;font-size: 27px;vertical-align: bottom;}h2.emn-fl-title-outside {display: inline-block;font-size: 23px;margin: 8px 0 6px;}.emn-fl-media-button img {width: 18px;margin-right: 6px;}.emn-fl-l-modal {width: 100%;height: 100%;position: fixed;top: 0;left: 0;z-index: 9998;background-color: rgba(0, 0, 0, 0.6);opacity: 0;visibility: hidden;}.emn-fl-l-modal.emn-fl-show {opacity: 1;visibility: visible;}.emn-fl-l-modal-inner {width: 80%;position: absolute;transform: translate(-50%, -50%);top: 35%;left: 50%;height: 80%;padding: 24px;overflow-y: scroll;background-color: #f4f7fe;border-radius: 22px;}.emn-fl-l-modal-inner .emn-fl-single-input {margin-bottom: 28px;}.emn-fl-l-modal-inner .emn-fl-loading {left: 0;top: 0;position: absolute;width: 100%;}.emn-fl-l-modal.emn-fl-show .emn-fl-l-modal-inner {top: 50%;}.emn-fl-l-modal-inner .emn-fl-top-title-small {margin-bottom: 12px;}.emn-fl-l-modal-inner .emn-fl-section-title-big {margin-bottom: 16px;}.emn-fl-l-modal-inner .emn-fl-white-box {padding: 26px;}.emn-fl-l-modal-inner label {cursor: default;font-weight: bold;font-size: 15px;margin-bottom: 4px;display: block;}.emn-fl-l-modal-inner label.emn-fl-required-label:after {content: '*';display: inline-block;}.emn-fl-l-modal-inner label + small {font-size: 12px;}.emn-fl-l-modal-inner input[type="text"], .emn-fl-l-modal-inner input[type="number"], .emn-fl-l-modal-inner select {margin-top: 10px;}.emn-fl-meta-logo {width: 22px;padding-left: 18px;}#emn_fl_meta_post_options, #emn_fl_meta_page_options, #emn_fl_meta_product_options {background: transparent;width: 100%;margin-left: auto;margin-right: auto;font-family: 'DM Sans';border: none;}.block-editor-page #emn_fl_meta_post_options, .block-editor-page #emn_fl_meta_page_options, .block-editor-page #emn_fl_meta_product_options {width: 90%;}#emn_fl_meta_post_options .inside, #emn_fl_meta_page_options .inside, #emn_fl_meta_product_options .inside {background-color: white;}#emn_fl_meta_post_options .postbox-header, #emn_fl_meta_page_options .postbox-header, #emn_fl_meta_product_options .postbox-header {border-radius: 10px;border-bottom-right-radius: 0;border-bottom-left-radius: 0;padding: 8px 12px;background-color: #ffffff;color: white;border: 1px solid #cccccc60;}#emn_fl_meta_post_options p, #emn_fl_meta_page_options p, #emn_fl_meta_product_options p {font-size: 15px;font-weight: normal;color: #8a8a8a;margin-top: 6px;}p.emn-fl-no-margin-top {margin-top: 0 !important;}.emn_fl_post_meta_boxes > .inside > p, .emn_fl_post_meta_boxes > .inside > p, .emn_fl_post_meta_boxes > .inside > p {padding: 22px 0 16px;}#emn_fl_meta_post_options > .postbox-header + .inside, #emn_fl_meta_page_options > .postbox-header + .inside, #emn_fl_meta_product_options > .postbox-header + .inside {border-left: 1px solid #eeeeee;border-right: 1px solid #eeeeee;border-bottom: 1px solid #eeeeee;}#poststuff #emn_fl_meta_post_options .postbox-header h2.hndle, #poststuff #emn_fl_meta_page_options .postbox-header h2.hndle, #poststuff #emn_fl_meta_product_options .postbox-header h2.hndle {font-size: 17px;color: #2d3748;padding-left: 12px;}#poststuff #emn_fl_meta_post_options .inside, #poststuff #emn_fl_meta_page_options .inside, #poststuff #emn_fl_meta_product_options .inside {margin-top: 0;padding-top: 6px;}#emn_fl_meta_post_options .toggle-indicator, #emn_fl_meta_page_options .toggle-indicator, #emn_fl_meta_product_options .toggle-indicator, #emn_fl_meta_post_options.postbox .handle-order-higher .order-higher-indicator::before, #emn_fl_meta_post_options.postbox .handle-order-lower .order-lower-indicator::before, #emn_fl_meta_page_options.postbox .handle-order-higher .order-higher-indicator::before, #emn_fl_meta_page_options.postbox .handle-order-lower .order-lower-indicator::before, #emn_fl_meta_product_options.postbox .handle-order-higher .order-higher-indicator::before, #emn_fl_meta_product_options.postbox .handle-order-lower .order-lower-indicator::before {color: #2d3748;}#emn_fl_meta_post_options table, #emn_fl_meta_page_options table, #emn_fl_meta_product_options table {width: 100%;border-collapse: collapse;}#emn_fl_meta_post_options table tr, #emn_fl_meta_page_options table tr, #emn_fl_meta_product_options table tr {border-top: 1px solid #eeeeee;}#emn_fl_meta_post_options table th, #emn_fl_meta_page_options table th, #emn_fl_meta_product_options table th, #emn_fl_meta_post_options table td, #emn_fl_meta_page_options table td, #emn_fl_meta_product_options table td {padding-top: 16px;padding-bottom: 16px;}#emn_fl_meta_post_options h4, #emn_fl_meta_page_options h4, #emn_fl_meta_product_options h4 {font-size: 16px;margin-bottom: 0;}#emn_fl_meta_post_options table th, #emn_fl_meta_page_options table th, #emn_fl_meta_product_options table th {width: 30%;text-align: left;}#emn_fl_meta_post_options table td, #emn_fl_meta_page_options table td, #emn_fl_meta_product_options table td {width: 70%;padding-left: 26px;}#emn-fl-key-points-editor {height: 220px;}#emn-fl-confirm-modal {position: fixed;z-index: 99;transform: translate(-50%, -60%);top: 50%;left: 50%;width: 680px;max-width: 90%;border-radius: 24px;background-color: white;padding: 32px;box-shadow: rgb(112 144 176 / 20%) 0px 18px 40px;max-height: 50vh;overflow-y: scroll;}#emn-fl-confirm-modal svg {margin-left: auto;margin-right: auto;display: block;width: 46px;height: 46px;}#emn-fl-confirm-modal .emn-fl-medium-title {font-size: 2.2em;}#emn-fl-confirm-modal .emn-fl-section-p {margin-top: 26px;}#emn-fl-confirm-modal .emn-fl-grid-container {margin-top: 32px;}#emn-fl-confirm-modal button:not([id*='mce']):not(.insert-media):not([data-wp-editor-id="emn-fl-new-content-textarea"]) {padding: 14px 26px;}#emn-fl-confirm-modal button.emn-fl-button-post-type-modal {margin-bottom: 12px;}.emn-fl-post-list-container {border: 1px solid #e0e5f2;padding: 10px;border-radius: 16px;margin-bottom: 12px;display: none;padding: 16px 10px 6px;max-height: 250px;overflow-y: scroll;}.emn-fl-post-list-single {position: relative;text-align: left;font-size: 15px;margin-bottom: 10px;display: flex;}.emn-fl-post-list-no-results {padding: 10px;}.emn-fl-post-list-single input[type="checkbox"] {left: 0;}.emn-fl-post-list-single label {display: flex;padding-top: 7px;}.emn-fl-button-post-type-modal-loaded {cursor: default;}.emn-fl-post-list-search input {width: 80%;margin: 10px 0 20px;background-color: transparent !important;}.emn-fl-post-list-load-more {margin-bottom: 12px;}.emn-fl-modal-separator {padding-top: 30px;margin-top: 30px;border-top: 1px solid #cccccc30;}@-webkit-keyframes emn_fl_rotating {from{-webkit-transform: rotate(0deg);}to{-webkit-transform: rotate(360deg);}}.emn-fl-rotating {-webkit-animation: emn_fl_rotating 2s linear infinite;animation: emn_fl_rotating 2s linear infinite;-moz-animation: emn_fl_rotating 2s linear infinite;-o-animation: emn_fl_rotating 2s linear infinite;;}.emn-fl-dm-sans, .emn-fl-wrap, .emn-fl-wrap ol li, .emn-fl-l-modal-inner * {font-family: 'DM Sans', sans-serif;}.emn-fl-section-title-big {font-size: 34px !important;font-weight: 800 !important;outline: transparent solid 2px;margin-top: 2px !important;outline-offset: 2px;color: #2d3748;padding-top: 4px !important;}.emn-fl-text-center {text-align: center;}.emn-fl-warning {font-weight: bold !important;color: #f61717 !important;margin-bottom: 0;}.emn-fl-top-title-small {font-size: 0.875rem;outline: transparent solid 2px;outline-offset: 2px;color: #2d3748;font-weight: 400;margin-bottom: 0;}.emn-fl-section-p, .emn-fl-section-p + ol li, .emn-fl-section-p + ul li {color: #a0aec0;font-weight: 500;font-size: 16px;margin-top: 4px;}.emn-fl-section-p + ol, .emn-fl-section-p + ul {margin-left: 0;list-style-position: inside;}.emn-fl-section-p + ol li, .emn-fl-section-p + ul li {margin-bottom: 12px;line-height: 24px;}.emn-fl-section-p + ol li:last-child, .emn-fl-section-p + ul li:last-child {margin-bottom: 0;}.emn-fl-medium-title {font-size: 1.5em;color: #2d3748;margin-bottom: 8px;}.emn-fl-medium-title-small {font-size: 14px;margin-top: 24px;margin-bottom: 24px;}.emn-fl-medium-title-small svg {width: 16px;height: 16px;}.emn-fl-feather {margin-right: 6px;vertical-align: sub;}.emn-fl-empty-message {position: absolute;transform: translate(-50%, -50%);top: 60%;left: 50%;width: 80%;text-align: center;}label.emn-fl-dm-sans {font-weight: 500;font-size: 1.2em;color: #1b2559;margin-bottom: 8px;}.emn-fl-overview-buttons-container {margin-top: 18px;}.emn-fl-overview-buttons-container .emn-fl-cell {text-align: center;}.emn-fl-overview-buttons-container .emn-fl-button {padding-top: 26px;padding-bottom: 26px;display: block;font-weight: bold;font-size: 18px;text-decoration: none;}.emn-fl-overview-buttons-container .emn-fl-button[href*="mailto:"], .emn-fl-overview-buttons-container .emn-fl-button[href="https://emana.design/docs/flusso-ai"], .emn-fl-overview-buttons-container .emn-fl-button[href*="ko-fi"] {display: inline-block;font-size: 16px;font-weight: normal;padding-top: 16px;padding-bottom: 16px;}.emn-fl-overview-buttons-container .emn-fl-button[href*="mailto:"] svg, .emn-fl-overview-buttons-container .emn-fl-button[href="https://emana.design/docs/flusso-ai"] svg, .emn-fl-overview-buttons-container .emn-fl-button[href*="ko-fi"] svg {vertical-align: middle;width: 20px;height: 20px;}.emn-fl-overview-buttons-container .emn-fl-button + p {margin-top: 18px;}.emn-fl-overview-buttons-container .emn-fl-button:hover, .emn-fl-overview-buttons-container .emn-fl-button:active, .emn-fl-overview-buttons-container .emn-fl-button:focus {color: white;}.emn-fl-overview-buttons-container .emn-fl-button svg {vertical-align: sub;margin-right: 8px;}.emn-fl-settings-form input[type="password"], .emn-fl-settings-form input[type="text"]:not(.emn-fl-color-picker), #emn-fl-chat-prompt {border-radius: 16px;padding: 6px 10px;border: 1px solid #e0e5f2;width: 400px;max-width: 90%;}.emn-fl-settings-form select {width: 200px;max-width: 100%;border-radius: 16px;padding: 6px 10px;border: 1px solid #e0e5f2;}body[class*="flusso-ai"] p.submit {padding-bottom: 0;}.emn-fl-form-single-input {margin-bottom: 18px;}td p.emn-fl-form-field-desc {font-size: 12px;}.emn-fl-textarea-prompt {width: calc(100% - 26px);resize: none;border-radius: 12px;padding: 16px;font-size: 18px;height: 150px;border-color: #e0e5f2;border-style: dashed;background-color: #f0f5fa;color: rgb(143, 155, 186);margin-bottom: 8px;}.emn-fl-textarea-prompt::placeholder {color: rgba(143, 155, 186, 0.5);}.emn-fl-generator-settings-form label, .emn-fl-settings label {display: block;font-weight: bold;}.emn-fl-input, .emn-fl-select {background-color: #f4f7fe !important;border-radius: 14px !important;padding: 4px 12px !important;width: 90%;color: #2d3748 !important;}.emn-fl-select {}.emn-generated-images-container {min-height: 250px;position: relative;}.emn-fl-generated-image-container {margin-left: auto;margin-right: auto;padding: 30px;margin-bottom: 32px;display: inline-flex;padding-top: 32px;border-radius: 24px;box-shadow: rgb(112 144 176 / 12%) 0px 18px 40px;}.emn-fl-generated-image, .emn-fl-image-variation-of {background-size: cover;background-position: center center;background-repeat: no-repeat;border-radius: 18px;width: 44%;display: inline-block;height: 460px;}.emn-fl-single-image-variation {border: 1px solid #ccc;border-style: dashed;}.emn-fl-image-variation-of {width: 110px;height: 110px;}.emn-fl-generated-image-actions h3 svg {vertical-align: sub;margin-right: 6px;}.emn-fl-generated-image-actions button {font-size: 16px;display: block;margin-bottom: 14px;border-radius: 12px;font-weight: 500;}.emn-fl-generated-image-actions button svg, .emn-fl-save-all-images-in-media svg, button svg {vertical-align: text-top;margin-right: 8px;width: 20px;height: 20px;}.emn-fl-save-all-images-in-media {margin-bottom: 8px;}.emn-fl-button-saved {background-color: #007e00;cursor: default;}#emn-fl-chat-content-container {height: 420px;margin-bottom: 18px;width: calc(100% - 8px);padding: 0;}#emn-fl-chat-prompt {width: 100%;max-width: 100%;margin-bottom: 18px;background-color: #f0f5fa;height: 50px;font-size: 16px;padding: 10px 16px;}#emn-fl-chat-prompt.emn-fl-can-add-img {padding-right: 38px;}#emn-fl-chat-prompt::placeholder {color: rgba(143, 155, 186, 0.5);}.emn-fl-form-field-chat-prompt-container {position: relative;}#emn-fl-chat-add-img, #emn-fl-chat-remove-img {position: absolute;right: 10px;top: 12px;cursor: pointer;color: #9ea0a5;}.emn-fl-form-field-chat-prompt-container svg.emn-fl-hidden {opacity: 0;visibility: hidden;}.emn-fl-chat-content-container-inner {width: 100%;height: 100%;overflow-y: scroll;position: relative;}button.emn-fl-new-chat {background-color: #67b5ae;}button.emn-fl-new-chat:hover {background-color: #53948e !important;}.emn-fl-button + small {display: block;font-size: 12px;font-style: italic;margin-top: 6px;margin-left: 12px;}.emn-fl-button.emn-fl-new-chat + small {margin-left: 0;margin-right: 12px;}.emn-fl-new-chat-container[data-visibility="0"], .emn-fl-chat___select_all[data-visibility="0"] {opacity: 0;visibility: hidden;}.emn-fl-chat___element {padding: 10px 20px;}.emn-fl-chat___start {padding: 10px 20px;font-size: 12px;text-transform: uppercase;font-weight: bold;border-bottom: 1px solid #e0e5f2;}.emn-fl-chat___select_all {position: absolute;top: 7px;right: 13px;text-transform: uppercase;font-size: 12px;font-weight: bold;border: 1px solid;padding: 2px 8px;cursor: pointer;}.emn-fl-chat___select_all:hover {background-color: rgb(143, 155, 186);color: #f0f5fa;}.emn-fl-chat___message {padding: 8px 20px 20px;padding-left: 64px;position: relative;}.emn-fl-chat___message_text {min-height: 40px;padding-right: 62px;}.emn-fl-chat___message_select {position: absolute;transform: translateY(-50%);top: 50%;right: 30px;}@media screen and (max-width: 800px){.emn-fl-chat___message_select {right: 20px;}.emn-fl-chat___message_text {padding-right: 42px;}}#emn-fl-chat-content-hidden {opacity: 0;height: 1px;width: 1px;overflow: scroll;position: absolute;top: 0;z-index: -1;}.emn-fl-chat-check-message + .emn-fl-checkbox-control {border: 1px solid rgb(143, 155, 186);}.emn-fl-chat-message___signature {position: absolute;left: 18px;top: 26px;width: 30px;height: 24px;color: white;font-size: 11px;text-transform: uppercase;text-align: center;padding-top: 6px;}.emn-fl-chat___message p {font-size: 16px;line-height: 28px;}.emn-fl-chat___message p:last-child {margin-bottom: 0;}.emn-fl-chat___message[data-sender="assistant"]{background-color: #dae1e7f5;}.emn-fl-chat___message[data-sender="assistant"] .emn-fl-chat-message___signature {background-color: #6877bf;}.emn-fl-chat___message[data-sender="system"] .emn-fl-chat-message___signature, .emn-fl-chat___message[data-sender="user"] .emn-fl-chat-message___signature {background-color: #67b5ae;}.emn-fl-chat-options div {margin-bottom: 28px;}#emn-fl-new-content-textarea {width: 100%;}#wp-emn-fl-new-content-textarea-wrap .mce-btn.mce-active i {color: black;}.emn-fl-new-content-select-post-type option[value="product"], .emn-fl-new-content-select-post-type option[value="portfolio"] {display: none;}.emn-fl-go-to-new-content {display: table;margin-left: auto;margin-right: auto;font-size: 18px;text-decoration: none;color: white;background-color: #42BA96;border: 1px solid #42BA96;padding: 12px 20px;border-radius: 16px;}#emn-fl-confirm-modal .emn-fl-go-to-new-content svg {display: inline-block;width: 20px;height: 20px;vertical-align: middle;margin-left: 6px;}.emn-fl-go-to-new-content:hover, .emn-fl-go-to-new-content:active, .emn-fl-go-to-new-content:focus {background-color: white;color: #42BA96;}.emn-fl-selected-filename {margin-bottom: 12px;display: block;font-size: 14px;}.emn-fl-selected-filename svg {width: 16px;height: 16px;margin-right: 8px;vertical-align: middle;}.emn-fl-send-audio-file {margin-top: 18px;}.emn-fl-transition-container p {font-size: 16px;line-height: 28px;padding: 0 22px;}.emn-fl-alert {width: 1140px;max-width: 1140px;bottom: -100px;left: 50%;transform: translateX(-50%);position: fixed;padding: 26px 34px;color: #fefefe;border-radius: 8px;font-size: 18px;z-index: 9999;-moz-transition: all, 0.2s;-o-transition: all, 0.2s;-webkit-transition: all, 0.2s;transition: all, 0.2s;z-index: 9999;}.emn-fl-alert .emn-fl-alert-message {padding-right: 35px;display: inline-block;}.emn-fl-alert-active {bottom: 40px;}.emn-fl-alert-general {background-color: #506EFA;}.emn-fl-alert-success {background-color: #42BA96;}.emn-fl-alert-warning {background-color: #DF4759;}@media screen and (max-width: 1200px) {.emn-fl-alert {width: 90%;max-width: 90%;}}.emn-fl-delete-button-container {border-bottom: 1px solid #e0e0e050;padding-bottom: 22px;padding-top: 22px;}.emn-fl-delete-button-container:first-child {padding-top: 0;}.emn-fl-delete-button-container button svg {vertical-align: sub;margin-right: 6px;height: 20px;width: 20px;}.emn-fl-delete-button-container button + p {margin-top: 12px;margin-bottom: 0;}.emn-fl-remember {color: #a0aec0;text-align: center;margin-top: 12px;line-height: 24px;}
  • flusso-ai-generated-content/trunk/assets/js/script.js

    r2907116 r2907940  
    11"use strict";
    22
    3 var alert_timeout, openai_key, organization_id, images_html, image_url, image_url_o, this_el, featured_ids, count_images, this_img, modal_html, custom_style, modal_title, modal_text, search_timeout, selected, proceed_error, chat_history, chat_html, first_chat_html, ai_message, count_chat, to_copy, post_content, this_block_content, final_content, content_language, quill, target_dest;
     3var alert_timeout, openai_key, organization_id, images_html, image_url, image_url_o, this_el, featured_ids, count_images, this_img, modal_html, custom_style, modal_title, modal_text, search_timeout, selected, proceed_error, chat_history, chat_html, first_chat_html, ai_message, count_chat, to_copy, post_content, this_block_content, final_content, content_language, quill, target_dest, chat_message;
    44
    55jQuery( document ).ready( function(){
     
    223223    jQuery( '.emn-fl-send-chat-message' ).off( 'click' ).on( 'click', function(){
    224224        // Send chat message
    225         emn_fl_send_chat_message( jQuery( '#emn-fl-chat-prompt' ).val() );
     225        chat_message = jQuery( '#emn-fl-chat-prompt' ).val();
     226        if( jQuery( '#emn-fl-chat-add-img' ).attr( 'data-image-url' ) !== '' && jQuery( '#emn-fl-chat-add-img' ).attr( 'data-image-url' ) ){
     227            chat_message += ' ' + jQuery( '#emn-fl-chat-add-img' ).attr( 'data-image-url' );
     228        }
     229        emn_fl_send_chat_message( chat_message );
    226230    })
    227231
     
    230234        if( !jQuery( '.emn-fl-no-api-key' ).length ){
    231235            if( e.which == 13 ){
    232                 emn_fl_send_chat_message( jQuery( this ).val() );
     236                chat_message = jQuery( this ).val();
     237                if( jQuery( '#emn-fl-chat-add-img' ).attr( 'data-image-url' ) !== '' && jQuery( '#emn-fl-chat-add-img' ).attr( 'data-image-url' ) ){
     238                    chat_message += ' ' + jQuery( '#emn-fl-chat-add-img' ).attr( 'data-image-url' );
     239                }
     240                emn_fl_send_chat_message( chat_message );
    233241            }
    234242        }
     
    720728                    jQuery( '.emn-fl-chat___select_all' ).attr( 'data-visibility', '1' )
    721729                }
     730                if( jQuery( '#emn-fl-chat-add-img' ).length ){
     731                    if( jQuery( '#emn-fl-chat-add-img' ).attr( 'data-image-url' ) !== '' ){
     732                        jQuery( '#emn-fl-chat-add-img' ).attr( 'data-image-url', '' ).removeClass( 'emn-fl-hidden' );
     733                        jQuery( '#emn-fl-chat-remove-img' ).addClass( 'emn-fl-hidden' );
     734                    }
     735                }
    722736
    723737                // Scroll
  • flusso-ai-generated-content/trunk/assets/js/script.min.js

    r2907116 r2907940  
    1 "use strict";var alert_timeout,openai_key,organization_id,images_html,image_url,image_url_o,this_el,featured_ids,count_images,this_img,modal_html,custom_style,modal_title,modal_text,search_timeout,selected,proceed_error,chat_history,chat_html,first_chat_html,ai_message,count_chat,to_copy,post_content,this_block_content,final_content,content_language,quill,target_dest;function emn_fl_bind_events(){jQuery(".emn-fl-openai-key-validate").off("click").on("click",function(e){if(e.preventDefault(),openai_key=jQuery("input#emn_fl_openai_key").val(),organization_id=jQuery("input#emn_fl_organization_id").val(),""==openai_key)return emn_fl_show_alert("general",localized_strings.empty_openai_key),!1;jQuery(".emn-fl-loading span").html(localized_strings.validating),jQuery(".emn-fl-loading").addClass("emn-fl-show"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_validate_key",openai_key:openai_key,organization_id:organization_id,postNonce:emn_fl_urls.nonce},function(e){(e=jQuery.parseJSON(e)).error&&emn_fl_show_alert("warning",e.error.message,5e3),0!=e&&null!=e||emn_fl_show_alert("warning",localized_strings.openai_key_generic_error,4e3),e.data&&emn_fl_show_alert("success",localized_strings.verified_openai_key,3e3),jQuery(".emn-fl-loading").removeClass("emn-fl-show")})}),jQuery("button.emn-fl-generate-images").off("click").on("click",function(e){e.preventDefault(),emn_fl_generate_images()}),jQuery(".emn-fl-save-image-in-media").off("click").on("click",function(e){e.preventDefault(),jQuery(this).hasClass("emn-fl-button-saved")||(jQuery(this).hasClass("emn-fl-set-featured-image")?emn_fl_confirm_modal("image","set_featured","",jQuery(this).parent().parent().attr("data-image-url")):emn_fl_save_image_in_media(jQuery(this),1))}),jQuery(".emn-fl-save-all-images-in-media").off("click").on("click",function(e){e.preventDefault(),emn_fl_save_image_in_media(jQuery(this),"all")}),jQuery(".emn-fl-image-create-variations").off("click").on("click",function(e){e.preventDefault(),emn_fl_create_image_variations(jQuery(this))}),jQuery(".emn-fl-button-post-type-modal").off("click").on("click",function(){jQuery(this).hasClass("emn-fl-button-post-type-modal-loaded")||emn_fl_load_post_list(jQuery(this).attr("data-post-type"),jQuery(this).parent())}),jQuery(".emn-fl-post-list-load-more").off("click").on("click",function(){emn_fl_load_post_list(jQuery(this).attr("data-post-type"),jQuery(this).parent(),parseInt(jQuery(this).attr("data-offset")),jQuery(this).attr("data-search"))}),jQuery(".emn-fl-post-list-search input").off("keyup").on("keyup",function(){this_el=jQuery(this),clearTimeout(search_timeout),search_timeout=setTimeout(function(){""!==this_el.val()?emn_fl_load_post_list(this_el.attr("data-post-type"),this_el.parent().parent().parent(),0,this_el.val()):emn_fl_load_post_list(this_el.attr("data-post-type"),this_el.parent().parent().parent())},1500)}),jQuery(".emn-fl-button-set-as-featured-modal").off("click").on("click",function(){if(proceed_error=!0,jQuery('#emn-fl-confirm-modal[data-modal-type="set_featured"] .emn-fl-post-list-single input[type="checkbox"]').length&&jQuery('#emn-fl-confirm-modal[data-modal-type="set_featured"] .emn-fl-post-list-single input[type="checkbox"]').each(function(){jQuery(this).is(":checked")&&(proceed_error=!1)}),proceed_error)return emn_fl_show_alert("general",localized_strings.featured_no_elements_selected),!1;""!=jQuery('.emn-fl-generated-image-container[data-image-url="'+jQuery("#emn-fl-confirm-modal").attr("data-image-url")+'"] button.emn-fl-set-featured-image').attr("data-image-media-id")&&jQuery('.emn-fl-generated-image-container[data-image-url="'+jQuery("#emn-fl-confirm-modal").attr("data-image-url")+'"] button.emn-fl-set-featured-image').attr("data-image-media-id")?emn_fl_save_image_in_media(jQuery('.emn-fl-generated-image-container[data-image-url="'+jQuery("#emn-fl-confirm-modal").attr("data-image-url")+'"] button.emn-fl-set-featured-image'),1,!0,0,jQuery('.emn-fl-generated-image-container[data-image-url="'+jQuery("#emn-fl-confirm-modal").attr("data-image-url")+'"] button.emn-fl-set-featured-image').attr("data-image-media-id")):emn_fl_save_image_in_media(jQuery('.emn-fl-generated-image-container[data-image-url="'+jQuery("#emn-fl-confirm-modal").attr("data-image-url")+'"] button.emn-fl-set-featured-image'),1,!0)}),jQuery(".emn-fl-send-chat-message").off("click").on("click",function(){emn_fl_send_chat_message(jQuery("#emn-fl-chat-prompt").val())}),jQuery("#emn-fl-chat-prompt").off("keypress").on("keypress",function(e){jQuery(".emn-fl-no-api-key").length||13==e.which&&emn_fl_send_chat_message(jQuery(this).val())}),jQuery(".emn-fl-new-chat").off("click").on("click",function(){emn_fl_clear_chat()}),jQuery(".emn-fl-chat___select_all").off("click").on("click",function(){"select"==jQuery(this).attr("data-action")?(jQuery('.emn-fl-chat-content-container-inner .emn-fl-chat___message[data-sender="assistant"]').find(" .emn-fl-chat-check-message").prop("checked",!0),jQuery(this).text(localized_strings.deselect_all_answers).attr("data-action","deselect"),emn_fl_chat_text_to_copy()):"deselect"==jQuery(this).attr("data-action")&&(jQuery('.emn-fl-chat-content-container-inner .emn-fl-chat___message[data-sender="assistant"]').find(" .emn-fl-chat-check-message").prop("checked",!1),jQuery(this).text(localized_strings.select_all_answers).attr("data-action","select"),jQuery("#emn-fl-chat-content-hidden").empty())}),jQuery('.emn-fl-chat___message_select input[type="checkbox"]').off("change").on("change",function(){emn_fl_chat_text_to_copy()}),jQuery(".emn-fl-chat-new-post").off("click").on("click",function(e){if(e.preventDefault(),""==jQuery("#emn-fl-chat-content-hidden").html())return emn_fl_show_alert("general",localized_strings.chat_create_content_empty),!1;emn_fl_confirm_modal("file-plus","chat_new_content","","")}),jQuery(".emn-fl-button-go-create-content").off("click").on("click",function(){emn_fl_create_wp_content()}),jQuery(".emn-fl-send-audio-file").off("click").on("click",function(e){if(e.preventDefault(),""==jQuery("#emn-fl-audio-attachment-id").val())return emn_fl_show_alert("general",localized_strings.no_file_selected),!1;emn_fl_send_audio_file()}),jQuery(".emn-fl-transcription-new-post").off("click").on("click",function(e){if(e.preventDefault(),""==jQuery("#emn-fl-transcription-content .emn-fl-transcription-p").html())return emn_fl_show_alert("general",localized_strings.transcription_create_content_empty),!1;emn_fl_confirm_modal("file-plus","transcription_new_content","","")}),jQuery(".emn-fl-button-delete").off("click").on("click",function(e){e.preventDefault(),emn_fl_confirm_modal("x-octagon","deletion",jQuery(this).attr("data-type"))}),jQuery('#emn-fl-confirm-modal button:not(.emn-fl-button-post-type-modal):not(.emn-fl-button-set-as-featured-modal):not(.insert-media):not([data-wp-editor-id="emn-fl-new-content-textarea"]):not([id*="mce"]):not(.emn-fl-button-go-create-content)').off("click").on("click",function(){jQuery(this).hasClass("emn-fl-button-1-modal")?"deletion"==jQuery(this).closest("#emn-fl-confirm-modal").attr("data-modal-type")&&emn_fl_delete_generated_content(jQuery(this).closest("#emn-fl-confirm-modal").attr("data-element-type")):emn_fl_destroy_confirm_modal()}),jQuery(".emn-fl-white-overlay").off("click").on("click",function(){emn_fl_destroy_confirm_modal()}),jQuery("a.emn-fl-l-modal-opening").off("click").on("click",function(e){e.preventDefault(),jQuery('.emn-fl-l-modal[data-modal-object="'+jQuery(this).attr("data-modal-object")+'"]').addClass("emn-fl-show").attr("data-location-id",jQuery(this).parent().parent().parent().attr("id"))}),jQuery(".emn-fl-l-modal").off("click").on("click",function(e){jQuery(e.target).is(".emn-fl-l-modal-inner")||jQuery(e.target).is(".emn-fl-l-modal-inner *")||jQuery(".emn-fl-l-modal").removeClass("emn-fl-show")}),jQuery(".emn-fl-l-modal .emn-fl-button-confirm").off("click").on("click",function(){emn_fl_confirm_large_modal(jQuery(this).attr("data-modal-object"))}),jQuery(".emn-fl-l-modal .emn-fl-button-delete").off("click").on("click",function(){jQuery(".emn-fl-l-modal").removeClass("emn-fl-show")}),jQuery("#emn-fl-generate-key-points-button").off("click").on("click",function(e){e.preventDefault(),emn_fl_generate_key_points()})}function emn_fl_generate_images(){if(""==jQuery("#emn_fl_image_prompt").val())return emn_fl_show_alert("general",localized_strings.empty_image_prompt),!1;jQuery(".emn-fl-loading span").html(localized_strings.generating),jQuery(".emn-fl-loading").addClass("emn-fl-show"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_generate_images",key_type:"openai",variations:"false",image_url:"",prompt:jQuery("#emn_fl_image_prompt").val(),n:jQuery("#emn_fl_image_number").val(),size:jQuery("#emn_fl_image_size").val(),type:jQuery("#emn_fl_image_type").val(),style:jQuery("#emn_fl_image_style").val(),postNonce:emn_fl_urls.nonce},function(e){return images_html="",e=jQuery.parseJSON(e),jQuery(".emn-fl-loading").removeClass("emn-fl-show"),e.error?(emn_fl_show_alert("warning",e.error.message,6e3),!1):0==e||null==e?(emn_fl_show_alert("warning",localized_strings.generic_error,6e3),!1):void(e.data&&(jQuery(".emn-fl-save-all-images-in-media, .emn-fl-generated-image-container").remove(),images_html+="<button class='emn-fl-button emn-fl-save-all-images-in-media emn-fl-dm-sans emn-fl-transitions-2s'><i data-feather='save'></i>"+localized_strings.save_all_images+"</button>",jQuery(e.data).each(function(){image_url=(image_url=jQuery(this))[0].url,images_html+="<div class='emn-fl-generated-image-container emn-fl-grid-container emn-fl-grid-x emn-fl-grid-margin-x' data-image-url='"+image_url+"'>",images_html+="<div class='emn-fl-generated-image emn-fl-small-12 emn-fl-medium-12 emn-fl-large-6 emn-fl-cell' style='background-image: url("+image_url+")'>",images_html+="</div>",images_html+="<div class='emn-fl-generated-image-actions emn-fl-small-12 emn-fl-medium-12 emn-fl-large-6 emn-fl-cell'>",images_html+="<h3 class='emn-fl-dm-sans emn-fl-medium-title'><i data-feather='plus-square'></i>",images_html+=localized_strings.actions_title,images_html+="</h3><p class='emn-fl-dm-sans emn-fl-section-p'>",images_html+=localized_strings.images_actions_p,images_html+="</p>",images_html+="<button class='emn-fl-button emn-fl-save-image-in-media emn-fl-dm-sans emn-fl-transitions-2s'><i data-feather='save'></i>"+localized_strings.save_image+"</button>",images_html+="<button class='emn-fl-button emn-fl-save-image-in-media emn-fl-set-featured-image emn-fl-dm-sans emn-fl-transitions-2s' data-featured='true'><i data-feather='save'></i>"+localized_strings.save_image_featured+"</button>",images_html+="<button class='emn-fl-button emn-fl-image-create-variations emn-fl-dm-sans emn-fl-transitions-2s'><i data-feather='layers'></i>"+localized_strings.image_create_variations+"</button>",images_html+="</div>",images_html+="</div>"}),jQuery(".emn-generated-images-container .emn-fl-empty-message").hide(100),jQuery(".emn-generated-images-container").append(images_html),feather.replace(),emn_fl_bind_events()))})}function emn_fl_save_image_in_media(e,t,n=!1,a=1,l=0){if(e.hasClass("emn-fl-button-saved"))return!1;image_url=[],featured_ids="",1==t?image_url.push(e.closest(".emn-fl-generated-image-container").attr("data-image-url")):"all"==t&&jQuery(".emn-fl-generated-image-container").each(function(){""!=jQuery(this).find(" .emn-fl-save-image-in-media:not(.emn-fl-set-featured-image)").attr("data-image-media-id")&&jQuery(this).find(" .emn-fl-save-image-in-media:not(.emn-fl-set-featured-image)").attr("data-image-media-id")||image_url.push(jQuery(this).attr("data-image-url"))}),n&&(jQuery("#emn-fl-confirm-modal").css("z-index","98"),jQuery('#emn-fl-confirm-modal[data-modal-type="set_featured"] .emn-fl-post-list-single input[type="checkbox"]').each(function(){jQuery(this).is(":checked")&&(featured_ids+=jQuery(this).attr("data-id")+",")})),jQuery(".emn-fl-loading span").html(localized_strings.saving),jQuery(".emn-fl-loading").addClass("emn-fl-show"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_save_image_in_media",image_url:image_url,save:a,already_saved_attachment_id:l,prompt:jQuery("#emn_fl_image_prompt").val(),featured_ids:featured_ids,postNonce:emn_fl_urls.nonce},function(l){(l=jQuery.parseJSON(l)).success?(emn_fl_show_alert("success",l.success),1==t?1==a?n?(e.prev().addClass("emn-fl-button-saved").html("<i data-feather='save'></i>"+localized_strings.saved).attr("data-image-media-id",l.images_data[1].image_id),e.addClass("emn-fl-button-saved").html("<i data-feather='save'></i>"+localized_strings.saved_and_set).attr("data-image-media-id",l.images_data[1].image_id)):(e.addClass("emn-fl-button-saved").html("<i data-feather='save'></i>"+localized_strings.saved).attr("data-image-media-id",l.images_data[1].image_id),e.next().html("<i data-feather='save'></i>"+localized_strings.set_as_featured).attr("data-image-media-id",l.images_data[1].image_id)):e.addClass("emn-fl-button-saved").html("<i data-feather='save'></i>"+localized_strings.saved_and_set):"all"==t&&(jQuery(".emn-fl-save-image-in-media:not(.emn-fl-set-featured-image)").addClass("emn-fl-button-saved").html("<i data-feather='save'></i>"+localized_strings.saved),jQuery(".emn-fl-save-all-images-in-media").addClass("emn-fl-button-saved").html("<i data-feather='save'></i>"+localized_strings.all_saved),count_images=1,jQuery(".emn-fl-generated-image-container").each(function(){""!=(this_img=jQuery(this)).find(" .emn-fl-save-image-in-media").attr("data-image-media-id")&&this_img.find(" .emn-fl-save-image-in-media").attr("data-image-media-id")||(this_img.find(" .emn-fl-save-image-in-media").attr("data-image-media-id",l.images_data[count_images].image_id),count_images++)})),feather.replace(),emn_fl_bind_events(),jQuery("#emn-fl-confirm-modal").length&&emn_fl_destroy_confirm_modal()):(jQuery("#emn-fl-confirm-modal").length&&jQuery("#emn-fl-confirm-modal").css("z-index","99"),emn_fl_show_alert("warning",localized_strings.generic_error,6e3)),jQuery(".emn-fl-loading").removeClass("emn-fl-show")})}function emn_fl_create_image_variations(e){if(e.hasClass("emn-fl-button-saved"))return!1;image_url_o=e.closest(".emn-fl-generated-image-container").attr("data-image-url"),jQuery(".emn-fl-loading span").html(localized_strings.generating),jQuery(".emn-fl-loading").addClass("emn-fl-show"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_generate_images",key_type:"openai",variations:"true",prompt:"",image_url:image_url_o,n:jQuery("#emn_fl_image_number").val(),size:jQuery("#emn_fl_image_size").val(),type:jQuery("#emn_fl_image_type").val(),style:jQuery("#emn_fl_image_style").val(),postNonce:emn_fl_urls.nonce},function(e){images_html="",jQuery(".emn-fl-loading").removeClass("emn-fl-show");try{if((e=jQuery.parseJSON(e)).error)return emn_fl_show_alert("warning",e.error.message,6e3),!1;if(0==e||null==e)return emn_fl_show_alert("warning",localized_strings.generic_error,6e3),!1;e.data&&(jQuery(e.data).each(function(){image_url=(image_url=jQuery(this))[0].url,images_html+="<div class='emn-fl-generated-image-container emn-fl-single-image-variation emn-fl-grid-container emn-fl-grid-x emn-fl-grid-margin-x' data-image-url='"+image_url+"'>",images_html+="<div class='emn-fl-generated-image emn-fl-small-12 emn-fl-medium-12 emn-fl-large-6 emn-fl-cell' style='background-image: url("+image_url+")'>",images_html+="</div>",images_html+="<div class='emn-fl-generated-image-actions emn-fl-small-12 emn-fl-medium-12 emn-fl-large-6 emn-fl-cell'>",images_html+="<h3 class='emn-fl-dm-sans emn-fl-medium-title'><i data-feather='plus-square'></i>",images_html+=localized_strings.actions_title,images_html+="</h3><p class='emn-fl-dm-sans emn-fl-section-p'>",images_html+=localized_strings.images_actions_p,images_html+="</p>",images_html+="<button class='emn-fl-button emn-fl-save-image-in-media emn-fl-dm-sans emn-fl-transitions-2s'><i data-feather='save'></i>"+localized_strings.save_image+"</button>",images_html+="<button class='emn-fl-button emn-fl-save-image-in-media emn-fl-set-featured-image emn-fl-dm-sans emn-fl-transitions-2s' data-featured='true'><i data-feather='save'></i>"+localized_strings.save_image_featured+"</button>",images_html+="<button class='emn-fl-button emn-fl-image-create-variations emn-fl-dm-sans emn-fl-transitions-2s'><i data-feather='layers'></i>"+localized_strings.image_create_variations+"</button>",images_html+="<h3 class='emn-fl-dm-sans emn-fl-medium-title emn-fl-medium-title-small'><i data-feather='refresh-cw'></i>",images_html+=localized_strings.variation_title,images_html+="</h3>",images_html+="<div class='emn-fl-image-variation-of' style='background-image: url("+image_url_o+");'></div>",images_html+="</div>",images_html+="</div>"}),jQuery(images_html).insertAfter('.emn-fl-generated-image-container[data-image-url="'+image_url_o+'"]'),jQuery('.emn-fl-generated-image-container[data-image-url="'+image_url_o+'"] button.emn-fl-image-create-variations').addClass("emn-fl-button-saved").html("<i data-feather='layers'></i>"+localized_strings.variations_created),feather.replace(),emn_fl_bind_events())}catch(e){return emn_fl_show_alert("warning",localized_strings.generic_error,6e3),!1}})}function emn_fl_send_chat_message(e){if(""==e)return emn_fl_show_alert("general",localized_strings.chat_no_message),!1;chat_history={},jQuery(".emn-fl-chat-content-container-inner .emn-fl-chat___message").length?(count_chat=0,jQuery(".emn-fl-chat-content-container-inner .emn-fl-chat___message").each(function(e){chat_history[e]={},chat_history[e].role=jQuery(this).attr("data-sender"),chat_history[e].content=jQuery(this).find(" .emn-fl-chat___message_text").text(),count_chat++}),chat_history[count_chat]={},chat_history[count_chat].role="user",chat_history[count_chat].content=e,first_chat_html='<div class="emn-fl-chat___element emn-fl-chat___message" data-sender="user" data-message-count="'+(count_chat+1)+'"><span class="emn-fl-chat-message___signature">'+localized_strings.you+'</span><div class="emn-fl-chat___message_text"><p>'+e+'</p></div><div class="emn-fl-chat___message_select"><input type="checkbox" class="emn-fl-checkbox emn-fl-chat-check-message" name="emn-fl-chat-check-message-'+(count_chat+1)+'" /></div></div>'):(chat_history[0]={},chat_history[0].role="system",chat_history[0].content=e,first_chat_html='<div class="emn-fl-chat___element emn-fl-chat___message" data-sender="system" data-message-count="1"><span class="emn-fl-chat-message___signature">'+localized_strings.you+'</span><div class="emn-fl-chat___message_text"><p>'+e+'</p></div><div class="emn-fl-chat___message_select"><input type="checkbox" class="emn-fl-checkbox emn-fl-chat-check-message" name="emn-fl-chat-check-message-1" /></div></div>'),chat_history=JSON.stringify(chat_history),jQuery(".emn-fl-loading span").html(localized_strings.sending),jQuery(".emn-fl-loading").addClass("emn-fl-show"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_send_chat_message",key_type:"openai",chat_history:chat_history,postNonce:emn_fl_urls.nonce},function(e){return e=jQuery.parseJSON(e),jQuery(".emn-fl-loading").removeClass("emn-fl-show"),e.error?(emn_fl_show_alert("warning",e.error.message,6e3),!1):0==e||null==e?(emn_fl_show_alert("warning",localized_strings.generic_error,6e3),!1):void(e.choices&&(jQuery("#emn-fl-chat-prompt").val(""),""==jQuery("#emn-fl-chat-prompt").attr("data-hidden-placeholder")&&(jQuery("#emn-fl-chat-prompt").attr("data-hidden-placeholder",jQuery("#emn-fl-chat-prompt").attr("placeholder")),jQuery("#emn-fl-chat-prompt").attr("placeholder",localized_strings.write_your_answer_here)),jQuery(".emn-fl-chat-content-container-inner").append(first_chat_html),ai_message=e.choices[0].message.content.trim().replace(/\r?\n/g,"<br/>"),chat_html='<div class="emn-fl-chat___element emn-fl-chat___message" data-sender="'+e.choices[0].message.role+'" data-message-count="'+(jQuery(".emn-fl-chat___message").length+1)+'"><span class="emn-fl-chat-message___signature">'+localized_strings.ai+'</span><div class="emn-fl-chat___message_text"><p>'+ai_message+'</p></div><div class="emn-fl-chat___message_select"><input type="checkbox" class="emn-fl-checkbox emn-fl-chat-check-message" name="emn-fl-chat-check-message-'+(jQuery(".emn-fl-chat___message").length+1)+'" /></div></div>',jQuery(".emn-fl-chat-content-container-inner").append(chat_html),"0"==jQuery(".emn-fl-new-chat-container").attr("data-visibility")&&jQuery(".emn-fl-new-chat-container").attr("data-visibility","1"),"0"==jQuery(".emn-fl-chat___select_all").attr("data-visibility")&&jQuery(".emn-fl-chat___select_all").attr("data-visibility","1"),jQuery(".emn-fl-chat-content-container-inner").animate({scrollTop:jQuery('.emn-fl-chat___message[data-message-count="'+jQuery(".emn-fl-chat___message").length+'"]').offset().top},1e3),emn_fl_checkboxes(),emn_fl_bind_events()))})}function emn_fl_clear_chat(){jQuery(".emn-fl-chat-content-container-inner .emn-fl-chat___message").remove(),jQuery(".emn-fl-new-chat-container").attr("data-visibility","0"),jQuery("#emn-fl-chat-prompt").attr("placeholder",jQuery("#emn-fl-chat-prompt").attr("data-hidden-placeholder")),jQuery(".emn-fl-chat___select_all").text(localized_strings.select_all_answers).attr({"data-action":"select","data-visibility":"0"})}function emn_fl_chat_text_to_copy(){jQuery("#emn-fl-chat-content-hidden").empty(),jQuery(".emn-fl-chat___message").each(function(){jQuery(this).find(' .emn-fl-chat___message_select input[type="checkbox"]').is(":checked")&&jQuery("#emn-fl-chat-content-hidden").append(jQuery(this).find(" .emn-fl-chat___message_text").html())})}function emn_fl_send_audio_file(){jQuery(".emn-fl-loading span").html(localized_strings.sending_file),jQuery(".emn-fl-loading").addClass("emn-fl-show"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_get_transcription",key_type:"openai",file_url:jQuery("#emn-fl-audio-attachment-id").attr("data-file-url"),postNonce:emn_fl_urls.nonce},function(e){return e=jQuery.parseJSON(e),jQuery(".emn-fl-loading").removeClass("emn-fl-show"),e.error?(emn_fl_show_alert("warning",e.error.message,6e3),!1):0==e||null==e?(emn_fl_show_alert("warning",localized_strings.generic_error,6e3),!1):void(e.text&&jQuery(".emn-fl-transition-container .emn-fl-chat-content-container-inner p").html(e.text))})}function emn_fl_load_post_list(e,t,n=0,a=""){jQuery("#emn-fl-confirm-modal").css("z-index","98"),selected="",t.find(" .emn-fl-post-list-single").each(function(){jQuery(this).find(' input[type="checkbox"]').is(":checked")&&(selected+=jQuery(this).find(' input[type="checkbox"]').attr("data-id")+",")}),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_load_post_list",post_type:e,offset:n,search:a,selected:selected,postNonce:emn_fl_urls.nonce},function(l){(""!==a&&0!==n||""==a&&0==n)&&t.find(" .emn-fl-post-list-load-more").remove(),0==n?(t.find(" .emn-fl-post-list-single").each(function(){jQuery(this).find(' input[type="checkbox"]').is(":checked")||jQuery(this).remove()}),t.find(" .emn-fl-post-list-load-more").remove(),t.find(" .emn-fl-post-list-container").append(l).show(100)):(t.find(" .emn-fl-post-list-load-more").remove(),t.append(l)),jQuery('.emn-fl-button-post-type-modal[data-post-type="'+e+'"]').addClass("emn-fl-button-post-type-modal-loaded"),emn_fl_checkboxes(),jQuery("#emn-fl-confirm-modal").css("z-index","99"),emn_fl_bind_events()})}function emn_fl_create_wp_content(){return""==jQuery(".emn-fl-new-content-title").val()?(emn_fl_show_alert("general",localized_strings.empty_title,3e3),!1):""==jQuery("#wp-emn-fl-new-content-textarea-wrap #emn-fl-new-content-textarea").val()?(emn_fl_show_alert("general",localized_strings.empty_content,3e3),!1):(jQuery("#emn-fl-confirm-modal").css("z-index","98"),void jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_create_wp_content",post_type:jQuery("select.emn-fl-new-content-select-post-type").val(),title:jQuery(".emn-fl-new-content-title").val(),content:wp.editor.getContent("emn-fl-new-content-textarea"),featured_image:"",postNonce:emn_fl_urls.nonce},function(e){"0"==(e=jQuery.parseJSON(e)).error?(emn_fl_show_alert("success",e.message,3e3),jQuery("#emn-fl-confirm-modal .emn-fl-grid-container").html("<div class='emn-fl-cell emn-fl-small-12'><a class='emn-fl-go-to-new-content emn-fl-transitions-2s' href='"+e.edit_link+"' target='_blank'>"+localized_strings.go_to_new_content+"<i data-feather='arrow-right'></i></a></div>")):"1"==e.error&&emn_fl_show_alert("warning",e.message,3e3),jQuery("#emn-fl-confirm-modal").css("z-index","99"),feather.replace()}))}function emn_fl_delete_generated_content(e){emn_fl_destroy_confirm_modal(),jQuery(".emn-fl-loading span").html(localized_strings.deleting),jQuery(".emn-fl-loading").addClass("emn-fl-show"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_delete_generated_content",content_type:e,postNonce:emn_fl_urls.nonce},function(e){"success"==(e=jQuery.parseJSON(e)).type&&emn_fl_show_alert("success",e.message,3e3),"notfound"==e.type&&emn_fl_show_alert("general",e.message,3e3),jQuery(".emn-fl-loading").removeClass("emn-fl-show")})}function emn_fl_generate_key_points(){if(final_content="",jQuery("body").hasClass("block-editor-page")?(post_content=wp.data.select("core/block-editor").getBlocks())[0]&&jQuery(post_content).each(function(){switch((this_block_content=jQuery(this))[0].name){case"core/paragraph":case"core/freeform":case"core/heading":case"core/list":final_content+=jQuery("<div/>").html(this_block_content[0].originalContent).text()+" "}}):(post_content=tinymce.activeEditor.getContent(),final_content+=jQuery("<div/>").html(post_content).text()),""==(final_content=emn_fl_clean_content(final_content)))return emn_fl_show_alert("general",localized_strings.post_no_content),!1;jQuery(".emn-fl-loading span").html(localized_strings.generating),jQuery(".emn-fl-loading").addClass("emn-fl-show"),guessLanguage.name(final_content,function(e){content_language=e}),ai_message="","english"!==content_language.toLowerCase()&&""!==content_language.toLowerCase()&&void 0!==content_language.toLowerCase()&&(ai_message+="writing in "+content_language+", "),ai_message+="summarize the following text in "+jQuery("#emn-fl-generate-key-points-button").attr("data-key-points-n")+' key points, each one starting with "∙": '+final_content,(chat_history={})[0]={},chat_history[0].role="system",chat_history[0].content=ai_message,chat_history=JSON.stringify(chat_history),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_send_chat_message",key_type:"openai",chat_history:chat_history,postNonce:emn_fl_urls.nonce},function(e){return e=jQuery.parseJSON(e),jQuery(".emn-fl-loading").removeClass("emn-fl-show"),e.error?(emn_fl_show_alert("warning",e.error.message,6e3),!1):0==e||null==e?(emn_fl_show_alert("warning",localized_strings.generic_error,6e3),!1):void(e.choices&&(ai_message=e.choices[0].message.content.trim().replace(/\r?\n/g,"<br/>"),quill.pasteHTML(ai_message)))})}function emn_fl_generate_product_description(e){ai_message="","english"!==e.attr("data-description-language")&&(ai_message+="writing in "+e.attr("data-description-language")+", "),ai_message+="write a product description for a "+e.find(" input#emn-fl-product-description_product_name").val()+".",""!==e.find(" input#emn-fl-product-description_product_brand").val()&&(ai_message+=" The brand of the product is: "+e.find(" input#emn-fl-product-description_product_brand").val()+"."),""!==e.find(" input#emn-fl-product-description_product_features").val()&&(ai_message+=" The main features are: "+e.find(" input#emn-fl-product-description_product_features").val()+"."),""!==e.find(" input#emn-fl-product-description_positioning").val()&&(ai_message+=" The key tone of the description must be: "+e.find(" input#emn-fl-product-description_positioning").val()+"."),""!==e.find(" input#emn-fl-product-description_ideal_buyer").val()&&(ai_message+=" Consider the following as the ideal buyer for this product: "+e.find(" input#emn-fl-product-description_ideal_buyer").val()+"."),""!==e.find(" input#emn-fl-product-description_offer").val()&&(ai_message+=" Only in the end, write something considering this feature of the product: "+e.find(" select#emn-fl-product-description_offer").val()+"."),ai_message+='Highlight the keywords using the "strong" HTML tag.',(chat_history={})[0]={},chat_history[0].role="system",chat_history[0].content=ai_message,chat_history=JSON.stringify(chat_history),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_send_chat_message",key_type:"openai",chat_history:chat_history,postNonce:emn_fl_urls.nonce},function(t){return t=jQuery.parseJSON(t),e.find(" .emn-fl-loading").removeClass("emn-fl-show"),t.error?(emn_fl_show_alert("warning",t.error.message,6e3),!1):0==t||null==t?(emn_fl_show_alert("warning",localized_strings.generic_error,6e3),!1):void(t.choices&&(ai_message=t.choices[0].message.content.trim().replace(/\r?\n/g,"<br/>"),e.attr("data-location-id").indexOf("content")>-1?target_dest="content":e.attr("data-location-id").indexOf("excerpt")>-1&&(target_dest="excerpt"),tinymce.get(target_dest).setContent(ai_message),e.removeClass("emn-fl-show"),emn_fl_show_alert("success",localized_strings.generated_description)))})}function emn_fl_confirm_large_modal(e){if(proceed_error=!1,(this_el=jQuery('.emn-fl-l-modal[data-modal-object="'+e+'"]')).find(" .emn-fl-required-field").length&&this_el.find(" .emn-fl-required-field").each(function(){""==jQuery(this).val()&&(emn_fl_show_alert("general",localized_strings.required_fields_missing),proceed_error=!0)}),!proceed_error)switch(this_el.find(" .emn-fl-loading").length&&(this_el.find(" .emn-fl-loading span").html(localized_strings.generating),this_el.find(" .emn-fl-loading").addClass("emn-fl-show")),e){case"product-description-modal":emn_fl_generate_product_description(this_el)}}function emn_fl_checkboxes(){jQuery('input[type="checkbox"].emn-fl-checkbox').each(function(){jQuery(this).find(" + .emn-fl-checkbox-control").length||jQuery(this).after('<span class="emn-fl-checkbox-control"></span>')})}function emn_fl_show_alert(e,t,n=3e3){jQuery(".emn-fl-alert-message").html(t),jQuery(".emn-fl-alert").addClass("emn-fl-alert-active emn-fl-alert-"+e),emn_fl_hide_alert(n)}function emn_fl_hide_alert(e=3600){clearTimeout(alert_timeout),alert_timeout=setTimeout(function(){jQuery(".emn-fl-alert").hasClass("emn-fl-alert-active")&&(jQuery(".emn-fl-alert").removeClass("emn-fl-alert-active"),jQuery(".emn-fl-alert").removeClass("emn-fl-alert-success emn-fl-alert-warning emn-fl-alert-neutral"))},e)}function emn_fl_check_initial_data_large_modal(){jQuery(".emn-fl-l-modal").each(function(){switch(jQuery(this).attr("data-modal-object")){case"product-description-modal":""!==jQuery('#titlewrap input[name="post_title"]').val()&&jQuery(this).find(" input#emn-fl-product-description_product_name").val(jQuery('#titlewrap input[name="post_title"]').val())}})}function emn_fl_confirm_modal(e,t,n="attachment",a=""){switch(custom_style="",modal_html="<div class='emn-fl-white-overlay emn-fl-transitions-2s'></div>",modal_html+="<div id='emn-fl-confirm-modal' class='emn-fl-transitions-2s' data-modal-type='"+t+"' data-element-type='"+n+"' data-image-url='"+a+"'>",""!==e&&("deletion"==t&&(custom_style='style="color: rgb(247, 4, 4);"'),modal_html+="<i data-feather='"+e+"' "+custom_style+"></i>"),t){case"deletion":switch(modal_title=localized_strings.modal_title_generic_confirm,n){case"attachment":modal_text=localized_strings.modal_text_confirm_image_deletion;break;case"post":modal_text=localized_strings.modal_text_confirm_post_deletion}break;case"set_featured":modal_title=localized_strings.modal_title_set_featured_image,modal_text=localized_strings.modal_text_set_featured_image;break;case"chat_new_content":case"transcription_new_content":modal_title=localized_strings.modal_title_new_content,modal_text=localized_strings.modal_text_new_content}switch(""!==modal_title&&(modal_html+="<h3 class='emn-fl-dm-sans emn-fl-medium-title emn-fl-text-center'>"+modal_title+"</h3>"),""!==modal_text&&(modal_html+="<p class='emn-fl-dm-sans emn-fl-section-p emn-fl-text-center'>"+modal_text+"</p>"),modal_html+="<div class='emn-fl-grid-container emn-fl-grid-x'>",t){case"deletion":modal_html+="<div class='emn-fl-cell emn-fl-small-6 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-1-modal emn-fl-transitions-2s emn-fl-dm-sans'>"+localized_strings.modal_generic_yes+"</button></div>",modal_html+="<div class='emn-fl-cell emn-fl-small-6 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-delete emn-fl-button-2-modal emn-fl-transitions-2s emn-fl-dm-sans'>"+localized_strings.modal_generic_no+"</button></div>";break;case"set_featured":modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-post-type-modal emn-fl-transitions-2s emn-fl-dm-sans' data-post-type='post'>"+localized_strings.posts+"</button><div class='emn-fl-post-list-container'><div class='emn-fl-post-list-search'><input type='text' class='emn-fl-input' data-post-type='post' placeholder='"+localized_strings.type_to_search+"' /></div></div></div>",modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-post-type-modal emn-fl-transitions-2s emn-fl-dm-sans' data-post-type='page'>"+localized_strings.pages+"</button><div class='emn-fl-post-list-container'><div class='emn-fl-post-list-search'><input type='text' class='emn-fl-input' data-post-type='page' placeholder='"+localized_strings.type_to_search+"' /></div></div></div>";break;case"chat_new_content":case"transcription_new_content":modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-medium-6 emn-fl-settings emn-fl-form-single-input'><label for='emn-fl-new-content-select-post-type' class='emn-fl-dm-sans'>"+localized_strings.post_type+"</label><select class='emn-fl-select emn-fl-new-content-select-post-type'><option value='post'>"+localized_strings.post+"</option><option value='page'>"+localized_strings.page+"</option><option value='product'>"+localized_strings.product+"</option><option value='portfolio'>"+localized_strings.portfolio+"</option></select></div>",modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-medium-6 emn-fl-settings emn-fl-form-single-input'><label for='emn-fl-new-content-title' class='emn-fl-dm-sans'>"+localized_strings.title+"</label><input type='text' class='emn-fl-new-content-title emn-fl-input' placeholder='"+localized_strings.title_placeholder+"' /></div>",modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-settings emn-fl-form-single-input'><label for='emn-fl-new-content-textarea' class='emn-fl-dm-sans'>"+localized_strings.content+"</label><textarea id='emn-fl-new-content-textarea'></textarea></div>",modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-modal-separator'></div><div class='emn-fl-cell emn-fl-small-6 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-go-create-content emn-fl-transitions-2s emn-fl-dm-sans'>"+localized_strings.modal_go_create_content+"</button></div>",modal_html+="<div class='emn-fl-cell emn-fl-small-6 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-delete emn-fl-button-2-modal emn-fl-transitions-2s emn-fl-dm-sans'>"+localized_strings.modal_go_back+"</button></div>"}switch(modal_html+="</div>",modal_html+="</div>",jQuery(".emn-fl-wrap").append(modal_html),feather.replace(),jQuery(".emn-fl-white-overlay").css("display","block"),jQuery("#emn-fl-confirm-modal").animate({transform:"translate(-50%, -50%)"},500),t){case"set_featured":jQuery("#emn-fl-confirm-modal").css("z-index","98"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_check_post_types",postNonce:emn_fl_urls.nonce},function(e){modal_html="",void 0!==(e=jQuery.parseJSON(e)).product&&(modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-post-type-modal emn-fl-transitions-2s emn-fl-dm-sans' data-post-type='product'>"+localized_strings.products+"</button><div class='emn-fl-post-list-container'><div class='emn-fl-post-list-search'><input type='text' class='emn-fl-input' data-post-type='product' placeholder='"+localized_strings.type_to_search+"' /></div></div></div>"),void 0!==e.portfolio&&(modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-post-type-modal emn-fl-transitions-2s emn-fl-dm-sans' data-post-type='portfolio'>"+localized_strings.portfolio+"</button><div class='emn-fl-post-list-container'><div class='emn-fl-post-list-search'><input type='text' class='emn-fl-input' data-post-type='portfolio' placeholder='"+localized_strings.type_to_search+"' /></div></div></div>"),modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-modal-separator'></div><div class='emn-fl-cell emn-fl-small-6 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-set-as-featured-modal emn-fl-transitions-2s emn-fl-dm-sans'>"+localized_strings.modal_go_set_featured+"</button></div>",modal_html+="<div class='emn-fl-cell emn-fl-small-6 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-delete emn-fl-button-2-modal emn-fl-transitions-2s emn-fl-dm-sans'>"+localized_strings.modal_go_back+"</button></div>",jQuery("#emn-fl-confirm-modal .emn-fl-grid-container").append(modal_html),jQuery("#emn-fl-confirm-modal").css("z-index","99")});break;case"chat_new_content":case"transcription_new_content":jQuery("#emn-fl-confirm-modal").css("z-index","98"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_check_post_types",postNonce:emn_fl_urls.nonce},function(e){void 0!==(e=jQuery.parseJSON(e)).product&&jQuery('.emn-fl-new-content-select-post-type option[value="product"]').show(),void 0!==e.portfolio&&jQuery('.emn-fl-new-content-select-post-type option[value="portfolio"]').show(),jQuery("#emn-fl-confirm-modal").css("z-index","99")}),wp.editor.remove("emn-fl-new-content-textarea"),jQuery("#emn-fl-chat-content-hidden").length&&jQuery("#emn-fl-new-content-textarea").val(jQuery("#emn-fl-chat-content-hidden").html()),jQuery("#emn-fl-transcription-content .emn-fl-transcription-p").length&&jQuery("#emn-fl-new-content-textarea").val(jQuery("#emn-fl-transcription-content .emn-fl-transcription-p").html()),wp.editor.initialize("emn-fl-new-content-textarea",{tinymce:{wpautop:!0,height:320,plugins:"charmap colorpicker compat3x directionality fullscreen hr image lists media paste tabfocus textcolor wordpress wpautoresize wpdialogs wpeditimage wpemoji wpgallery wplink wptextpattern wpview",toolbar1:"bold italic underline strikethrough | bullist numlist | blockquote hr wp_more | alignleft aligncenter alignright | link unlink | fullscreen | wp_adv",toolbar2:"formatselect alignjustify forecolor | pastetext removeformat charmap | outdent indent | undo redo | wp_help"},quicktags:!0,mediaButtons:!0})}emn_fl_bind_events()}function emn_fl_destroy_confirm_modal(){jQuery(".emn-fl-white-overlay, #emn-fl-confirm-modal").remove()}function emn_fl_clean_content(e){return e=(e=e.split("[vc_row]").join("").split("[vc_column]").join("").split("[vc_column_text]").join("").split("[vc_single_image]").join("")).split("[/vc_row]").join("").split("[/vc_column]").join("").split("[/vc_column_text]").join("").split("[/vc_single_image]").join("")}jQuery(document).ready(function(){if(emn_fl_bind_events(),jQuery('a[href="admin.php?page=flusso-ai-generated-content"]:not(.wp-has-submenu)').length&&jQuery('a[href="admin.php?page=flusso-ai-generated-content"]:not(.wp-has-submenu)').text(localized_strings.overview),emn_fl_checkboxes(),jQuery("select#emn_fl_content_features_product_description_language").length&&"english"!==jQuery("select#emn_fl_content_features_product_description_language").attr("data-selected")&&jQuery("select#emn_fl_content_features_product_description_language").val(jQuery("select#emn_fl_content_features_product_description_language").attr("data-selected")),jQuery(".emn-fl-l-modal").length&&emn_fl_check_initial_data_large_modal(),jQuery(".emn-fl-color-picker").length&&jQuery(".emn-fl-color-picker").wpColorPicker(),jQuery("#emn_fl_meta_post_options").length&&jQuery('<img src="'+script_urls.plugin_url+'/assets/images/symbol.png" class="emn-fl-meta-logo" />').insertBefore("#emn_fl_meta_post_options h2.hndle"),jQuery("#emn-fl-key-points-editor").length&&((quill=new Quill("#emn-fl-key-points-editor",{theme:"snow",placeholder:localized_strings.generate_key_points_placeholder})).on("text-change",function(e,t,n){jQuery("input#emn_fl_key_points").val(quill.root.innerHTML)}),""!==jQuery("input#emn_fl_key_points").val()&&quill.pasteHTML(jQuery("input#emn_fl_key_points").val())),feather.replace(),jQuery(".emn-fl-copy-content").length){var e=new ClipboardJS(".emn-fl-copy-content");e.on("success",function(e){emn_fl_show_alert("success",localized_strings.copy_success)}),e.on("error",function(e){jQuery("#emn-fl-chat-content-hidden").length&&(""==jQuery("#emn-fl-chat-content-hidden").html()?emn_fl_show_alert("general",localized_strings.copy_empty):emn_fl_show_alert("warning",localized_strings.copy_error)),jQuery("#emn-fl-transcription-content").length&&(""==jQuery("#emn-fl-transcription-content .emn-fl-transcription-p").html()?emn_fl_show_alert("general",localized_strings.copy_empty):emn_fl_show_alert("warning",localized_strings.copy_error))})}});
     1"use strict";var alert_timeout,openai_key,organization_id,images_html,image_url,image_url_o,this_el,featured_ids,count_images,this_img,modal_html,custom_style,modal_title,modal_text,search_timeout,selected,proceed_error,chat_history,chat_html,first_chat_html,ai_message,count_chat,to_copy,post_content,this_block_content,final_content,content_language,quill,target_dest,chat_message;function emn_fl_bind_events(){jQuery(".emn-fl-openai-key-validate").off("click").on("click",function(e){if(e.preventDefault(),openai_key=jQuery("input#emn_fl_openai_key").val(),organization_id=jQuery("input#emn_fl_organization_id").val(),""==openai_key)return emn_fl_show_alert("general",localized_strings.empty_openai_key),!1;jQuery(".emn-fl-loading span").html(localized_strings.validating),jQuery(".emn-fl-loading").addClass("emn-fl-show"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_validate_key",openai_key:openai_key,organization_id:organization_id,postNonce:emn_fl_urls.nonce},function(e){(e=jQuery.parseJSON(e)).error&&emn_fl_show_alert("warning",e.error.message,5e3),0!=e&&null!=e||emn_fl_show_alert("warning",localized_strings.openai_key_generic_error,4e3),e.data&&emn_fl_show_alert("success",localized_strings.verified_openai_key,3e3),jQuery(".emn-fl-loading").removeClass("emn-fl-show")})}),jQuery("button.emn-fl-generate-images").off("click").on("click",function(e){e.preventDefault(),emn_fl_generate_images()}),jQuery(".emn-fl-save-image-in-media").off("click").on("click",function(e){e.preventDefault(),jQuery(this).hasClass("emn-fl-button-saved")||(jQuery(this).hasClass("emn-fl-set-featured-image")?emn_fl_confirm_modal("image","set_featured","",jQuery(this).parent().parent().attr("data-image-url")):emn_fl_save_image_in_media(jQuery(this),1))}),jQuery(".emn-fl-save-all-images-in-media").off("click").on("click",function(e){e.preventDefault(),emn_fl_save_image_in_media(jQuery(this),"all")}),jQuery(".emn-fl-image-create-variations").off("click").on("click",function(e){e.preventDefault(),emn_fl_create_image_variations(jQuery(this))}),jQuery(".emn-fl-button-post-type-modal").off("click").on("click",function(){jQuery(this).hasClass("emn-fl-button-post-type-modal-loaded")||emn_fl_load_post_list(jQuery(this).attr("data-post-type"),jQuery(this).parent())}),jQuery(".emn-fl-post-list-load-more").off("click").on("click",function(){emn_fl_load_post_list(jQuery(this).attr("data-post-type"),jQuery(this).parent(),parseInt(jQuery(this).attr("data-offset")),jQuery(this).attr("data-search"))}),jQuery(".emn-fl-post-list-search input").off("keyup").on("keyup",function(){this_el=jQuery(this),clearTimeout(search_timeout),search_timeout=setTimeout(function(){""!==this_el.val()?emn_fl_load_post_list(this_el.attr("data-post-type"),this_el.parent().parent().parent(),0,this_el.val()):emn_fl_load_post_list(this_el.attr("data-post-type"),this_el.parent().parent().parent())},1500)}),jQuery(".emn-fl-button-set-as-featured-modal").off("click").on("click",function(){if(proceed_error=!0,jQuery('#emn-fl-confirm-modal[data-modal-type="set_featured"] .emn-fl-post-list-single input[type="checkbox"]').length&&jQuery('#emn-fl-confirm-modal[data-modal-type="set_featured"] .emn-fl-post-list-single input[type="checkbox"]').each(function(){jQuery(this).is(":checked")&&(proceed_error=!1)}),proceed_error)return emn_fl_show_alert("general",localized_strings.featured_no_elements_selected),!1;""!=jQuery('.emn-fl-generated-image-container[data-image-url="'+jQuery("#emn-fl-confirm-modal").attr("data-image-url")+'"] button.emn-fl-set-featured-image').attr("data-image-media-id")&&jQuery('.emn-fl-generated-image-container[data-image-url="'+jQuery("#emn-fl-confirm-modal").attr("data-image-url")+'"] button.emn-fl-set-featured-image').attr("data-image-media-id")?emn_fl_save_image_in_media(jQuery('.emn-fl-generated-image-container[data-image-url="'+jQuery("#emn-fl-confirm-modal").attr("data-image-url")+'"] button.emn-fl-set-featured-image'),1,!0,0,jQuery('.emn-fl-generated-image-container[data-image-url="'+jQuery("#emn-fl-confirm-modal").attr("data-image-url")+'"] button.emn-fl-set-featured-image').attr("data-image-media-id")):emn_fl_save_image_in_media(jQuery('.emn-fl-generated-image-container[data-image-url="'+jQuery("#emn-fl-confirm-modal").attr("data-image-url")+'"] button.emn-fl-set-featured-image'),1,!0)}),jQuery(".emn-fl-send-chat-message").off("click").on("click",function(){chat_message=jQuery("#emn-fl-chat-prompt").val(),""!==jQuery("#emn-fl-chat-add-img").attr("data-image-url")&&jQuery("#emn-fl-chat-add-img").attr("data-image-url")&&(chat_message+=" "+jQuery("#emn-fl-chat-add-img").attr("data-image-url")),emn_fl_send_chat_message(chat_message)}),jQuery("#emn-fl-chat-prompt").off("keypress").on("keypress",function(e){jQuery(".emn-fl-no-api-key").length||13==e.which&&(chat_message=jQuery(this).val(),""!==jQuery("#emn-fl-chat-add-img").attr("data-image-url")&&jQuery("#emn-fl-chat-add-img").attr("data-image-url")&&(chat_message+=" "+jQuery("#emn-fl-chat-add-img").attr("data-image-url")),emn_fl_send_chat_message(chat_message))}),jQuery(".emn-fl-new-chat").off("click").on("click",function(){emn_fl_clear_chat()}),jQuery(".emn-fl-chat___select_all").off("click").on("click",function(){"select"==jQuery(this).attr("data-action")?(jQuery('.emn-fl-chat-content-container-inner .emn-fl-chat___message[data-sender="assistant"]').find(" .emn-fl-chat-check-message").prop("checked",!0),jQuery(this).text(localized_strings.deselect_all_answers).attr("data-action","deselect"),emn_fl_chat_text_to_copy()):"deselect"==jQuery(this).attr("data-action")&&(jQuery('.emn-fl-chat-content-container-inner .emn-fl-chat___message[data-sender="assistant"]').find(" .emn-fl-chat-check-message").prop("checked",!1),jQuery(this).text(localized_strings.select_all_answers).attr("data-action","select"),jQuery("#emn-fl-chat-content-hidden").empty())}),jQuery('.emn-fl-chat___message_select input[type="checkbox"]').off("change").on("change",function(){emn_fl_chat_text_to_copy()}),jQuery(".emn-fl-chat-new-post").off("click").on("click",function(e){if(e.preventDefault(),""==jQuery("#emn-fl-chat-content-hidden").html())return emn_fl_show_alert("general",localized_strings.chat_create_content_empty),!1;emn_fl_confirm_modal("file-plus","chat_new_content","","")}),jQuery(".emn-fl-button-go-create-content").off("click").on("click",function(){emn_fl_create_wp_content()}),jQuery(".emn-fl-send-audio-file").off("click").on("click",function(e){if(e.preventDefault(),""==jQuery("#emn-fl-audio-attachment-id").val())return emn_fl_show_alert("general",localized_strings.no_file_selected),!1;emn_fl_send_audio_file()}),jQuery(".emn-fl-transcription-new-post").off("click").on("click",function(e){if(e.preventDefault(),""==jQuery("#emn-fl-transcription-content .emn-fl-transcription-p").html())return emn_fl_show_alert("general",localized_strings.transcription_create_content_empty),!1;emn_fl_confirm_modal("file-plus","transcription_new_content","","")}),jQuery(".emn-fl-button-delete").off("click").on("click",function(e){e.preventDefault(),emn_fl_confirm_modal("x-octagon","deletion",jQuery(this).attr("data-type"))}),jQuery('#emn-fl-confirm-modal button:not(.emn-fl-button-post-type-modal):not(.emn-fl-button-set-as-featured-modal):not(.insert-media):not([data-wp-editor-id="emn-fl-new-content-textarea"]):not([id*="mce"]):not(.emn-fl-button-go-create-content)').off("click").on("click",function(){jQuery(this).hasClass("emn-fl-button-1-modal")?"deletion"==jQuery(this).closest("#emn-fl-confirm-modal").attr("data-modal-type")&&emn_fl_delete_generated_content(jQuery(this).closest("#emn-fl-confirm-modal").attr("data-element-type")):emn_fl_destroy_confirm_modal()}),jQuery(".emn-fl-white-overlay").off("click").on("click",function(){emn_fl_destroy_confirm_modal()}),jQuery("a.emn-fl-l-modal-opening").off("click").on("click",function(e){e.preventDefault(),jQuery('.emn-fl-l-modal[data-modal-object="'+jQuery(this).attr("data-modal-object")+'"]').addClass("emn-fl-show").attr("data-location-id",jQuery(this).parent().parent().parent().attr("id"))}),jQuery(".emn-fl-l-modal").off("click").on("click",function(e){jQuery(e.target).is(".emn-fl-l-modal-inner")||jQuery(e.target).is(".emn-fl-l-modal-inner *")||jQuery(".emn-fl-l-modal").removeClass("emn-fl-show")}),jQuery(".emn-fl-l-modal .emn-fl-button-confirm").off("click").on("click",function(){emn_fl_confirm_large_modal(jQuery(this).attr("data-modal-object"))}),jQuery(".emn-fl-l-modal .emn-fl-button-delete").off("click").on("click",function(){jQuery(".emn-fl-l-modal").removeClass("emn-fl-show")}),jQuery("#emn-fl-generate-key-points-button").off("click").on("click",function(e){e.preventDefault(),emn_fl_generate_key_points()})}function emn_fl_generate_images(){if(""==jQuery("#emn_fl_image_prompt").val())return emn_fl_show_alert("general",localized_strings.empty_image_prompt),!1;jQuery(".emn-fl-loading span").html(localized_strings.generating),jQuery(".emn-fl-loading").addClass("emn-fl-show"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_generate_images",key_type:"openai",variations:"false",image_url:"",prompt:jQuery("#emn_fl_image_prompt").val(),n:jQuery("#emn_fl_image_number").val(),size:jQuery("#emn_fl_image_size").val(),type:jQuery("#emn_fl_image_type").val(),style:jQuery("#emn_fl_image_style").val(),postNonce:emn_fl_urls.nonce},function(e){return images_html="",e=jQuery.parseJSON(e),jQuery(".emn-fl-loading").removeClass("emn-fl-show"),e.error?(emn_fl_show_alert("warning",e.error.message,6e3),!1):0==e||null==e?(emn_fl_show_alert("warning",localized_strings.generic_error,6e3),!1):void(e.data&&(jQuery(".emn-fl-save-all-images-in-media, .emn-fl-generated-image-container").remove(),images_html+="<button class='emn-fl-button emn-fl-save-all-images-in-media emn-fl-dm-sans emn-fl-transitions-2s'><i data-feather='save'></i>"+localized_strings.save_all_images+"</button>",jQuery(e.data).each(function(){image_url=(image_url=jQuery(this))[0].url,images_html+="<div class='emn-fl-generated-image-container emn-fl-grid-container emn-fl-grid-x emn-fl-grid-margin-x' data-image-url='"+image_url+"'>",images_html+="<div class='emn-fl-generated-image emn-fl-small-12 emn-fl-medium-12 emn-fl-large-6 emn-fl-cell' style='background-image: url("+image_url+")'>",images_html+="</div>",images_html+="<div class='emn-fl-generated-image-actions emn-fl-small-12 emn-fl-medium-12 emn-fl-large-6 emn-fl-cell'>",images_html+="<h3 class='emn-fl-dm-sans emn-fl-medium-title'><i data-feather='plus-square'></i>",images_html+=localized_strings.actions_title,images_html+="</h3><p class='emn-fl-dm-sans emn-fl-section-p'>",images_html+=localized_strings.images_actions_p,images_html+="</p>",images_html+="<button class='emn-fl-button emn-fl-save-image-in-media emn-fl-dm-sans emn-fl-transitions-2s'><i data-feather='save'></i>"+localized_strings.save_image+"</button>",images_html+="<button class='emn-fl-button emn-fl-save-image-in-media emn-fl-set-featured-image emn-fl-dm-sans emn-fl-transitions-2s' data-featured='true'><i data-feather='save'></i>"+localized_strings.save_image_featured+"</button>",images_html+="<button class='emn-fl-button emn-fl-image-create-variations emn-fl-dm-sans emn-fl-transitions-2s'><i data-feather='layers'></i>"+localized_strings.image_create_variations+"</button>",images_html+="</div>",images_html+="</div>"}),jQuery(".emn-generated-images-container .emn-fl-empty-message").hide(100),jQuery(".emn-generated-images-container").append(images_html),feather.replace(),emn_fl_bind_events()))})}function emn_fl_save_image_in_media(e,t,n=!1,a=1,l=0){if(e.hasClass("emn-fl-button-saved"))return!1;image_url=[],featured_ids="",1==t?image_url.push(e.closest(".emn-fl-generated-image-container").attr("data-image-url")):"all"==t&&jQuery(".emn-fl-generated-image-container").each(function(){""!=jQuery(this).find(" .emn-fl-save-image-in-media:not(.emn-fl-set-featured-image)").attr("data-image-media-id")&&jQuery(this).find(" .emn-fl-save-image-in-media:not(.emn-fl-set-featured-image)").attr("data-image-media-id")||image_url.push(jQuery(this).attr("data-image-url"))}),n&&(jQuery("#emn-fl-confirm-modal").css("z-index","98"),jQuery('#emn-fl-confirm-modal[data-modal-type="set_featured"] .emn-fl-post-list-single input[type="checkbox"]').each(function(){jQuery(this).is(":checked")&&(featured_ids+=jQuery(this).attr("data-id")+",")})),jQuery(".emn-fl-loading span").html(localized_strings.saving),jQuery(".emn-fl-loading").addClass("emn-fl-show"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_save_image_in_media",image_url:image_url,save:a,already_saved_attachment_id:l,prompt:jQuery("#emn_fl_image_prompt").val(),featured_ids:featured_ids,postNonce:emn_fl_urls.nonce},function(l){(l=jQuery.parseJSON(l)).success?(emn_fl_show_alert("success",l.success),1==t?1==a?n?(e.prev().addClass("emn-fl-button-saved").html("<i data-feather='save'></i>"+localized_strings.saved).attr("data-image-media-id",l.images_data[1].image_id),e.addClass("emn-fl-button-saved").html("<i data-feather='save'></i>"+localized_strings.saved_and_set).attr("data-image-media-id",l.images_data[1].image_id)):(e.addClass("emn-fl-button-saved").html("<i data-feather='save'></i>"+localized_strings.saved).attr("data-image-media-id",l.images_data[1].image_id),e.next().html("<i data-feather='save'></i>"+localized_strings.set_as_featured).attr("data-image-media-id",l.images_data[1].image_id)):e.addClass("emn-fl-button-saved").html("<i data-feather='save'></i>"+localized_strings.saved_and_set):"all"==t&&(jQuery(".emn-fl-save-image-in-media:not(.emn-fl-set-featured-image)").addClass("emn-fl-button-saved").html("<i data-feather='save'></i>"+localized_strings.saved),jQuery(".emn-fl-save-all-images-in-media").addClass("emn-fl-button-saved").html("<i data-feather='save'></i>"+localized_strings.all_saved),count_images=1,jQuery(".emn-fl-generated-image-container").each(function(){""!=(this_img=jQuery(this)).find(" .emn-fl-save-image-in-media").attr("data-image-media-id")&&this_img.find(" .emn-fl-save-image-in-media").attr("data-image-media-id")||(this_img.find(" .emn-fl-save-image-in-media").attr("data-image-media-id",l.images_data[count_images].image_id),count_images++)})),feather.replace(),emn_fl_bind_events(),jQuery("#emn-fl-confirm-modal").length&&emn_fl_destroy_confirm_modal()):(jQuery("#emn-fl-confirm-modal").length&&jQuery("#emn-fl-confirm-modal").css("z-index","99"),emn_fl_show_alert("warning",localized_strings.generic_error,6e3)),jQuery(".emn-fl-loading").removeClass("emn-fl-show")})}function emn_fl_create_image_variations(e){if(e.hasClass("emn-fl-button-saved"))return!1;image_url_o=e.closest(".emn-fl-generated-image-container").attr("data-image-url"),jQuery(".emn-fl-loading span").html(localized_strings.generating),jQuery(".emn-fl-loading").addClass("emn-fl-show"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_generate_images",key_type:"openai",variations:"true",prompt:"",image_url:image_url_o,n:jQuery("#emn_fl_image_number").val(),size:jQuery("#emn_fl_image_size").val(),type:jQuery("#emn_fl_image_type").val(),style:jQuery("#emn_fl_image_style").val(),postNonce:emn_fl_urls.nonce},function(e){images_html="",jQuery(".emn-fl-loading").removeClass("emn-fl-show");try{if((e=jQuery.parseJSON(e)).error)return emn_fl_show_alert("warning",e.error.message,6e3),!1;if(0==e||null==e)return emn_fl_show_alert("warning",localized_strings.generic_error,6e3),!1;e.data&&(jQuery(e.data).each(function(){image_url=(image_url=jQuery(this))[0].url,images_html+="<div class='emn-fl-generated-image-container emn-fl-single-image-variation emn-fl-grid-container emn-fl-grid-x emn-fl-grid-margin-x' data-image-url='"+image_url+"'>",images_html+="<div class='emn-fl-generated-image emn-fl-small-12 emn-fl-medium-12 emn-fl-large-6 emn-fl-cell' style='background-image: url("+image_url+")'>",images_html+="</div>",images_html+="<div class='emn-fl-generated-image-actions emn-fl-small-12 emn-fl-medium-12 emn-fl-large-6 emn-fl-cell'>",images_html+="<h3 class='emn-fl-dm-sans emn-fl-medium-title'><i data-feather='plus-square'></i>",images_html+=localized_strings.actions_title,images_html+="</h3><p class='emn-fl-dm-sans emn-fl-section-p'>",images_html+=localized_strings.images_actions_p,images_html+="</p>",images_html+="<button class='emn-fl-button emn-fl-save-image-in-media emn-fl-dm-sans emn-fl-transitions-2s'><i data-feather='save'></i>"+localized_strings.save_image+"</button>",images_html+="<button class='emn-fl-button emn-fl-save-image-in-media emn-fl-set-featured-image emn-fl-dm-sans emn-fl-transitions-2s' data-featured='true'><i data-feather='save'></i>"+localized_strings.save_image_featured+"</button>",images_html+="<button class='emn-fl-button emn-fl-image-create-variations emn-fl-dm-sans emn-fl-transitions-2s'><i data-feather='layers'></i>"+localized_strings.image_create_variations+"</button>",images_html+="<h3 class='emn-fl-dm-sans emn-fl-medium-title emn-fl-medium-title-small'><i data-feather='refresh-cw'></i>",images_html+=localized_strings.variation_title,images_html+="</h3>",images_html+="<div class='emn-fl-image-variation-of' style='background-image: url("+image_url_o+");'></div>",images_html+="</div>",images_html+="</div>"}),jQuery(images_html).insertAfter('.emn-fl-generated-image-container[data-image-url="'+image_url_o+'"]'),jQuery('.emn-fl-generated-image-container[data-image-url="'+image_url_o+'"] button.emn-fl-image-create-variations').addClass("emn-fl-button-saved").html("<i data-feather='layers'></i>"+localized_strings.variations_created),feather.replace(),emn_fl_bind_events())}catch(e){return emn_fl_show_alert("warning",localized_strings.generic_error,6e3),!1}})}function emn_fl_send_chat_message(e){if(""==e)return emn_fl_show_alert("general",localized_strings.chat_no_message),!1;chat_history={},jQuery(".emn-fl-chat-content-container-inner .emn-fl-chat___message").length?(count_chat=0,jQuery(".emn-fl-chat-content-container-inner .emn-fl-chat___message").each(function(e){chat_history[e]={},chat_history[e].role=jQuery(this).attr("data-sender"),chat_history[e].content=jQuery(this).find(" .emn-fl-chat___message_text").text(),count_chat++}),chat_history[count_chat]={},chat_history[count_chat].role="user",chat_history[count_chat].content=e,first_chat_html='<div class="emn-fl-chat___element emn-fl-chat___message" data-sender="user" data-message-count="'+(count_chat+1)+'"><span class="emn-fl-chat-message___signature">'+localized_strings.you+'</span><div class="emn-fl-chat___message_text"><p>'+e+'</p></div><div class="emn-fl-chat___message_select"><input type="checkbox" class="emn-fl-checkbox emn-fl-chat-check-message" name="emn-fl-chat-check-message-'+(count_chat+1)+'" /></div></div>'):(chat_history[0]={},chat_history[0].role="system",chat_history[0].content=e,first_chat_html='<div class="emn-fl-chat___element emn-fl-chat___message" data-sender="system" data-message-count="1"><span class="emn-fl-chat-message___signature">'+localized_strings.you+'</span><div class="emn-fl-chat___message_text"><p>'+e+'</p></div><div class="emn-fl-chat___message_select"><input type="checkbox" class="emn-fl-checkbox emn-fl-chat-check-message" name="emn-fl-chat-check-message-1" /></div></div>'),chat_history=JSON.stringify(chat_history),jQuery(".emn-fl-loading span").html(localized_strings.sending),jQuery(".emn-fl-loading").addClass("emn-fl-show"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_send_chat_message",key_type:"openai",chat_history:chat_history,postNonce:emn_fl_urls.nonce},function(e){return e=jQuery.parseJSON(e),jQuery(".emn-fl-loading").removeClass("emn-fl-show"),e.error?(emn_fl_show_alert("warning",e.error.message,6e3),!1):0==e||null==e?(emn_fl_show_alert("warning",localized_strings.generic_error,6e3),!1):void(e.choices&&(jQuery("#emn-fl-chat-prompt").val(""),""==jQuery("#emn-fl-chat-prompt").attr("data-hidden-placeholder")&&(jQuery("#emn-fl-chat-prompt").attr("data-hidden-placeholder",jQuery("#emn-fl-chat-prompt").attr("placeholder")),jQuery("#emn-fl-chat-prompt").attr("placeholder",localized_strings.write_your_answer_here)),jQuery(".emn-fl-chat-content-container-inner").append(first_chat_html),ai_message=e.choices[0].message.content.trim().replace(/\r?\n/g,"<br/>"),chat_html='<div class="emn-fl-chat___element emn-fl-chat___message" data-sender="'+e.choices[0].message.role+'" data-message-count="'+(jQuery(".emn-fl-chat___message").length+1)+'"><span class="emn-fl-chat-message___signature">'+localized_strings.ai+'</span><div class="emn-fl-chat___message_text"><p>'+ai_message+'</p></div><div class="emn-fl-chat___message_select"><input type="checkbox" class="emn-fl-checkbox emn-fl-chat-check-message" name="emn-fl-chat-check-message-'+(jQuery(".emn-fl-chat___message").length+1)+'" /></div></div>',jQuery(".emn-fl-chat-content-container-inner").append(chat_html),"0"==jQuery(".emn-fl-new-chat-container").attr("data-visibility")&&jQuery(".emn-fl-new-chat-container").attr("data-visibility","1"),"0"==jQuery(".emn-fl-chat___select_all").attr("data-visibility")&&jQuery(".emn-fl-chat___select_all").attr("data-visibility","1"),jQuery("#emn-fl-chat-add-img").length&&""!==jQuery("#emn-fl-chat-add-img").attr("data-image-url")&&(jQuery("#emn-fl-chat-add-img").attr("data-image-url","").removeClass("emn-fl-hidden"),jQuery("#emn-fl-chat-remove-img").addClass("emn-fl-hidden")),jQuery(".emn-fl-chat-content-container-inner").animate({scrollTop:jQuery('.emn-fl-chat___message[data-message-count="'+jQuery(".emn-fl-chat___message").length+'"]').offset().top},1e3),emn_fl_checkboxes(),emn_fl_bind_events()))})}function emn_fl_clear_chat(){jQuery(".emn-fl-chat-content-container-inner .emn-fl-chat___message").remove(),jQuery(".emn-fl-new-chat-container").attr("data-visibility","0"),jQuery("#emn-fl-chat-prompt").attr("placeholder",jQuery("#emn-fl-chat-prompt").attr("data-hidden-placeholder")),jQuery(".emn-fl-chat___select_all").text(localized_strings.select_all_answers).attr({"data-action":"select","data-visibility":"0"})}function emn_fl_chat_text_to_copy(){jQuery("#emn-fl-chat-content-hidden").empty(),jQuery(".emn-fl-chat___message").each(function(){jQuery(this).find(' .emn-fl-chat___message_select input[type="checkbox"]').is(":checked")&&jQuery("#emn-fl-chat-content-hidden").append(jQuery(this).find(" .emn-fl-chat___message_text").html())})}function emn_fl_send_audio_file(){jQuery(".emn-fl-loading span").html(localized_strings.sending_file),jQuery(".emn-fl-loading").addClass("emn-fl-show"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_get_transcription",key_type:"openai",file_url:jQuery("#emn-fl-audio-attachment-id").attr("data-file-url"),postNonce:emn_fl_urls.nonce},function(e){return e=jQuery.parseJSON(e),jQuery(".emn-fl-loading").removeClass("emn-fl-show"),e.error?(emn_fl_show_alert("warning",e.error.message,6e3),!1):0==e||null==e?(emn_fl_show_alert("warning",localized_strings.generic_error,6e3),!1):void(e.text&&jQuery(".emn-fl-transition-container .emn-fl-chat-content-container-inner p").html(e.text))})}function emn_fl_load_post_list(e,t,n=0,a=""){jQuery("#emn-fl-confirm-modal").css("z-index","98"),selected="",t.find(" .emn-fl-post-list-single").each(function(){jQuery(this).find(' input[type="checkbox"]').is(":checked")&&(selected+=jQuery(this).find(' input[type="checkbox"]').attr("data-id")+",")}),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_load_post_list",post_type:e,offset:n,search:a,selected:selected,postNonce:emn_fl_urls.nonce},function(l){(""!==a&&0!==n||""==a&&0==n)&&t.find(" .emn-fl-post-list-load-more").remove(),0==n?(t.find(" .emn-fl-post-list-single").each(function(){jQuery(this).find(' input[type="checkbox"]').is(":checked")||jQuery(this).remove()}),t.find(" .emn-fl-post-list-load-more").remove(),t.find(" .emn-fl-post-list-container").append(l).show(100)):(t.find(" .emn-fl-post-list-load-more").remove(),t.append(l)),jQuery('.emn-fl-button-post-type-modal[data-post-type="'+e+'"]').addClass("emn-fl-button-post-type-modal-loaded"),emn_fl_checkboxes(),jQuery("#emn-fl-confirm-modal").css("z-index","99"),emn_fl_bind_events()})}function emn_fl_create_wp_content(){return""==jQuery(".emn-fl-new-content-title").val()?(emn_fl_show_alert("general",localized_strings.empty_title,3e3),!1):""==jQuery("#wp-emn-fl-new-content-textarea-wrap #emn-fl-new-content-textarea").val()?(emn_fl_show_alert("general",localized_strings.empty_content,3e3),!1):(jQuery("#emn-fl-confirm-modal").css("z-index","98"),void jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_create_wp_content",post_type:jQuery("select.emn-fl-new-content-select-post-type").val(),title:jQuery(".emn-fl-new-content-title").val(),content:wp.editor.getContent("emn-fl-new-content-textarea"),featured_image:"",postNonce:emn_fl_urls.nonce},function(e){"0"==(e=jQuery.parseJSON(e)).error?(emn_fl_show_alert("success",e.message,3e3),jQuery("#emn-fl-confirm-modal .emn-fl-grid-container").html("<div class='emn-fl-cell emn-fl-small-12'><a class='emn-fl-go-to-new-content emn-fl-transitions-2s' href='"+e.edit_link+"' target='_blank'>"+localized_strings.go_to_new_content+"<i data-feather='arrow-right'></i></a></div>")):"1"==e.error&&emn_fl_show_alert("warning",e.message,3e3),jQuery("#emn-fl-confirm-modal").css("z-index","99"),feather.replace()}))}function emn_fl_delete_generated_content(e){emn_fl_destroy_confirm_modal(),jQuery(".emn-fl-loading span").html(localized_strings.deleting),jQuery(".emn-fl-loading").addClass("emn-fl-show"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_delete_generated_content",content_type:e,postNonce:emn_fl_urls.nonce},function(e){"success"==(e=jQuery.parseJSON(e)).type&&emn_fl_show_alert("success",e.message,3e3),"notfound"==e.type&&emn_fl_show_alert("general",e.message,3e3),jQuery(".emn-fl-loading").removeClass("emn-fl-show")})}function emn_fl_generate_key_points(){if(final_content="",jQuery("body").hasClass("block-editor-page")?(post_content=wp.data.select("core/block-editor").getBlocks())[0]&&jQuery(post_content).each(function(){switch((this_block_content=jQuery(this))[0].name){case"core/paragraph":case"core/freeform":case"core/heading":case"core/list":final_content+=jQuery("<div/>").html(this_block_content[0].originalContent).text()+" "}}):(post_content=tinymce.activeEditor.getContent(),final_content+=jQuery("<div/>").html(post_content).text()),""==(final_content=emn_fl_clean_content(final_content)))return emn_fl_show_alert("general",localized_strings.post_no_content),!1;jQuery(".emn-fl-loading span").html(localized_strings.generating),jQuery(".emn-fl-loading").addClass("emn-fl-show"),guessLanguage.name(final_content,function(e){content_language=e}),ai_message="","english"!==content_language.toLowerCase()&&""!==content_language.toLowerCase()&&void 0!==content_language.toLowerCase()&&(ai_message+="writing in "+content_language+", "),ai_message+="summarize the following text in "+jQuery("#emn-fl-generate-key-points-button").attr("data-key-points-n")+' key points, each one starting with "∙": '+final_content,(chat_history={})[0]={},chat_history[0].role="system",chat_history[0].content=ai_message,chat_history=JSON.stringify(chat_history),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_send_chat_message",key_type:"openai",chat_history:chat_history,postNonce:emn_fl_urls.nonce},function(e){return e=jQuery.parseJSON(e),jQuery(".emn-fl-loading").removeClass("emn-fl-show"),e.error?(emn_fl_show_alert("warning",e.error.message,6e3),!1):0==e||null==e?(emn_fl_show_alert("warning",localized_strings.generic_error,6e3),!1):void(e.choices&&(ai_message=e.choices[0].message.content.trim().replace(/\r?\n/g,"<br/>"),quill.pasteHTML(ai_message)))})}function emn_fl_generate_product_description(e){ai_message="","english"!==e.attr("data-description-language")&&(ai_message+="writing in "+e.attr("data-description-language")+", "),ai_message+="write a product description for a "+e.find(" input#emn-fl-product-description_product_name").val()+".",""!==e.find(" input#emn-fl-product-description_product_brand").val()&&(ai_message+=" The brand of the product is: "+e.find(" input#emn-fl-product-description_product_brand").val()+"."),""!==e.find(" input#emn-fl-product-description_product_features").val()&&(ai_message+=" The main features are: "+e.find(" input#emn-fl-product-description_product_features").val()+"."),""!==e.find(" input#emn-fl-product-description_positioning").val()&&(ai_message+=" The key tone of the description must be: "+e.find(" input#emn-fl-product-description_positioning").val()+"."),""!==e.find(" input#emn-fl-product-description_ideal_buyer").val()&&(ai_message+=" Consider the following as the ideal buyer for this product: "+e.find(" input#emn-fl-product-description_ideal_buyer").val()+"."),""!==e.find(" input#emn-fl-product-description_offer").val()&&(ai_message+=" Only in the end, write something considering this feature of the product: "+e.find(" select#emn-fl-product-description_offer").val()+"."),ai_message+='Highlight the keywords using the "strong" HTML tag.',(chat_history={})[0]={},chat_history[0].role="system",chat_history[0].content=ai_message,chat_history=JSON.stringify(chat_history),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_send_chat_message",key_type:"openai",chat_history:chat_history,postNonce:emn_fl_urls.nonce},function(t){return t=jQuery.parseJSON(t),e.find(" .emn-fl-loading").removeClass("emn-fl-show"),t.error?(emn_fl_show_alert("warning",t.error.message,6e3),!1):0==t||null==t?(emn_fl_show_alert("warning",localized_strings.generic_error,6e3),!1):void(t.choices&&(ai_message=t.choices[0].message.content.trim().replace(/\r?\n/g,"<br/>"),e.attr("data-location-id").indexOf("content")>-1?target_dest="content":e.attr("data-location-id").indexOf("excerpt")>-1&&(target_dest="excerpt"),tinymce.get(target_dest).setContent(ai_message),e.removeClass("emn-fl-show"),emn_fl_show_alert("success",localized_strings.generated_description)))})}function emn_fl_confirm_large_modal(e){if(proceed_error=!1,(this_el=jQuery('.emn-fl-l-modal[data-modal-object="'+e+'"]')).find(" .emn-fl-required-field").length&&this_el.find(" .emn-fl-required-field").each(function(){""==jQuery(this).val()&&(emn_fl_show_alert("general",localized_strings.required_fields_missing),proceed_error=!0)}),!proceed_error)switch(this_el.find(" .emn-fl-loading").length&&(this_el.find(" .emn-fl-loading span").html(localized_strings.generating),this_el.find(" .emn-fl-loading").addClass("emn-fl-show")),e){case"product-description-modal":emn_fl_generate_product_description(this_el)}}function emn_fl_checkboxes(){jQuery('input[type="checkbox"].emn-fl-checkbox').each(function(){jQuery(this).find(" + .emn-fl-checkbox-control").length||jQuery(this).after('<span class="emn-fl-checkbox-control"></span>')})}function emn_fl_show_alert(e,t,n=3e3){jQuery(".emn-fl-alert-message").html(t),jQuery(".emn-fl-alert").addClass("emn-fl-alert-active emn-fl-alert-"+e),emn_fl_hide_alert(n)}function emn_fl_hide_alert(e=3600){clearTimeout(alert_timeout),alert_timeout=setTimeout(function(){jQuery(".emn-fl-alert").hasClass("emn-fl-alert-active")&&(jQuery(".emn-fl-alert").removeClass("emn-fl-alert-active"),jQuery(".emn-fl-alert").removeClass("emn-fl-alert-success emn-fl-alert-warning emn-fl-alert-neutral"))},e)}function emn_fl_check_initial_data_large_modal(){jQuery(".emn-fl-l-modal").each(function(){switch(jQuery(this).attr("data-modal-object")){case"product-description-modal":""!==jQuery('#titlewrap input[name="post_title"]').val()&&jQuery(this).find(" input#emn-fl-product-description_product_name").val(jQuery('#titlewrap input[name="post_title"]').val())}})}function emn_fl_confirm_modal(e,t,n="attachment",a=""){switch(custom_style="",modal_html="<div class='emn-fl-white-overlay emn-fl-transitions-2s'></div>",modal_html+="<div id='emn-fl-confirm-modal' class='emn-fl-transitions-2s' data-modal-type='"+t+"' data-element-type='"+n+"' data-image-url='"+a+"'>",""!==e&&("deletion"==t&&(custom_style='style="color: rgb(247, 4, 4);"'),modal_html+="<i data-feather='"+e+"' "+custom_style+"></i>"),t){case"deletion":switch(modal_title=localized_strings.modal_title_generic_confirm,n){case"attachment":modal_text=localized_strings.modal_text_confirm_image_deletion;break;case"post":modal_text=localized_strings.modal_text_confirm_post_deletion}break;case"set_featured":modal_title=localized_strings.modal_title_set_featured_image,modal_text=localized_strings.modal_text_set_featured_image;break;case"chat_new_content":case"transcription_new_content":modal_title=localized_strings.modal_title_new_content,modal_text=localized_strings.modal_text_new_content}switch(""!==modal_title&&(modal_html+="<h3 class='emn-fl-dm-sans emn-fl-medium-title emn-fl-text-center'>"+modal_title+"</h3>"),""!==modal_text&&(modal_html+="<p class='emn-fl-dm-sans emn-fl-section-p emn-fl-text-center'>"+modal_text+"</p>"),modal_html+="<div class='emn-fl-grid-container emn-fl-grid-x'>",t){case"deletion":modal_html+="<div class='emn-fl-cell emn-fl-small-6 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-1-modal emn-fl-transitions-2s emn-fl-dm-sans'>"+localized_strings.modal_generic_yes+"</button></div>",modal_html+="<div class='emn-fl-cell emn-fl-small-6 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-delete emn-fl-button-2-modal emn-fl-transitions-2s emn-fl-dm-sans'>"+localized_strings.modal_generic_no+"</button></div>";break;case"set_featured":modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-post-type-modal emn-fl-transitions-2s emn-fl-dm-sans' data-post-type='post'>"+localized_strings.posts+"</button><div class='emn-fl-post-list-container'><div class='emn-fl-post-list-search'><input type='text' class='emn-fl-input' data-post-type='post' placeholder='"+localized_strings.type_to_search+"' /></div></div></div>",modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-post-type-modal emn-fl-transitions-2s emn-fl-dm-sans' data-post-type='page'>"+localized_strings.pages+"</button><div class='emn-fl-post-list-container'><div class='emn-fl-post-list-search'><input type='text' class='emn-fl-input' data-post-type='page' placeholder='"+localized_strings.type_to_search+"' /></div></div></div>";break;case"chat_new_content":case"transcription_new_content":modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-medium-6 emn-fl-settings emn-fl-form-single-input'><label for='emn-fl-new-content-select-post-type' class='emn-fl-dm-sans'>"+localized_strings.post_type+"</label><select class='emn-fl-select emn-fl-new-content-select-post-type'><option value='post'>"+localized_strings.post+"</option><option value='page'>"+localized_strings.page+"</option><option value='product'>"+localized_strings.product+"</option><option value='portfolio'>"+localized_strings.portfolio+"</option></select></div>",modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-medium-6 emn-fl-settings emn-fl-form-single-input'><label for='emn-fl-new-content-title' class='emn-fl-dm-sans'>"+localized_strings.title+"</label><input type='text' class='emn-fl-new-content-title emn-fl-input' placeholder='"+localized_strings.title_placeholder+"' /></div>",modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-settings emn-fl-form-single-input'><label for='emn-fl-new-content-textarea' class='emn-fl-dm-sans'>"+localized_strings.content+"</label><textarea id='emn-fl-new-content-textarea'></textarea></div>",modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-modal-separator'></div><div class='emn-fl-cell emn-fl-small-6 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-go-create-content emn-fl-transitions-2s emn-fl-dm-sans'>"+localized_strings.modal_go_create_content+"</button></div>",modal_html+="<div class='emn-fl-cell emn-fl-small-6 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-delete emn-fl-button-2-modal emn-fl-transitions-2s emn-fl-dm-sans'>"+localized_strings.modal_go_back+"</button></div>"}switch(modal_html+="</div>",modal_html+="</div>",jQuery(".emn-fl-wrap").append(modal_html),feather.replace(),jQuery(".emn-fl-white-overlay").css("display","block"),jQuery("#emn-fl-confirm-modal").animate({transform:"translate(-50%, -50%)"},500),t){case"set_featured":jQuery("#emn-fl-confirm-modal").css("z-index","98"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_check_post_types",postNonce:emn_fl_urls.nonce},function(e){modal_html="",void 0!==(e=jQuery.parseJSON(e)).product&&(modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-post-type-modal emn-fl-transitions-2s emn-fl-dm-sans' data-post-type='product'>"+localized_strings.products+"</button><div class='emn-fl-post-list-container'><div class='emn-fl-post-list-search'><input type='text' class='emn-fl-input' data-post-type='product' placeholder='"+localized_strings.type_to_search+"' /></div></div></div>"),void 0!==e.portfolio&&(modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-post-type-modal emn-fl-transitions-2s emn-fl-dm-sans' data-post-type='portfolio'>"+localized_strings.portfolio+"</button><div class='emn-fl-post-list-container'><div class='emn-fl-post-list-search'><input type='text' class='emn-fl-input' data-post-type='portfolio' placeholder='"+localized_strings.type_to_search+"' /></div></div></div>"),modal_html+="<div class='emn-fl-cell emn-fl-small-12 emn-fl-modal-separator'></div><div class='emn-fl-cell emn-fl-small-6 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-set-as-featured-modal emn-fl-transitions-2s emn-fl-dm-sans'>"+localized_strings.modal_go_set_featured+"</button></div>",modal_html+="<div class='emn-fl-cell emn-fl-small-6 emn-fl-text-center'><button class='emn-fl-button emn-fl-button-delete emn-fl-button-2-modal emn-fl-transitions-2s emn-fl-dm-sans'>"+localized_strings.modal_go_back+"</button></div>",jQuery("#emn-fl-confirm-modal .emn-fl-grid-container").append(modal_html),jQuery("#emn-fl-confirm-modal").css("z-index","99")});break;case"chat_new_content":case"transcription_new_content":jQuery("#emn-fl-confirm-modal").css("z-index","98"),jQuery.post(emn_fl_urls.ajaxurl,{action:"emn_fl_check_post_types",postNonce:emn_fl_urls.nonce},function(e){void 0!==(e=jQuery.parseJSON(e)).product&&jQuery('.emn-fl-new-content-select-post-type option[value="product"]').show(),void 0!==e.portfolio&&jQuery('.emn-fl-new-content-select-post-type option[value="portfolio"]').show(),jQuery("#emn-fl-confirm-modal").css("z-index","99")}),wp.editor.remove("emn-fl-new-content-textarea"),jQuery("#emn-fl-chat-content-hidden").length&&jQuery("#emn-fl-new-content-textarea").val(jQuery("#emn-fl-chat-content-hidden").html()),jQuery("#emn-fl-transcription-content .emn-fl-transcription-p").length&&jQuery("#emn-fl-new-content-textarea").val(jQuery("#emn-fl-transcription-content .emn-fl-transcription-p").html()),wp.editor.initialize("emn-fl-new-content-textarea",{tinymce:{wpautop:!0,height:320,plugins:"charmap colorpicker compat3x directionality fullscreen hr image lists media paste tabfocus textcolor wordpress wpautoresize wpdialogs wpeditimage wpemoji wpgallery wplink wptextpattern wpview",toolbar1:"bold italic underline strikethrough | bullist numlist | blockquote hr wp_more | alignleft aligncenter alignright | link unlink | fullscreen | wp_adv",toolbar2:"formatselect alignjustify forecolor | pastetext removeformat charmap | outdent indent | undo redo | wp_help"},quicktags:!0,mediaButtons:!0})}emn_fl_bind_events()}function emn_fl_destroy_confirm_modal(){jQuery(".emn-fl-white-overlay, #emn-fl-confirm-modal").remove()}function emn_fl_clean_content(e){return e=(e=e.split("[vc_row]").join("").split("[vc_column]").join("").split("[vc_column_text]").join("").split("[vc_single_image]").join("")).split("[/vc_row]").join("").split("[/vc_column]").join("").split("[/vc_column_text]").join("").split("[/vc_single_image]").join("")}jQuery(document).ready(function(){if(emn_fl_bind_events(),jQuery('a[href="admin.php?page=flusso-ai-generated-content"]:not(.wp-has-submenu)').length&&jQuery('a[href="admin.php?page=flusso-ai-generated-content"]:not(.wp-has-submenu)').text(localized_strings.overview),emn_fl_checkboxes(),jQuery("select#emn_fl_content_features_product_description_language").length&&"english"!==jQuery("select#emn_fl_content_features_product_description_language").attr("data-selected")&&jQuery("select#emn_fl_content_features_product_description_language").val(jQuery("select#emn_fl_content_features_product_description_language").attr("data-selected")),jQuery(".emn-fl-l-modal").length&&emn_fl_check_initial_data_large_modal(),jQuery(".emn-fl-color-picker").length&&jQuery(".emn-fl-color-picker").wpColorPicker(),jQuery("#emn_fl_meta_post_options").length&&jQuery('<img src="'+script_urls.plugin_url+'/assets/images/symbol.png" class="emn-fl-meta-logo" />').insertBefore("#emn_fl_meta_post_options h2.hndle"),jQuery("#emn-fl-key-points-editor").length&&((quill=new Quill("#emn-fl-key-points-editor",{theme:"snow",placeholder:localized_strings.generate_key_points_placeholder})).on("text-change",function(e,t,n){jQuery("input#emn_fl_key_points").val(quill.root.innerHTML)}),""!==jQuery("input#emn_fl_key_points").val()&&quill.pasteHTML(jQuery("input#emn_fl_key_points").val())),feather.replace(),jQuery(".emn-fl-copy-content").length){var e=new ClipboardJS(".emn-fl-copy-content");e.on("success",function(e){emn_fl_show_alert("success",localized_strings.copy_success)}),e.on("error",function(e){jQuery("#emn-fl-chat-content-hidden").length&&(""==jQuery("#emn-fl-chat-content-hidden").html()?emn_fl_show_alert("general",localized_strings.copy_empty):emn_fl_show_alert("warning",localized_strings.copy_error)),jQuery("#emn-fl-transcription-content").length&&(""==jQuery("#emn-fl-transcription-content .emn-fl-transcription-p").html()?emn_fl_show_alert("general",localized_strings.copy_empty):emn_fl_show_alert("warning",localized_strings.copy_error))})}});
  • flusso-ai-generated-content/trunk/inc/functions.php

    r2907116 r2907940  
    598598                        </div>
    599599                    </div>
    600                     <div class="emn-fl-form-field">
    601                         <input type="text" id="emn-fl-chat-prompt" name="emn-fl-chat-prompt" placeholder="<?php echo esc_attr( $random_placeholder );?>" data-hidden-placeholder />
     600                    <div class="emn-fl-form-field emn-fl-form-field-chat-prompt-container">
     601                        <?php $prompt_class = '';
     602                        if( get_option( 'emn_fl_openai_platform_settings_gpt_4' ) == 'on' ){
     603                            $prompt_class = 'emn-fl-can-add-img';?>
     604                            <i data-feather="image" id="emn-fl-chat-add-img"></i>
     605                            <i data-feather="x" id="emn-fl-chat-remove-img" class="emn-fl-hidden"></i>
     606                        <?php }?>
     607                        <input type="text" id="emn-fl-chat-prompt" name="emn-fl-chat-prompt" class="<?php echo esc_attr( $prompt_class );?>" placeholder="<?php echo esc_attr( $random_placeholder );?>" data-hidden-placeholder />
    602608                    </div>
    603609                    <?php if( $openai_key !== '' && $openai_key ){ ?>
     
    848854
    849855function emn_fl_audio_upload(){
    850     // Add the script to make the audio file selection work ?>
     856    // Add the script to make the file selection work ?>
    851857    <script>
    852858        jQuery( document ).ready( function( $ ){
     
    854860            var emn_attachment;
    855861
    856             function emn_fl_media_upload( button_class ){
     862            function emn_fl_media_upload( button_class, file_types, page ){
    857863                var _custom_media = true,
    858864                _orig_send_attachment = wp.media.editor.send.attachment;
     
    868874                        },
    869875                        library: {
    870                             type: [ 'video', 'audio' ]
     876                            type: file_types
    871877                        },
    872878                    }).on( 'select', function(){
    873                         emn_attachment = emn_media_editor.state().get('selection').first().toJSON();
    874                         $( '#emn-fl-audio-attachment-id' ).val( emn_attachment.id );
    875                         $( '#emn-fl-audio-attachment-id' ).attr( 'data-file-url', emn_attachment.url );
    876                         $( '#emn-fl-audio-preview-wrapper .emn-fl-selected-filename' ).html( '<i data-feather="music"></i>' + emn_attachment.title );
    877                         feather.replace();
     879                        emn_attachment = emn_media_editor.state().get( 'selection' ).first().toJSON();
     880                        switch( page ){
     881                            case 'speech-to-text':
     882                                $( '#emn-fl-audio-attachment-id' ).val( emn_attachment.id );
     883                                $( '#emn-fl-audio-attachment-id' ).attr( 'data-file-url', emn_attachment.url );
     884                                $( '#emn-fl-audio-preview-wrapper .emn-fl-selected-filename' ).html( '<i data-feather="music"></i>' + emn_attachment.title );
     885                                feather.replace();
     886                                break;
     887                            case 'chat':
     888                                $( '#emn-fl-chat-add-img' ).attr( 'data-image-url', emn_attachment.url ).addClass( 'emn-fl-hidden' );
     889                                $( '#emn-fl-chat-remove-img' ).removeClass( 'emn-fl-hidden' );
     890                                emn_fl_show_alert( 'success', '<?php echo esc_html__( "Your image has been added to the message!", "flusso-ai-generated-content" );?>' );
     891                                $( '#emn-fl-chat-remove-img' ).off( 'click' ).on( 'click', function(){
     892                                    $( '#emn-fl-chat-add-img' ).attr( 'data-image-url', '' ).removeClass( 'emn-fl-hidden' );
     893                                    $( '#emn-fl-chat-remove-img' ).addClass( 'emn-fl-hidden' );
     894                                    emn_fl_show_alert( 'general', '<?php echo esc_html__( "Your image has been removed from the message.", "flusso-ai-generated-content" );?>' );
     895                                })
     896                                break;
     897                        }
    878898                    });
    879899                    emn_media_editor.open( button );
     
    882902            }
    883903
     904            // Bind events
     905            if( $( '#emn-fl-chat-add-img' ).length ){
     906                emn_fl_media_upload( '#emn-fl-chat-add-img', [ 'image' ], 'chat' );
     907            }
     908
    884909            if( $( '#emn-fl-audio-upload-button' ).length ){
    885                 emn_fl_media_upload( '#emn-fl-audio-upload-button' );
     910                emn_fl_media_upload( '#emn-fl-audio-upload-button', [ 'video', 'audio' ], 'speech-to-text' );
    886911            }
    887912        });
  • flusso-ai-generated-content/trunk/languages/flusso-ai-generated-content-it_IT.po

    r2907116 r2907940  
    22msgstr ""
    33"Project-Id-Version: flusso-ai-generated-content\n"
    4 "POT-Creation-Date: 2023-05-02 17:35+0200\n"
    5 "PO-Revision-Date: 2023-05-02 17:35+0200\n"
     4"POT-Creation-Date: 2023-05-04 12:43+0200\n"
     5"PO-Revision-Date: 2023-05-04 12:43+0200\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    7676msgstr "Flusso AI / Funzionalità dei Contenuti"
    7777
    78 #: inc/engine/core.php:579 inc/functions.php:682
     78#: inc/engine/core.php:579 inc/functions.php:688
    7979msgid "Product Description"
    8080msgstr "Descrizione Prodotto"
     
    125125msgstr "Il tono che vuoi usare nella descrizione."
    126126
    127 #: inc/engine/core.php:611 inc/engine/core.php:634 inc/functions.php:867
     127#: inc/engine/core.php:611 inc/engine/core.php:634 inc/functions.php:873
    128128msgid "Select"
    129129msgstr "Seleziona"
     
    225225msgstr "Flusso AI: Funzionalità dei Contenuti"
    226226
    227 #: inc/functions.php:46 inc/functions.php:655
     227#: inc/functions.php:46 inc/functions.php:661
    228228msgid "Content Features"
    229229msgstr "Funzionalità dei Contenuti"
     
    233233msgstr "Flusso AI: Trascrizione da Voce a Testo"
    234234
    235 #: inc/functions.php:55 inc/functions.php:432 inc/functions.php:713
     235#: inc/functions.php:55 inc/functions.php:432 inc/functions.php:719
    236236msgid "Speech to Text"
    237237msgstr "Da Voce a Testo"
     
    242242
    243243#: inc/functions.php:64 inc/functions.php:450 inc/functions.php:522
    244 #: inc/functions.php:781
     244#: inc/functions.php:787
    245245msgid "Settings"
    246246msgstr "Impostazioni"
     
    366366msgstr "Scegli dove vuoi mostrare i Punti Chiave."
    367367
    368 #: inc/functions.php:333 inc/functions.php:438 inc/functions.php:666
     368#: inc/functions.php:333 inc/functions.php:438 inc/functions.php:672
    369369#: inc/meta-boxes.php:61
    370370msgid "Key Points"
     
    400400msgstr "Flusso AI / Contenuti e Strutture IA per WordPress"
    401401
    402 #: inc/functions.php:409 inc/functions.php:1006
     402#: inc/functions.php:409 inc/functions.php:1031
    403403msgid "Overview"
    404404msgstr "Pagina iniziale"
     
    556556msgstr "Dona"
    557557
    558 #: inc/functions.php:496 inc/functions.php:583 inc/functions.php:652
    559 #: inc/functions.php:710
     558#: inc/functions.php:496 inc/functions.php:583 inc/functions.php:658
     559#: inc/functions.php:716
    560560msgid "Flusso AI / Content Generation"
    561561msgstr "Flusso AI / Generazione di Contenuti"
     
    581581"cosa puoi fare con le potenzialità dell’Intelligenza Artificiale."
    582582
    583 #: inc/functions.php:509 inc/functions.php:975
     583#: inc/functions.php:509 inc/functions.php:1000
    584584msgid "Create"
    585585msgstr "Crea"
    586586
    587 #: inc/functions.php:511 inc/functions.php:615 inc/functions.php:733
     587#: inc/functions.php:511 inc/functions.php:621 inc/functions.php:739
    588588msgid ""
    589589"It appears you haven't set an API Key yet. Go to the Settings page for more "
     
    701701msgstr "Inizio della chat"
    702702
    703 #: inc/functions.php:597 inc/functions.php:987
     703#: inc/functions.php:597 inc/functions.php:1012
    704704msgid "Select all answers"
    705705msgstr "Seleziona tutte le risposte"
    706706
    707 #: inc/functions.php:606 inc/functions.php:729
     707#: inc/functions.php:612 inc/functions.php:735
    708708msgid "Send"
    709709msgstr "Invia"
    710710
    711 #: inc/functions.php:607
     711#: inc/functions.php:613
    712712msgid "or hit enter"
    713713msgstr "o premi invio"
    714714
    715 #: inc/functions.php:610
     715#: inc/functions.php:616
    716716msgid "New chat"
    717717msgstr "Nuova chat"
    718718
    719 #: inc/functions.php:611
     719#: inc/functions.php:617
    720720msgid "clear the screen"
    721721msgstr "svuota la schermata"
    722722
    723 #: inc/functions.php:622 inc/functions.php:748
     723#: inc/functions.php:628 inc/functions.php:754
    724724msgid "Save content"
    725725msgstr "Salva contenuto"
    726726
    727 #: inc/functions.php:623
     727#: inc/functions.php:629
    728728msgid "Once you have generated some text, you can do several things with it."
    729729msgstr "Generato del testo, puoi farci un po’ di cose diverse."
    730730
    731 #: inc/functions.php:626 inc/functions.php:752
     731#: inc/functions.php:632 inc/functions.php:758
    732732msgid "Copy content"
    733733msgstr "Copia contenuto"
    734734
    735 #: inc/functions.php:627
     735#: inc/functions.php:633
    736736msgid ""
    737737"this will just copy the selected content, so you can paste it wherever you "
     
    741741"voglia"
    742742
    743 #: inc/functions.php:630 inc/functions.php:756
     743#: inc/functions.php:636 inc/functions.php:762
    744744msgid "New post"
    745745msgstr "Nuovo post"
    746746
    747 #: inc/functions.php:631 inc/functions.php:757
     747#: inc/functions.php:637 inc/functions.php:763
    748748msgid "easily create a new post, page or product using your generated content"
    749749msgstr ""
     
    751751"generato"
    752752
    753 #: inc/functions.php:657
     753#: inc/functions.php:663
    754754msgid "Set some options regarding your WordPress Content."
    755755msgstr "Alcune opzioni riguardanti il Contenuto WordPress."
    756756
    757 #: inc/functions.php:663 inc/functions.php:965
     757#: inc/functions.php:669 inc/functions.php:990
    758758msgid "Posts"
    759759msgstr "Post"
    760760
    761 #: inc/functions.php:664
     761#: inc/functions.php:670
    762762msgid "Settings and options for your posts."
    763763msgstr "Impostazioni e opzioni per i tuoi post."
    764764
    765 #: inc/functions.php:667
     765#: inc/functions.php:673
    766766msgid ""
    767767"For lazy readers, or summary-lovers. With this feature, you can use AI to "
     
    773773"prima o dopo il contenuto."
    774774
    775 #: inc/functions.php:671
     775#: inc/functions.php:677
    776776msgid ""
    777777"Note: this feature may not work is your post content is too long. OpenAI's "
     
    781781"post è troppo lungo. Si tratta di limitazioni delle API di OpenAI."
    782782
    783 #: inc/functions.php:679
     783#: inc/functions.php:685
    784784msgid "WooCommerce Products"
    785785msgstr "Prodotti WooCommerce"
    786786
    787 #: inc/functions.php:680
     787#: inc/functions.php:686
    788788msgid "Settings and options for your WooCommerce Products."
    789789msgstr "Impostazioni e opzioni per i tuoi Prodotti WooCommerce."
    790790
    791 #: inc/functions.php:683
     791#: inc/functions.php:689
    792792msgid ""
    793793"You can use Artificial Intelligence to write your WooCommerce product "
     
    797797"prodotti WooCommerce."
    798798
    799 #: inc/functions.php:715
     799#: inc/functions.php:721
    800800msgid "Upload a file and receive a text transcription."
    801801msgstr "Carica un file e ricevi una trascrizione testuale."
    802802
    803 #: inc/functions.php:719
     803#: inc/functions.php:725
    804804msgid "File upload"
    805805msgstr "Upload file"
    806806
    807 #: inc/functions.php:720
     807#: inc/functions.php:726
    808808msgid ""
    809809"File uploads are currently limited to 25 MB. Audio must be in English. The "
     
    814814"inglese. I file supportati sono: mp3, mp4, mpeg, mega, m4a, way, webm."
    815815
    816 #: inc/functions.php:722
     816#: inc/functions.php:728
    817817msgid "No file selected"
    818818msgstr "Nessun file selezionato"
    819819
    820 #: inc/functions.php:724
     820#: inc/functions.php:730
    821821msgid "Upload a file"
    822822msgstr "Carica un file"
    823823
    824 #: inc/functions.php:737
     824#: inc/functions.php:743
    825825msgid "Transcription"
    826826msgstr "Trascrizione"
    827827
    828 #: inc/functions.php:738
     828#: inc/functions.php:744
    829829msgid "The generated transcription."
    830830msgstr "La trascrizione generata."
    831831
    832 #: inc/functions.php:749
     832#: inc/functions.php:755
    833833msgid "Once you have your transcription, you can do several things with it."
    834834msgstr "Ottenuta la trascrizione, puoi farci un po’ di cose diverse."
    835835
    836 #: inc/functions.php:753
     836#: inc/functions.php:759
    837837msgid ""
    838838"this will just copy the transcription, so you can paste it wherever you feel"
    839839msgstr "questo copierà la trascrizione, e potrai incollarla ovunque tu voglia"
    840840
    841 #: inc/functions.php:778
     841#: inc/functions.php:784
    842842msgid "Flusso AI / Settings"
    843843msgstr "Flusso AI / Impostazioni"
    844844
    845 #: inc/functions.php:783
     845#: inc/functions.php:789
    846846msgid "Here you can set options, settings and credentials for the plugin."
    847847msgstr "Opzioni, impostazioni e credenziali per il plugin."
    848848
    849 #: inc/functions.php:789
     849#: inc/functions.php:795
    850850msgid "OpenAI Platform Settings"
    851851msgstr "Impostazioni Piattaforma OpenAI"
    852852
    853 #: inc/functions.php:790
     853#: inc/functions.php:796
    854854msgid "Settings for the OpenAI Platform."
    855855msgstr "Impostazioni per la Piattaforma OpenAI."
    856856
    857 #: inc/functions.php:799
     857#: inc/functions.php:805
    858858msgid "OpenAI Credentials"
    859859msgstr "Credenziali OpenAI"
    860860
    861 #: inc/functions.php:800
     861#: inc/functions.php:806
    862862msgid "Set your OpenAI Secret Key and Organization ID."
    863863msgstr "Imposta la tua Chiave Segreta OpenAI e l’ID dell’Organizzazione."
    864864
    865 #: inc/functions.php:825
     865#: inc/functions.php:831
    866866msgid "Flusso AI / Delete Content"
    867867msgstr "Flusso AI / Cancella Contenuto"
    868868
    869 #: inc/functions.php:828
     869#: inc/functions.php:834
    870870msgid "Delete Generated Content"
    871871msgstr "Cancella Contenuto Generato"
    872872
    873 #: inc/functions.php:830
     873#: inc/functions.php:836
    874874msgid ""
    875875"From this page you can easily delete the content you generated with Flusso "
     
    879879"con il plugin Flusso AI."
    880880
    881 #: inc/functions.php:835
     881#: inc/functions.php:841
    882882msgid "Delete saved images"
    883883msgstr "Cancella immagini salvate"
    884884
    885 #: inc/functions.php:836
     885#: inc/functions.php:842
    886886msgid ""
    887887"This will delete the images you saved through the plugin. The action cannot "
     
    891891"non potrà essere annullata."
    892892
    893 #: inc/functions.php:839
     893#: inc/functions.php:845
    894894msgid "Delete saved posts"
    895895msgstr "Cancella post salvati"
    896896
    897 #: inc/functions.php:840
     897#: inc/functions.php:846
    898898msgid ""
    899899"This will delete the posts you created through the plugin. The action cannot "
     
    903903"potrà essere annullata."
    904904
    905 #: inc/functions.php:865
     905#: inc/functions.php:871
    906906msgid "Select a file"
    907907msgstr "Seleziona un file"
    908908
    909 #: inc/functions.php:942
     909#: inc/functions.php:890
     910msgid "Your image has been added to the message!"
     911msgstr "L’immagine è stata aggiunta al messaggio!"
     912
     913#: inc/functions.php:894
     914msgid "Your image has been removed from the message."
     915msgstr "L’immagine è stata rimossa dal messaggio."
     916
     917#: inc/functions.php:967
    910918msgid "Your OpenAI Key is good and ready to go!"
    911919msgstr "La tua Chiave OpenAI funziona correttamente!"
    912920
    913 #: inc/functions.php:943
     921#: inc/functions.php:968
    914922msgid "You have to insert an OpenAI Secret Key."
    915923msgstr "Devi inserire una Chiave Segreta OpenAI."
    916924
    917 #: inc/functions.php:944
     925#: inc/functions.php:969
    918926msgid ""
    919927"There was an error in verifying your API Key. Contact OpenAI for more "
     
    923931"ulteriori informazioni."
    924932
    925 #: inc/functions.php:945
     933#: inc/functions.php:970
    926934msgid "You have to write a prompt first."
    927935msgstr "Devi prima scrivere un’indicazione testuale."
    928936
    929 #: inc/functions.php:946
     937#: inc/functions.php:971
    930938msgid "An error occurred. Try again."
    931939msgstr "Si è verificato un errore. Riprova."
    932940
    933 #: inc/functions.php:947
     941#: inc/functions.php:972
    934942msgid "Actions"
    935943msgstr "Azioni"
    936944
    937 #: inc/functions.php:948
     945#: inc/functions.php:973
    938946msgid "This is an image variation of"
    939947msgstr "Quest’immagine è una variazione di"
    940948
    941 #: inc/functions.php:949
     949#: inc/functions.php:974
    942950msgid ""
    943951"You can choose to save this image in your Media Library, or to create "
     
    947955"delle variazioni se ancora non ti convince del tutto."
    948956
    949 #: inc/functions.php:950
     957#: inc/functions.php:975
    950958msgid "Save in Media Library"
    951959msgstr "Salva nella Libreria Media"
    952960
    953 #: inc/functions.php:951
     961#: inc/functions.php:976
    954962msgid "Save and set as a Featured Image"
    955963msgstr "Salva e imposta come Immagine in Evidenza"
    956964
    957 #: inc/functions.php:952
     965#: inc/functions.php:977
    958966msgid "Save all in Media Library"
    959967msgstr "Salva tutte nella Libreria Media"
    960968
    961 #: inc/functions.php:953
     969#: inc/functions.php:978
    962970msgid "Edit"
    963971msgstr "Modifica"
    964972
    965 #: inc/functions.php:954
     973#: inc/functions.php:979
    966974msgid "Create variations"
    967975msgstr "Crea variazioni"
    968976
    969 #: inc/functions.php:955
     977#: inc/functions.php:980
    970978msgid "Generating..."
    971979msgstr "Sto generando…"
    972980
    973 #: inc/functions.php:956
     981#: inc/functions.php:981
    974982msgid "Sending your message..."
    975983msgstr "Invio il messaggio…"
    976984
    977 #: inc/functions.php:957
     985#: inc/functions.php:982
    978986msgid "Deleting..."
    979987msgstr "Cancello…"
    980988
    981 #: inc/functions.php:958
     989#: inc/functions.php:983
    982990msgid "Validating..."
    983991msgstr "Verifico…"
    984992
    985 #: inc/functions.php:959
     993#: inc/functions.php:984
    986994msgid "Saving..."
    987995msgstr "Salvo…"
    988996
    989 #: inc/functions.php:960
     997#: inc/functions.php:985
    990998msgid "Saved!"
    991999msgstr "Salvato!"
    9921000
    993 #: inc/functions.php:961
     1001#: inc/functions.php:986
    9941002msgid "Saved and set!"
    9951003msgstr "Salvato e impostato!"
    9961004
    997 #: inc/functions.php:962
     1005#: inc/functions.php:987
    9981006msgid "Set as a Featured Image"
    9991007msgstr "Imposta come Immagine in Evidenza"
    10001008
    1001 #: inc/functions.php:963
     1009#: inc/functions.php:988
    10021010msgid "All saved!"
    10031011msgstr "Tutto salvato!"
    10041012
    1005 #: inc/functions.php:964
     1013#: inc/functions.php:989
    10061014msgid "Variations created!"
    10071015msgstr "Variazioni create!"
    10081016
    1009 #: inc/functions.php:966
     1017#: inc/functions.php:991
    10101018msgid "Pages"
    10111019msgstr "Pagine"
    10121020
    1013 #: inc/functions.php:967
     1021#: inc/functions.php:992
    10141022msgid "Products"
    10151023msgstr "Prodotti"
    10161024
    1017 #: inc/functions.php:968
     1025#: inc/functions.php:993
    10181026msgid "Portfolio"
    10191027msgstr "Portfolio"
    10201028
    1021 #: inc/functions.php:969
     1029#: inc/functions.php:994
    10221030msgid "Start typing something to search..."
    10231031msgstr "Scrivi qualcosa per cercare…"
    10241032
    1025 #: inc/functions.php:970
     1033#: inc/functions.php:995
    10261034msgid "Are you sure?"
    10271035msgstr "Confermi?"
    10281036
    1029 #: inc/functions.php:971
     1037#: inc/functions.php:996
    10301038msgid "Yes, go on"
    10311039msgstr "Sì, continua"
    10321040
    1033 #: inc/functions.php:972
     1041#: inc/functions.php:997
    10341042msgid "No, go back"
    10351043msgstr "No, torna indietro"
    10361044
    1037 #: inc/functions.php:973
     1045#: inc/functions.php:998
    10381046msgid "Go back"
    10391047msgstr "Torna indietro"
    10401048
    1041 #: inc/functions.php:974
     1049#: inc/functions.php:999
    10421050msgid "Set featured image(s)"
    10431051msgstr "Imposta immagini in evidenza"
    10441052
    1045 #: inc/functions.php:976
     1053#: inc/functions.php:1001
    10461054msgid ""
    10471055"Confirming this will delete all the AI generated images you saved in your "
     
    10521060"essere annullata!"
    10531061
    1054 #: inc/functions.php:977
     1062#: inc/functions.php:1002
    10551063msgid ""
    10561064"Confirming this will delete all the AI generated posts, pages and products. "
     
    10601068"cancellati. Procedi con cautela - l’azione non potrà essere annullata!"
    10611069
    1062 #: inc/functions.php:978
     1070#: inc/functions.php:1003
    10631071msgid "Set this as a featured image"
    10641072msgstr "Imposta come immagine in evidenza"
    10651073
    1066 #: inc/functions.php:979
     1074#: inc/functions.php:1004
    10671075msgid ""
    10681076"Choose the posts, pages or custom post type elements you want to set the "
     
    10721080"impostare questa immagine in evidenza."
    10731081
    1074 #: inc/functions.php:980
     1082#: inc/functions.php:1005
    10751083msgid "Create WordPress content"
    10761084msgstr "Crea contenuto WordPress"
    10771085
    1078 #: inc/functions.php:981
     1086#: inc/functions.php:1006
    10791087msgid ""
    10801088"Create a new post, page or product using the generated content. The new "
     
    10841092"nuovo elemento verrà salvato come bozza."
    10851093
    1086 #: inc/functions.php:982
     1094#: inc/functions.php:1007
    10871095msgid "You have to select at least one element in order to proceed."
    10881096msgstr "Per procedere è necessario selezionare almeno un elemento."
    10891097
    1090 #: inc/functions.php:983
     1098#: inc/functions.php:1008
    10911099msgid "Your message can't be empty!"
    10921100msgstr "Il messaggio non può essere vuoto!"
    10931101
    1094 #: inc/functions.php:984
     1102#: inc/functions.php:1009
    10951103msgid "You"
    10961104msgstr "Tu"
    10971105
    1098 #: inc/functions.php:985
     1106#: inc/functions.php:1010
    10991107msgid "AI"
    11001108msgstr "IA"
    11011109
    1102 #: inc/functions.php:986
     1110#: inc/functions.php:1011
    11031111msgid "write your answer here"
    11041112msgstr "scrivi qui la tua risposta"
    11051113
    1106 #: inc/functions.php:988
     1114#: inc/functions.php:1013
    11071115msgid "Deselect all answers"
    11081116msgstr "Deseleziona tutte le risposte"
    11091117
    1110 #: inc/functions.php:989
     1118#: inc/functions.php:1014
    11111119msgid "Nothing has been selected, so nothing has been copied."
    11121120msgstr "Non hai selezionato niente, quindi non è stato copiato niente."
    11131121
    1114 #: inc/functions.php:990
     1122#: inc/functions.php:1015
    11151123msgid "Content copied! Paste it wherever you like."
    11161124msgstr "Contenuto copiato! Incollalo dove preferisci."
    11171125
    1118 #: inc/functions.php:991
     1126#: inc/functions.php:1016
    11191127msgid "An error occurred while copying the content. Try again."
    11201128msgstr "C’è stato un errore durante la copia del contenuto. Riprova."
    11211129
    1122 #: inc/functions.php:992
     1130#: inc/functions.php:1017
    11231131msgid "Generate and select some content first!"
    11241132msgstr "Devi prima generare e selezionare del contenuto!"
    11251133
    1126 #: inc/functions.php:993
     1134#: inc/functions.php:1018
    11271135msgid "Generate a transcription first!"
    11281136msgstr "Devi prima generare una trascrizione!"
    11291137
    1130 #: inc/functions.php:994
     1138#: inc/functions.php:1019
    11311139msgid "Post type"
    11321140msgstr "Tipo di post"
    11331141
    1134 #: inc/functions.php:995
     1142#: inc/functions.php:1020
    11351143msgid "Post"
    11361144msgstr "Post"
    11371145
    1138 #: inc/functions.php:996
     1146#: inc/functions.php:1021
    11391147msgid "Page"
    11401148msgstr "Pagina"
    11411149
    1142 #: inc/functions.php:997
     1150#: inc/functions.php:1022
    11431151msgid "Product"
    11441152msgstr "Prodotto"
    11451153
    1146 #: inc/functions.php:998
     1154#: inc/functions.php:1023
    11471155msgid "Title"
    11481156msgstr "Titolo"
    11491157
    1150 #: inc/functions.php:999
     1158#: inc/functions.php:1024
    11511159msgid "Write your post title here"
    11521160msgstr "Scrivi qui il titolo del post"
    11531161
    1154 #: inc/functions.php:1000
     1162#: inc/functions.php:1025
    11551163msgid "Content"
    11561164msgstr "Contenuto"
    11571165
    1158 #: inc/functions.php:1001
     1166#: inc/functions.php:1026
    11591167msgid "You have to write a title."
    11601168msgstr "È necessario indicare un titolo."
    11611169
    1162 #: inc/functions.php:1002
     1170#: inc/functions.php:1027
    11631171msgid "The content cannot be empty."
    11641172msgstr "Il contenuto non può essere vuoto."
    11651173
    1166 #: inc/functions.php:1003
     1174#: inc/functions.php:1028
    11671175msgid "View your newly created element."
    11681176msgstr "Vedi l’elemento appena creato."
    11691177
    1170 #: inc/functions.php:1004
     1178#: inc/functions.php:1029
    11711179msgid "You have to select a file first."
    11721180msgstr "Devi prima selezionare un file."
    11731181
    1174 #: inc/functions.php:1005
     1182#: inc/functions.php:1030
    11751183msgid "Sending your file (be patient: this may take a while)..."
    11761184msgstr "Invio il file (pazienta: potrebbe volerci un po’)…"
    11771185
    1178 #: inc/functions.php:1007
     1186#: inc/functions.php:1032
    11791187msgid "You will able to edit your generated Key Points from here..."
    11801188msgstr "Da qui potrai modificare i Punti Chiave…"
    11811189
    1182 #: inc/functions.php:1008
     1190#: inc/functions.php:1033
    11831191msgid "Your post has no content."
    11841192msgstr "Il tuo post non ha alcun contenuto."
    11851193
    1186 #: inc/functions.php:1009
     1194#: inc/functions.php:1034
    11871195msgid "One or more required fields are missing."
    11881196msgstr "Uno o più campi richiesti sono vuoti."
    11891197
    1190 #: inc/functions.php:1010
     1198#: inc/functions.php:1035
    11911199msgid "The product description has been generated."
    11921200msgstr "La descrizione del prodotto è stata generata."
    11931201
    1194 #: inc/functions.php:1050
     1202#: inc/functions.php:1075
    11951203msgid "an indoor lounge area with bright lights..."
    11961204msgstr "un’area lounge al chiuso con molte luci…"
    11971205
    1198 #: inc/functions.php:1053
     1206#: inc/functions.php:1078
    11991207msgid "a white, siamese cat..."
    12001208msgstr "un gatto siamese bianco…"
    12011209
    1202 #: inc/functions.php:1056
     1210#: inc/functions.php:1081
    12031211msgid "an oil painting of a humanoid robot playing chess..."
    12041212msgstr "un dipinto a olio di un robot umanoide che gioca a scacchi…"
    12051213
    1206 #: inc/functions.php:1059
     1214#: inc/functions.php:1084
    12071215msgid "a bowl of soup that is also a portal to another dimension..."
    12081216msgstr "un piatto di zuppa che è anche un portale verso un’altra dimensione…"
    12091217
    1210 #: inc/functions.php:1062
     1218#: inc/functions.php:1087
    12111219msgid "a futuristic cyborg poster hanging in a neon lit subway station..."
    12121220msgstr ""
    12131221"un poster di un cyborg futuristico appeso a una stazione della metropolitana…"
    12141222
    1215 #: inc/functions.php:1065
     1223#: inc/functions.php:1090
    12161224msgid "a shiba inu dog wearing a beret and black turtleneck..."
    12171225msgstr "uno shiba inu che indossa un cappello e un dolcevita nero…"
    12181226
    1219 #: inc/functions.php:1068
     1227#: inc/functions.php:1093
    12201228msgid "a cat riding a motorcycle..."
    12211229msgstr "un gatto che guida una moto…"
    12221230
    1223 #: inc/functions.php:1071
     1231#: inc/functions.php:1096
    12241232msgid "a sailboat circled by birds on the sea at sunrise..."
    12251233msgstr "una barca circondata da uccelli, sul mare, all’alba…"
    12261234
    1227 #: inc/functions.php:1074
     1235#: inc/functions.php:1099
    12281236msgid ""
    12291237"a pencil and watercolor drawing of a bright city in the future with flying "
     
    12321240"un acquerello di una città futuristica illuminata, con macchine volanti…"
    12331241
    1234 #: inc/functions.php:1077
     1242#: inc/functions.php:1102
    12351243msgid "a painting of a river..."
    12361244msgstr "un dipinto di un fiume…"
    12371245
    1238 #: inc/functions.php:1084
     1246#: inc/functions.php:1109
    12391247msgid "what is human life expectancy?"
    12401248msgstr "qual è l’aspettativa di vita per gli esseri umani?"
    12411249
    1242 #: inc/functions.php:1087
     1250#: inc/functions.php:1112
    12431251msgid "tell me something about our observable universe"
    12441252msgstr "dimmi qualcosa sull’universo osservabile"
    12451253
    1246 #: inc/functions.php:1090
     1254#: inc/functions.php:1115
    12471255msgid "how does a telescope work?"
    12481256msgstr "come funziona un telescopio?"
    12491257
    1250 #: inc/functions.php:1093
     1258#: inc/functions.php:1118
    12511259msgid "where were the 1992 Olympics held?"
    12521260msgstr "dove si sono tenute le Olimpiadi del 1992?"
    12531261
    1254 #: inc/functions.php:1096
     1262#: inc/functions.php:1121
    12551263msgid "who was president of the United States in 1955?"
    12561264msgstr "chi era il presidente degli Stati Uniti nel 1955?"
    12571265
    1258 #: inc/functions.php:1099
     1266#: inc/functions.php:1124
    12591267msgid "tell me a joke, made me laugh"
    12601268msgstr "dimmi qualcosa che mi faccia ridere"
    12611269
    1262 #: inc/functions.php:1102
     1270#: inc/functions.php:1127
    12631271msgid "give me a list of 10 things not to say at a party"
    12641272msgstr "dammi una lista di 10 cose da non dire a una festa"
    12651273
    1266 #: inc/functions.php:1105
     1274#: inc/functions.php:1130
    12671275msgid "what should I buy for my best friend's birthday?"
    12681276msgstr "cosa posso comprare per il compleanno del mio migliore amico?"
    12691277
    1270 #: inc/functions.php:1108
     1278#: inc/functions.php:1133
    12711279msgid "act as a standup comedian and talk to me about politics"
    12721280msgstr "parlami di politica come se tu fossi un comico"
    12731281
    1274 #: inc/functions.php:1111
     1282#: inc/functions.php:1136
    12751283msgid ""
    12761284"translate 'hello, i'm using a wonderful WordPress plugin' into ancient greek"
     
    12781286"traduci ‘ciao, sto usando un fantastico plugin di WordPress’ in greco antico"
    12791287
    1280 #: inc/functions.php:1121
     1288#: inc/functions.php:1146
    12811289msgid "Afrikaans"
    12821290msgstr "Afrikaans"
    12831291
    1284 #: inc/functions.php:1121
     1292#: inc/functions.php:1146
    12851293msgid "Arabic"
    12861294msgstr "Arabo"
    12871295
    1288 #: inc/functions.php:1121
     1296#: inc/functions.php:1146
    12891297msgid "Armenian"
    12901298msgstr "Armeno"
    12911299
    1292 #: inc/functions.php:1121
     1300#: inc/functions.php:1146
    12931301msgid "Azerbaijani"
    12941302msgstr "Azero"
    12951303
    1296 #: inc/functions.php:1121
     1304#: inc/functions.php:1146
    12971305msgid "Belarusian"
    12981306msgstr "Bielorusso"
    12991307
    1300 #: inc/functions.php:1121
     1308#: inc/functions.php:1146
    13011309msgid "Bosnian"
    13021310msgstr "Bosniaco"
    13031311
    1304 #: inc/functions.php:1121
     1312#: inc/functions.php:1146
    13051313msgid "Bulgarian"
    13061314msgstr "Bulgaro"
    13071315
    1308 #: inc/functions.php:1121
     1316#: inc/functions.php:1146
    13091317msgid "Catalan"
    13101318msgstr "Catalano"
    13111319
    1312 #: inc/functions.php:1121
     1320#: inc/functions.php:1146
    13131321msgid "Chinese"
    13141322msgstr "Cinese"
    13151323
    1316 #: inc/functions.php:1121
     1324#: inc/functions.php:1146
    13171325msgid "Croatian"
    13181326msgstr "Croato"
    13191327
    1320 #: inc/functions.php:1121
     1328#: inc/functions.php:1146
    13211329msgid "Czech"
    13221330msgstr "Ceco"
    13231331
    1324 #: inc/functions.php:1121
     1332#: inc/functions.php:1146
    13251333msgid "Danish"
    13261334msgstr "Danese"
    13271335
    1328 #: inc/functions.php:1121
     1336#: inc/functions.php:1146
    13291337msgid "Dutch"
    13301338msgstr "Olandese"
    13311339
    1332 #: inc/functions.php:1121
     1340#: inc/functions.php:1146
    13331341msgid "English"
    13341342msgstr "Inglese"
    13351343
    1336 #: inc/functions.php:1121
     1344#: inc/functions.php:1146
    13371345msgid "Estonian"
    13381346msgstr "Estone"
    13391347
    1340 #: inc/functions.php:1121
     1348#: inc/functions.php:1146
    13411349msgid "Finnish"
    13421350msgstr "Finlandese"
    13431351
    1344 #: inc/functions.php:1121
     1352#: inc/functions.php:1146
    13451353msgid "French"
    13461354msgstr "Francese"
    13471355
    1348 #: inc/functions.php:1121
     1356#: inc/functions.php:1146
    13491357msgid "Galician"
    13501358msgstr "Galiziano"
    13511359
    1352 #: inc/functions.php:1121
     1360#: inc/functions.php:1146
    13531361msgid "German"
    13541362msgstr "Tedesco"
    13551363
    1356 #: inc/functions.php:1121
     1364#: inc/functions.php:1146
    13571365msgid "Greek"
    13581366msgstr "Greco"
    13591367
    1360 #: inc/functions.php:1121
     1368#: inc/functions.php:1146
    13611369msgid "Hebrew"
    13621370msgstr "Ebraico"
    13631371
    1364 #: inc/functions.php:1121
     1372#: inc/functions.php:1146
    13651373msgid "Hindi"
    13661374msgstr "Hindi"
    13671375
    1368 #: inc/functions.php:1121
     1376#: inc/functions.php:1146
    13691377msgid "Hungarian"
    13701378msgstr "Ungherese"
    13711379
    1372 #: inc/functions.php:1121
     1380#: inc/functions.php:1146
    13731381msgid "Icelandic"
    13741382msgstr "Islandese"
    13751383
    1376 #: inc/functions.php:1121
     1384#: inc/functions.php:1146
    13771385msgid "Indonesian"
    13781386msgstr "Indonesiano"
    13791387
    1380 #: inc/functions.php:1121
     1388#: inc/functions.php:1146
    13811389msgid "Italian"
    13821390msgstr "Italiano"
    13831391
    1384 #: inc/functions.php:1121
     1392#: inc/functions.php:1146
    13851393msgid "Japanese"
    13861394msgstr "Giapponese"
    13871395
    1388 #: inc/functions.php:1121
     1396#: inc/functions.php:1146
    13891397msgid "Kannada"
    13901398msgstr "Kannada"
    13911399
    1392 #: inc/functions.php:1121
     1400#: inc/functions.php:1146
    13931401msgid "Kazakh"
    13941402msgstr "Kazako"
    13951403
    1396 #: inc/functions.php:1121
     1404#: inc/functions.php:1146
    13971405msgid "Korean"
    13981406msgstr "Coreano"
    13991407
    1400 #: inc/functions.php:1121
     1408#: inc/functions.php:1146
    14011409msgid "Latvian"
    14021410msgstr "Lettone"
    14031411
    1404 #: inc/functions.php:1121
     1412#: inc/functions.php:1146
    14051413msgid "Lithuanian"
    14061414msgstr "Lituano"
    14071415
    1408 #: inc/functions.php:1121
     1416#: inc/functions.php:1146
    14091417msgid "Macedonian"
    14101418msgstr "Macedone"
    14111419
    1412 #: inc/functions.php:1121
     1420#: inc/functions.php:1146
    14131421msgid "Malay"
    14141422msgstr "Malese"
    14151423
    1416 #: inc/functions.php:1121
     1424#: inc/functions.php:1146
    14171425msgid "Marathi"
    14181426msgstr "Marathi"
    14191427
    1420 #: inc/functions.php:1121
     1428#: inc/functions.php:1146
    14211429msgid "Maori"
    14221430msgstr "Maori"
    14231431
    1424 #: inc/functions.php:1121
     1432#: inc/functions.php:1146
    14251433msgid "Nepali"
    14261434msgstr "Nepalese"
    14271435
    1428 #: inc/functions.php:1121
     1436#: inc/functions.php:1146
    14291437msgid "Norwegian"
    14301438msgstr "Norvegese"
    14311439
    1432 #: inc/functions.php:1121
     1440#: inc/functions.php:1146
    14331441msgid "Persian"
    14341442msgstr "Persiano"
    14351443
    1436 #: inc/functions.php:1121
     1444#: inc/functions.php:1146
    14371445msgid "Polish"
    14381446msgstr "Polacco"
    14391447
    1440 #: inc/functions.php:1121
     1448#: inc/functions.php:1146
    14411449msgid "Portuguese"
    14421450msgstr "Portoghese"
    14431451
    1444 #: inc/functions.php:1121
     1452#: inc/functions.php:1146
    14451453msgid "Romanian"
    14461454msgstr "Rumeno"
    14471455
    1448 #: inc/functions.php:1121
     1456#: inc/functions.php:1146
    14491457msgid "Russian"
    14501458msgstr "Russo"
    14511459
    1452 #: inc/functions.php:1121
     1460#: inc/functions.php:1146
    14531461msgid "Serbian"
    14541462msgstr "Serbo"
    14551463
    1456 #: inc/functions.php:1121
     1464#: inc/functions.php:1146
    14571465msgid "Slovak"
    14581466msgstr "Slovacco"
    14591467
    1460 #: inc/functions.php:1121
     1468#: inc/functions.php:1146
    14611469msgid "Slovenian"
    14621470msgstr "Sloveno"
    14631471
    1464 #: inc/functions.php:1121
     1472#: inc/functions.php:1146
    14651473msgid "Spanish"
    14661474msgstr "Spagnolo"
    14671475
    1468 #: inc/functions.php:1121
     1476#: inc/functions.php:1146
    14691477msgid "Swahili"
    14701478msgstr "Swahili"
    14711479
    1472 #: inc/functions.php:1121
     1480#: inc/functions.php:1146
    14731481msgid "Swedish"
    14741482msgstr "Svedese"
    14751483
    1476 #: inc/functions.php:1121
     1484#: inc/functions.php:1146
    14771485msgid "Tagalog"
    14781486msgstr "Tagalog"
    14791487
    1480 #: inc/functions.php:1121
     1488#: inc/functions.php:1146
    14811489msgid "Tamil"
    14821490msgstr "Tamil"
    14831491
    1484 #: inc/functions.php:1121
     1492#: inc/functions.php:1146
    14851493msgid "Thai"
    14861494msgstr "Tailandese"
    14871495
    1488 #: inc/functions.php:1121
     1496#: inc/functions.php:1146
    14891497msgid "Turkish"
    14901498msgstr "Turco"
    14911499
    1492 #: inc/functions.php:1121
     1500#: inc/functions.php:1146
    14931501msgid "Ukrainian"
    14941502msgstr "Ucraino"
    14951503
    1496 #: inc/functions.php:1121
     1504#: inc/functions.php:1146
    14971505msgid "Urdu"
    14981506msgstr "Urdu"
    14991507
    1500 #: inc/functions.php:1121
     1508#: inc/functions.php:1146
    15011509msgid "Vietnamese"
    15021510msgstr "Vietnamita"
    15031511
    1504 #: inc/functions.php:1121
     1512#: inc/functions.php:1146
    15051513msgid "Welsh"
    15061514msgstr "Gallese"
    15071515
    1508 #: inc/functions.php:1127
     1516#: inc/functions.php:1152
    15091517#, php-format
    15101518msgid ""
  • flusso-ai-generated-content/trunk/languages/flusso-ai-generated-content.pot

    r2907116 r2907940  
    33msgstr ""
    44"Project-Id-Version: flusso-ai-generated-content\n"
    5 "POT-Creation-Date: 2023-05-02 17:35+0200\n"
     5"POT-Creation-Date: 2023-05-04 12:43+0200\n"
    66"PO-Revision-Date: 2023-03-24 11:40+0100\n"
    77"Last-Translator: \n"
     
    7272msgstr ""
    7373
    74 #: inc/engine/core.php:579 inc/functions.php:682
     74#: inc/engine/core.php:579 inc/functions.php:688
    7575msgid "Product Description"
    7676msgstr ""
     
    120120msgstr ""
    121121
    122 #: inc/engine/core.php:611 inc/engine/core.php:634 inc/functions.php:867
     122#: inc/engine/core.php:611 inc/engine/core.php:634 inc/functions.php:873
    123123msgid "Select"
    124124msgstr ""
     
    220220msgstr ""
    221221
    222 #: inc/functions.php:46 inc/functions.php:655
     222#: inc/functions.php:46 inc/functions.php:661
    223223msgid "Content Features"
    224224msgstr ""
     
    228228msgstr ""
    229229
    230 #: inc/functions.php:55 inc/functions.php:432 inc/functions.php:713
     230#: inc/functions.php:55 inc/functions.php:432 inc/functions.php:719
    231231msgid "Speech to Text"
    232232msgstr ""
     
    237237
    238238#: inc/functions.php:64 inc/functions.php:450 inc/functions.php:522
    239 #: inc/functions.php:781
     239#: inc/functions.php:787
    240240msgid "Settings"
    241241msgstr ""
     
    345345msgstr ""
    346346
    347 #: inc/functions.php:333 inc/functions.php:438 inc/functions.php:666
     347#: inc/functions.php:333 inc/functions.php:438 inc/functions.php:672
    348348#: inc/meta-boxes.php:61
    349349msgid "Key Points"
     
    378378msgstr ""
    379379
    380 #: inc/functions.php:409 inc/functions.php:1006
     380#: inc/functions.php:409 inc/functions.php:1031
    381381msgid "Overview"
    382382msgstr ""
     
    479479msgstr ""
    480480
    481 #: inc/functions.php:496 inc/functions.php:583 inc/functions.php:652
    482 #: inc/functions.php:710
     481#: inc/functions.php:496 inc/functions.php:583 inc/functions.php:658
     482#: inc/functions.php:716
    483483msgid "Flusso AI / Content Generation"
    484484msgstr ""
     
    496496msgstr ""
    497497
    498 #: inc/functions.php:509 inc/functions.php:975
     498#: inc/functions.php:509 inc/functions.php:1000
    499499msgid "Create"
    500500msgstr ""
    501501
    502 #: inc/functions.php:511 inc/functions.php:615 inc/functions.php:733
     502#: inc/functions.php:511 inc/functions.php:621 inc/functions.php:739
    503503msgid "It appears you haven't set an API Key yet. Go to the Settings page for more details."
    504504msgstr ""
     
    604604msgstr ""
    605605
    606 #: inc/functions.php:597 inc/functions.php:987
     606#: inc/functions.php:597 inc/functions.php:1012
    607607msgid "Select all answers"
    608608msgstr ""
    609609
    610 #: inc/functions.php:606 inc/functions.php:729
     610#: inc/functions.php:612 inc/functions.php:735
    611611msgid "Send"
    612612msgstr ""
    613613
    614 #: inc/functions.php:607
     614#: inc/functions.php:613
    615615msgid "or hit enter"
    616616msgstr ""
    617617
    618 #: inc/functions.php:610
     618#: inc/functions.php:616
    619619msgid "New chat"
    620620msgstr ""
    621621
    622 #: inc/functions.php:611
     622#: inc/functions.php:617
    623623msgid "clear the screen"
    624624msgstr ""
    625625
    626 #: inc/functions.php:622 inc/functions.php:748
     626#: inc/functions.php:628 inc/functions.php:754
    627627msgid "Save content"
    628628msgstr ""
    629629
    630 #: inc/functions.php:623
     630#: inc/functions.php:629
    631631msgid "Once you have generated some text, you can do several things with it."
    632632msgstr ""
    633633
    634 #: inc/functions.php:626 inc/functions.php:752
     634#: inc/functions.php:632 inc/functions.php:758
    635635msgid "Copy content"
    636636msgstr ""
    637637
    638 #: inc/functions.php:627
     638#: inc/functions.php:633
    639639msgid "this will just copy the selected content, so you can paste it wherever you feel"
    640640msgstr ""
    641641
    642 #: inc/functions.php:630 inc/functions.php:756
     642#: inc/functions.php:636 inc/functions.php:762
    643643msgid "New post"
    644644msgstr ""
    645645
    646 #: inc/functions.php:631 inc/functions.php:757
     646#: inc/functions.php:637 inc/functions.php:763
    647647msgid "easily create a new post, page or product using your generated content"
    648648msgstr ""
    649649
    650 #: inc/functions.php:657
     650#: inc/functions.php:663
    651651msgid "Set some options regarding your WordPress Content."
    652652msgstr ""
    653653
    654 #: inc/functions.php:663 inc/functions.php:965
     654#: inc/functions.php:669 inc/functions.php:990
    655655msgid "Posts"
    656656msgstr ""
    657657
    658 #: inc/functions.php:664
     658#: inc/functions.php:670
    659659msgid "Settings and options for your posts."
    660660msgstr ""
    661661
    662 #: inc/functions.php:667
     662#: inc/functions.php:673
    663663msgid "For lazy readers, or summary-lovers. With this feature, you can use AI to generate a number of key points of a given post, which will be shown before or after the main content."
    664664msgstr ""
    665665
    666 #: inc/functions.php:671
     666#: inc/functions.php:677
    667667msgid "Note: this feature may not work is your post content is too long. OpenAI's API limitation."
    668668msgstr ""
    669669
    670 #: inc/functions.php:679
     670#: inc/functions.php:685
    671671msgid "WooCommerce Products"
    672672msgstr ""
    673673
    674 #: inc/functions.php:680
     674#: inc/functions.php:686
    675675msgid "Settings and options for your WooCommerce Products."
    676676msgstr ""
    677677
    678 #: inc/functions.php:683
     678#: inc/functions.php:689
    679679msgid "You can use Artificial Intelligence to write your WooCommerce product descriptions."
    680680msgstr ""
    681681
    682 #: inc/functions.php:715
     682#: inc/functions.php:721
    683683msgid "Upload a file and receive a text transcription."
    684684msgstr ""
    685685
    686 #: inc/functions.php:719
     686#: inc/functions.php:725
    687687msgid "File upload"
    688688msgstr ""
    689689
    690 #: inc/functions.php:720
     690#: inc/functions.php:726
    691691msgid "File uploads are currently limited to 25 MB. Audio must be in English. The following input file types are supported: mp3, mp4, mpeg, mpga, m4a, wav, webm."
    692692msgstr ""
    693693
    694 #: inc/functions.php:722
     694#: inc/functions.php:728
    695695msgid "No file selected"
    696696msgstr ""
    697697
    698 #: inc/functions.php:724
     698#: inc/functions.php:730
    699699msgid "Upload a file"
    700700msgstr ""
    701701
    702 #: inc/functions.php:737
     702#: inc/functions.php:743
    703703msgid "Transcription"
    704704msgstr ""
    705705
    706 #: inc/functions.php:738
     706#: inc/functions.php:744
    707707msgid "The generated transcription."
    708708msgstr ""
    709709
    710 #: inc/functions.php:749
     710#: inc/functions.php:755
    711711msgid "Once you have your transcription, you can do several things with it."
    712712msgstr ""
    713713
    714 #: inc/functions.php:753
     714#: inc/functions.php:759
    715715msgid "this will just copy the transcription, so you can paste it wherever you feel"
    716716msgstr ""
    717717
    718 #: inc/functions.php:778
     718#: inc/functions.php:784
    719719msgid "Flusso AI / Settings"
    720720msgstr ""
    721721
    722 #: inc/functions.php:783
     722#: inc/functions.php:789
    723723msgid "Here you can set options, settings and credentials for the plugin."
    724724msgstr ""
    725725
    726 #: inc/functions.php:789
     726#: inc/functions.php:795
    727727msgid "OpenAI Platform Settings"
    728728msgstr ""
    729729
    730 #: inc/functions.php:790
     730#: inc/functions.php:796
    731731msgid "Settings for the OpenAI Platform."
    732732msgstr ""
    733733
    734 #: inc/functions.php:799
     734#: inc/functions.php:805
    735735msgid "OpenAI Credentials"
    736736msgstr ""
    737737
    738 #: inc/functions.php:800
     738#: inc/functions.php:806
    739739msgid "Set your OpenAI Secret Key and Organization ID."
    740740msgstr ""
    741741
    742 #: inc/functions.php:825
     742#: inc/functions.php:831
    743743msgid "Flusso AI / Delete Content"
    744744msgstr ""
    745745
    746 #: inc/functions.php:828
     746#: inc/functions.php:834
    747747msgid "Delete Generated Content"
    748748msgstr ""
    749749
    750 #: inc/functions.php:830
     750#: inc/functions.php:836
    751751msgid "From this page you can easily delete the content you generated with Flusso AI plugin."
    752752msgstr ""
    753753
    754 #: inc/functions.php:835
     754#: inc/functions.php:841
    755755msgid "Delete saved images"
    756756msgstr ""
    757757
    758 #: inc/functions.php:836
     758#: inc/functions.php:842
    759759msgid "This will delete the images you saved through the plugin. The action cannot be undone."
    760760msgstr ""
    761761
    762 #: inc/functions.php:839
     762#: inc/functions.php:845
    763763msgid "Delete saved posts"
    764764msgstr ""
    765765
    766 #: inc/functions.php:840
     766#: inc/functions.php:846
    767767msgid "This will delete the posts you created through the plugin. The action cannot be undone."
    768768msgstr ""
    769769
    770 #: inc/functions.php:865
     770#: inc/functions.php:871
    771771msgid "Select a file"
    772772msgstr ""
    773773
    774 #: inc/functions.php:942
     774#: inc/functions.php:890
     775msgid "Your image has been added to the message!"
     776msgstr ""
     777
     778#: inc/functions.php:894
     779msgid "Your image has been removed from the message."
     780msgstr ""
     781
     782#: inc/functions.php:967
    775783msgid "Your OpenAI Key is good and ready to go!"
    776784msgstr ""
    777785
    778 #: inc/functions.php:943
     786#: inc/functions.php:968
    779787msgid "You have to insert an OpenAI Secret Key."
    780788msgstr ""
    781789
    782 #: inc/functions.php:944
     790#: inc/functions.php:969
    783791msgid "There was an error in verifying your API Key. Contact OpenAI for more informations."
    784792msgstr ""
    785793
    786 #: inc/functions.php:945
     794#: inc/functions.php:970
    787795msgid "You have to write a prompt first."
    788796msgstr ""
    789797
    790 #: inc/functions.php:946
     798#: inc/functions.php:971
    791799msgid "An error occurred. Try again."
    792800msgstr ""
    793801
    794 #: inc/functions.php:947
     802#: inc/functions.php:972
    795803msgid "Actions"
    796804msgstr ""
    797805
    798 #: inc/functions.php:948
     806#: inc/functions.php:973
    799807msgid "This is an image variation of"
    800808msgstr ""
    801809
    802 #: inc/functions.php:949
     810#: inc/functions.php:974
    803811msgid "You can choose to save this image in your Media Library, or to create variations if you're still not fully convinced."
    804812msgstr ""
    805813
    806 #: inc/functions.php:950
     814#: inc/functions.php:975
    807815msgid "Save in Media Library"
    808816msgstr ""
    809817
    810 #: inc/functions.php:951
     818#: inc/functions.php:976
    811819msgid "Save and set as a Featured Image"
    812820msgstr ""
    813821
    814 #: inc/functions.php:952
     822#: inc/functions.php:977
    815823msgid "Save all in Media Library"
    816824msgstr ""
    817825
    818 #: inc/functions.php:953
     826#: inc/functions.php:978
    819827msgid "Edit"
    820828msgstr ""
    821829
    822 #: inc/functions.php:954
     830#: inc/functions.php:979
    823831msgid "Create variations"
    824832msgstr ""
    825833
    826 #: inc/functions.php:955
     834#: inc/functions.php:980
    827835msgid "Generating..."
    828836msgstr ""
    829837
    830 #: inc/functions.php:956
     838#: inc/functions.php:981
    831839msgid "Sending your message..."
    832840msgstr ""
    833841
    834 #: inc/functions.php:957
     842#: inc/functions.php:982
    835843msgid "Deleting..."
    836844msgstr ""
    837845
    838 #: inc/functions.php:958
     846#: inc/functions.php:983
    839847msgid "Validating..."
    840848msgstr ""
    841849
    842 #: inc/functions.php:959
     850#: inc/functions.php:984
    843851msgid "Saving..."
    844852msgstr ""
    845853
    846 #: inc/functions.php:960
     854#: inc/functions.php:985
    847855msgid "Saved!"
    848856msgstr ""
    849857
    850 #: inc/functions.php:961
     858#: inc/functions.php:986
    851859msgid "Saved and set!"
    852860msgstr ""
    853861
    854 #: inc/functions.php:962
     862#: inc/functions.php:987
    855863msgid "Set as a Featured Image"
    856864msgstr ""
    857865
    858 #: inc/functions.php:963
     866#: inc/functions.php:988
    859867msgid "All saved!"
    860868msgstr ""
    861869
    862 #: inc/functions.php:964
     870#: inc/functions.php:989
    863871msgid "Variations created!"
    864872msgstr ""
    865873
    866 #: inc/functions.php:966
     874#: inc/functions.php:991
    867875msgid "Pages"
    868876msgstr ""
    869877
    870 #: inc/functions.php:967
     878#: inc/functions.php:992
    871879msgid "Products"
    872880msgstr ""
    873881
    874 #: inc/functions.php:968
     882#: inc/functions.php:993
    875883msgid "Portfolio"
    876884msgstr ""
    877885
    878 #: inc/functions.php:969
     886#: inc/functions.php:994
    879887msgid "Start typing something to search..."
    880888msgstr ""
    881889
    882 #: inc/functions.php:970
     890#: inc/functions.php:995
    883891msgid "Are you sure?"
    884892msgstr ""
    885893
    886 #: inc/functions.php:971
     894#: inc/functions.php:996
    887895msgid "Yes, go on"
    888896msgstr ""
    889897
    890 #: inc/functions.php:972
     898#: inc/functions.php:997
    891899msgid "No, go back"
    892900msgstr ""
    893901
    894 #: inc/functions.php:973
     902#: inc/functions.php:998
    895903msgid "Go back"
    896904msgstr ""
    897905
    898 #: inc/functions.php:974
     906#: inc/functions.php:999
    899907msgid "Set featured image(s)"
    900908msgstr ""
    901909
    902 #: inc/functions.php:976
     910#: inc/functions.php:1001
    903911msgid "Confirming this will delete all the AI generated images you saved in your Media Library. Proceed with caution - the action cannot be undone!"
    904912msgstr ""
    905913
    906 #: inc/functions.php:977
     914#: inc/functions.php:1002
    907915msgid "Confirming this will delete all the AI generated posts, pages and products. Proceed with caution - the action cannot be undone!"
    908916msgstr ""
    909917
    910 #: inc/functions.php:978
     918#: inc/functions.php:1003
    911919msgid "Set this as a featured image"
    912920msgstr ""
    913921
    914 #: inc/functions.php:979
     922#: inc/functions.php:1004
    915923msgid "Choose the posts, pages or custom post type elements you want to set the featured image for."
    916924msgstr ""
    917925
    918 #: inc/functions.php:980
     926#: inc/functions.php:1005
    919927msgid "Create WordPress content"
    920928msgstr ""
    921929
    922 #: inc/functions.php:981
     930#: inc/functions.php:1006
    923931msgid "Create a new post, page or product using the generated content. The new element will be saved as a draft."
    924932msgstr ""
    925933
    926 #: inc/functions.php:982
     934#: inc/functions.php:1007
    927935msgid "You have to select at least one element in order to proceed."
    928936msgstr ""
    929937
    930 #: inc/functions.php:983
     938#: inc/functions.php:1008
    931939msgid "Your message can't be empty!"
    932940msgstr ""
    933941
    934 #: inc/functions.php:984
     942#: inc/functions.php:1009
    935943msgid "You"
    936944msgstr ""
    937945
    938 #: inc/functions.php:985
     946#: inc/functions.php:1010
    939947msgid "AI"
    940948msgstr ""
    941949
    942 #: inc/functions.php:986
     950#: inc/functions.php:1011
    943951msgid "write your answer here"
    944952msgstr ""
    945953
    946 #: inc/functions.php:988
     954#: inc/functions.php:1013
    947955msgid "Deselect all answers"
    948956msgstr ""
    949957
    950 #: inc/functions.php:989
     958#: inc/functions.php:1014
    951959msgid "Nothing has been selected, so nothing has been copied."
    952960msgstr ""
    953961
    954 #: inc/functions.php:990
     962#: inc/functions.php:1015
    955963msgid "Content copied! Paste it wherever you like."
    956964msgstr ""
    957965
    958 #: inc/functions.php:991
     966#: inc/functions.php:1016
    959967msgid "An error occurred while copying the content. Try again."
    960968msgstr ""
    961969
    962 #: inc/functions.php:992
     970#: inc/functions.php:1017
    963971msgid "Generate and select some content first!"
    964972msgstr ""
    965973
    966 #: inc/functions.php:993
     974#: inc/functions.php:1018
    967975msgid "Generate a transcription first!"
    968976msgstr ""
    969977
    970 #: inc/functions.php:994
     978#: inc/functions.php:1019
    971979msgid "Post type"
    972980msgstr ""
    973981
    974 #: inc/functions.php:995
     982#: inc/functions.php:1020
    975983msgid "Post"
    976984msgstr ""
    977985
    978 #: inc/functions.php:996
     986#: inc/functions.php:1021
    979987msgid "Page"
    980988msgstr ""
    981989
    982 #: inc/functions.php:997
     990#: inc/functions.php:1022
    983991msgid "Product"
    984992msgstr ""
    985993
    986 #: inc/functions.php:998
     994#: inc/functions.php:1023
    987995msgid "Title"
    988996msgstr ""
    989997
    990 #: inc/functions.php:999
     998#: inc/functions.php:1024
    991999msgid "Write your post title here"
    9921000msgstr ""
    9931001
    994 #: inc/functions.php:1000
     1002#: inc/functions.php:1025
    9951003msgid "Content"
    9961004msgstr ""
    9971005
    998 #: inc/functions.php:1001
     1006#: inc/functions.php:1026
    9991007msgid "You have to write a title."
    10001008msgstr ""
    10011009
    1002 #: inc/functions.php:1002
     1010#: inc/functions.php:1027
    10031011msgid "The content cannot be empty."
    10041012msgstr ""
    10051013
    1006 #: inc/functions.php:1003
     1014#: inc/functions.php:1028
    10071015msgid "View your newly created element."
    10081016msgstr ""
    10091017
    1010 #: inc/functions.php:1004
     1018#: inc/functions.php:1029
    10111019msgid "You have to select a file first."
    10121020msgstr ""
    10131021
    1014 #: inc/functions.php:1005
     1022#: inc/functions.php:1030
    10151023msgid "Sending your file (be patient: this may take a while)..."
    10161024msgstr ""
    10171025
    1018 #: inc/functions.php:1007
     1026#: inc/functions.php:1032
    10191027msgid "You will able to edit your generated Key Points from here..."
    10201028msgstr ""
    10211029
    1022 #: inc/functions.php:1008
     1030#: inc/functions.php:1033
    10231031msgid "Your post has no content."
    10241032msgstr ""
    10251033
    1026 #: inc/functions.php:1009
     1034#: inc/functions.php:1034
    10271035msgid "One or more required fields are missing."
    10281036msgstr ""
    10291037
    1030 #: inc/functions.php:1010
     1038#: inc/functions.php:1035
    10311039msgid "The product description has been generated."
    10321040msgstr ""
    10331041
    1034 #: inc/functions.php:1050
     1042#: inc/functions.php:1075
    10351043msgid "an indoor lounge area with bright lights..."
    10361044msgstr ""
    10371045
    1038 #: inc/functions.php:1053
     1046#: inc/functions.php:1078
    10391047msgid "a white, siamese cat..."
    10401048msgstr ""
    10411049
    1042 #: inc/functions.php:1056
     1050#: inc/functions.php:1081
    10431051msgid "an oil painting of a humanoid robot playing chess..."
    10441052msgstr ""
    10451053
    1046 #: inc/functions.php:1059
     1054#: inc/functions.php:1084
    10471055msgid "a bowl of soup that is also a portal to another dimension..."
    10481056msgstr ""
    10491057
    1050 #: inc/functions.php:1062
     1058#: inc/functions.php:1087
    10511059msgid "a futuristic cyborg poster hanging in a neon lit subway station..."
    10521060msgstr ""
    10531061
    1054 #: inc/functions.php:1065
     1062#: inc/functions.php:1090
    10551063msgid "a shiba inu dog wearing a beret and black turtleneck..."
    10561064msgstr ""
    10571065
    1058 #: inc/functions.php:1068
     1066#: inc/functions.php:1093
    10591067msgid "a cat riding a motorcycle..."
    10601068msgstr ""
    10611069
    1062 #: inc/functions.php:1071
     1070#: inc/functions.php:1096
    10631071msgid "a sailboat circled by birds on the sea at sunrise..."
    10641072msgstr ""
    10651073
    1066 #: inc/functions.php:1074
     1074#: inc/functions.php:1099
    10671075msgid "a pencil and watercolor drawing of a bright city in the future with flying cars..."
    10681076msgstr ""
    10691077
    1070 #: inc/functions.php:1077
     1078#: inc/functions.php:1102
    10711079msgid "a painting of a river..."
    10721080msgstr ""
    10731081
    1074 #: inc/functions.php:1084
     1082#: inc/functions.php:1109
    10751083msgid "what is human life expectancy?"
    10761084msgstr ""
    10771085
    1078 #: inc/functions.php:1087
     1086#: inc/functions.php:1112
    10791087msgid "tell me something about our observable universe"
    10801088msgstr ""
    10811089
    1082 #: inc/functions.php:1090
     1090#: inc/functions.php:1115
    10831091msgid "how does a telescope work?"
    10841092msgstr ""
    10851093
    1086 #: inc/functions.php:1093
     1094#: inc/functions.php:1118
    10871095msgid "where were the 1992 Olympics held?"
    10881096msgstr ""
    10891097
    1090 #: inc/functions.php:1096
     1098#: inc/functions.php:1121
    10911099msgid "who was president of the United States in 1955?"
    10921100msgstr ""
    10931101
    1094 #: inc/functions.php:1099
     1102#: inc/functions.php:1124
    10951103msgid "tell me a joke, made me laugh"
    10961104msgstr ""
    10971105
    1098 #: inc/functions.php:1102
     1106#: inc/functions.php:1127
    10991107msgid "give me a list of 10 things not to say at a party"
    11001108msgstr ""
    11011109
    1102 #: inc/functions.php:1105
     1110#: inc/functions.php:1130
    11031111msgid "what should I buy for my best friend's birthday?"
    11041112msgstr ""
    11051113
    1106 #: inc/functions.php:1108
     1114#: inc/functions.php:1133
    11071115msgid "act as a standup comedian and talk to me about politics"
    11081116msgstr ""
    11091117
    1110 #: inc/functions.php:1111
     1118#: inc/functions.php:1136
    11111119msgid "translate 'hello, i'm using a wonderful WordPress plugin' into ancient greek"
    11121120msgstr ""
    11131121
    1114 #: inc/functions.php:1121
     1122#: inc/functions.php:1146
    11151123msgid "Afrikaans"
    11161124msgstr ""
    11171125
    1118 #: inc/functions.php:1121
     1126#: inc/functions.php:1146
    11191127msgid "Arabic"
    11201128msgstr ""
    11211129
    1122 #: inc/functions.php:1121
     1130#: inc/functions.php:1146
    11231131msgid "Armenian"
    11241132msgstr ""
    11251133
    1126 #: inc/functions.php:1121
     1134#: inc/functions.php:1146
    11271135msgid "Azerbaijani"
    11281136msgstr ""
    11291137
    1130 #: inc/functions.php:1121
     1138#: inc/functions.php:1146
    11311139msgid "Belarusian"
    11321140msgstr ""
    11331141
    1134 #: inc/functions.php:1121
     1142#: inc/functions.php:1146
    11351143msgid "Bosnian"
    11361144msgstr ""
    11371145
    1138 #: inc/functions.php:1121
     1146#: inc/functions.php:1146
    11391147msgid "Bulgarian"
    11401148msgstr ""
    11411149
    1142 #: inc/functions.php:1121
     1150#: inc/functions.php:1146
    11431151msgid "Catalan"
    11441152msgstr ""
    11451153
    1146 #: inc/functions.php:1121
     1154#: inc/functions.php:1146
    11471155msgid "Chinese"
    11481156msgstr ""
    11491157
    1150 #: inc/functions.php:1121
     1158#: inc/functions.php:1146
    11511159msgid "Croatian"
    11521160msgstr ""
    11531161
    1154 #: inc/functions.php:1121
     1162#: inc/functions.php:1146
    11551163msgid "Czech"
    11561164msgstr ""
    11571165
    1158 #: inc/functions.php:1121
     1166#: inc/functions.php:1146
    11591167msgid "Danish"
    11601168msgstr ""
    11611169
    1162 #: inc/functions.php:1121
     1170#: inc/functions.php:1146
    11631171msgid "Dutch"
    11641172msgstr ""
    11651173
    1166 #: inc/functions.php:1121
     1174#: inc/functions.php:1146
    11671175msgid "English"
    11681176msgstr ""
    11691177
    1170 #: inc/functions.php:1121
     1178#: inc/functions.php:1146
    11711179msgid "Estonian"
    11721180msgstr ""
    11731181
    1174 #: inc/functions.php:1121
     1182#: inc/functions.php:1146
    11751183msgid "Finnish"
    11761184msgstr ""
    11771185
    1178 #: inc/functions.php:1121
     1186#: inc/functions.php:1146
    11791187msgid "French"
    11801188msgstr ""
    11811189
    1182 #: inc/functions.php:1121
     1190#: inc/functions.php:1146
    11831191msgid "Galician"
    11841192msgstr ""
    11851193
    1186 #: inc/functions.php:1121
     1194#: inc/functions.php:1146
    11871195msgid "German"
    11881196msgstr ""
    11891197
    1190 #: inc/functions.php:1121
     1198#: inc/functions.php:1146
    11911199msgid "Greek"
    11921200msgstr ""
    11931201
    1194 #: inc/functions.php:1121
     1202#: inc/functions.php:1146
    11951203msgid "Hebrew"
    11961204msgstr ""
    11971205
    1198 #: inc/functions.php:1121
     1206#: inc/functions.php:1146
    11991207msgid "Hindi"
    12001208msgstr ""
    12011209
    1202 #: inc/functions.php:1121
     1210#: inc/functions.php:1146
    12031211msgid "Hungarian"
    12041212msgstr ""
    12051213
    1206 #: inc/functions.php:1121
     1214#: inc/functions.php:1146
    12071215msgid "Icelandic"
    12081216msgstr ""
    12091217
    1210 #: inc/functions.php:1121
     1218#: inc/functions.php:1146
    12111219msgid "Indonesian"
    12121220msgstr ""
    12131221
    1214 #: inc/functions.php:1121
     1222#: inc/functions.php:1146
    12151223msgid "Italian"
    12161224msgstr ""
    12171225
    1218 #: inc/functions.php:1121
     1226#: inc/functions.php:1146
    12191227msgid "Japanese"
    12201228msgstr ""
    12211229
    1222 #: inc/functions.php:1121
     1230#: inc/functions.php:1146
    12231231msgid "Kannada"
    12241232msgstr ""
    12251233
    1226 #: inc/functions.php:1121
     1234#: inc/functions.php:1146
    12271235msgid "Kazakh"
    12281236msgstr ""
    12291237
    1230 #: inc/functions.php:1121
     1238#: inc/functions.php:1146
    12311239msgid "Korean"
    12321240msgstr ""
    12331241
    1234 #: inc/functions.php:1121
     1242#: inc/functions.php:1146
    12351243msgid "Latvian"
    12361244msgstr ""
    12371245
    1238 #: inc/functions.php:1121
     1246#: inc/functions.php:1146
    12391247msgid "Lithuanian"
    12401248msgstr ""
    12411249
    1242 #: inc/functions.php:1121
     1250#: inc/functions.php:1146
    12431251msgid "Macedonian"
    12441252msgstr ""
    12451253
    1246 #: inc/functions.php:1121
     1254#: inc/functions.php:1146
    12471255msgid "Malay"
    12481256msgstr ""
    12491257
    1250 #: inc/functions.php:1121
     1258#: inc/functions.php:1146
    12511259msgid "Marathi"
    12521260msgstr ""
    12531261
    1254 #: inc/functions.php:1121
     1262#: inc/functions.php:1146
    12551263msgid "Maori"
    12561264msgstr ""
    12571265
    1258 #: inc/functions.php:1121
     1266#: inc/functions.php:1146
    12591267msgid "Nepali"
    12601268msgstr ""
    12611269
    1262 #: inc/functions.php:1121
     1270#: inc/functions.php:1146
    12631271msgid "Norwegian"
    12641272msgstr ""
    12651273
    1266 #: inc/functions.php:1121
     1274#: inc/functions.php:1146
    12671275msgid "Persian"
    12681276msgstr ""
    12691277
    1270 #: inc/functions.php:1121
     1278#: inc/functions.php:1146
    12711279msgid "Polish"
    12721280msgstr ""
    12731281
    1274 #: inc/functions.php:1121
     1282#: inc/functions.php:1146
    12751283msgid "Portuguese"
    12761284msgstr ""
    12771285
    1278 #: inc/functions.php:1121
     1286#: inc/functions.php:1146
    12791287msgid "Romanian"
    12801288msgstr ""
    12811289
    1282 #: inc/functions.php:1121
     1290#: inc/functions.php:1146
    12831291msgid "Russian"
    12841292msgstr ""
    12851293
    1286 #: inc/functions.php:1121
     1294#: inc/functions.php:1146
    12871295msgid "Serbian"
    12881296msgstr ""
    12891297
    1290 #: inc/functions.php:1121
     1298#: inc/functions.php:1146
    12911299msgid "Slovak"
    12921300msgstr ""
    12931301
    1294 #: inc/functions.php:1121
     1302#: inc/functions.php:1146
    12951303msgid "Slovenian"
    12961304msgstr ""
    12971305
    1298 #: inc/functions.php:1121
     1306#: inc/functions.php:1146
    12991307msgid "Spanish"
    13001308msgstr ""
    13011309
    1302 #: inc/functions.php:1121
     1310#: inc/functions.php:1146
    13031311msgid "Swahili"
    13041312msgstr ""
    13051313
    1306 #: inc/functions.php:1121
     1314#: inc/functions.php:1146
    13071315msgid "Swedish"
    13081316msgstr ""
    13091317
    1310 #: inc/functions.php:1121
     1318#: inc/functions.php:1146
    13111319msgid "Tagalog"
    13121320msgstr ""
    13131321
    1314 #: inc/functions.php:1121
     1322#: inc/functions.php:1146
    13151323msgid "Tamil"
    13161324msgstr ""
    13171325
    1318 #: inc/functions.php:1121
     1326#: inc/functions.php:1146
    13191327msgid "Thai"
    13201328msgstr ""
    13211329
    1322 #: inc/functions.php:1121
     1330#: inc/functions.php:1146
    13231331msgid "Turkish"
    13241332msgstr ""
    13251333
    1326 #: inc/functions.php:1121
     1334#: inc/functions.php:1146
    13271335msgid "Ukrainian"
    13281336msgstr ""
    13291337
    1330 #: inc/functions.php:1121
     1338#: inc/functions.php:1146
    13311339msgid "Urdu"
    13321340msgstr ""
    13331341
    1334 #: inc/functions.php:1121
     1342#: inc/functions.php:1146
    13351343msgid "Vietnamese"
    13361344msgstr ""
    13371345
    1338 #: inc/functions.php:1121
     1346#: inc/functions.php:1146
    13391347msgid "Welsh"
    13401348msgstr ""
    13411349
    1342 #: inc/functions.php:1127
     1350#: inc/functions.php:1152
    13431351#, php-format
    13441352msgid "%sAlways remember%s to check your AI platforms' %saccount usage%s, and track %show much you're spending%s on AI features."
  • flusso-ai-generated-content/trunk/main.php

    r2907116 r2907940  
    22/**
    33 * @package Flusso AI: AI Generated Content
    4  * @version 0.7
     4 * @version 0.7.1
    55 */
    66/*
     
    88Description: Create and edit images and content in your WordPress website using the power of AI. Features included: DALL-E, ChatGPT 4, WooCommerce Product Description generator, Whisper speech-to-text, and more.
    99Author: emana.design
    10 Version: 0.7
     10Version: 0.7.1
    1111Requires PHP: 7.4
    1212Author URI: https://emana.design
  • flusso-ai-generated-content/trunk/readme.txt

    r2907116 r2907940  
    1 === Flusso AI - ChatGPT 4, DALL-E Image Generator, AI Product Description Generator ===
     1=== Flusso AI » ChatGPT 4, DALL-E Image Generator, AI Product Description Generator ===
    22Contributors: emanadesign
    33Tags: ai, dall-e, chatgpt, woocommerce product descriptions, ai generated content, openai, dall-e, image generation, ai content generator, ai content, speech to text, whisper ai
     
    66Tested up to: 6.2
    77Requires PHP: 7.4
    8 Stable tag: 0.7
     8Stable tag: 0.7.1
    99License: GPLv2 or later
    1010
    11 Flusso AI allows you to generate WordPress content, like images and text, through the power of AI.
     11Flusso AI allows you to generate WordPress content, like images and text with ChatGPT, through the power of AI.
    1212
    1313== Description ==
     
    100100== Changelog ==
    101101
    102 = 0.6 2023-05-02 =
     102= 0.7.1 2023-05-04 =
     103
     104* **[New]** **Image support** added for ChatGPT 4.
     105
     106= 0.7 2023-05-02 =
    103107
    104108* **[New]** Added support for **GPT-4**
Note: See TracChangeset for help on using the changeset viewer.