(function(s,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(s=typeof globalThis<"u"?globalThis:s||self,i(s.DentalInput={},s.Vue))})(this,function(s,i){"use strict";const y=` UNS image/svg+xml UNS \xA0 `,p={__name:"SvgInput",props:{itemsList:{type:Set,default:()=>new Set},radioMode:{type:Boolean,default:!1},modelValue:{type:Set,default:[]}},emits:["update:modelValue","click:item","mouseover:item","mouseout:item"],setup(e,{emit:c}){const n=e;function r(){n.itemsList.forEach(o=>{n.modelValue.has(o)?document.querySelector(`#${o}`).classList.add("selected"):document.querySelector(`#${o}`).classList.remove("selected")})}function t(o){const a=o.target.id;let l=new Set(n.radioMode?null:n.modelValue);n.modelValue.has(a)?l.delete(a):l.add(a),c("update:modelValue",l),c("click:item",o)}function k(o){c("mouseover:item",o)}function h(o){c("mouseout:item",o)}function m(){return n.radioMode&&n.modelValue.size>1?(c("update:modelValue",new Set([...n.modelValue.entries()].pop())),!0):!1}function R(){n.itemsList.forEach(o=>{document.querySelector(`#${o}`).addEventListener("click",t),document.querySelector(`#${o}`).addEventListener("mouseover",k),document.querySelector(`#${o}`).addEventListener("mouseout",h)})}function U(){n.itemsList.forEach(o=>{document.querySelector(`#${o}`).removeEventListener("click",t),document.querySelector(`#${o}`).removeEventListener("mouseover",k),document.querySelector(`#${o}`).removeEventListener("mouseout",h)})}return i.watch(()=>n.modelValue,()=>{m()||r()},{deep:!0}),i.watch(()=>n.radioMode,()=>{m()}),i.onMounted(()=>{R(),r()}),i.onBeforeUnmount(()=>{U()}),(o,a)=>(i.openBlock(),i.createElementBlock("div",null,[i.renderSlot(o.$slots,"default")]))}},_="",f=(e,c)=>{const n=e.__vccOpts||e;for(const[r,t]of c)n[r]=t;return n},u=["innerHTML"],w=f({__name:"DentalInput",props:{hoverColor:{type:String,default:"#747bff"},selectionColor:{type:String,default:"#646cff"}},setup(e){const c=e;i.useCssVars(r=>({b64b70fa:c.hoverColor,"2ba4199a":c.selectionColor}));const n=new Set(Array(32).fill(1).map((r,t)=>`tooth${r+t}`));return(r,t)=>(i.openBlock(),i.createBlock(p,{"items-list":i.unref(n)},{default:i.withCtx(()=>[i.createElementVNode("div",{innerHTML:i.unref(y)},null,8,u)]),_:1},8,["items-list"]))}},[["__scopeId","data-v-ac69aa69"]]);function v(e){return{tooth1:1,tooth2:2,tooth3:3,tooth4:4,tooth5:5,tooth6:6,tooth7:7,tooth8:8,tooth9:9,tooth10:10,tooth11:11,tooth12:12,tooth13:13,tooth14:14,tooth15:15,tooth16:16,tooth17:17,tooth18:18,tooth19:19,tooth20:20,tooth21:21,tooth22:22,tooth23:23,tooth24:24,tooth25:25,tooth26:26,tooth27:27,tooth28:28,tooth29:29,tooth30:30,tooth31:31,tooth32:32}[e]}function d(e){return{tooth1:"8\u2518",tooth2:"7\u2518",tooth3:"6\u2518",tooth4:"5\u2518",tooth5:"4\u2518",tooth6:"3\u2518",tooth7:"2\u2518",tooth8:"1\u2518",tooth9:"\u25141",tooth10:"\u25142",tooth11:"\u25143",tooth12:"\u25144",tooth13:"\u25145",tooth14:"\u25146",tooth15:"\u25147",tooth16:"\u25148",tooth17:"\u250C8",tooth18:"\u250C7",tooth19:"\u250C6",tooth20:"\u250C5",tooth21:"\u250C4",tooth22:"\u250C3",tooth23:"\u250C2",tooth24:"\u250C1",tooth25:"1\u2510",tooth26:"2\u2510",tooth27:"3\u2510",tooth28:"4\u2510",tooth29:"5\u2510",tooth30:"6\u2510",tooth31:"7\u2510",tooth32:"8\u2510"}[e]}function g(e){let c=Array.from(e).map(t=>d(t)),n="",r={"\u2518":c.filter(t=>t.includes("\u2518")).map(t=>t.replace("\u2518","")),"\u2514":c.filter(t=>t.includes("\u2514")).map(t=>t.replace("\u2514","")),"\u2510":c.filter(t=>t.includes("\u2510")).map(t=>t.replace("\u2510","")),"\u250C":c.filter(t=>t.includes("\u250C")).map(t=>t.replace("\u250C",""))};return r["\u2518"].length&&(n+=r["\u2518"].sort().reverse().join("")+"\u2518"),r["\u2514"].length&&(n+="\u2514"+r["\u2514"].sort().join("")),r["\u2510"].length+r["\u250C"].length>0&&(n+=" "),r["\u2510"].length&&(n+=r["\u2510"].sort().reverse().join("")+"\u2510"),r["\u250C"].length&&(n+="\u250C"+r["\u250C"].sort().join("")),n}function z(e){return{tooth1:18,tooth2:17,tooth3:16,tooth4:15,tooth5:14,tooth6:13,tooth7:12,tooth8:11,tooth9:21,tooth10:22,tooth11:23,tooth12:24,tooth13:25,tooth14:26,tooth15:27,tooth16:28,tooth17:38,tooth18:37,tooth19:36,tooth20:35,tooth21:34,tooth22:33,tooth23:32,tooth24:31,tooth25:41,tooth26:42,tooth27:43,tooth28:44,tooth29:45,tooth30:46,tooth31:47,tooth32:48}[e]}function j(e){return{tooth1:"UR8",tooth2:"UR7",tooth3:"UR6",tooth4:"UR5",tooth5:"UR4",tooth6:"UR3",tooth7:"UR2",tooth8:"UR1",tooth9:"UL1",tooth10:"UL2",tooth11:"UL3",tooth12:"UL4",tooth13:"UL5",tooth14:"UL6",tooth15:"UL7",tooth16:"UL8",tooth17:"LL8",tooth18:"LL7",tooth19:"LL6",tooth20:"LL5",tooth21:"LL4",tooth22:"LL3",tooth23:"LL2",tooth24:"LL1",tooth25:"LR1",tooth26:"LR2",tooth27:"LR3",tooth28:"LR4",tooth29:"LR5",tooth30:"LR6",tooth31:"LR7",tooth32:"LR8"}[e]}function x(e){return{tooth1:"RM\xB3",tooth2:"RM\xB2",tooth3:"RM\xB9",tooth4:"RP\u2074",tooth5:"RP\xB3",tooth6:"RC\u207B",tooth7:"RI\xB2",tooth8:"RI\xB9",tooth9:"LI\xB9",tooth10:"LI\xB2",tooth11:"LC\u207B",tooth12:"LP\xB3",tooth13:"LP\u2074",tooth14:"LM\xB9",tooth15:"LM\xB2",tooth16:"LM\xB3",tooth17:"LM\u2083",tooth18:"LM\u2082",tooth19:"LM\u2081",tooth20:"LP\u2084",tooth21:"LP\u2083",tooth22:"LC\u208B",tooth23:"LI\u2082",tooth24:"LI\u2081",tooth25:"RI\u2081",tooth26:"RI\u2082",tooth27:"RC\u208B",tooth28:"RP\u2083",tooth29:"RP\u2084",tooth30:"RM\u2081",tooth31:"RM\u2082",tooth32:"RM\u2083"}[e]}function b(e){return{tooth1:"3rd Molar commonly known as wisdom tooth",tooth2:"2nd Molar",tooth3:"1st Molar",tooth4:"2nd Bicuspid also known as 2nd premolar",tooth5:"1st Bicuspid or 1st premolar",tooth6:"Cuspid or canine",tooth7:"Lateral incisor (upper right)",tooth8:"Central incisor (upper right)",tooth9:"Central incisor (upper left)",tooth10:"Lateral incisor (upper left)",tooth11:"Cuspid (canine/eye tooth)",tooth12:"1st Bicuspid or 1st premolar",tooth13:"2nd Bicuspid or 2nd premolar",tooth14:"1st Molar",tooth15:"2nd Molar",tooth16:"3rd Molar or wisdom tooth",tooth17:"3rd Molar or wisdom tooth (lower left )",tooth18:"2nd Molar",tooth19:"1st Molar",tooth20:"2nd Bicuspid or 2nd premolar",tooth21:"1st Bicuspid or 1st premolar",tooth22:"Cuspid or canine",tooth23:"Lateral incisor",tooth24:"Central incisor",tooth25:"Central incisor",tooth26:"Lateral incisor",tooth27:"Cuspid or canine",tooth28:"1st Bicuspid or 1st premolar",tooth29:"2nd Bicuspid or 2nd premolar",tooth30:"1st Molar",tooth31:"2nd Molar",tooth32:"3rd Molar (lower right wisdom tooth)"}[e]}function L(e){return{tooth1:"Molar",tooth2:"Molar",tooth3:"Molar",tooth4:"Premolar",tooth5:"Premolar",tooth6:"Canine",tooth7:"Incisor",tooth8:"Incisor",tooth9:"Incisor",tooth10:"Incisor",tooth11:"Canine",tooth12:"Premolar",tooth13:"Premolar",tooth14:"Molar",tooth15:"Molar",tooth16:"Molar",tooth17:"Molar",tooth18:"Molar",tooth19:"Molar",tooth20:"Premolar",tooth21:"Premolar",tooth22:"Canine",tooth23:"Incisor",tooth24:"Incisor",tooth25:"Incisor",tooth26:"Incisor",tooth27:"Canine",tooth28:"Premolar",tooth29:"Premolar",tooth30:"Molar",tooth31:"Molar",tooth32:"Molar"}[e]}function S(e){return{tooth1:"Upper Right",tooth2:"Upper Right",tooth3:"Upper Right",tooth4:"Upper Right",tooth5:"Upper Right",tooth6:"Upper Right",tooth7:"Upper Right",tooth8:"Upper Right",tooth9:"Upper Left",tooth10:"Upper Left",tooth11:"Upper Left",tooth12:"Upper Left",tooth13:"Upper Left",tooth14:"Upper Left",tooth15:"Upper Left",tooth16:"Upper Left",tooth17:"Lower Left",tooth18:"Lower Left",tooth19:"Lower Left",tooth20:"Lower Left",tooth21:"Lower Left",tooth22:"Lower Left",tooth23:"Lower Left",tooth24:"Lower Left",tooth25:"Lower Right",tooth26:"Lower Right",tooth27:"Lower Right",tooth28:"Lower Right",tooth29:"Lower Right",tooth30:"Lower Right",tooth31:"Lower Right",tooth32:"Lower Right"}[e]}const M={uns:v,palmer:d,combinedPalmer:g,fdi:z,alphanum:j,paleoanthropology:x,ada:b,type:L,region:S};s.DentalInput=w,s.SvgInput=p,s.filters=M,Object.defineProperties(s,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});