1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3539],{13539:(e,i,a)=>{a.r(i),a.d(i,{SectionTemplates:()=>w});var t=a(62172),l=a(73612),n=a(94896),s=a(23129),r=a(66453),o=a(43157),c=a.n(o);function d(e){let i,a,n,s,r=(0,l.c)(13),{locale:o,templates:d}=e;if(!d.length)return null;if(r[0]!==o||r[1]!==d){let e,l,s=function(e){let i={};for(let a of e){let e=a.specialty||"General";(i[e]??=[]).push(a)}return i}(d);r[5]!==o?(e=o?.toLowerCase(),r[5]=o,r[6]=e):e=r[6];let g=e,m=g&&"en"!==g?`/${g}`:"";i="Template directory",a="sr-only",r[7]!==m?(l=e=>{let[i,a]=e;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{children:[i," Templates"]}),(0,t.jsx)("ul",{children:a.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(c(),{href:`${m}/templates/${encodeURIComponent(e.url_path)}`,children:e.title})},e.template_id))})]},i)},r[7]=m,r[8]=l):l=r[8],n=Object.entries(s).sort(u).map(l),r[0]=o,r[1]=d,r[2]=i,r[3]=a,r[4]=n}else i=r[2],a=r[3],n=r[4];return r[9]!==i||r[10]!==a||r[11]!==n?(s=(0,t.jsx)("nav",{"aria-label":i,className:a,children:n}),r[9]=i,r[10]=a,r[11]=n,r[12]=s):s=r[12],s}function u(e,i){let[a]=e,[t]=i;return a.localeCompare(t)}var g=a(88639),m=a(34356);function h(){let e,i,a,n,s,r=(0,l.c)(5);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsx)(m.EAD,{className:"h-10 w-full sm:w-64"}),(0,t.jsx)(m.EAD,{className:"h-10 w-full sm:w-48"})]}),r[0]=e):e=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsxs)("div",{className:"mb-8 space-y-4",children:[e,(0,t.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center",children:[(0,t.jsx)(m.EAD,{className:"h-10 w-full sm:w-48"}),(0,t.jsx)(m.EAD,{className:"h-10 w-full sm:w-48"}),(0,t.jsx)(m.EAD,{className:"h-10 w-full sm:w-32"})]})]}),r[1]=i):i=r[1],r[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsx)(m.EAD,{className:"h-6 w-48"})}),r[2]=a):a=r[2],r[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[...Array(12)].map(p)}),r[3]=n):n=r[3],r[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[i,a,n,(0,t.jsxs)("div",{className:"flex justify-center items-center gap-2 mt-12",children:[(0,t.jsx)(m.EAD,{className:"h-10 w-10 rounded-lg"}),(0,t.jsx)(m.EAD,{className:"h-10 w-10 rounded-lg"}),(0,t.jsx)(m.EAD,{className:"h-10 w-10 rounded-lg"}),(0,t.jsx)(m.EAD,{className:"h-10 w-10 rounded-lg"}),(0,t.jsx)(m.EAD,{className:"h-10 w-10 rounded-lg"})]})]}),r[4]=s):s=r[4],s}function p(e,i){return(0,t.jsxs)("div",{className:"rounded-lg border border-color-base bg-white p-6 shadow-sm flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(m.EAD,{className:"h-4 w-20"}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(m.EAD,{className:"h-4 w-4 rounded-full"}),(0,t.jsx)(m.EAD,{className:"h-4 w-8"})]})]}),(0,t.jsx)(m.EAD,{className:"h-6 w-full"}),(0,t.jsx)(m.EAD,{className:"h-6 w-3/4"}),(0,t.jsxs)("div",{className:"flex items-center gap-3 pt-4 border-t border-color-base mt-auto",children:[(0,t.jsx)(m.EAD,{className:"h-4 w-6 rounded"}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 flex-1",children:[(0,t.jsx)(m.EAD,{className:"h-4 w-32"}),(0,t.jsx)(m.EAD,{className:"h-3 w-full"})]})]})]},i)}var S=a(62695),y=a(52056),f=a(86035),x=a(51993),P=a(17311),b=a(39510),N=a(53812);let A={en:["United States","Global"],"en-us":["United States","Global"],"en-au":["Australia","Global"],"en-gb":["United Kingdom","Global"],"en-ca":["Canada","Global"],"en-nz":["New Zealand","Australia","Global"],"en-ie":["Ireland","United Kingdom","Global"],"en-hk":["Hong Kong","Singapore","Global"],"en-sg":["Singapore","Global"],"en-za":["South Africa","Global"],"en-my":["Malaysia","Singapore","Global"],"en-ae":["United Arab Emirates","Global"],"en-sa":["Saudi Arabia","United Arab Emirates","Global"],"de-de":["Germany","Global"],"fr-fr":["France","Global"],"es-es":["Spain","Global"],"es-mx":["Mexico","Spain","Global"],"es-ar":["Argentina","Spain","Global"],"it-it":["Italy","Global"],"nl-nl":["Netherlands","Global"],"pt-pt":["Portugal","Global"],"pt-br":["Brazil","Portugal","Global"]};function v(e){return e?e.toLowerCase().trim().replace(/&/g,"and").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""):""}let C=["Accident and Emergency Nurse","Community Nurse","Infection Control Nurse","Mental Health Nurse","Midwife","Nurse","Nurse Practitioner","Paediatric Nurse","Palliative Care Nurse","Psychiatric Nurse","Registered Nurse","Scrub Nurse","Specialised Nurse","Veter
1inarian Nurse"],M=Object.entries({Administrators:["Healthcare Assistant","Healthcare Service Manager","Medical Record Administrator","Practice Manager","Support Manager"],"Aged Care":["Geriatric Medicine Specialist","Geriatrician","Long Term Care Clinician","Palliative Care Nurse","Palliative Care Physician","Psychogeriatrician"],"Allied Health":["Acupuncturist","Advanced Paramedic","Allied Health Professional","Alternative medicine practitioner","Arts Therapist","Audiologist","Audiometrist","Behaviour Therapist","Chiropractor","Clinical Physiologist","Diabetes Dietitian","Diagnostic Radiographer","Dietitian","Eating Disorder Specialist Dietitian","Exercise Physiologists","General Dietitian","Health Coach","Holistic Health Practitioner","Lactation Consultant","Liver Dietitian","Massage Therapist","Naturopath","Nutrition & diabetics Specialist","Nutrition Therapist","Occupational Therapist","Optometrist","Osteopath","Paediatric Dietitian","Paramedic","Pharmacist","Physiotherapist","Podiatrist","Respiratory Therapist","Speech Pathologist","Speech Pathologists","Speech and Language Therapist"],Clinicians:["Advanced Clinical Practitioner","Family Planning Doctor","General Practitioner","Hospitalist","Internal Medicine Specialist","Nurse Practitioner","Physician","Physician Assistant","Physician Associate","Urgent Care Clinician"],Clinics:["General Practitioner","Healthcare Service Manager","Nurse Practitioner","Practice Manager"],Dentists:["Dentist","Endodontist","Oral Maxillofacial Surgeon","Oral/Dental Hygienist","Orthodontist","Periodontist","Prosthodontist"],"Emergency Medicine":["Accident and Emergency Nurse","Advanced Paramedic","EMT","Emergency Medicine Doctor","Emergency Medicine Registrar","Emergency Medicine Specialist","Paramedic","Urgent Care Clinician"],Enterprise:["Healthcare Service Manager","Physician","Practice Manager","Surgeon"],Executives:["Healthcare Service Manager","Practice Manager"],"Family Medicine Specialists":["Family Medicine Specialist","General Practitioner"],"Mental Health":["Accredited Mental Health Social Worker","Addiction Counsellor","Addiction Medicine Specialist","Arts Therapist","Behaviour Therapist","Child and Adolescent Psychiatrist","Clinical Psychologist","Clinical Social Worker","Cognitive Behavioral Therapist","Counselling Psychologist","Counselors","Eating Disorder Specialist Dietitian","Health Psychologist","Marriage Guidance Counsellor","Marriage and family therapist","Mental Health Counselor","Mental Health Nurse","Mental Health and Behavioural Specialist","Pediatric Psychologist","Psychiatric Nurse","Psychiatrist","Psychogeriatrician","Psychologist","Psychotherapist","Sexologist","Social Worker","Substance Abuse Counsellor","Therapist","Youth Worker"],Nursing:C,Nurses:C,"Primary Care":["Family Medicine Specialist","Family Planning Doctor","General Practitioner","Hospitalist","Nurse Practitioner","Physician","Physician Assistant","Physician Associate"],Specialists:["Acute Medicine Specialist","Addiction Medicine Specialist","Adolescent and young adult medicine Specialist","Adult Intensive Care Specialist","Advanced Clinical Practitioner","Allergy and Immunologist","Anaesthetist","Cardiologist","Chronic Pain Specialist","Clinical Geneticist","Clinical Immunologist","Community Child Health Specialist","Critical Care Medicine Specialist","Dermatologist","Developmental Paediatrician","Diabetologist","Diagnostic Radiologist","Emergency Medicine Specialist","Endocrinologist","Functional Medicine Specialist","Gastroenterologist","General Paediatrician","Geriatric Medicine Specialist","Geriatrician","Gynaecological Oncologist","Gynaecologist","Haematologist","Intensive Care Specialist","Internal Medicine Specialist","Invasive Cardiologist","Lung and Sleep Specialist","Maternal-Fetal Medicine Specialist","Medical Oncologist","Medical Pathologist","Nephrologist","Neurologist","Obesity Medicine","Obstetrician & Gynaecologist","Occupational Health Physician","Oncologist","Ophthalmologist","Otolaryngologist","Otorhinolaryngologist (ENT Specialist)","Paediatric Allergist","Paediatric Cardiologist","Paediatric Dietitian","Paediatric Endocrinologist","Paediatric Neurologist","Paediatric Respirologist","Paediatrician","Pain Management Specialist","Palliative Care Physician","Physical Medicine and Rehabilitation Specialist","Pulmonologist","Radiation Oncology","Radiologist","Radiology and Imaging Specialist","Rehabilitation Medicine Specialist","Reproductive Endocrinologist","Respiratory Physician","Rheumatologist","Sports Medicine Specialist","Sports physician","Thyroidologist","Travel Medicine Specialist","Urogynaecologist","Urologist"],Surgeons:["Bariatric Surgeon","Breast Surgeon","Cardiothoracic Surgeon","Colorectal Surgeon","Gastrointestinal Surgeon","General Surgeon","Hand Surgeon","Hip and Knee Surgeon","Maxillofacial Surgeon","Neurosurgeon","Oral Maxillofacial Surgeon","Orthopaedic Surgeon","Orthopaedics","Paediatric Orthopaedic Surgeon","Pediatric Surgeon","Plastic & Reconstructive Surgeon","Retinal Surgeon","Shoulder Surgeon","Spine Surgeon","Surgeon","Surgical Oncologist","Trauma Surgeon","Upper Gastrointestinal Surgeon","Vascular Surgeon"],Trainees:["Emergency Medicine Registrar","Nurse Practitioner","Physician Assistant","Physician Associate","Registrar","Resident","Student","Trainee"],Veterinarians:["Veterinarian","Veterinarian Nurse"]}).reduce((e,i)=>{let[a,t]=i;return e[v(a)]=t.map(v),e},{});function j(e,i){if(!e)return null;let a=v(e),t=i.map(e=>({value:e,slug:v(e)})),l=t.find(e=>e.slug===a);if(l)return l.value;let n=[];for(let e of(a.endsWith("ian")&&n.push(a.replace(/ian$/,"y")),a.endsWith("ies")&&n.push(a.replace(/ies$/,"y")),a.endsWith("s")&&n.push(a.replace(/s$/,"")),n.filter(
1Boolean))){let i=t.find(i=>i.slug===e);if(i)return i.value}let s=t.find(e=>{let i=e.slug,t=i.slice(0,6),l=a.slice(0,6);return i.includes(a)||a.includes(i)||t&&a.startsWith(t)||l&&i.startsWith(l)});return s?s.value:null}async function w(e){let i,a,o,c,u,m,p,C,w,G=(0,l.c)(56),{_key:D,internalLabel:_,badge:T,badgeStyle:R,titleRich:H,headerDescription:O,displayMode:k,specialty:I,language:L,templateCount:U,buttons:F,headerAlign:B,sectionTheme:W,padding:K,extraPadding:$,sectionBackgroundPattern:z,__pageContext:V,__isFirstSection:Z,__locale:X}=e,Y=void 0===U?"6":U,J=void 0===W?"transparent":W,q=void 0===K?"contained":K,Q=void 0===$?"none":$,ee=void 0!==Z&&Z;G[0]!==R||G[1]!==Q?(i=(0,N.Ux)({extraPadding:Q,badgeStyle:R}),G[0]=R,G[1]=Q,G[2]=i):i=G[2];let{extraPadding:ei,badgeStyle:ea}=i,et=V?.sectionKey??D,el=_??V?.internalLabel;if(G[3]!==ee||G[4]!==V||G[5]!==T||G[6]!==F||G[7]!==ea||G[8]!==O||G[9]!==el||G[10]!==et||G[11]!==H){let e,i,t=(0,x.TC)({...V?{base:V}:{},sectionType:"sectionTemplates",...void 0!==et?{sectionKey:et}:{},componentName:"SectionTemplates",...void 0!==el?{internalLabel:el}:{}});if(a=[],T){let e,i=ea??"ghost";G[13]!==T||G[14]!==i?(e={type:"badge",data:{text:T,style:i}},G[13]=T,G[14]=i,G[15]=e):e=G[15],a.push(e)}G[16]!==ee||G[17]!==H?(e=(0,b.RW)(H,{as:(0,f.hY)(ee,"h2")}),G[16]=ee,G[17]=H,G[18]=e):e=G[18];let l=e;l&&a.push(l),G[19]!==O?(i=(0,b.RW)(O,{component:"text"}),G[19]=O,G[20]=i):i=G[20];let n=i;n&&a.push(n);let s=(0,P.g0)(F,{limit:2,context:(0,x.RP)(t,{componentName:"SectionTemplates.actions"})});if(s.length>0){let e;G[21]!==s?(e={type:"actions",data:{actions:s}},G[21]=s,G[22]=e):e=G[22],a.push(e)}G[3]=ee,G[4]=V,G[5]=T,G[6]=F,G[7]=ea,G[8]=O,G[9]=el,G[10]=et,G[11]=H,G[12]=a}else a=G[12];G[23]!==B?(o=(0,N.yR)(B)??"center",G[23]=B,G[24]=o):o=G[24];let en=o,es=(0,N.yR)(void 0===k?"bySpecialty":k)??"bySpecialty",er=L&&""!==L.trim()?L:X||"en";if("all"===es){let e,i,a;try{let i;G[25]===Symbol.for("react.memo_cache_sentinel")?(i=await (0,y.LF)(),G[25]=i):i=G[25],e=i}catch{return null}if(0===e.length)return null;G[26]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(n.Suspense,{fallback:(0,t.jsx)(h,{}),children:(0,t.jsx)(g.J,{templates:e})}),G[26]=i):i=G[26],G[27]!==er?(a=(0,t.jsxs)(t.Fragment,{children:[i,(0,t.jsx)(d,{locale:er,templates:e})]}),G[27]=er,G[28]=a):a=G[28],c=a}else{let e,i,a,l,n;if(G[29]!==Y||G[30]!==er||G[31]!==I){a=Symbol.for("react.early_return_sentinel");e:{let t;try{e=await (0,y.yv)()}catch{a=null;break e}if(0===e.length){a=null;break e}G[36]!==Y?(t=(0,N.yR)(Y)??"6",G[36]=Y,G[37]=t):t=G[37];let n=parseInt(t),{specialties:s}=await (0,y.mK)(),r=!!I&&v(I)in M,o=r?null:j(I,s),c=r?I??null:o??I??null,d=function(e){let{templates:i,specialty:a,availableSpecialties:t,language:l,templateCount:n,excludeTemplateIds:s=[],disableRegionFilter:r=!1}=e,o=v(a??"")in M,c=o?null:j(a,t),d=v(o?a??"":c??a??""),u=A[(l||"en").toLowerCase()]||["Global"],g=i.filter(e=>{if(!d)return!0;let i=v(e.specialty),a=v(e.template_category),t=M[d];return t?t.includes(i)||t.includes(a):i===d||a===d||(!!i||!!a)&&(!!i&&(i.includes(d)||d.includes(i))||!!a&&(a.includes(d)||d.includes(a)))}).filter(e=>!s.includes(e.template_id)).sort((e,i)=>{let a=(e.imports_count||0)+(e.views_count||0);return(i.imports_count||0)+(i.views_count||0)-a});if(r)return g.slice(0,n);let m=g.filter(e=>{let i=e.country?.toLowerCase(),a=e.source_region?.toUpperCase(),t=i||(a?({AU:"australia",US:"united states",GB:"united kingdom",UK:"united kingdom",CA:"canada",NZ:"new zealand",IE:"ireland",SG:"singapore",HK:"hong kong",DE:"germany",FR:"france",ES:"spain",IT:"italy",NL:"netherlands",PT:"portugal",BR:"brazil",MX:"mexico",AR:"argentina",ZA:"south africa",AE:"united arab emirates",GLOBAL:"global"})[a]:null);return u.some(e=>{let i=e.toLowerCase();return t?t===i:"global"===i})});if(m.length>=n)return m.slice(0,n);let h=new Set(m.map(e=>e.template_id)),p=g.filter(e=>!h.has(e.template_id)),S=n-m.length;return[...m,...p.slice(0,S)]}({templates:e,...c&&{specialty:c},availableSpecialties:s,language:er,templateCount:n});if(0===d.length){a=null;break e}l="grid gap-4 w-full grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",i=d.map(E)}G[29]=Y,G[30]=er,G[31]=I,G[32]=i,G[33]=a,G[34]=l,G[35]=e}else i=G[32],a=G[33],l=G[34],e=G[35];if(a!==Symbol.for("react.early_return_sentinel"))return a;
1G[38]!==i||G[39]!==l?(n=(0,t.jsx)("div",{className:l,children:i}),G[38]=i,G[39]=l,G[40]=n):n=G[40],c=n}G[41]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(S.ComponentIdentifier,{name:"SectionTemplates",path:"/components/page-builder/SectionTemplates/SectionTemplates.tsx"}),G[41]=u):u=G[41],G[42]!==z?(m={pattern:z},G[42]=z,G[43]=m):m=G[43];let eo=r.EC[ei];return G[44]!==en||G[45]!==a?(p=a.length>0&&(0,t.jsx)(s.X3,{contentBlocks:a,align:en}),G[44]=en,G[45]=a,G[46]=p):p=G[46],G[47]!==c||G[48]!==p?(C=(0,t.jsxs)("div",{className:"flex flex-col items-center gap-section-md w-full max-w-container-lg",children:[p,c]}),G[47]=c,G[48]=p,G[49]=C):C=G[49],G[50]!==q||G[51]!==J||G[52]!==m||G[53]!==eo||G[54]!==C?(w=(0,t.jsxs)(t.Fragment,{children:[u,(0,t.jsx)(r.$K,{padding:q,variant:J,backgroundProps:m,className:eo,"data-section":"templates",children:C})]}),G[50]=q,G[51]=J,G[52]=m,G[53]=eo,G[54]=C,G[55]=w):w=G[55],w}function E(e){return(0,t.jsx)(s.xW,{template:e,trackingLocation:"section_templates.card",showRegionFlag:!0,showImportCount:!0},e.template_id)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.