{"id":35425,"date":"2024-07-17T22:16:10","date_gmt":"2024-07-17T19:16:10","guid":{"rendered":"s:22:\"https:\/\/ghc.sa\/Calc-en\";"},"modified":"2024-10-09T23:27:36","modified_gmt":"2024-10-09T20:27:36","slug":"calc-en","status":"publish","type":"page","link":"https:\/\/www.ghc.sa\/en\/calc-en\/","title":{"rendered":"Calc-en"},"content":{"rendered":"<p>[stm-calc id=&#8221;35423&#8243;]<\/p>\n\n\n<script>\nfunction wrapWordsInSpans(element) {\n  const children = Array.from(element.childNodes);\n  children.forEach((child) => {\n    if (child.nodeType === Node.TEXT_NODE) {\n      const text = child.textContent;\n      const words = text.split(\/\\s+\/);\n      const spans = words.map((word) => `<span style=\"display:inline-block\">${word}<\/span>`);\n      const wrapper = document.createElement(\"span\");\n      wrapper.innerHTML = spans.join(\" \");\n      element.innerHTML = wrapper.innerHTML;\n    } else if (child.nodeType === Node.ELEMENT_NODE) {\n      wrapWordsInSpans(child);\n    }\n  });\n}\n\nfunction exportDivContent() {\n  var divContent = document.querySelector(\".calc-subtotal-list-accordion\");\n\n  if (divContent) {\n    var clonedDivContent = divContent.cloneNode(true);\n    clonedDivContent.style.display = \"none\";\n    document.body.appendChild(clonedDivContent);\n\n    var wrapper = document.createElement(\"div\");\n    wrapper.style.fontFamily = \"'Noto Kufi Arabic', sans-serif\";\n    wrapper.style.maxWidth = \"900px\";\n    wrapper.style.margin = \"0 auto\";\n    wrapper.style.padding = \"20px\";\n    wrapper.style.boxSizing = \"border-box\";\n    wrapper.style.whiteSpace = \"pre-wrap\";\n\n    var style = document.createElement(\"style\");\n    style.appendChild(\n      document.createTextNode(`\n        @import url('https:\/\/fonts.googleapis.com\/css2?family=Noto+Kufi+Arabic:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');\n        body { font-family: 'Noto Kufi Arabic', sans-serif; }\n      `)\n    );\n    wrapper.appendChild(style);\n\n    var header = document.createElement(\"div\");\n    header.style.display = \"flex\";\n    header.style.justifyContent = \"space-between\";\n    header.style.alignItems = \"center\";\n    header.style.marginBottom = \"20px\";\n\n    var currentDate = document.createElement(\"div\");\n    currentDate.textContent = formatDate(new Date());\n    currentDate.style.fontSize = \"18px\";\n    currentDate.style.fontWeight = \"bold\";\n    currentDate.style.color = \"#333\";\n    header.appendChild(currentDate);\n\n    var logoImage = document.createElement(\"img\");\n    logoImage.src = \"https:\/\/ghc.sa\/wp-content\/uploads\/2022\/12\/logo.png\";\n    logoImage.style.maxHeight = \"60px\";\n    header.appendChild(logoImage);\n\n    var content = document.createElement(\"table\");\n    content.style.width = \"100%\";\n    content.style.borderCollapse = \"collapse\";\n    content.style.border = \"1px solid grey\";\n\n    var pageUrl = window.location.href;\n    var isEnglish = pageUrl.includes(\"en\");\n    content.style.direction = isEnglish ? \"ltr\" : \"rtl\";\n\n    var childDivs = clonedDivContent.querySelectorAll(\"div\");\n    let rows = [];\n    childDivs.forEach(function (childDiv) {\n      if (window.getComputedStyle(childDiv).display === \"flex\") {\n        var className = childDiv.className;\n        if (\n          className.startsWith(\"validated_form_field_\") ||\n          className.startsWith(\"dropDown_field_id_\")\n        ) {\n          var row = document.createElement(\"tr\");\n          var cell = document.createElement(\"td\");\n          cell.style.padding = \"15px 20px\";\n          cell.style.borderBottom = \"1px solid grey\";\n          cell.style.display = \"flex\";\n          cell.style.justifyContent = \"space-between\";\n\n          var spans = childDiv.querySelectorAll(\"span\");\n          spans.forEach((span) => wrapWordsInSpans(span));\n\n          cell.append(...spans);\n          row.appendChild(cell);\n          rows.push(row);\n        }\n      }\n    });\n\n    rows.forEach((row) => content.appendChild(row));\n\n    var totalFieldDiv = document.getElementById(\"total_field_id_10\");\n    if (totalFieldDiv) {\n      var clonedTotalFieldDiv = totalFieldDiv.cloneNode(true);\n      clonedTotalFieldDiv.style.display = \"none\";\n      document.body.appendChild(clonedTotalFieldDiv);\n\n      var totalRow = document.createElement(\"tr\");\n      var totalCell = document.createElement(\"td\");\n      totalCell.style.padding = \"15px 20px\";\n      totalCell.style.border = \"1px solid grey\";\n      totalCell.style.display = \"flex\";\n      totalCell.style.justifyContent = \"space-between\";\n      totalCell.style.fontWeight = \"bold\";\n\n      var totalSpans = clonedTotalFieldDiv.querySelectorAll(\"span\");\n      totalSpans.forEach((span) => wrapWordsInSpans(span));\n\n      totalCell.append(...totalSpans);\n      totalRow.appendChild(totalCell);\n      content.appendChild(totalRow);\n    }\n\n    wrapper.appendChild(header);\n    wrapper.appendChild(content);\n\n    \/\/ Add the line above the existing note\n    var note = document.createElement(\"div\");\n   var countryNames = Array.from(\n  clonedDivContent.querySelectorAll('.inner[data-type=\"multi-option-summary\"] .sub-inner .sub-item-title')\n)\n.map((span) => span.textContent.trim())\n.filter((name) => name);\n\n    \/\/ Create a new line for Arabic layout (RTL)\n    var lineText = isEnglish\n      ? `Fees have been paid and the pharmaceutical product registered in the following countries: ${countryNames.join(\n          \", \"\n        )}`\n      : `\u062a\u0645 \u062f\u0641\u0639 \u0627\u0644\u0631\u0633\u0648\u0645 \u0648\u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u0645\u0646\u062a\u062c \u0627\u0644\u062f\u0648\u0627\u0626\u064a \u0641\u064a \u0627\u0644\u0628\u0644\u062f\u0627\u0646 \u0627\u0644\u062a\u0627\u0644\u064a\u0629 `;\n\n    note.style.marginTop = \"20px\";\n    note.style.fontSize = \"14px\";\n    note.style.color = \"#333\";\n    note.style.display = \"flex\";\n    note.style.justifyContent = isEnglish ? \"left\" : \"right\";\n    note.style.direction = isEnglish ? \"ltr\" : \"rtl\";\n\n    var textSpan = document.createElement(\"span\");\n    textSpan.textContent = lineText;\n\n    var countriesSpan = document.createElement(\"span\");\n    countriesSpan.textContent = countryNames.join(\", \");\n    countriesSpan.style.marginLeft = isEnglish ? \"10px\" : \"0\";\n    countriesSpan.style.marginRight = isEnglish ? \"0\" : \"10px\";\n\n    note.appendChild(textSpan);\n    if (!isEnglish) note.appendChild(countriesSpan);\n    else note.insertBefore(countriesSpan, textSpan.nextSibling);\n\n    wrapper.appendChild(note);\n\n    \/\/ Add the existing note at the end\n    var existingNote = document.createElement(\"div\");\n    existingNote.textContent = isEnglish\n      ? \"The receipt for the amount must be uploaded and attached to the financial transfer receipt and registration certifications for the product or manufacture when submitting the application on the Taawon portal.\"\n      : \"\u064a\u062c\u0628 \u062a\u062d\u0645\u064a\u0644 \u0625\u064a\u0635\u0627\u0644 \u0627\u0644\u0645\u0628\u0644\u063a \u0648\u0625\u0631\u0641\u0627\u0642\u0647 \u0645\u0639 \u0625\u064a\u0635\u0627\u0644 \u0627\u0644\u062d\u0648\u0627\u0644\u0629 \u0627\u0644\u0645\u0627\u0644\u064a\u0629 \u0648\u0634\u0647\u0627\u062f\u0627\u062a \u0627\u0644\u062a\u0633\u062c\u064a\u0644 \u0644\u0644\u0645\u0633\u062a\u062d\u0636\u0631 \u0623\u0648 \u0627\u0644\u0645\u0635\u0646\u0639 \u0639\u0646\u062f \u062a\u0642\u062f\u064a\u0645 \u0627\u0644\u0637\u0644\u0628 \u0639\u0644\u0649 \u0628\u0648\u0627\u0628\u0629 \u062a\u0639\u0627\u0648\u0646\";\n    existingNote.style.marginTop = \"20px\";\n    existingNote.style.fontSize = \"14px\";\n    existingNote.style.color = \"red\";\n    existingNote.style.textAlign = isEnglish ? \"left\" : \"right\";\n    existingNote.style.direction = isEnglish ? \"ltr\" : \"rtl\";\n    wrapper.appendChild(existingNote);\n\n    var element = document.createElement(\"div\");\n    element.innerHTML = wrapper.outerHTML;\n\n    html2pdf().from(element).save(\"summary.pdf\");\n\n    setTimeout(function () {\n      document.body.removeChild(clonedDivContent);\n      var totalFieldDiv = document.getElementById(\"total_field_id_10\");\n      if (totalFieldDiv) {\n        document.body.removeChild(totalFieldDiv);\n      }\n    }, 100);\n  } else {\n    console.error(\"Div not found.\");\n  }\n}\n\nfunction formatDate(date) {\n  var year = date.getFullYear();\n  var month = (\"0\" + (date.getMonth() + 1)).slice(-2);\n  var day = (\"0\" + date.getDate()).slice(-2);\n  return year + \"-\" + month + \"-\" + day;\n}\n\nfunction createExportButton() {\n  var button = document.createElement(\"button\");\n  var pageUrl = window.location.href;\n  button.textContent = pageUrl.includes(\"en\") ? \"Download PDF\" : \"\u062a\u062d\u0645\u06cc\u0644 \u0645\u0644\u0641 PDF\";\n  button.id = \"pdf-d-btn-mo\";\n  button.style.margin = \"20px auto\";\n  button.style.height = \"40px\";\n  button.style.width = \"40%\";\n  button.style.minWidth = \"200px\";\n  button.style.maxWidth = \"350px\";\n  button.style.backgroundColor = \"#00b163\";\n  button.style.color = \"#fff\";\n  button.style.fontWeight = \"500\";\n  button.style.border = \"1px solid #00b163\";\n  button.style.borderRadius = \"5px\";\n  button.style.display = \"none\";\n  button.style.cursor = \"pointer\";\n  button.style.transition = \"background-color 0.3s ease\";\n\n  button.addEventListener(\"mouseover\", function () {\n    button.style.backgroundColor = \"#009a52\";\n  });\n  button.addEventListener(\"mouseout\", function () {\n    button.style.backgroundColor = \"#00b163\";\n  });\n\n  button.addEventListener(\"click\", function () {\n    exportDivContent();\n  });\n\n  document.querySelector(\"body\").appendChild(button);\n}\n\ncreateExportButton();\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>[stm-calc id=&#8221;35423&#8243;]<\/p>\n","protected":false},"author":38,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-35425","page","type-page","status-publish","hentry"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"[stm-calc id=&quot;35423&quot;]\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.ghc.sa\/en\/calc-en\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"GHC Landing - GHC\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Calc-en - GHC Landing\" \/>\n\t\t<meta property=\"og:description\" content=\"[stm-calc id=&quot;35423&quot;]\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.ghc.sa\/en\/calc-en\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-07-17T19:16:10+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-10-09T20:27:36+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Calc-en - GHC Landing\" \/>\n\t\t<meta name=\"twitter:description\" content=\"[stm-calc id=&quot;35423&quot;]\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/calc-en\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/calc-en\\\/#listItem\",\"name\":\"Calc-en\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/calc-en\\\/#listItem\",\"position\":2,\"name\":\"Calc-en\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/#listItem\",\"name\":\"Home\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/#organization\",\"name\":\"GHC Landing\",\"description\":\"GHC\",\"url\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ghc.sa\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/Favicon.svg\",\"@id\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/calc-en\\\/#organizationLogo\",\"width\":197,\"height\":207},\"image\":{\"@id\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/calc-en\\\/#organizationLogo\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/calc-en\\\/#webpage\",\"url\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/calc-en\\\/\",\"name\":\"Calc-en - GHC Landing\",\"description\":\"[stm-calc id=\\\"35423\\\"]\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/calc-en\\\/#breadcrumblist\"},\"datePublished\":\"2024-07-17T22:16:10+03:00\",\"dateModified\":\"2024-10-09T23:27:36+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/\",\"name\":\"GHC Landing\",\"description\":\"GHC\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ghc.sa\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Calc-en - GHC Landing","description":"[stm-calc id=\"35423\"]","canonical_url":"https:\/\/www.ghc.sa\/en\/calc-en\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/www.ghc.sa\/en\/calc-en\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.ghc.sa\/en\/#listItem","position":1,"name":"Home","item":"https:\/\/www.ghc.sa\/en\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ghc.sa\/en\/calc-en\/#listItem","name":"Calc-en"}},{"@type":"ListItem","@id":"https:\/\/www.ghc.sa\/en\/calc-en\/#listItem","position":2,"name":"Calc-en","previousItem":{"@type":"ListItem","@id":"https:\/\/www.ghc.sa\/en\/#listItem","name":"Home"}}]},{"@type":"Organization","@id":"https:\/\/www.ghc.sa\/en\/#organization","name":"GHC Landing","description":"GHC","url":"https:\/\/www.ghc.sa\/en\/","logo":{"@type":"ImageObject","url":"https:\/\/www.ghc.sa\/wp-content\/uploads\/2022\/12\/Favicon.svg","@id":"https:\/\/www.ghc.sa\/en\/calc-en\/#organizationLogo","width":197,"height":207},"image":{"@id":"https:\/\/www.ghc.sa\/en\/calc-en\/#organizationLogo"}},{"@type":"WebPage","@id":"https:\/\/www.ghc.sa\/en\/calc-en\/#webpage","url":"https:\/\/www.ghc.sa\/en\/calc-en\/","name":"Calc-en - GHC Landing","description":"[stm-calc id=\"35423\"]","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.ghc.sa\/en\/#website"},"breadcrumb":{"@id":"https:\/\/www.ghc.sa\/en\/calc-en\/#breadcrumblist"},"datePublished":"2024-07-17T22:16:10+03:00","dateModified":"2024-10-09T23:27:36+03:00"},{"@type":"WebSite","@id":"https:\/\/www.ghc.sa\/en\/#website","url":"https:\/\/www.ghc.sa\/en\/","name":"GHC Landing","description":"GHC","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.ghc.sa\/en\/#organization"}}]},"og:locale":"en_US","og:site_name":"GHC Landing - GHC","og:type":"article","og:title":"Calc-en - GHC Landing","og:description":"[stm-calc id=&quot;35423&quot;]","og:url":"https:\/\/www.ghc.sa\/en\/calc-en\/","article:published_time":"2024-07-17T19:16:10+00:00","article:modified_time":"2024-10-09T20:27:36+00:00","twitter:card":"summary_large_image","twitter:title":"Calc-en - GHC Landing","twitter:description":"[stm-calc id=&quot;35423&quot;]"},"aioseo_meta_data":{"post_id":"35425","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"WebPage","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-07-17 19:18:52","updated":"2025-08-06 09:40:28","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ghc.sa\/en\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCalc-en\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.ghc.sa\/en\/"},{"label":"Calc-en","link":"https:\/\/www.ghc.sa\/en\/calc-en\/"}],"_links":{"self":[{"href":"https:\/\/www.ghc.sa\/en\/wp-json\/wp\/v2\/pages\/35425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ghc.sa\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.ghc.sa\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.ghc.sa\/en\/wp-json\/wp\/v2\/users\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ghc.sa\/en\/wp-json\/wp\/v2\/comments?post=35425"}],"version-history":[{"count":0,"href":"https:\/\/www.ghc.sa\/en\/wp-json\/wp\/v2\/pages\/35425\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ghc.sa\/en\/wp-json\/wp\/v2\/media?parent=35425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}