"use strict";(globalThis.webpackChunkhelpgent=globalThis.webpackChunkhelpgent||[]).push([[172],{8748:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(51609),o=i(86087),l=i(20533),a=i(35629);const r=function({isOpen:e,className:t,onClose:i,position:r="left",clearDomAfterClosed:s=!0,isBackDropActive:g=!0,children:M}){const p=(0,o.useRef)(document.querySelector("body")),c=(0,o.useRef)(document.getElementById("helpgent-drawer")||function(){const e=document.createElement("div");return e.setAttribute("id","helpgent-drawer"),e}()),d=(0,l.A)(e,300);return(0,o.useEffect)(()=>(p.current.appendChild(c.current),()=>{c.current.remove(),p.current.style.overflow=""}),[]),(0,o.useEffect)(()=>{if(e){p.current.style.overflow="hidden";const e=sessionStorage.getItem("isFullscreenActive");if(null===e)return;const t=document.querySelector(".helpgent-drawer-content");"1"===e?t.classList.add("helpgent-drawer-content--top-none"):t.classList.remove("helpgent-drawer-content--top-none")}else p.current.style.overflow=""},[e]),d||!s||e?(0,o.createPortal)((0,n.createElement)(a.H,{"aria-hidden":!e,className:`${t} ${e?"helpgent-drawer-active":""} ${d?"helpgent-in":""}`},(0,n.createElement)("div",{className:`helpgent-drawer-content helpgent-drawer-${r}`,role:"dialog"},M),g&&(0,n.createElement)("div",{className:"helpgent-drawer-backdrop",onClick:i})),c.current):null}},13272:(e,t,i)=>{i.d(t,{A:()=>n}),i(51609);const n="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIzLjExMSIgdmlld0JveD0iMCAwIDE0IDMuMTExIj4KICA8cGF0aCBpZD0iZWxsaXBzaXMtaCIgZD0iTTEwLDEwYTEuNTU2LDEuNTU2LDAsMSwwLDEuNTU2LDEuNTU2QTEuNTU2LDEuNTU2LDAsMCwwLDEwLDEwWk00LjU1NiwxMGExLjU1NiwxLjU1NiwwLDEsMCwxLjU1NiwxLjU1NkExLjU1NiwxLjU1NiwwLDAsMCw0LjU1NiwxMFptMTAuODg5LDBBMS41NTYsMS41NTYsMCwxLDAsMTcsMTEuNTU2LDEuNTU2LDEuNTU2LDAsMCwwLDE1LjQ0NCwxMFoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE3IDEzLjExMSkgcm90YXRlKDE4MCkiIGZpbGw9IiM2ZTZlNmUiLz4KPC9zdmc+Cg=="},14292:(e,t,i)=>{i.d(t,{A:()=>n}),i(51609);const n="data:image/svg+xml;base64,PHN2ZyBpZD0iY2hlY2stdGhpbiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTQiIGhlaWdodD0iMTAuMTA2IiB2aWV3Qm94PSIwIDAgMTQgMTAuMTA2Ij4KICA8cGF0aCBpZD0iUGF0aF8xNjI0IiBkYXRhLW5hbWU9IlBhdGggMTYyNCIgZD0iTTQuNTIsODAuNjc5YTEuNSwxLjUsMCwwLDEtMS4wNTktLjQzOWwtMy4yLTMuMmEuODgzLjg4MywwLDAsMSwwLTEuMjQ4aDBhLjg4My44ODMsMCwwLDEsMS4yNDgsMEw0LjUyLDc4LjhsNy45NzMtNy45NzNhLjg4My44ODMsMCwwLDEsMS4yNDgsMGgwYS44ODMuODgzLDAsMCwxLDAsMS4yNDhMNS41OCw4MC4yNEExLjUsMS41LDAsMCwxLDQuNTIsODAuNjc5WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAtNzAuNTczKSIgZmlsbD0iIzY1NTFmMiIvPgo8L3N2Zz4K"},17676:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(52619);async function o(e,t,i,o,l,a){if(t)return;const r={...o};r.status=i,r.email_template_settings=l,r.content=JSON.stringify(r.content);try{const t=await e((0,n.applyFilters)("helpgent_form_update_data",r));(0,n.doAction)("helpgent-toast",{message:t.message,position:"bottom-right"}),o.status="publish",a(e=>({...e,draftContent:null,isBuilderClosePanelOpen:!0}))}catch(e){console.log(e)}}},20533:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(51609);const o=(e,t)=>{const[i,o]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let n;return e&&!i?o(!0):!e&&i&&(n=setTimeout(()=>o(!1),t)),()=>{clearTimeout(n)}},[t,e,i]),i}},20755:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(27723);let o;function l(e){const{copyableText:t,setCopiedText:i}=e;try{navigator.clipboard.writeText(t).then(e=>{i((0,n.__)("Copied to clipboard!","helpgent")),o&&clearTimeout(o),o=setTimeout(()=>{i(""),o=null},2e3)}).catch(e=>{console.error((0,n.__)("Unable to copy text to clipboard","helpgent"),e)})}catch(e){console.error((0,n.__)("Clipboard API not supported","helpgent"),e)}}},35629:(e,t,i)=>{i.d(t,{H:()=>n});const n=i(38267).Ay.div`

    &.helpgent-drawer-active.helpgent-in{
        .helpgent-drawer-content{
            transform: translateX(0);
        }

        .helpgent-drawer-backdrop{
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
    }
    &.helpgent-builder-close-drawer{
        .helpgent-drawer-content{
            width: 360px;
        }
    }
    .helpgent-drawer-content{
        position: fixed;
        right: 0;
        top: 0;
        width: 400px;
        height: 100vh;
        transform: translateX(400px);
        transition: transform .3s ease-in-out;
        z-index: 1000000;
        background-color: var(--helpgent-color-white);
        @media only screen and (max-width: 400px){
            width: calc(100% - 20px);
        }
    }
    .helpgent-drawer-backdrop{
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        z-index: 100000;
        transition: opacity .3s ease-in-out, visibility .3s ease-in-out;
        background-color: rgba(0,0,0,.5);
    }
    .helpgent-media-filter{
        &__top{
            border-bottom: 1px solid #EDEDED;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 28px 25px;
            .helpgent-select .helpgent-select__menu{
                width: 130px;
                right: 0;
            }
        }
        &__close{
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: var(--helpgent-color-bg-light);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            svg{
                width: 10px;
                height: 10px;
                path{
                    fill: var(--helpgent-color-gray);
                }
            }
        }
        &__label{
            font-size: 18px;
            font-weight: 600;
            color: var(--helpgent-color-dark);
        }
        .helpgent-select__control{
            background: none;
            min-width: 80px;
            padding: 0;
            min-height: unset;
            .helpgent-select__value-container,
            .helpgent-select__indicator{
                padding: 0;
                gap: 0;
            }
            .helpgent-select__single-value{
                font-size: 14px;
                font-weight: 500;
                color: var(--helpgent-color-gray);
                text-align: right;
            }
        }
        &__content{
            padding: 25px;
            overflow-y: scroll;
            height: calc(100vh - 91px);
            .helpgent-user-block{
                align-items: center;
            }
            .helpgent-media-filter__media{
                padding-bottom: 30px;
            }
        }
        &__media-item{
            &:last-child{
                margin-bottom: 50px;
            }
            .helpgent-media-item-content{
                margin: 10px 0 20px;
                .helpgent-video-conversation{
                    position: relative;
                    border-radius: 20px;
                    text-align: center;
                    display: flex;
                    &::before{
                        content: '';
                        position: absolute;
                        width: 100%;
                        height: 100%;
                        left: 0;
                        top: 0;
                        background: rgba(0,0,0,0.3);
                        border-radius:20px;
                    }
                    video{
                        border-radius: 20px;
                        width: 100%;
                        max-height: 260px;
                    }
                    .helpgent-video-conversation__toggle{
                        position: absolute;
                        left: 50%;
                        top: 50%;
                        transform: translate(-50%, -50%);
                        width: 70px;
                        height: 70px;
                        border-radius: 50%;
                        background: #fff;
                        z-index: 1;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        visibility: hidden;
                        opacity: 0;
                        transition: var(--helpgent-transition);
                        svg{
                            width: 20px;
                            height: 20px;
                            path{
                                fill: var(--helpgent-color-primary);
                            }
                        }
                    }
                    .helpgent-video-conversation__download{
                        position: absolute;
                        right: 15px;
                        bottom: 15px;
                        width: 28px;
                        height: 28px;
                        border-radius: 7px;
                        background: #fff;
                        z-index: 1;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        transition: var(--helpgent-transition);
                        svg{
                            width: 12px;
                            height: 12px;
                            path{
                                fill: var(--helpgent-color-light-gray);
                                transition: var(--helpgent-transition);
                            }
                        }
                        &:hover{
                            background: var(--helpgent-color-primary);
                            svg path{
                                fill: #fff;
                            }
                        }
                    }
                    .helpgent-video-conversation__visualization{
                        position: absolute;
                        right: 20px;
                        top: 20px;
                        z-index: 1;
                        svg{
                            width: 18px;
                            height: 18px;
                            path{
                                fill: #fff;
                                transition: var(--helpgent-transition);
                            }
                        }
                        &:hover{
                            svg path{
                                fill: var(--helpgent-color-primary);
                            }
                        }
                    }
                    &:hover{
                        .helpgent-video-conversation__toggle{
                            visibility: visible;
                            opacity: 1;
                        }
                    }
                }
                .helpgent-voice-conversation{
                    background: var(--helpgent-color-bg-light);
                    border-radius: 20px;
                    margin-bottom: 5px;
                    .helpgent-voice-conversation__player{
                        align-items: center;
                        height: 42px;
                        padding: 10px;
                    }
                    .helpgent-voice-conversation__toggle{
                        width: 22px;
                        height: 22px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        border-radius: 50%;
                        background: var(--helpgent-color-primary);
                        margin-right: 10px;
                        svg{
                            width: 9px;
                            height: 9px;
                            path{
                                fill: var(--helpgent-color-white);
                            }
                        }
                    }
                    .helpgent-audio-range{
                        flex: 1;
                    }
                    .helpgent-voice-conversation__control{
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        margin-top: 10px;
                        padding: 0 10px 10px;
                        .helpgent-voice-conversation__download{
                            width: 28px;
                            height: 28px;
                            background: #fff;
                            border-radius: 7px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            transition: var(--helpgent-transition);
                            svg{
                                width: 12px;
                                height: 12px;
                                transition: var(--helpgent-transition);
                            }
                            &:hover{
                                background: var(--helpgent-color-primary);
                                svg path{
                                    fill: #fff;
                                }
                            }
                        }
                    }
                }
                .helpgent-media-reveal{
                    display: flex;
                    align-items: center;
                    justify-content: flex-end;
                    gap: 6px;
                    color: var(--helpgent-color-primary);
                    cursor: pointer;
                    font-size: 12px;
                    svg{
                        width: 12px;
                        path{
                            fill: var(--helpgent-color-primary);
                        }
                    }
                }
            }
        }
        &__media{
            .helpgent-loading{
                display: block;
                padding-bottom: 100px;
                text-align: center;
            }
        }
    }
`},35747:(e,t,i)=>{i.d(t,{A:()=>n}),i(51609);const n="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxMy45OTUiIHZpZXdCb3g9IjAgMCAxNCAxMy45OTUiPgogIDxnIGlkPSJwZW5jaWwiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNDMuMjY1IC00LjI5NikiPgogICAgPGcgaWQ9Ikdyb3VwXzI3ODkiIGRhdGEtbmFtZT0iR3JvdXAgMjc4OSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTQzLjI2NSA0LjI5NikiPgogICAgICA8ZyBpZD0iR3JvdXBfMjc4OCIgZGF0YS1uYW1lPSJHcm91cCAyNzg4Ij4KICAgICAgICA8cGF0aCBpZD0iUGF0aF8xNTYxIiBkYXRhLW5hbWU9IlBhdGggMTU2MSIgZD0iTTE1Ni4yMDksNS4zNDdhMy42MzUsMy42MzUsMCwwLDAtNS4xLS4wMDlsLTYuMzkzLDYuMzkzYTQuOTI4LDQuOTI4LDAsMCwwLTEuNDQ3LDMuNXYyLjExNWEuOTQzLjk0MywwLDAsMCwuOTQ0Ljk0NGgyLjExNWE0LjkyOSw0LjkyOSwwLDAsMCwzLjUtMS40NDhsNi4zODUtNi4zODVBMy42MjIsMy42MjIsMCwwLDAsMTU2LjIwOSw1LjM0N1ptLTcuNzE4LDEwLjE2YTMuMDUxLDMuMDUxLDAsMCwxLTIuMTY2LjloLTEuMTcxVjE1LjIzMWEzLjA1MSwzLjA1MSwwLDAsMSwuODk0LTIuMTY1bDQuMjE1LTQuMjE1LDIuNDQyLDIuNDQyWm02LjM4My02LjM4My0uODM0LjgzNEwxNTEuNiw3LjUxNmwuODM0LS44MzRhMS43MjcsMS43MjcsMCwwLDEsMi40NDIsMi40NDJaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTQzLjI2NSAtNC4yOTYpIiBmaWxsPSIjNmU2ZTZlIi8+CiAgICAgIDwvZz4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPgo="},38769:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(26374),o=i(1455),l=i.n(o);const a=e=>(0,n.n)(t=>async function(e,t){return await l()({path:e,method:"PATCH",data:t}).then(e=>e)}(e,t))},38930:(e,t,i)=>{i.d(t,{A:()=>n}),i(51609);const n="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNC42NjciIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNC42NjcgMTYiPgogIDxnIGlkPSJ0cmFzaF8xXyIgZGF0YS1uYW1lPSJ0cmFzaCAoMSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMS4zMzMpIj4KICAgIDxwYXRoIGlkPSJQYXRoXzE1MDgiIGRhdGEtbmFtZT0iUGF0aCAxNTA4IiBkPSJNMzYsM2ExLDEsMCwwLDAtMS0xSDMyLjQ4MmEzLDMsMCwwLDAtMi44MTYtMmgtMkEzLDMsMCwwLDAsMjQuODUsMkgyMi4zMzNhMSwxLDAsMCwwLTEsMWgwYTEsMSwwLDAsMCwxLDFoLjMzM3Y4LjMzM0EzLjY2NywzLjY2NywwLDAsMCwyNi4zMzMsMTZIMzFhMy42NjcsMy42NjcsMCwwLDAsMy42NjctMy42NjdWNEgzNUExLDEsMCwwLDAsMzYsM1ptLTMuMzMzLDkuMzMzQTEuNjY3LDEuNjY3LDAsMCwxLDMxLDE0SDI2LjMzM2ExLjY2NywxLjY2NywwLDAsMS0xLjY2Ny0xLjY2N1Y0aDhaIiBmaWxsPSIjNmU2ZTZlIi8+CiAgICA8cGF0aCBpZD0iUGF0aF8xNTA5IiBkYXRhLW5hbWU9IlBhdGggMTUw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lyY2xlIGlkPSJFbGxpcHNlXzI4MyIgZGF0YS1uYW1lPSJFbGxpcHNlIDI4MyIgY3g9IjIuNTIxIiBjeT0iMi41MjEiIHI9IjIuNTIxIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0Ljk3OCA2Mi45OTEpIiBmaWxsPSIjNmU2ZTZlIi8+CiAgPC9nPgo8L3N2Zz4K"},57708:(e,t,i)=>{i.d(t,{$v:()=>r,Dg:()=>a,F4:()=>o,UJ:()=>l,dt:()=>s});var n=i(38267);const o=n.Ay.div`
    margin-bottom: 22px;
    @media only screen and (max-width: 575px){
        justify-content: center;
    }
    .helpgent-page-header-title{
        font-size: 22px;
        font-weight: 500;
        color: var(--helpgent-color-dark);
    }
    .helpgent-page-header-btn{
        ${({theme:e})=>"ltr"===e.direction?"margin-inline-start":"margin-inline-end"}: 20px;
    }
    .helpgent-header-left{
        display: flex;
        align-items: center;
    }
    .helpgent-form-filter{
        display: flex;
        align-items: center;
        gap: 10px;
        .helpgent-select__menu,
        .helpgent-select__control{
            min-width: 134px;
        }
    }
    .helpgent-form-types{
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid var(--helpgent-color-bg-gray);
        border-radius: 8px;
        background: #fff;
        padding: 5px;
        margin-top: 16px;
        margin-bottom: -6px;
        .helpgent-form-types-item{
            text-decoration: none;
            transition: var(--helpgent-transition);
            line-height: 30px;
            border-radius: 6px;
            color: var(--helpgent-color-gray);
            font-size: 14px;
            font-weight: 500;
            padding: 0 13px;
        }
        .helpgent-form-types-item--active{
            background: var(--helpgent-color-dark);
            color: #fff;
        }
    }
    .helpgent-form-filters{
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 26px;
        .helpgent-forms-type{
            .helpgent-select .helpgent-select__control{
                background: #fff;
                border: 1px solid var(--helpgent-color-border-light);
                border-radius: 8px;
                padding-top: 5px;
                padding-bottom: 5px;
                min-width: 200px;
            }
        }
        .helpgent-form-search-filter{
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: auto;
            .helpgent-form-search{
                width: 280px;
                border: 1px solid var(--helpgent-color-border-light);
                background: #fff;
                border-radius: 8px;
                min-height: 40px;
                display: flex;
                align-items: center;
                gap: 5px;
                padding: 0 15px;
                box-sizing: border-box;
                input{
                    padding: 0;
                    border: 0 none;
                    width: 100%;
                    font-size: 14px;
                    &:focus{
                        border: 0 none;
                        outline: 0;
                        box-shadow: none;
                    }
                }
            }
            .helpgent-form-filter-btn{
                border: 1px solid var(--helpgent-color-border-light);
                min-height: 42px;
                font-size: 14px;
                font-weight: 500;
                color: var(--helpgent-color-gray);
                padding: 0 15px;
                transition: var(--helpgent-transition);
                &:hover{
                    background: #fff;
                    color: var(--helpgent-color-dark);
                    svg,
                    svg path{
                        fill: var(--helpgent-color-dark);
                    }
                }
                svg{
                    width: 12px;
                    height: 12px;
                    transition: var(--helpgent-transition);
                }
                &.helpgent-form-filter-btn--active{
                    color: var(--helpgent-color-primary);
                    svg,
                    svg path{
                        fill: var(--helpgent-color-primary);
                    }
                }
            }
            .helpgent-form-filter-clear{
                svg,
                svg path{
                    width: 10px;
                    height: 10px;
                    fill: #fff !important;
                }
            }
            .helpgent-form-sort-btn{
                border: 1px solid var(--helpgent-color-border-light);
                min-height: 42px;
                padding: 0 13px;
                svg{
                    width: 14px;
                    height: 14px;
                    fill: var(--helpgent-color-gray);
                    transition: var(--helpgent-transition);
                }
                &.helpgent-form-sort-btn--active{
                    svg,
                    path{
                        fill: var(--helpgent-color-primary);
                    }
                    &:hover{
                        svg,
                        svg path{
                            fill: #fff;
                        }
                    }
                }
            }
            .helpgent-form-filter{
                position: relative;
            }
            .helpgent-form-filter-contents{
                width: 350px;
                position: absolute;
                right: 42px;
                top: 100%;
                z-index: 9999;
                background: #fff;
                padding: 20px;
                border-radius: 10px;
                box-shadow: 0 6px 20px rgba(0,0,0,0.10);
                box-sizing: border-box;
                .helpgent-select-radio{
                    margin-bottom: 10px;
                    line-height: normal;
                    input{
                        display: none;
                        &:checked + .helpgent-single-select__option:before{
                            border: 5px solid var(--helpgent-color-primary);
                        }
                    }
                    label{
                        margin-bottom: 0;
                    }
                    .helpgent-single-select__option{
                        position: relative;
                        padding-left: 27px;
                        color: var(--helpgent-color-gray);
                        font-size: 14px;
                        cursor: pointer;
                        &:before{
                            content: '';
                            position: absolute;
                            width: 18px;
                            height: 18px;
                            inset-inline-start: 24px;
                            top: 50%;
                            left: 0;
                            transform: translateY(-50%);
                            border-radius: 50%;
                            border: 2px solid #a2a2a2;
                            z-index: 10;
                            box-sizing: border-box;
                        }
                    }
                }
            }
            .helpgent-form-sort-contents{
                width: 220px;
                position: absolute;
                right: -10px;
                top: 100%;
                z-index: 9999;
                background: #fff;
                padding: 9px 20px;
                border-radius: 10px;
                box-shadow: 0 6px 20px rgba(0,0,0,0.10);
                box-sizing: border-box;
                border: 1px solid #ecedee;
                display: flex;
                flex-direction: column;
                .helpgent-form-sort-item{
                    text-decoration: none;
                    font-size: 14px;
                    font-weight: 500;
                    color: var(--helpgent-color-gray);
                    padding: 11px 0;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    &.helpgent-form-sort-item--active{
                        color: var(--helpgent-color-primary);
                    }
                    &:focus{
                        box-shadow: none;
                        border: 0 none;
                        outline: 0;
                    }
                }
            }
        }
        .helpgent-form-filter-by-date-range{
            .helpgent-date-range-picker{
                position: absolute;
                right: 100%;
                top: 212px;
                box-shadow: 0 0px 10px rgba(0,0,0,0.1);
                border-radius: 12px;
                overflow: hidden;
            }
            .rdrDefinedRangesWrapper {
                display: none;
            }
            .rdrSelected,
            .rdrInRange,
            .rdrStartEdge,
            .rdrEndEdge,
            .rdrDayToday .rdrDayNumber span:after{
                background: var(--helpgent-color-primary);
            }
            .rdrCalendarWrapper:not(.rdrDateRangeWrapper) .rdrDayHovered .rdrDayNumber:after{
                border: 1px solid var(--helpgent-color-primary);
            }
            .rdrDay{
                width: 36px;
                height: 36px;
                line-height: 36px;
                &:not(:hover):not(:active):not(.has-background){
                    background: #fff;
                }
            }
            .rdrDayNumber{
                font-weight: 500;
            }
            select:hover{
                background: #ffffff12;
            }
            button.rdrNextPrevButton {
                background: rgba(101,81,242,0.18);
                border-radius: 50%;
                color: #fff;
                margin: 0 20px;
                transition: var(--helpgent-transition);
                i{
                    transition: var(--helpgent-transition);
                }
                &:hover{
                    background: var(--helpgent-color-primary);
                }
                &.rdrPprevButton{
                    &:hover{
                        i{
                            border-color: transparent rgb(255, 255, 255) transparent transparent;
                        }
                    }
                }
                &.rdrNextButton{
                    &:hover{
                        i{
                            border-color: transparent transparent transparent rgb(255, 255, 255);
                        }
                    }
                }
            }
        }
        .helpgent-form-filter-select-timeframe{
            background: var(--helpgent-color-bg-light);
            margin-top: 25px;
            padding: 15px;
            border-radius: 8px;
            > span{
                font-size: 14px;
                color: var(--helpgent-color-gray);
            }
            input {
                padding: 0;
                border: 0 none;
                background: none;
                width: 110px;
                text-align: center;
                font-size: 14px;
                &:focus {
                    border: 0 none;
                    outline: 0;
                    box-shadow: none;
                }
            }
            svg{
                width: 12px;
                height: 12px;
                flex: none;
            }
        }
        .helpgent-form-filter-select-dates{
            background: #fff;
            border: 1px solid var(--helpgent-color-bg-gray);
            display: flex;
            align-items: center;
            gap: 5px;
            border-radius: 8px;
            padding: 5px 10px;
            margin-top: 6px;
        }
    }
`,l=n.Ay.div`
    margin-bottom: 30px;
    @media only screen and (max-width: 1399px){
        padding: 15px;
    }
    .helpgent-pagination{
        margin-top: 18px;
        padding-top: 40px;
        border-top: 1px solid var(--helpgent-color-bg-light);
        justify-content: center;
    }
    .helpgent-table-wrap{
        position: relative;
        min-height: 200px;
    }
    .helpgent-table-forms-list{
        .helpgent-table tr{
            td{
                &:first-child{
                    position: relative;
                    border-left: 2px solid transparent;
                    transition: var(--helpgent-transition);
                    padding-right: 0;
                }
            }
            &.helpgent-welcome-wrapper{
                td:first-child{
                    border-left: 0 none;
                    border-radius: 12px;
                }
                &:hover{
                    background: #fff;
                }
                .helpgent-form-not-found{
                    font-size: 18px;
                    font-weight: 600;
                    color: var(--helpgent-color-gray);
                    margin: 15px 0;
                }
            }
            &:hover{
                td:first-child{
                    border-left-color: var(--helpgent-color-primary);
                }
                .helpgent-title{
                    color: var(--helpgent-color-primary);
                }
                .helpgent-form-action{
                    opacity: 1;
                    visibility: visible;
                }
                .helpgent-titleBox-meta{
                    opacity: 0;
                    visibility: hidden;
                }
            }
        }
    }
    .helpgent-forms-pagination{
        display: flex;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
        .helpgent-pagination{
            margin: 0;
            padding: 0;
        }
        .helpgent-forms-count{
            span{
                color: var(--helpgent-color-light-gray);
                font-size: 13px;
                font-weight: 500;
            }
        }
    }
    .helpgent-form-responses{
        a{
            font-size: 14px;
            font-weight: 500;
            text-decoration: none;
            color: var(--helpgent-color-text);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            &:hover{
                color: var(--helpgent-color-primary);
            }
            &:focus{
                outline: none;
                box-shadow: 0 0;
            }
        }
    }
    .helpgent-form-date{
        color: var(--helpgent-color-gray);
    }
    .helpgent-form-status{
        .components-toggle-control__label{
            color: var(--helpgent-color-light-gray);
            font-size: 14px;
        }
    }
    .helpgent-table-loader{
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 50px;
    }
    .helpgent-table{
        tbody{
            tr{
                background: #fff;
                &.helpgent-welcome-wrapper{
                    &:hover{
                        background: none;
                    }
                    h2{
                        text-align: center;
                    }
                }
                td{
                    box-sizing: border-box;
                    .helpgent-toggle{
                        display: flex;
                        align-items: center;
                        gap: 10px;
                    }
                    .is-checked{
                        & + .components-toggle-control__label{
                            color: var(--helpgent-color-primary);
                        }
                    }
                }
                .helpgent-form-shortcode{
                    position: relative;
                    svg{
                        position: absolute;
                        width: 12px;
                        height: 12px;
                        left: 28px;
                        top: 50%;
                        margin-top: -6px;
                        path{
                            fill: var(--helpgent-color-light-gray);
                        }
                        @media only screen and (max-width: 1399px){
                            left: 22px;
                        }
                    }
                    input {
                        border: 0 none;
                        background: var(--helpgent-color-bg-gray);
                        color: var(--helpgent-color-gray);
                        border-radius: 5px;
                        text-align: center;
                        cursor: copy;
                        font-size: 12px;
                        font-weight: 400;
                        padding: 0 3px 0 20px;
                        width: 100%;
                        box-sizing: border-box;
                        &:focus{
                            border: 0 none;
                            outline: 0;
                            box-shadow: none;
                        }
                    }
                    .helpgent-share-popup-notice{
                        display: block;
                        padding: 8px 15px;
                        text-align: center;
                        color: #fff;
                        position: fixed;
                        background: var(--helpgent-color-dark);
                        min-width: 180px;
                        box-sizing: border-box;
                        border-radius: 10px;
                        z-index: 1;
                        animation: fadeIn 0.3s;
                    }
                    .helpgent-form-shortcode__copied{
                        svg{
                            left: 73px;
                        }
                    }
                    .helpgent-form-shortcode__copying{
                        display: inline-block;
                        position: relative;
                        svg{
                            left: 50%;
                            margin-left: -6px;
                            animation: helpgentSpinner 900ms infinite linear forwards;
                        }
                    }
                    label{
                        width: 100%;
                        display: block;
                    }
                }
                .helpgent-form-checkbox{
                    padding-right: 0;
                    width: 35px;
                }
                .helpgent-form-name{
                    width: 564px;
                    min-width: 564px;
                    @media only screen and (max-width: 1699px){
                        min-width: 400px;
                    }
                    @media only screen and (max-width: 1550px){
                        min-width: 300px;
                    }
                }
                .helpgent-form-shortcode{
                    width: 280px;
                    min-width: 110px;
                }
                .helpgent-form-responses{
                    width: 229px;
                    min-width: 110px;
                }
                .helpgent-form-username{
                    width: 200px;
                    min-width: 150px;
                }
                .helpgent-form-status{
                    width: 204px;
                }
                .helpgent-form-date{
                    width: 239px;
                    min-width: 170px;
                    @media only screen and (max-width: 1499px){
                        min-width: 135px;
                    }
                }
                .helpgent-form-action{
                    width: 144px;
                    padding-left: 0;
                }
            }
        }
        th{
            &.helpgent-head-checkbox{
                padding-right: 0;
                width: 35px;
            }
            &.helpgent-head-name{
                width: 564px;
                min-width: 564px;
                @media only screen and (max-width: 1699px){
                    min-width: 400px;
                }
                @media only screen and (max-width: 1550px){
                    min-width: 300px;
                }
            }
            &.helpgent-head-shortCode{
                width: 280px;
                min-width: 110px;
            }
            &.helpgent-head-response{
                width: 229px;
                min-width: 110px;
            }
            &.helpgent-head-created-by{
                width: 200px;
                min-width: 150px;
            }
            &.helpgent-head-status{
                width: 204px;
            }
            &.helpgent-head-action{
                width: 144px;
            }
            &.helpgent-head-updated-at{
                width: 239px;
                min-width: 170px;
                @media only screen and (max-width: 1499px){
                    min-width: 135px;
                }
            }
        }
        .helpgent-form-responses{
            a{
                max-width: 86px;
                text-align: center;
                color: var(--helpgent-color-info);
            }
        }
        thead tr th{
            box-sizing: border-box;
        }
    }
`,a=n.Ay.div`
    display: flex;
    align-items: center;
    gap: 20px;
    .helpgent-titleBox__editor{
        input{
            border-top: 0px none;
            border-inline-end: 0px none;
            border-bottom: 1px solid #ededed;
            border-inline-start: 0px none;
            border-image: initial;
            background-color: transparent;
            border-radius: 0px;
            padding: 4px 0;
            line-height: 2;
            min-height: 30px;
            color: #2c3338;
            transition: var(--helpgent-transition);
            &:active,
            &:focus{
                border: 0 none;
                border-bottom: 1px solid var(--helpgent-color-dark);
                outline: 0;
                box-shadow: none;
            }
        }
        span{
            font-size: 13px;
            color: var(--helpgent-color-danger);
            display: block;
            margin-top: 10px;
        }
    }
    .helpgent-titleBox__actions{
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .helpgent-titleBox-action-item{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        cursor: pointer ;
        border-radius: 50%;
        transition: var(--helpgent-transition);
        &.helpgent-titleBox__actions-yes{
            background-color: var(--helpgent-color-success);
            border: 1px solid var(--helpgent-color-success);
        }
        &.helpgent-titleBox__actions-cancel{
            background-color: var(--helpgent-color-danger);
            border: 1px solid var(--helpgent-color-danger);
        }
        svg{
            width: 10px;
            height: 10px;
            path{
                fill: #fff;
                transition: var(--helpgent-transition);
            }
        }
        .helpgent-circle-loader {
            border-color: #fff;
            border-bottom-color: transparent;
            transition: var(--helpgent-transition);
        }
        &:hover{
            background: none;
            svg{
                path{
                    fill: var(--helpgent-color-dark);
                }
            }
            .helpgent-circle-loader {
                border-color: var(--helpgent-primary-color);
                border-bottom-color: transparent;
            }
        }
    }
    .helpgent-titleBox__content{
        display: flex;
        align-items: center;
        gap: 12px;
        .helpgent-titleBox-media__form{
            width: 44px;
            height: 44px;
            border-radius: 10px;
            display: block;
        }
        img{
            width: 38px;
            height: 38px;
            object-fit: cover;
            border-radius: 8px;
        }
    }
    .helpgent-titleBox-media{
        flex: none;
    }
    .helpgent-titleBox-text{
        text-align: left;
        position: relative;
        transition: var(--helpgent-transition);
        a{
            text-decoration: none;
        }
        .helpgent-title{
            font-size: 15px;
            font-weight: 600;
            color: var(--helpgent-color-dark);
            transition: var(--helpgent-transition);
        }
    }
   .helpgent-titleBox-meta{
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 10px 0 0;
        transition: var(--helpgent-transition);
        .helpgent-titleBox-meta__id{
            position: relative;
            &::after{
                content: '';
                width: 2px;
                height: 2px;
                background: #6e6e6e;
                border-radius: 50%;
                display: block;
                position: absolute;
                inset-inline-end: -7px;
                top: 50%;
                transform: translateY(-50%);
            }
        }
        li{
            font-size: 12px;
            font-weight: 500;
            color: var(--helpgent-color-light-gray);
            margin: 0;
        }
    }
    .helpgent-form-action{
        display: flex;
        align-items: center;
        gap: 6px;
        position: absolute;
        white-space: nowrap;
        left: 0;
        bottom: -8px;
        margin: 0;
        visibility: hidden;
        opacity: 0;
        transition: var(--helpgent-transition);
        .helpgent-btn{
            color: var(--helpgent-color-dark);
            &:hover{
                background: var(--helpgent-color-primary);
                border-color: var(--helpgent-color-primary);
                color: #fff;
            }
        }
        li{
            margin: 0;
        }
    }
`,r=n.Ay.div`
    width: fit-content;
    margin: 100px auto;
    border-radius: 20px;
    text-align: center;
    padding: 54px clamp(15px, 10%, 112.5px);

    .helpgent-welcome-top{
        margin-bottom: 6px;
    }
    .helpgent-welcome-top{
    }
    .helpgent-welcome-top__icon{
        margin-bottom: 30px;
        svg{
            width: 130px;
            height: 105px;
        }
    }
    .helpgent-welcome-top__title{
        font-size: 22px;
        font-weight: 600;
        margin: 0 0 15px;
        color: var(--helpgent-color-dark);
    }
    p{
        font-size: 16px;
        margin: 0;
        font-weight: 400;
    }
    .helpgent-btn-create{
        padding: 0 30px;
        min-height: 46px;
        margin-top: 23px;
        border-radius: 10px;
    }
`,s=n.Ay.div`
    padding: 0 30px 25px;
    .helpgent-conversation-delete__label{
        font-size: 16px;
        font-weight: 500;
        margin: 0;
        color: var(--helpgent-color-dark);
        padding: 0;
    }
`;n.Ay.div`
    width: 100%;
    min-width: 320px;
    .helpgent-import-attachment__title{
        font-size: 18px;
        color: var(--helpgent-color-dark);
    }
    .helpgent-import-attachment__progress{
        display: flex;
        align-items: center;
    }
    .helpgent-import-attachment__percentage{
        margin-left: 15px;
    }
`},68469:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(1455),o=i.n(n);async function l(e,t,i){return i=i||{},await o()({path:e,method:"DELETE",data:t,...i}).then(e=>e)}},71899:(e,t,i)=>{i.d(t,{A:()=>n}),i(51609);const n="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTYiIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDUxMiA1MTIiPjxwYXRoIGQ9Ik0zMDQgNDhhNDggNDggMCAxIDAgLTk2IDAgNDggNDggMCAxIDAgOTYgMHptMCA0MTZhNDggNDggMCAxIDAgLTk2IDAgNDggNDggMCAxIDAgOTYgMHpNNDggMzA0YTQ4IDQ4IDAgMSAwIDAtOTYgNDggNDggMCAxIDAgMCA5NnptNDY0LTQ4YTQ4IDQ4IDAgMSAwIC05NiAwIDQ4IDQ4IDAgMSAwIDk2IDB6TTE0Mi45IDQzN0E0OCA0OCAwIDEgMCA3NSAzNjkuMSA0OCA0OCAwIDEgMCAxNDIuOSA0Mzd6bTAtMjk0LjJBNDggNDggMCAxIDAgNzUgNzVhNDggNDggMCAxIDA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wYXRoIGlkPSJQYXRoXzEyNTEiIGRhdGEtbmFtZT0iUGF0aCAxMjUxIiBkPSJNNS41NjksMTkuODc2SDQuMzc2YTEuOTg5LDEuOTg5LDAsMCwxLTEuOTg5LTEuOTg5VjE2LjY5M2ExLjE5MywxLjE5MywwLDAsMC0yLjM4NywwdjEuMTkzYTQuMzgsNC4zOCwwLDAsMCw0LjM3Niw0LjM3Nkg1LjU2OWExLjE5MywxLjE5MywwLDEsMCwwLTIuMzg3WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAtMy4yMzEpIiBmaWxsPSIjZmZmIi8+CiAgICA8cGF0aCBpZD0iUGF0aF8xMjUyIiBkYXRhLW5hbWU9IlBhdGggMTI1MiIgZD0iTTE3Ljg4NywwSDE2LjY5M2ExLjE5MywxLjE5MywwLDAsMCwwLDIuMzg3aDEuMTkzYTEuOTg5LDEuOTg5LDAsMCwxLDEuOTg5LDEuOTg5VjUuNTY5YTEuMTkzLDEuMTkzLDAsMSwwLDIuMzg3LDBWNC4zNzZBNC4zOCw0LjM4LDAsMCwwLDE3Ljg4NywwWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMuMjMxIDApIiBmaWxsPSIjZmZmIi8+CiAgPC9nPgo8L3N2Zz4K"},81944:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(51609),o=i(57708),l=i(27723);function a(e){const{error:t,formTitle:i}=e;return(0,n.createElement)(o.dt,null,500===t?.data?.status&&(0,n.createElement)("span",{className:" helpgent-notice helpgent-notice-danger"},(0,l.__)("Internal server error","helpgent")),(0,n.createElement)("div",{className:"helpgent-alert-content"},(0,n.createElement)("p",null,(0,l.__)("You are about to delete","helpgent")," ",Array.isArray(i)?(0,n.createElement)("ul",{className:"helpgent-form-delete-list"},i.map((e,t)=>(0,n.createElement)("li",{key:t},e))):(0,n.createElement)("strong",null,i)),(0,n.createElement)("p",null,Array.isArray(i)&&i.length>1?(0,l.__)("All responses these forms has collected, including associated messages, will be deleted forever.","helpgent"):(0,l.__)("All responses this form has collected, including associated messages, will be deleted forever.","helpgent")),(0,n.createElement)("h4",null,(0,l.__)("Are you sure you want to proceed with the deletion?","helpgent"))))}},88039:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(26374),o=i(68469);const l=(e,t)=>(0,n.n)(i=>"object"==typeof i?(i.id&&i.data&&(e=`${e}/${i.id}`,i=i.data),(0,o.A)(e,i,t)):(e=i?`${e}/${i}`:e,(0,o.A)(e,i||{},t)))},90569:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(26374),o=i(7012);const l=e=>(0,n.n)(t=>(0,o.A)(e,t))},91172:(e,t,i)=>{i.r(t),i.d(t,{default:()=>_});var n=i(51609),o=i(86087),l=i(56427),a=i(88869),r=i(52619),s=i(65604),g=i(48036),M=i(38769),p=i(6945),c=i(17676),d=i(22057),h=i(35747),w=i(54899),L=i(9716),u=i(13272),x=i(38930),m=i(47643),I=i(80444);const D="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNy45OTkiIGhlaWdodD0iMTcuOTYxIiB2aWV3Qm94PSIwIDAgMTcuOTk5IDE3Ljk2MSI+CiAgPGcgaWQ9ImxpbmsiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0wLjAwMSAtMC41NDEpIj4KICAgIDxwYXRoIGlkPSJQYXRoXzE0NTciIGRhdGEtbmFtZT0iUGF0aCAxNDU3IiBkPSJNNy44MDcsMTgyLjMxYTMuMjk0LDMuMjk0LDAsMCwxLTQuNDU4LjI2MiwzLjE4MiwzLjE4MiwwLDAsMS0xLjA4LTIuNzUzLDMuMzg0LDMuMzg0LDAsMCwxLDEuMDE1LTIuMDFsMi4xNTctMi4xNTlhMS4xMjUsMS4xMjUsMCwwLDAsMC0xLjU5MWgwYTEuMTI1LDEuMTI1LDAsMCwwLTEuNTkxLDBsLTIuMTEyLDIuMTEyYTUuNzIxLDUuNzIxLDAsMCwwLTEuNzE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DksMi40NDksMi40NWExLjAzOSwxLjAzOSwwLDAsMSwwLDEuNDY5LDEuMDMzLDEuMDMzLDAsMCwxLS43MzQuM0ExLjAzNCwxLjAzNCwwLDAsMS02MjAuNTEyLDM5NDAuNTYxWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNjI0IC0zOTMwKSIgZmlsbD0iIzNjM2MzYyIvPgo8L3N2Zz4K";var Z=i(14292);const U="data:image/svg+xml;base64, ";function G(e){const{shortCode:t,onClose:i}=e,[l,a]=(0,o.useState)(null);return(0,n.createElement)(y.Pk,{className:"helpgent-close-panel"},(0,n.createElement)("div",{className:"helpgent-close-panel__top"},(0,n.createElement)("span",{className:"helpgent-btn helpgent-btn-sm helpgent-btn-light helpgent-btn-panel-close",onClick:i},(0,n.createElement)(s.A,{src:k.A}),(0,z.__)("Close panel","helpgent"))),(0,n.createElement)("div",{className:"helpgent-close-panel__content"},(0,n.createElement)("h4",{className:"helpgent-close-panel__title"},(0,z.__)("Your form has been published!","helpgent"),(0,n.createElement)(s.A,{src:U})),(0,n.createElement)("p",null,(0,z.__)("Copy and paste this snippet to your code and put your form on your website.","helpgent")),(0,n.createElement)("div",{className:"helpgent-close-panel__field"},(0,n.createElement)("div",{className:"helpgent-form-group"},(0,n.createElement)("input",{type:"text",className:"helpgent-form-group__element",readOnly:!0,value:t}),(0,n.createElement)("button",{className:"helpgent-btn-copy helpgent-btn helpgent-btn-block helpgent-btn-md helpgent-btn-dark "+(l?"helpgent-btn-disabled":""),onClick:()=>{l||(0,v.A)({copyableText:t,setCopiedText:a})}},(0,n.createElement)(s.A,{src:l?Z.A:Y}),l?(0,z.__)("Copied","helpgent"):(0,z.__)("Copy Code","helpgent"))))))}var O=i(90569);function _(e){const t=(0,o.useRef)(),i=(0,o.useRef)(),[k,Y]=(0,o.useState)(),[Z,U]=(0,o.useState)(!1),[_,B]=(0,o.useState)(!1),{baseApiRoute:W,baseLinkRoute:Q,setFetchingEnabled:F,formDrafting:P}=e,[R,H]=(0,o.useState)(sessionStorage.getItem("isFullscreenActive")),[J,X]=(0,o.useState)(!1),K=(0,C.jE)(),{navigationHook:V,routeLink:$,routerNavLink:q,paramsHook:ee}=(0,p.Xd)("helpgent_router_references",null),{singleFormState:te,setSingleFormState:ie}=(0,g.$)(),{singleForm:ne,emailTemplateSettings:oe,singleFormMode:le,isBuilderClosePanelOpen:ae,draftContent:re}=te,se=JSON.stringify(oe),{id:ge}=ee(),Me=V(),[pe,ce]=(0,o.useState)(null),{mutateAsync:de,isLoading:he}=(0,O.A)(`${W?.form}/${ge}/rename`),{mutateAsync:we,isLoading:Le}=(0,M.A)(`${W?.form}/${ge}`);function ue(e){ie({...te,singleFormMode:e})}function xe(){ie({...te,isBuilderClosePanelOpen:!1})}(0,o.useEffect)(()=>{Y(t.current.clientWidth)},[]),(0,o.useEffect)(()=>{(0,j.A)(Z,U,i)},[Z]);const me=(0,r.applyFilters)("helpgent_form_table_actions",[{name:"copy_link",icon:D,text:(0,z.__)("Copy shortcode","helpgent")},{name:"duplicate",icon:m.A,text:(0,z.__)("Duplicate Form","helpgent")},{name:"delete",icon:x.A,text:(0,z.__)("Delete","helpgent")}],ge),{mutateAsync:Ie,isLoading:De,error:Ne}=(0,b.A)(`${W?.form}/${ge}`),{mutateAsync:ye,isLoading:je,error:ze}=(0,T.A)(`${W?.form}/${ge}/duplicate`),Ae=(0,n.createElement)("div",{className:"helpgent-single-form-action-fullscreen"},(0,n.createElement)(a.Switch,{icon:I.A,handleToggle:()=>{!function(){const e="0"===sessionStorage.getItem("isFullscreenActive")?"1":"0";sessionStorage.setItem("isFullscreenActive",e),H(e);const t=document.querySelector(".helpgent-root");"1"===e?t.classList.add("helpgent-single-form-fullscreen"):t.classList.remove("helpgent-single-form-fullscreen")}()},label:(0,z.__)("Fullscreen Mode","helpgent"),isActive:R,className:"helpgent-mb-0"}));(0,o.useEffect)(()=>{const e=sessionStorage.getItem("isFullscreenActive");null===e&&(sessionStorage.setItem("isFullscreenActive","0"),H("0"));const t=document.querySelector(".helpgent-root");"1"===e?t.classList.add("helpgent-single-form-fullscreen"):t.classList.remove("helpgent-single-form-fullscreen")},[ge]);const[be,Te]=(0,o.useState)({isValid:!0,message:""}),[Ce,Ee]=(0,o.useState)("");function Se(){X(!0),Ee(ne.title)}async function fe(e){if(e.target.value!==Ce)try{const e=await de({title:ne.title});(0,r.doAction)("helpgent-toast",{message:e.message}),X(!1)}catch(e){console.error(e)}else X(!1)}return(0,n.createElement)(y.F4,{className:"helpgent-single-form-header",ref:t},(0,n.createElement)("div",{className:"helpgent-single-form-header__left"},(0,n.createElement)("div",{className:"helpgent-single-form-header__logo"},(0,n.createElement)($,{to:`${Q.forms}`},(0,n.createElement)(s.A,{src:N}))),(0,n.createElement)($,{className:"helpgent-single-form-header__back-link",to:`${Q.forms}`},(0,n.createElement)(s.A,{src:d.A}),(0,n.createElement)("span",null,(0,z.__)("Back","helpgent"))),(0,n.createElement)("span",{className:"helpgent-single-form-header__title "+(J?"helpgent-single-form-header__title-active":"")},(0,n.createElement)(s.A,{src:h.A,onClick:Se}),J?(0,n.createElement)(n.Fragment,null,(0,n.createElement)("input",{className:"helpgent-form-rename-field",type:"text",value:ne.title,onBlur:e=>fe(e),onChange:e=>{!function(e){const t=e.target.value;0===t.trim().length?Te({isValid:!1,message:(0,z.__)("Only spaces are not allowed","helpgent")}):""===t?Te({isValid:!1,message:(0,z.__)("Title is required","helpgent")}):t.trim().length<5?Te({isValid:!1,message:(0,z.__)("The title must consist of a minimum of 5 characters.","helpgent")}):Te({isValid:!0,message:""})}(e),ie({...te,singleForm:{...ne,title:e.target.value}})},onKeyDown:e=>{"Enter"===e.key&&fe(e),"Escape"===e.key&&(X(!1),ie({...te,singleForm:{...ne,title:Ce}}))},autoFocus:!0}),(0,n.createElement)("span",{className:"helpgent-form-rename-field-validate"},be.message)):(0,n.createElement)("span",{className:"helpgent-single-form-title-info-text",title:ne.title,onClick:Se},ne.title)),function(){if(re||"draft"===ne.status)return(0,n.createElement)("span",{className:"helpgent-draft-text"},Le||P?(0,z.__)("Saving...","helpgent"):(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.A,{src:L.A}),(0,z.__)("Saved in draft","helpgent")))}()),(0,n.createElement)("div",{className:"helpgent-single-form-header__middle"},(0,n.createElement)("ul",{className:"helpgent-single-form-header__tab"},(0,n.createElement)("li",null,(0,n.createElement)("span",{className:"edit"===le?"helpgent-single-form-header__tab-link helpgent-active":"helpgent-single-form-header__tab-link",onClick:()=>ue("edit")},(0,z.__)("Editor","helpgent"))),(0,n.createElement)("li",null,(0,n.createElement)("span",{className:"settings"===le?"helpgent-single-form-header__tab-link helpgent-active":"helpgent-single-form-header__tab-link",onClick:()=>ue("settings")},(0,z.__)("Settings","helpgent"))))),(0,n.createElement)("div",{className:"helpgent-single-form-header__right"},!ae&&(0,n.createElement)("div",{className:"helpgent-single-form-header__action "+(k<1040?"helpgent-single-form-header__action--compact":"")},(0,n.createElement)(l.Tooltip,{text:(0,z.__)("Preview","helpgent"),delay:"0",placement:"bottom"},(0,n.createElement)("a",{className:"helpgent-btn helpgent-btn-icon helpgent-btn-gray",href:te.singleForm.preview_url,target:"blank"},(0,n.createElement)(s.A,{src:w.A}),(0,z.__)("Preview","helpgent"))),(0,n.createElement)("button",{className:"helpgent-btn helpgent-btn-primary "+(Le||!re&&"draft"!==ne.status?"helpgent-btn-disabled":""),onClick:()=>(0,c.A)(we,Le,"publish",ne,se,ie)},Le?(0,z.__)("Publishing","helpgent"):(0,z.__)("Publish","helpgent")),(0,n.createElement)("div",{className:"helpgent-single-form-more-action"},_&&(0,n.createElement)(A.A,{title:(0,z.__)("Delete Form","helpgent"),onCancel:function(){B(!1)},onSubmit:async function(){if(!De)try{const e=await Ie();B(!1),(0,r.doAction)("helpgent-toast",{message:e.message}),Me(`${Q.forms}`)}catch(e){console.log(e)}},hasCancelButton:!0,hasSubmitButton:!0,isActiveSubmit:!0,submitText:De?(0,z.__)("Deleting","helpgent"):(0,z.__)("Delete","helpgent"),className:"helpgent-form-delete-alert"},(0,n.createElement)(S.A,{error:Ne,formTitle:ne.title})),(0,n.createElement)(E.A,{dropDownIcon:u.A,placement:"left",dropdownList:me,handleDropdownTrigger:async function(e,t){if(e.preventDefault(),"duplicate"===t)try{const e=await ye();F(!0),K.invalidateQueries([`helpgent-single-form-${ge}`]),K.invalidateQueries("helpgent-form"),(0,r.doAction)("helpgent-toast",{message:e.message}),je||Me(`${Q.forms}/${e.form_id}/edit`)}catch(e){const t=e.message?e.message:(0,z.__)("Something went wrong","helpgent");(0,r.doAction)("helpgent-toast",{message:t})}else if("delete"===t)B(!0);else if("copy_link"===t){if(pe)return;(0,v.A)({copyableText:`[helpgent-form id="${ne.id}"]`,setCopiedText:ce}),(0,r.doAction)("helpgent-toast",{message:(0,z.__)("Copied to clipboard!","helpgent")})}},Link:$,tooltipText:(0,z.__)("Fullscreen, copy shortcode, duplicate & more...","helpgent"),className:"helpgent-single-form-action-dropdown",customItem:Ae,topPosition:25})))),(0,n.createElement)(f.A,{isOpen:ae,className:"helpgent-builder-close-drawer",onClose:xe,isBackDropActive:!1},(0,n.createElement)(G,{shortCode:`[helpgent-form id="${ne.id}"]`,onClose:xe})))}},92283:(e,t,i)=>{i.d(t,{A:()=>M});var n=i(51609),o=i(86087),l=i(65604),a=i(27716),r=i(5591),s=i(74618),g=i(71899);function M({className:e,dropDownText:t,dropDownIcon:i,dropdownList:M,placement:p,handleDropdownTrigger:c,Link:d,tooltipText:h,customItem:w,topPosition:L}){M=Array.isArray(M)?M.map(e=>({...e,isLoading:!1})):[];const u=(0,o.useRef)(null),[x,m]=(0,o.useState)(M),[I,D]=(0,o.useState)(!1),N=`helpgent-dropdown ${I?"helpgent-dropdown-open ":""}${e&&e} helpgent-dropdown-${p}`;function y(e,t,i){return e.map((e,n)=>n!==t?e:{...e,...i})}return(0,s.A)(".helpgent-dropdown-open",".helpgent-dropdown__content",40),(0,o.useEffect)(()=>{(0,a.A)(I,D,u)},[I]),(0,n.createElement)("div",{className:N,ref:u},(0,n.createElement)("a",{href:"#",className:"helpgent-dropdown__toggle helpgent-dropdown__toggle-icon-only",onClick:function(e){e.preventDefault(),D(!I),(0,r.A)(e,".helpgent-dropdown",".helpgent-dropdown__content",null,L||40,!1,"right")},"data-tooltip":""!==h?h:""},t||null,i?(0,n.createElement)("span",{className:"helpgent-dropdown-icon"},(0,n.createElement)(l.A,{src:i})):null),(0,n.createElement)("ul",{className:I?"helpgent-dropdown__content helpgent-show":"helpgent-dropdown__content"},(0,n.createElement)("li",null,w),x&&x.map((e,t)=>{let i=null;return i="blank"===e.target&&e.url?e.url:"blank"!==e.target&&e.url?`/${e.url}`:"#",(0,n.createElement)("li",{key:t},d?(0,n.createElement)(d,{to:i,onClick:async n=>{if("#"!==i)return void D(!1);if(e.isLoading)return;let o=y(x,t,{isLoading:!0});m(o),await c(n,e.name),o=y(o,t,{isLoading:!1}),m(o),D(!1)},className:e.className?e.className:"",target:"blank"===e.target?"_blank":null},e.isLoading||e.icon?(0,n.createElement)("span",{className:"helpgent-dropdown-item-icon"+(e.isLoading?" helpgent-animate-spin":"")},(0,n.createElement)(l.A,{src:e.isLoading?g.A:e.icon})):"",e.text):(0,n.createElement)("a",{href:i,onClick:t=>"#"===i&&(D(!1),c(t,e.name)),className:e.className?e.className:"",target:"blank"===e.target?"_blank":null},e.icon?(0,n.createElement)("span",{className:"helpgent-dropdown-item-icon"},(0,n.createElement)(l.A,{src:e.icon})):"",e.text))})))}}}]);