{"id":748,"date":"2026-09-22T16:10:46","date_gmt":"2026-09-22T12:40:46","guid":{"rendered":"https:\/\/ahangarany.ir\/courses\/?post_type=product&#038;p=748"},"modified":"2026-09-28T14:57:13","modified_gmt":"2026-09-28T11:27:13","slug":"%d8%ad%d9%85%d8%a7%db%8c%d8%aa-%d9%85%d8%a7%d9%84%db%8c","status":"publish","type":"product","link":"https:\/\/ahangarany.ir\/courses\/product\/%d8%ad%d9%85%d8%a7%db%8c%d8%aa-%d9%85%d8%a7%d9%84%db%8c\/","title":{"rendered":"\u062d\u0645\u0627\u06cc\u062a \u0645\u0627\u0644\u06cc"},"content":{"rendered":"\t\t<div data-elementor-type=\"product-post\" data-elementor-id=\"748\" class=\"elementor elementor-748\" data-elementor-post-type=\"product\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4004993c e-flex e-con-boxed e-con e-parent\" data-id=\"4004993c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1c715e8 elementor-widget elementor-widget-shortcode\" data-id=\"1c715e8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n        <div\n            class=\"ah-donation-box\"\n            data-ajax=\"https:\/\/ahangarany.ir\/courses\/wp-admin\/admin-ajax.php\"\n            data-nonce=\"24ac7fb0a3\"\n        >\n\n            <div class=\"ah-donation-header\">\n\n                <div class=\"ah-donation-icon\">\n                    \u2665\n                <\/div>\n\n                <div>\n\n                    <h2>\n                        \u062d\u0645\u0627\u06cc\u062a \u0645\u0627\u0644\u06cc\n                    <\/h2>\n\n                    <p>\n                        \u0645\u0628\u0644\u063a \u0645\u0648\u0631\u062f\u0646\u0638\u0631 \u062e\u0648\u062f \u0631\u0627 \u0628\u0631\u0627\u06cc \u062d\u0645\u0627\u06cc\u062a \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.\n                    <\/p>\n\n                <\/div>\n\n            <\/div>\n\n\n            <!-- \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062d\u0645\u0627\u06cc\u062a\u200c\u06a9\u0646\u0646\u062f\u0647 -->\n\n            <div class=\"ah-donation-fields\">\n\n                <div class=\"ah-donation-field\">\n\n                    <label\n                        for=\"ah-donation-donor-name\"\n                        class=\"ah-donation-field-label\"\n                    >\n                        \u0646\u0627\u0645 \u0634\u0645\u0627\n                        <span>(\u0627\u062e\u062a\u06cc\u0627\u0631\u06cc)<\/span>\n                    <\/label>\n\n                    <input\n                        type=\"text\"\n                        id=\"ah-donation-donor-name\"\n                        class=\"ah-donation-text-input ah-donation-donor-name\"\n                        maxlength=\"100\"\n                        autocomplete=\"name\"\n                        placeholder=\"\u0646\u0627\u0645 \u062e\u0648\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f\"\n                    >\n\n                <\/div>\n\n\n                <div class=\"ah-donation-field\">\n\n                    <label\n                        for=\"ah-donation-donor-message\"\n                        class=\"ah-donation-field-label\"\n                    >\n                        \u067e\u06cc\u0627\u0645 \u0634\u0645\u0627\n                        <span>(\u0627\u062e\u062a\u06cc\u0627\u0631\u06cc)<\/span>\n                    <\/label>\n\n                    <textarea\n                        id=\"ah-donation-donor-message\"\n                        class=\"ah-donation-textarea ah-donation-donor-message\"\n                        maxlength=\"500\"\n                        rows=\"4\"\n                        placeholder=\"\u0627\u06af\u0631 \u062f\u0648\u0633\u062a \u062f\u0627\u0631\u06cc\u062f\u060c \u06cc\u06a9 \u067e\u06cc\u0627\u0645 \u062a\u0634\u06a9\u0631 \u06cc\u0627 \u06cc\u0627\u062f\u06af\u0627\u0631\u06cc \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f...\"\n                    ><\/textarea>\n\n                <\/div>\n\n            <\/div>\n\n\n            <div class=\"ah-donation-label\">\n                \u0645\u0628\u0644\u063a \u062d\u0645\u0627\u06cc\u062a \u0634\u0645\u0627\n            <\/div>\n\n\n            <div class=\"ah-donation-input-wrap\">\n\n                <input\n                    type=\"text\"\n                    class=\"ah-donation-input\"\n                    inputmode=\"decimal\"\n                    autocomplete=\"off\"\n                    placeholder=\"\u0645\u062b\u0644\u0627\u064b \u06f1\u066c\u06f0\u06f0\u06f0\u066c\u06f0\u06f0\u06f0\"\n                >\n\n                <span class=\"ah-donation-unit\">\n                    \u062a\u0648\u0645\u0627\u0646\n                <\/span>\n\n            <\/div>\n\n\n            <div class=\"ah-donation-suggestions\">\n\n                <button\n                    type=\"button\"\n                    data-amount=\"100000\"\n                    class=\"ah-donation-suggestion\"\n                >\n                    \u06f1\u06f0\u06f0 \u0647\u0632\u0627\u0631\n                <\/button>\n\n\n                <button\n                    type=\"button\"\n                    data-amount=\"1000000\"\n                    class=\"ah-donation-suggestion\"\n                >\n                    \u06f1 \u0645\u06cc\u0644\u06cc\u0648\u0646\n                <\/button>\n\n\n                <button\n                    type=\"button\"\n                    data-amount=\"2500000\"\n                    class=\"ah-donation-suggestion\"\n                >\n                    \u06f2.\u06f5 \u0645\u06cc\u0644\u06cc\u0648\u0646\n                <\/button>\n\n\n                <button\n                    type=\"button\"\n                    data-amount=\"5000000\"\n                    class=\"ah-donation-suggestion\"\n                >\n                    \u06f5 \u0645\u06cc\u0644\u06cc\u0648\u0646\n                <\/button>\n\n\n                <button\n                    type=\"button\"\n                    data-amount=\"7500000\"\n                    class=\"ah-donation-suggestion\"\n                >\n                    \u06f7.\u06f5 \u0645\u06cc\u0644\u06cc\u0648\u0646\n                <\/button>\n\n\n                <button\n                    type=\"button\"\n                    data-amount=\"10000000\"\n                    class=\"ah-donation-suggestion\"\n                >\n                    \u06f1\u06f0 \u0645\u06cc\u0644\u06cc\u0648\u0646\n                <\/button>\n\n            <\/div>\n\n\n            <button\n                type=\"button\"\n                class=\"ah-donation-submit\"\n            >\n\n                <span>\n                    \u0627\u0641\u0632\u0648\u062f\u0646 \u062d\u0645\u0627\u06cc\u062a \u0628\u0647 \u0633\u0628\u062f \u062e\u0631\u06cc\u062f\n                <\/span>\n\n                <span class=\"ah-donation-arrow\">\n                    \u2190\n                <\/span>\n\n            <\/button>\n\n\n            <div\n                class=\"ah-donation-message\"\n                aria-live=\"polite\"\n            ><\/div>\n\n        <\/div>\n\n\n        <style>\n\n\/* =========================================================\n   AHANGARANY DONATION - PREMIUM UI\n   \u0641\u0642\u0637 \u0638\u0627\u0647\u0631 - \u0628\u062f\u0648\u0646 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0631 \u0645\u0646\u0637\u0642 PHP \/ AJAX\n   ========================================================= *\/\n\n.ah-donation-box {\n    direction: rtl;\n    width: 100%;\n    max-width: 680px;\n    margin: 35px auto;\n    padding: 34px;\n    box-sizing: border-box;\n\n    background: #ffffff;\n    border: 1px solid #eeeeee;\n    border-radius: 28px;\n\n    box-shadow:\n        0 20px 60px rgba(0, 0, 0, .08),\n        0 4px 15px rgba(0, 0, 0, .035);\n\n    font-family:\n        Vazirmatn,\n        Tahoma,\n        sans-serif;\n\n    position: relative;\n    overflow: hidden;\n}\n\n\n\/* \u0646\u0648\u0627\u0631 \u0638\u0631\u06cc\u0641 \u0628\u0627\u0644\u0627\u06cc \u06a9\u0627\u0631\u062a *\/\n\n.ah-donation-box::before {\n    content: \"\";\n    position: absolute;\n    top: 0;\n    right: 0;\n    left: 0;\n    height: 4px;\n\n    background: linear-gradient(\n        90deg,\n        #111111,\n        #444444,\n        #111111\n    );\n}\n\n\n\/* =========================================================\n   HEADER\n   ========================================================= *\/\n\n.ah-donation-header {\n    display: flex;\n    align-items: center;\n    gap: 17px;\n    margin-bottom: 32px;\n}\n\n\n.ah-donation-icon {\n    width: 62px;\n    height: 62px;\n    min-width: 62px;\n\n    display: flex;\n    align-items: center;\n    justify-content: center;\n\n    border-radius: 19px;\n\n    background: linear-gradient(\n        145deg,\n        #fff4f4,\n        #ffeaea\n    );\n\n    color: #e53935;\n\n    font-size: 28px;\n\n    box-shadow:\n        inset 0 0 0 1px rgba(229,57,53,.08);\n}\n\n\n.ah-donation-header h2 {\n    margin: 0 0 7px;\n\n    color: #161616;\n\n    font-size: 24px;\n    line-height: 1.4;\n\n    font-weight: 900;\n    letter-spacing: -.4px;\n}\n\n\n.ah-donation-header p {\n    margin: 0;\n\n    color: #777777;\n\n    font-size: 13.5px;\n    line-height: 1.9;\n\n    font-weight: 400;\n}\n\n\n\/* =========================================================\n   DONOR INFORMATION\n   ========================================================= *\/\n\n.ah-donation-fields {\n    display: grid;\n    grid-template-columns: 1fr;\n    gap: 15px;\n    margin-bottom: 24px;\n}\n\n.ah-donation-field {\n    width: 100%;\n}\n\n.ah-donation-field-label {\n    display: flex;\n    align-items: center;\n    gap: 6px;\n    margin-bottom: 9px;\n    color: #242424;\n    font-size: 13px;\n    font-weight: 800;\n    line-height: 1.7;\n}\n\n.ah-donation-field-label span {\n    color: #999999;\n    font-size: 11px;\n    font-weight: 500;\n}\n\n.ah-donation-text-input,\n.ah-donation-textarea {\n    width: 100% !important;\n    box-sizing: border-box !important;\n    border: 2px solid #eeeeee !important;\n    border-radius: 15px !important;\n    background: #fafafa !important;\n    color: #111111 !important;\n    outline: none !important;\n    box-shadow: inset 0 1px 2px rgba(0,0,0,.02) !important;\n    font-family: Vazirmatn, Tahoma, sans-serif !important;\n    font-size: 14px !important;\n    font-weight: 500 !important;\n    transition:\n        border-color .2s ease,\n        background .2s ease,\n        box-shadow .2s ease;\n}\n\n.ah-donation-text-input {\n    height: 58px !important;\n    padding: 0 17px !important;\n}\n\n.ah-donation-textarea {\n    min-height: 105px !important;\n    padding: 15px 17px !important;\n    resize: vertical;\n    line-height: 1.9 !important;\n}\n\n.ah-donation-text-input::placeholder,\n.ah-donation-textarea::placeholder {\n    color: #b8b8b8 !important;\n    font-size: 12.5px !important;\n    font-weight: 500 !important;\n}\n\n.ah-donation-text-input:hover,\n.ah-donation-textarea:hover {\n    border-color: #d9d9d9 !important;\n}\n\n.ah-donation-text-input:focus,\n.ah-donation-textarea:focus {\n    border-color: #222222 !important;\n    background: #ffffff !important;\n    box-shadow:\n        0 0 0 4px rgba(0,0,0,.045),\n        0 8px 25px rgba(0,0,0,.05) !important;\n}\n\n\n\/* =========================================================\n   LABEL\n   ========================================================= *\/\n\n.ah-donation-label {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n\n    margin-bottom: 11px;\n\n    color: #242424;\n\n    font-size: 14px;\n    font-weight: 800;\n}\n\n\n.ah-donation-label::after {\n    content: \"\";\n\n    color: #999999;\n\n    font-size: 11px;\n    font-weight: 500;\n}\n\n\n\/* =========================================================\n   INPUT\n   ========================================================= *\/\n\n.ah-donation-input-wrap {\n    position: relative;\n}\n\n\n.ah-donation-input {\n    width: 100% !important;\n    height: 70px !important;\n\n    padding:\n        0 22px 0 95px !important;\n\n    box-sizing: border-box !important;\n\n    border:\n        2px solid #eeeeee !important;\n\n    border-radius: 18px !important;\n\n    background: #fafafa !important;\n\n    color: #111111 !important;\n\n    outline: none !important;\n\n    box-shadow:\n        inset 0 1px 2px rgba(0,0,0,.02) !important;\n\n    font-family:\n        Vazirmatn,\n        Tahoma,\n        sans-serif !important;\n\n    font-size: 21px !important;\n\n    font-weight: 800 !important;\n\n    transition:\n        border-color .2s ease,\n        background .2s ease,\n        box-shadow .2s ease,\n        transform .2s ease;\n}\n\n\n.ah-donation-input::placeholder {\n    color: #b8b8b8 !important;\n    font-size: 15px !important;\n    font-weight: 500 !important;\n}\n\n\n.ah-donation-input:hover {\n    border-color: #d9d9d9 !important;\n}\n\n\n.ah-donation-input:focus {\n    border-color: #222222 !important;\n\n    background: #ffffff !important;\n\n    box-shadow:\n        0 0 0 4px rgba(0,0,0,.045),\n        0 8px 25px rgba(0,0,0,.05) !important;\n}\n\n\n.ah-donation-unit {\n    position: absolute;\n\n    left: 18px;\n    top: 50%;\n\n    transform:\n        translateY(-50%);\n\n    height: 38px;\n\n    padding: 0 11px;\n\n    display: flex;\n    align-items: center;\n    justify-content: center;\n\n    border-radius: 10px;\n\n    background: #f0f0f0;\n\n    color: #666666;\n\n    font-size: 12px;\n    font-weight: 800;\n\n    pointer-events: none;\n}\n\n\n\/* =========================================================\n   SUGGESTED AMOUNTS\n   ========================================================= *\/\n\n.ah-donation-suggestions {\n    display: grid;\n\n    grid-template-columns:\n        repeat(3, 1fr);\n\n    gap: 10px;\n\n    margin-top: 16px;\n}\n\n\n.ah-donation-suggestion {\n    position: relative;\n\n    min-height: 50px;\n\n    padding: 0 10px;\n\n    border:\n        1px solid #e8e8e8;\n\n    border-radius: 14px;\n\n    background: #ffffff;\n\n    color: #444444;\n\n    font-family:\n        Vazirmatn,\n        Tahoma,\n        sans-serif;\n\n    font-size: 13px;\n\n    font-weight: 700;\n\n    cursor: pointer;\n\n    transition:\n        transform .18s ease,\n        border-color .18s ease,\n        background .18s ease,\n        color .18s ease,\n        box-shadow .18s ease;\n}\n\n\n.ah-donation-suggestion:hover {\n    transform: translateY(-2px);\n\n    border-color: #cfcfcf;\n\n    background: #fafafa;\n\n    box-shadow:\n        0 6px 18px rgba(0,0,0,.05);\n}\n\n\n.ah-donation-suggestion:active {\n    transform: translateY(0);\n}\n\n\n.ah-donation-suggestion.active {\n    border-color: #111111;\n\n    background: #111111;\n\n    color: #ffffff;\n\n    box-shadow:\n        0 7px 20px rgba(0,0,0,.13);\n}\n\n\n\/* \u0639\u0644\u0627\u0645\u062a \u0627\u0646\u062a\u062e\u0627\u0628 *\/\n\n.ah-donation-suggestion.active::after {\n    content: \"\u2713\";\n\n    position: absolute;\n\n    top: 5px;\n    left: 7px;\n\n    font-size: 10px;\n\n    opacity: .8;\n}\n\n\n\/* =========================================================\n   SUBMIT\n   ========================================================= *\/\n\n.ah-donation-submit {\n    width: 100%;\n    height: 64px;\n\n    margin-top: 24px;\n\n    padding: 0 23px;\n\n    border: 0;\n\n    border-radius: 17px;\n\n    background:\n        linear-gradient(\n            135deg,\n            #111111,\n            #292929\n        );\n\n    color: #ffffff;\n\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n\n    font-family:\n        Vazirmatn,\n        Tahoma,\n        sans-serif;\n\n    font-size: 15px;\n\n    font-weight: 800;\n\n    cursor: pointer;\n\n    box-shadow:\n        0 10px 25px rgba(0,0,0,.14);\n\n    transition:\n        transform .2s ease,\n        box-shadow .2s ease,\n        opacity .2s ease;\n}\n\n\n.ah-donation-submit:hover {\n    transform: translateY(-2px);\n\n    box-shadow:\n        0 14px 30px rgba(0,0,0,.19);\n}\n\n\n.ah-donation-submit:active {\n    transform: translateY(0);\n\n    box-shadow:\n        0 6px 15px rgba(0,0,0,.12);\n}\n\n\n.ah-donation-arrow {\n    width: 38px;\n    height: 38px;\n\n    display: flex;\n    align-items: center;\n    justify-content: center;\n\n    border-radius: 11px;\n\n    background: rgba(255,255,255,.1);\n\n    font-size: 21px;\n\n    transition:\n        transform .2s ease;\n}\n\n\n.ah-donation-submit:hover\n.ah-donation-arrow {\n    transform: translateX(-3px);\n}\n\n\n\/* \u062d\u0627\u0644\u062a loading *\/\n\n.ah-donation-submit.loading {\n    opacity: .6;\n\n    cursor: wait;\n\n    pointer-events: none;\n}\n\n\n\/* =========================================================\n   MESSAGE\n   ========================================================= *\/\n\n.ah-donation-message {\n    display: none;\n\n    margin-top: 14px;\n\n    padding: 12px 15px;\n\n    border-radius: 13px;\n\n    font-size: 12.5px;\n\n    line-height: 1.8;\n\n    font-weight: 700;\n}\n\n\n.ah-donation-message.error {\n    display: block;\n\n    background: #fff2f2;\n\n    border: 1px solid #ffd7d7;\n\n    color: #c62828;\n}\n\n\n\/* =========================================================\n   PRICE LABEL\n   ========================================================= *\/\n\n.ah-donation-price-label {\n    display: inline-flex;\n    align-items: center;\n\n    padding: 5px 10px;\n\n    border-radius: 8px;\n\n    background: #f7f7f7;\n\n    color: #555555;\n\n    font-family:\n        Vazirmatn,\n        Tahoma,\n        sans-serif;\n\n    font-size: 12px;\n\n    font-weight: 700;\n}\n\n\n\/* =========================================================\n   MOBILE\n   ========================================================= *\/\n\n@media (max-width: 600px) {\n\n    .ah-donation-box {\n        margin: 20px auto;\n\n        padding: 25px 17px 20px;\n\n        border-radius: 22px;\n    }\n\n\n    .ah-donation-header {\n        gap: 13px;\n\n        margin-bottom: 25px;\n    }\n\n\n    .ah-donation-icon {\n        width: 53px;\n        height: 53px;\n        min-width: 53px;\n\n        border-radius: 16px;\n\n        font-size: 24px;\n    }\n\n\n    .ah-donation-header h2 {\n        font-size: 20px;\n    }\n\n\n    .ah-donation-header p {\n        font-size: 12px;\n\n        line-height: 1.8;\n    }\n\n\n    .ah-donation-fields {\n        gap: 12px;\n        margin-bottom: 20px;\n    }\n\n\n    .ah-donation-field-label {\n        margin-bottom: 7px;\n        font-size: 12px;\n    }\n\n\n    .ah-donation-field-label span {\n        font-size: 10px;\n    }\n\n\n    .ah-donation-text-input {\n        height: 54px !important;\n        padding: 0 14px !important;\n        border-radius: 13px !important;\n        font-size: 13px !important;\n    }\n\n\n    .ah-donation-textarea {\n        min-height: 92px !important;\n        padding: 13px 14px !important;\n        border-radius: 13px !important;\n        font-size: 13px !important;\n    }\n\n\n    .ah-donation-text-input::placeholder,\n    .ah-donation-textarea::placeholder {\n        font-size: 11.5px !important;\n    }\n\n\n    .ah-donation-label {\n        font-size: 13px;\n    }\n\n\n    .ah-donation-label::after {\n        display: none !important;\n    }\n\n\n    .ah-donation-input {\n        height: 62px !important;\n\n        padding:\n            0 17px 0 83px !important;\n\n        border-radius: 15px !important;\n\n        font-size: 18px !important;\n    }\n\n\n    .ah-donation-input::placeholder {\n        font-size: 13px !important;\n    }\n\n\n    .ah-donation-unit {\n        left: 13px;\n\n        height: 34px;\n\n        padding: 0 9px;\n\n        font-size: 11px;\n    }\n\n\n    .ah-donation-suggestions {\n        grid-template-columns:\n            repeat(2, 1fr);\n\n        gap: 8px;\n\n        margin-top: 13px;\n    }\n\n\n    .ah-donation-suggestion {\n        min-height: 46px;\n\n        border-radius: 12px;\n\n        font-size: 12px;\n    }\n\n\n    .ah-donation-submit {\n        height: 59px;\n\n        margin-top: 19px;\n\n        border-radius: 14px;\n\n        padding: 0 17px;\n\n        font-size: 13px;\n    }\n\n\n    .ah-donation-arrow {\n        width: 34px;\n        height: 34px;\n\n        border-radius: 9px;\n\n        font-size: 18px;\n    }\n\n}\n\n\n\/* =========================================================\n   VERY SMALL MOBILE\n   ========================================================= *\/\n\n@media (max-width: 380px) {\n\n    .ah-donation-box {\n        padding:\n            23px 14px 18px;\n    }\n\n\n    .ah-donation-header h2 {\n        font-size: 18px;\n    }\n\n\n    .ah-donation-header p {\n        font-size: 11px;\n    }\n\n\n    .ah-donation-suggestion {\n        font-size: 11px;\n    }\n\n}\n\n<\/style>\n\n        <script>\n\n        (function () {\n\n            function initDonationBox(box) {\n\n                if (box.dataset.initialized === '1') {\n                    return;\n                }\n\n                box.dataset.initialized = '1';\n\n\n                const input =\n                    box.querySelector(\n                        '.ah-donation-input'\n                    );\n\n                const donorName =\n                    box.querySelector(\n                        '.ah-donation-donor-name'\n                    );\n\n                const donorMessage =\n                    box.querySelector(\n                        '.ah-donation-donor-message'\n                    );\n\n\n                const submit =\n                    box.querySelector(\n                        '.ah-donation-submit'\n                    );\n\n\n                const message =\n                    box.querySelector(\n                        '.ah-donation-message'\n                    );\n\n\n                const suggestions =\n                    box.querySelectorAll(\n                        '.ah-donation-suggestion'\n                    );\n\n\n                const ajaxUrl =\n                    box.dataset.ajax;\n\n\n                const nonce =\n                    box.dataset.nonce;\n\n\n                if (\n                    !input ||\n                    !submit\n                ) {\n                    return;\n                }\n\n\n                function toEnglishDigits(value) {\n\n                    const fa =\n                        '\u06f0\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9';\n\n                    const ar =\n                        '\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669';\n\n\n                    return String(value)\n\n                        .replace(\n                            \/[\u06f0-\u06f9]\/g,\n                            function (d) {\n                                return fa.indexOf(d);\n                            }\n                        )\n\n                        .replace(\n                            \/[\u0660-\u0669]\/g,\n                            function (d) {\n                                return ar.indexOf(d);\n                            }\n                        );\n                }\n\n\n                function formatPersian(value) {\n\n                    value =\n                        toEnglishDigits(value);\n\n                    value =\n                        value.replace(\n                            \/[^0-9]\/g,\n                            ''\n                        );\n\n\n                    if (!value) {\n                        return '';\n                    }\n\n\n                    const formatted =\n                        value.replace(\n                            \/\\B(?=(\\d{3})+(?!\\d))\/g,\n                            '\u066c'\n                        );\n\n\n                    const digits =\n                        '\u06f0\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9';\n\n\n                    return formatted.replace(\n                        \/[0-9]\/g,\n                        function (d) {\n                            return digits[d];\n                        }\n                    );\n                }\n\n\n                function showError(text) {\n\n                    message.textContent =\n                        text;\n\n                    message.classList.add(\n                        'error'\n                    );\n                }\n\n\n                function clearMessage() {\n\n                    message.textContent =\n                        '';\n\n                    message.classList.remove(\n                        'error'\n                    );\n                }\n\n\n                suggestions.forEach(\n                    function (button) {\n\n                        button.addEventListener(\n                            'click',\n                            function () {\n\n                                const amount =\n                                    this.dataset.amount;\n\n\n                                input.value =\n                                    formatPersian(\n                                        amount\n                                    );\n\n\n                                suggestions.forEach(\n                                    function (item) {\n\n                                        item.classList.remove(\n                                            'active'\n                                        );\n\n                                    }\n                                );\n\n\n                                this.classList.add(\n                                    'active'\n                                );\n\n\n                                clearMessage();\n\n                                input.focus();\n                            }\n                        );\n\n                    }\n                );\n\n\n                input.addEventListener(\n                    'input',\n                    function () {\n\n                        this.value =\n                            formatPersian(\n                                this.value\n                            );\n\n\n                        suggestions.forEach(\n                            function (item) {\n\n                                item.classList.remove(\n                                    'active'\n                                );\n\n                            }\n                        );\n\n\n                        clearMessage();\n                    }\n                );\n\n\n                submit.addEventListener(\n                    'click',\n                    function () {\n\n                        clearMessage();\n\n\n                        const amount =\n                            toEnglishDigits(\n                                input.value\n                            )\n                            .replace(\n                                \/[^0-9]\/g,\n                                ''\n                            );\n\n\n                        if ( ! amount ) {\n\n                            showError(\n                                '\u0644\u0637\u0641\u0627\u064b \u0645\u0628\u0644\u063a \u062f\u0648\u0646\u06cc\u062a \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.'\n                            );\n\n                            input.focus();\n\n                            return;\n                        }\n\n\n                        submit.classList.add(\n                            'loading'\n                        );\n\n\n                        const formData =\n                            new FormData();\n\n\n                        formData.append(\n                            'action',\n                            'ah_add_donation'\n                        );\n\n\n                        formData.append(\n                            'nonce',\n                            nonce\n                        );\n\n\n                        formData.append(\n                            'amount',\n                            amount\n                        );\n\n                        formData.append(\n                            'donor_name',\n                            donorName\n                                ? donorName.value.trim()\n                                : ''\n                        );\n\n                        formData.append(\n                            'donor_message',\n                            donorMessage\n                                ? donorMessage.value.trim()\n                                : ''\n                        );\n\n\n                        fetch(\n                            ajaxUrl,\n                            {\n                                method: 'POST',\n\n                                credentials: 'same-origin',\n\n                                body: formData\n                            }\n                        )\n\n                        .then(\n                            function (response) {\n                                return response.json();\n                            }\n                        )\n\n                        .then(\n                            function (result) {\n\n                                if (\n                                    result.success &&\n                                    result.data &&\n                                    result.data.cart_url\n                                ) {\n\n                                    window.location.href =\n                                        result.data.cart_url;\n\n                                    return;\n                                }\n\n\n                                const error =\n                                    result &&\n                                    result.data &&\n                                    result.data.message\n                                        ? result.data.message\n                                        : '\u0627\u0641\u0632\u0648\u062f\u0646 \u0628\u0647 \u0633\u0628\u062f \u062e\u0631\u06cc\u062f \u0627\u0646\u062c\u0627\u0645 \u0646\u0634\u062f.';\n\n\n                                showError(\n                                    error\n                                );\n\n\n                                submit.classList.remove(\n                                    'loading'\n                                );\n                            }\n                        )\n\n                        .catch(\n                            function () {\n\n                                showError(\n                                    '\u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0627 \u0633\u0627\u06cc\u062a \u0628\u0631\u0642\u0631\u0627\u0631 \u0646\u0634\u062f. \u0644\u0637\u0641\u0627\u064b \u062f\u0648\u0628\u0627\u0631\u0647 \u062a\u0644\u0627\u0634 \u06a9\u0646\u06cc\u062f.'\n                                );\n\n\n                                submit.classList.remove(\n                                    'loading'\n                                );\n                            }\n                        );\n\n                    }\n                );\n\n            }\n\n\n            function initAll() {\n\n                document\n                    .querySelectorAll(\n                        '.ah-donation-box'\n                    )\n                    .forEach(\n                        initDonationBox\n                    );\n            }\n\n\n            if (\n                document.readyState ===\n                'loading'\n            ) {\n\n                document.addEventListener(\n                    'DOMContentLoaded',\n                    initAll\n                );\n\n            } else {\n\n                initAll();\n            }\n\n\n            \/*\n             * \u0628\u0631\u0627\u06cc Elementor\n             *\/\n            if (\n                window.jQuery\n            ) {\n\n                jQuery(document).on(\n                    'elementor\/popup\/show',\n                    function () {\n                        initAll();\n                    }\n                );\n            }\n\n        })();\n\n        <\/script>\n\n        <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"featured_media":862,"comment_status":"open","ping_status":"closed","template":"elementor_header_footer","meta":[],"product_brand":[],"product_cat":[15],"product_tag":[],"class_list":["post-748","product","type-product","status-publish","has-post-thumbnail","product_cat-15","first","instock","shipping-taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/ahangarany.ir\/courses\/wp-json\/wp\/v2\/product\/748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahangarany.ir\/courses\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/ahangarany.ir\/courses\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/ahangarany.ir\/courses\/wp-json\/wp\/v2\/comments?post=748"}],"version-history":[{"count":26,"href":"https:\/\/ahangarany.ir\/courses\/wp-json\/wp\/v2\/product\/748\/revisions"}],"predecessor-version":[{"id":776,"href":"https:\/\/ahangarany.ir\/courses\/wp-json\/wp\/v2\/product\/748\/revisions\/776"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ahangarany.ir\/courses\/wp-json\/wp\/v2\/media\/862"}],"wp:attachment":[{"href":"https:\/\/ahangarany.ir\/courses\/wp-json\/wp\/v2\/media?parent=748"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/ahangarany.ir\/courses\/wp-json\/wp\/v2\/product_brand?post=748"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/ahangarany.ir\/courses\/wp-json\/wp\/v2\/product_cat?post=748"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/ahangarany.ir\/courses\/wp-json\/wp\/v2\/product_tag?post=748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}