HEX
Server: Apache/2.4.41
System: Linux mainweb 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: nationalmedicaregrp (1119)
PHP: 8.3.7
Disabled: exec,passthru,shell_exec,system,popen,proc_open,pcntl_exec
Upload Files
File: /home/commandorestoration/public_html/wp-content/plugins/gtm-kit/assets/admin/389.js
"use strict";(globalThis.webpackChunkgtm_kit_settings=globalThis.webpackChunkgtm_kit_settings||[]).push([[389],{6992:(t,e,i)=>{i.d(e,{A:()=>r});var s=i(6427),a=i(6087),l=i(5280),n=i(1835),o=i(790);const r=(0,a.memo)((({title:t,label:e,optionGroup:i="general",optionName:r,disabled:m=!1,narrow:g=!1,premium:d=!1,notificationId:c=""})=>{const k=(0,a.useId)(),[h,u]=(0,l.G)(i,r),{removeNotification:x}=(0,n.h)(),p="gtmkit-settings-field-wrap "+(g?"gtmkit-py-2":"gtmkit-py-4");return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:p,children:(0,o.jsx)(s.BaseControl,{label:d?(0,o.jsxs)(o.Fragment,{children:[t,(0,o.jsx)("span",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-normal gtmkit-rounded-full gtmkit-py-0.5 gtmkit-px-2 gtmkit-h-5 gtmkit-leading-5 gtmkit-bg-color-success gtmkit-ml-6",children:"Premium"})]}):t,id:k,children:(0,o.jsx)(s.ToggleControl,{label:e,checked:!m&&Boolean(h),onChange:()=>{u(!Boolean(h)),c&&x(c)},disabled:m})})})})}))},237:(t,e,i)=>{i.d(e,{A:()=>r});var s=i(6087),a=i(790);const l=(0,s.memo)((({as:t="h3",title:e="",children:i,className:s="",...l})=>(0,a.jsxs)(t,{...l,className:"gtmkit-font-bold gtmkit-text-lg gtmkit-px-8 gtmkit-py-4 gtmkit-border-b gtmkit-border-color-grey gtmkit-flex gtmkit-items-center "+s,children:[e,i]}))),n=(0,s.memo)((({as:t="div",children:e,className:i="",...s})=>(0,a.jsx)(t,{...s,className:"gtmkit-px-8 gtmkit-py-6 "+i,children:e}))),o=(0,s.forwardRef)((({children:t,className:e="",disabled:i=!1,...s},l)=>(0,a.jsx)("div",{...s,className:"gtmkit-mb-12 gtmkit-border gtmkit-bg-white gtmkit-max-w-screen-lg gtmkit-border-color-grey gtmkit-rounded "+e+(i?"gtmkit-opacity-60":""),ref:l,children:t})));o.Header=l,o.Content=n;const r=o},7389:(t,e,i)=>{i.r(e),i.d(e,{default:()=>o});var s=i(7723),a=i(6992),l=i(237),n=i(790);const o=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8",children:(0,s.__)("User Data","gtm-kit")}),(0,n.jsxs)(l.A,{children:[(0,n.jsx)(l.A.Header,{title:(0,s.__)("Warning!","gtm-kit"),className:"gtmkit-text-red-600"}),(0,n.jsxs)(l.A.Content,{className:"gtmkit-space-y-2",children:[(0,n.jsx)("p",{children:(0,s.__)("Including user data is not compatible with full page caching.","gtm-kit")}),(0,n.jsx)("p",{children:(0,s.__)("Full page caching will cache user data making it the same for all users. There are ways around this, but it depends on the chosen cache solution and is only for advanced users.","gtm-kit")})]})]}),(0,n.jsxs)(l.A,{children:[(0,n.jsx)(l.A.Header,{title:(0,s.__)("User Data Settings","gtm-kit")}),(0,n.jsxs)(l.A.Content,{children:[(0,n.jsx)(a.A,{title:(0,s.__)("Logged in","gtm-kit"),id:"logged-in",label:(0,s.__)("Include whether the user is logged in.","gtm-kit"),optionName:"datalayer_logged_in"}),(0,n.jsx)(a.A,{title:(0,s.__)("User ID","gtm-kit"),id:"user-id",label:(0,s.__)("Include the user ID if the user is logged in.","gtm-kit"),optionName:"datalayer_user_id"}),(0,n.jsx)(a.A,{title:(0,s.__)("User role","gtm-kit"),id:"user-role",label:(0,s.__)("Include the user role if the user is logged in.","gtm-kit"),optionName:"datalayer_user_role"})]})]})]})},1835:(t,e,i)=>{i.d(e,{h:()=>l});var s=i(6087),a=i(282);const l=()=>{var t,e;const{notifications:i,setNotificationStatus:l,isUpdatingNotifications:n}=(0,s.useContext)(a.V2),o=(0,s.useCallback)((t=>l(t,"dismiss")),[l]),r=(0,s.useCallback)((t=>l(t,"remove")),[l]),m=null!==(t=i?.metrics?.total)&&void 0!==t?t:0,g=null!==(e=i?.metrics?.problem)&&void 0!==e?e:0;return{notifications:i,dismissNotification:o,removeNotification:r,isUpdatingNotifications:n,totalNotifications:m,problemNotifications:g,hasProblems:g>0,hasNotifications:m>0}}},5280:(t,e,i)=>{i.d(e,{G:()=>l});var s=i(6087),a=i(3951);const l=(t,e)=>{const{settings:i,updateStateSettings:l}=(0,s.useContext)(a.ph),n=i?.[t]?.[e];return[n,(0,s.useCallback)((i=>{l(t,e,i)}),[t,e,l])]}}}]);