Warning: Undefined array key "referer" in /home/gpservice/public_html/chatgpt/functions.php on line 177

Warning: Undefined property: stdClass::$ip in /home/gpservice/public_html/chatgpt/functions.php on line 188

Warning: Undefined variable $infos in /home/gpservice/public_html/chatgpt/functions.php on line 395

Warning: Undefined variable $location in /home/gpservice/public_html/chatgpt/functions.php on line 396

Warning: Cannot modify header information - headers already sent by (output started at /home/gpservice/public_html/chatgpt/functions.php:177) in /home/gpservice/public_html/chatgpt/functions.php on line 137
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,48078,e=>{"use strict";var t=e.i(52088);function r(e,r,n){let a=n||(0,t.generateUUID)();return window.fbq?window.fbq("track",e,r,{eventID:a}):console.warn("[Meta Pixel] fbq not loaded, skipping:",e),a}function n(){if("u"0&&(n.content_ids=t.slice(0,10),n.content_type="product"),r("Search",n)}function d(e){return r("CompleteRegistration",{currency:e?.currency||"USD",value:e?.value||0,status:e?.status||"complete"})}function l(e){return r("Subscribe",{value:e?.value||0,currency:e?.currency||"USD",content_name:e?.planName})}function u(e){return r("AddPaymentInfo",{content_ids:e.contentIds,content_type:"product",value:e.total,currency:e.currency||"USD"})}function m(e){return r("Lead",{currency:e?.currency||"USD",value:e?.value||0})}e.s(["fbAddPaymentInfo",()=>u,"fbAddToCart",()=>i,"fbCompleteRegistration",()=>d,"fbInitiateCheckout",()=>o,"fbLead",()=>m,"fbPurchase",()=>c,"fbSearch",()=>s,"fbSubscribe",()=>l,"fbViewContent",()=>a,"getMetaCookies",()=>n])},47555,e=>{"use strict";var t=e.i(79606),r=e.i(52155),n=e.i(16047),a=e.i(52088);let i=r.createContext(null);function o(){let e=r.useContext(i);if(!e)throw Error("Accordion components must be used within ");return e}let c=r.forwardRef(({children:e,className:n,...o},c)=>{let[s,d]=r.useState(()=>"single"===o.type&&o.defaultValue?new Set([o.defaultValue]):"multiple"===o.type&&o.defaultValue?new Set(o.defaultValue):new Set),l=r.useCallback(e=>{d(t=>{let r=new Set(t);if(r.has(e)){if("single"===o.type&&!o.collapsible)return t;r.delete(e)}else"single"===o.type&&r.clear(),r.add(e);return r})},[o.type,o.collapsible]),u=r.useMemo(()=>({type:o.type,openItems:s,toggle:l}),[o.type,s,l]);return(0,t.jsx)(i.Provider,{value:u,children:(0,t.jsx)("div",{ref:c,className:(0,a.cn)("space-y-3",n),children:e})})});c.displayName="Accordion";let s=r.createContext(null);function d(){let e=r.useContext(s);if(!e)throw Error("AccordionItem components must be used within ");return e}let l=r.forwardRef(({value:e,children:n,className:i},c)=>{let{openItems:d}=o(),l=d.has(e),u=r.useMemo(()=>({value:e,isOpen:l}),[e,l]);return(0,t.jsx)(s.Provider,{value:u,children:(0,t.jsx)("div",{ref:c,className:(0,a.cn)("overflow-hidden rounded-xl border border-gray-200 bg-white",i),children:n})})});l.displayName="AccordionItem";let u=r.forwardRef(({children:e,className:r,...i},c)=>{let{toggle:s}=o(),{value:l,isOpen:u}=d(),m=`accordion-trigger-${l}`,p=`accordion-content-${l}`;return(0,t.jsxs)("button",{ref:c,type:"button",id:m,onClick:()=>s(l),"aria-expanded":u,"aria-controls":p,className:(0,a.cn)("flex w-full items-center justify-between p-4 text-left font-medium text-gray-900 transition-colors hover:bg-gray-50",r),...i,children:[e,(0,t.jsx)(n.ChevronDown,{className:(0,a.cn)("h-5 w-5 shrink-0 text-gray-500 transition-transform duration-200",u&&"rotate-180"),"aria-hidden":"true"})]})});u.displayName="AccordionTrigger";let m=r.forwardRef(({children:e,className:r},n)=>{let{value:i,isOpen:o}=d(),c=`accordion-content-${i}`,s=`accordion-trigger-${i}`;return(0,t.jsx)("div",{ref:n,id:c,role:"region","aria-labelledby":s,className:(0,a.cn)("grid transition-all duration-200 ease-in-out",o?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)("div",{className:(0,a.cn)("border-t border-gray-200 p-4",r),children:e})})})});m.displayName="AccordionContent",e.s(["Accordion",()=>c,"AccordionContent",()=>m,"AccordionItem",()=>l,"AccordionTrigger",()=>u])},50428,e=>{"use strict";let t=(0,e.i(77379).default)("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);e.s(["Gift",()=>t],50428)},57207,e=>{"use strict";var t=e.i(79606),r=e.i(52155),n=e.i(44110),a=e.i(21715),i=e.i(99758),o=e.i(90498),c=e.i(50428),s=e.i(88819),d=e.i(37219),l=e.i(55371);e.i(55885);var u=e.i(11045),m=e.i(71292),p=e.i(60112),g=e.i(85622),h=e.i(52088),f=e.i(48078),b=e.i(81958),y=e.i(33707),x=e.i(61994);let v={MONTH:"oneMonth",SIX_MONTH:"sixMonth",YEAR:"oneYear",LIFETIME:"lifetime"};function w({apiPlans:e,locale:w}){let N=(0,n.useTranslations)("premium"),C=(0,a.useRouter)(),{addItem:j,hasItem:P,applyCoupon:I,items:A}=(0,s.useCartStore)(),{isAuthenticated:S}=(0,d.useAuth)(),T=(0,b.isHalloweenActive)(),_=(0,y.isBlackFridayActive)(),D=_?y.BLACKFRIDAY_COUPON:T?b.HALLOWEEN_COUPON:"PTLT15",k=_?y.BLACKFRIDAY_DISCOUNT_PERCENT/100:T?b.HALLOWEEN_DISCOUNT_PERCENT/100:.15,U=(0,x.isNewYearActive)(),{data:L}=(0,l.useQuery)({queryKey:["current-membership-plans"],queryFn:()=>u.apiClient.get("/membership/my"),enabled:S}),F=(Array.isArray(L)?L:L?[L]:[]).filter(e=>"ACTIVE"===e.status).map(e=>e.planId)[0]||null,E=e.length>0?Math.min(...e.filter(e=>e.isActive).map(e=>Number(e.product?.salePrice??e.product?.price??0))):0,M=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(M.current)return;M.current=!0;let e=(0,f.fbViewContent)({id:"premium-membership",name:"Premium Membership",category:"membership",price:E,currency:"USD"});fetch("/api/meta-capi/view-content",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...(0,f.getMetaCookies)(),productId:"premium-membership",productName:"Premium Membership",category:"membership",price:E,currency:"USD",eventId:e,sourceUrl:window.location.href}),keepalive:!0}).catch(()=>{})},[E]);let O=[...e].filter(e=>e.isActive).sort((e,t)=>(e.sortOrder??99)-(t.sortOrder??99)).map(e=>{let t=Number(e.product?.salePrice??e.product?.price??0),r=e.product?.salePrice?Number(e.product.price):void 0,n=v[e.interval]||"oneYear",a=e.product?.translations?.find(e=>e.languageCode===w)?.name||e.product?.translations?.find(e=>"en"===e.languageCode)?.name||e.name,i=e.product?.translations?.find(e=>e.languageCode===w)?.slug||e.product?.translations?.find(e=>"en"===e.languageCode)?.slug||e.name.toLowerCase().replace(/\s+/g,"-"),o="LIFETIME"===e.interval,c="YEAR"===e.interval,s="SIX_MONTH"===e.interval,d=o?[N("cardFeatures.lifetimeThemes"),N("cardFeatures.lifetimePlugins"),N("cardFeatures.lifetimeUpdates"),N("cardFeatures.unlimitedUsage"),N("cardFeatures.downloadsPerDay",{count:String(e.dailyDownloadLimit)}),N("cardFeatures.oneTimePayment")]:[N("cardFeatures.accessThemes"),N("cardFeatures.accessPlugins"),N("cardFeatures.unlimitedUsage"),N("cardFeatures.downloadsPerDay",{count:String(e.dailyDownloadLimit)}),N("cardFeatures.noAutoRenewal")],l=e.description2?e.description2.match(/(\d+)/):null,u=l?N("cardFeatures.elementorLicense",{count:l[1]}):e.description2||"",m=U?x.NEWYEAR_COUPONS[e.interval]:void 0,p=m?m.code:o?D:null,g=m?m.percent/100:k,h=null!==p&&F!==e.id,f=h?Number((t*(1-g)).toFixed(2)):null;return{id:e.id,productId:e.product?.id||e.id,slug:i,name:a,shortName:o?"lifetime":c?"yearly":s?"sixMonth":"monthly",price:t,originalPrice:r,periodKey:n,interval:e.interval,isLifetime:o,isYearly:c,dailyDownloadLimit:e.dailyDownloadLimit,bonus:u,features:d,image:e.product?.thumbnailUrl||void 0,activePlanId:F===e.id?e.id:null,couponCode:h?p:null,couponPrice:f}}),R=async e=>{if(e.activePlanId)return void p.toast.error(N("alreadySubscribed"));if(e.couponCode){P(e.productId)||j({productId:e.productId,name:e.name,slug:e.slug,categorySlug:"membership",price:e.price,originalPrice:e.originalPrice,image:e.image});try{let t=Array.from(new Set([...A.map(e=>e.productId),e.productId])),r=A.reduce((e,t)=>e+t.price*t.quantity,0)+(P(e.productId)?0:e.price),n=await m.couponsService.validateCoupon({code:e.couponCode,orderAmount:r,productIds:t});n.valid&&n.code&&I(n.code,n.discountAmount||0,n.discountType&&void 0!==n.discountValue?{discountType:n.discountType,discountValue:n.discountValue,maxDiscount:n.maxDiscount,applicableProductIds:n.applicableProductIds}:void 0)}catch{}C.push("/cart");return}P(e.productId)?C.push("/cart"):(j({productId:e.productId,name:e.name,slug:e.slug,categorySlug:"membership",price:e.price,originalPrice:e.originalPrice,image:e.image}),p.toast.success(N("addedToCart"),{description:e.name,action:{label:N("viewCart"),onClick:()=>C.push("/cart")}}))};return(0,t.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,t.jsx)("div",{className:"grid items-end gap-6 md:grid-cols-3",children:O.map(e=>{let r=P(e.productId),n=e.couponPrice??e.price,a=e.originalPrice?Math.round((1-n/e.originalPrice)*100):0,s=e.isLifetime?{border:"border-amber-300 hover:border-amber-500",gradient:"from-amber-500/10 to-orange-500/10",button:"from-amber-500 to-orange-500",check:"from-amber-500 to-orange-500",badge:"from-amber-500 to-orange-500",badgeText:"mostPopular",icon:"/uploads/media/lifetime-icon.png",padding:"py-8 px-5 sm:py-12 sm:px-8",wrapper:""}:e.isYearly?{border:"border-blue-300 hover:border-blue-500",gradient:"from-blue-500/10 to-cyan-500/10",button:"from-blue-500 to-cyan-500",check:"from-blue-500 to-cyan-500",badge:"",badgeText:"",icon:"/uploads/media/yearly-icon.png",padding:"p-5 sm:p-8",wrapper:"mt-8"}:{border:"border-red-200 hover:border-red-400",gradient:"from-red-500/10 to-rose-500/10",button:"from-red-500 to-rose-500",check:"from-red-500 to-rose-500",badge:"",badgeText:"",icon:"/uploads/media/monthly-icon.png",padding:"p-5 sm:p-8",wrapper:"mt-8"};return(0,t.jsxs)("div",{className:`relative flex flex-col rounded-3xl border-2 bg-white shadow-xl transition-all duration-300 hover:-translate-y-2 hover:shadow-2xl ${s.border} ${s.padding} ${s.wrapper}`,children:[s.badgeText&&(0,t.jsx)("div",{className:`absolute -top-4 left-1/2 -translate-x-1/2 rounded-full bg-gradient-to-r ${s.badge} px-6 py-2 text-sm font-bold text-white shadow-lg`,children:N(s.badgeText)}),(0,t.jsx)("div",{className:"mb-6 flex justify-center",children:(0,t.jsx)("div",{className:`relative h-24 w-24 rounded-2xl bg-gradient-to-br ${s.gradient} p-4`,children:(0,t.jsx)(g.default,{sizes:"96px",src:`https://api.plugintheme.net${s.icon}`,alt:N("plans."+e.shortName),fill:!0,className:"object-contain p-2"})})}),(0,t.jsx)("h3",{className:"mb-2 text-center text-2xl font-bold text-gray-900",children:N("plans."+e.shortName)}),(0,t.jsxs)("div",{className:"mb-4 text-center",children:[(e.originalPrice??0)>0&&(e.originalPrice??0)>e.price&&(0,t.jsxs)("div",{className:"mb-1",children:[(0,t.jsx)("span",{className:"text-lg text-gray-500 line-through",children:(0,h.formatPrice)(e.originalPrice??0,"USD",(0,h.getIntlLocale)(w))}),(0,t.jsx)("span",{className:`ml-2 rounded-full bg-gradient-to-r ${s.button} px-3 py-1 text-sm font-bold text-white`,children:N("discountOff",{discount:String(a)})})]}),(0,t.jsxs)("div",{className:"flex items-baseline justify-center gap-1",children:[(0,t.jsx)("span",{className:"text-4xl font-extrabold text-gray-900 sm:text-5xl",children:(0,h.formatPrice)(n,"USD",(0,h.getIntlLocale)(w))}),!e.isLifetime&&(0,t.jsxs)("span",{className:"text-gray-500",children:["/ ",N(`period.${e.periodKey}`)||e.periodKey]})]}),e.couponCode&&null!==e.couponPrice&&(0,t.jsxs)("div",{className:"mt-2 inline-flex items-center gap-1.5 rounded-full bg-amber-100 px-3 py-1 text-xs font-bold text-amber-900",children:[(0,t.jsx)(c.Gift,{className:"h-3 w-3"}),N("couponApplied",{coupon:e.couponCode}),(0,t.jsx)("span",{className:"text-gray-500 line-through",children:(0,h.formatPrice)(e.price,"USD",(0,h.getIntlLocale)(w))})]}),e.isLifetime&&(0,t.jsx)("p",{className:"mt-2 text-sm font-medium text-amber-600",children:N("oneTimePayment")})]}),(0,t.jsx)("ul",{className:"mb-6 flex-1 space-y-2",children:e.features.map((e,r)=>(0,t.jsxs)("li",{className:"flex items-start gap-2",children:[(0,t.jsx)("div",{className:`mt-0.5 flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full bg-gradient-to-r ${s.check}`,children:(0,t.jsx)(i.Check,{className:"h-2.5 w-2.5 text-white"})}),(0,t.jsx)("span",{className:"text-sm text-gray-600",children:e})]},r))}),e.bonus&&(0,t.jsx)("div",{className:"mb-6 rounded-xl bg-gray-100 p-4",children:(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)(c.Gift,{className:"h-5 w-5 text-gray-500"}),(0,t.jsx)("span",{className:"text-sm font-medium text-gray-600",children:e.bonus})]})}),(0,t.jsx)("button",{onClick:()=>R(e),disabled:!!e.activePlanId,className:`group flex w-full items-center justify-center gap-2 rounded-xl py-4 font-bold text-white shadow-lg transition-all duration-300 hover:shadow-xl ${e.activePlanId?"cursor-not-allowed bg-gray-400":r&&!e.couponCode?"bg-green-500 hover:bg-green-600":`bg-gradient-to-r ${s.button} hover:scale-105`}`,children:e.activePlanId?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Check,{className:"h-5 w-5"}),N("currentPlan")]}):r&&!e.couponCode?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Check,{className:"h-5 w-5"}),N("goToCart")]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Crown,{className:"h-5 w-5 transition-transform group-hover:scale-110"}),N("getPremium")]})})]},e.id)})})})}e.s(["default",()=>w])}]);