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AAC;EAAA,OAAAnC,yBAAA;AAAA;AAEJ","sources":["webpack://smetio/./developement/js/classes/smetioPhotoAndDescription/v1.0.0/smetioPhotoAndDescription.js"],"sourcesContent":["//import {test_function} from \"./../functions/test_function.js\";\r\n\r\n\r\n\r\nimport {getId} from \"./../../universal_methods/getId.js\"; \r\nimport {setId} from \"./../../universal_methods/setId.js\";\r\nimport {generateId} from \"./../../universal_methods/generateId.js\";\r\nimport {isEmpty} from \"./../../universal_methods/isEmpty.js\"; \r\nimport {getAttributes} from \"./../../universal_methods/getAttributes.js\"; \r\nimport {toggleDisplay} from \"./../../universal_methods/toggleDisplay.js\"; \r\n\r\nimport { setTxt } from \"../../universal_methods/setTxt.js\";\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n//import \"./styles/_photoAndDescription.scss\";\r\n\r\n\r\n\r\nexport class SmetioPhotoAndDescription{\r\n \r\n constructor(data){\r\n \r\n\r\n this.getId = getId;\r\n this.setId = setId; \r\n this.generateId = generateId;\r\n this.isEmpty = isEmpty;\r\n this.getAttributes = getAttributes;\r\n this.toggleDisplay = toggleDisplay;\r\n this.setTxt = setTxt;\r\n\r\n this.setId();\r\n // http://localhost:3000/img/placeholders/placeholderCoverImage.PNG\r\n\r\n this.photo = data.photo || \"http://localhost:3000/img/home_page_front_photo_10.jpeg\";\r\n this.alt = data.alt;\r\n this.description = data.description;\r\n this.orientation = data.orientation || \"horizontal\";\r\n this.autoSide = data.autoSide || \"height\";\r\n\r\n this.descriptionVPosition = data.descriptionVPosition || \"top\";\r\n this.boxWidth = data.boxWidth || \"100%\";\r\n this.boxMaxWidth = data.boxMaxWidth || \"400px\";\r\n this.boxMinWidth = data.boxMinWidth || \"50px\";\r\n this.boxHeight = data.boxHeight || \"auto\";\r\n this.boxMinHeight = data.boxMinHeight || \"20px\";\r\n this.boxMaxHeight = data.boxMaxHeight || \"auto\";\r\n\r\n this.photoWidth = data.photoWidth || \"100px\";\r\n this.photoHeight = data.photoHeight || null;\r\n this.photoVPosition = data.photoVPosition || \"top\";\r\n this.photoMaxHeight = data.photoMaxHeight || null;\r\n this.photoMinHeight = data.photoMinHeight || null;\r\n\r\n this.boxMargin = data.boxMargin || \"10px\";\r\n this.boxPadding = data.boxPadding || \"10px\";\r\n this.selectWidth = data.selectWidth || \"20px\";\r\n this.selectHeight = data.selectHeight || \"20px\";\r\n this.selectMargin = data.selectMargin || \"10px\";\r\n this.isSelected = data.isSelected || false;\r\n this.horizontalIsResponsive = data.horizontalIsResponsive || false;\r\n\r\n this.onClicked = data.onClicked || function(){};\r\n this.onSelected = data.onSelected || function(){};\r\n this.onDeselected = data.onDeselected || function(){};\r\n this.onMouseEnter = data.onMouseEnter;\r\n this.onMouseLeave = data.onMouseLeave;\r\n\r\n this.isHidden = data.isHidden || false;\r\n this.icon = data.icon;\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n this.photoAndDescriptionClass = \"smetio-photo-and-description-\" + this.id;\r\n this.photoAndDescriptionAttributes = {\r\n id: this.id,\r\n \"data-smetio-orientation\": this.orientation,\r\n \"data-smetio-width\":this.boxWidth,\r\n \"data-smetio-max-width\": this.boxMaxWidth,\r\n \"data-smetio-min-width\": this.boxMinWidth,\r\n \"data-smetio-height\": this.boxHeight,\r\n \"data-smetio-min-height\": this.boxMinHeight,\r\n \"data-smetio-max-height\": this.boxMaxHeight,\r\n \"data-smetio-margin\": this.boxMargin,\r\n \"data-smetio-padding\": this.boxPadding,\r\n \"data-smetio-auto-side\": this.autoSide,\r\n \"data-smetio-is-hidden\": this.isHidden,\r\n \"data-smetio-horizontal-responsive\":this.horizontalIsResponsive,\r\n class: [\"smetio-photo-and-description\", this.photoAndDescriptionClass],\r\n };\r\n\r\n // photo\r\n this.photoClass = \"smetio-photo-and-description-photo-\" + this.id;\r\n this.photoAttributes = {\r\n \"data-smetio-orientation\": this.orientation,\r\n \"data-smetio-width\":this.photoWidth,\r\n \"data-smetio-v-position\": this.photoVPosition,\r\n // \"data-smetio-min-height\": this.photoMinHeight,\r\n // \"data-smetio-max-height\": this.photoMaxHeight,\r\n \"data-smetio-auto-side\": this.autoSide,\r\n \"data-smetio-horizontal-responsive\":this.horizontalIsResponsive,\r\n class: [\"smetio-photo-and-description-photo\", this.photoClass],\r\n };\r\n \r\n if(this.photoMinHeight) this.photoAttributes[\"data-smetio-min-height\"] = this.photoMinHeight;\r\n if(this.photoMaxHeight) this.photoAttributes[\"data-smetio-max-height\"] = this.photoMaxHeight;\r\n if(this.photoHeight) this.photoAttributes[\"data-smetio-height\"] = this.photoHeight;\r\n \r\n\r\n // image\r\n this.imageClass = \"smetio-photo-and-description-image-\" + this.id;\r\n this.imageAttributes = {\r\n src: \"http://localhost:3000/img/placeholders/placeholderCoverImage.PNG\",\r\n alt: this.alt,\r\n \"data-smetio-orientation\": this.orientation,\r\n \"data-smetio-width\":this.photoWidth,\r\n \"data-smetio-auto-side\": this.autoSide,\r\n class: [\"smetio-photo-and-description-image\", this.imageClass],\r\n };\r\n\r\n if(this.photoMinHeight) this.imageAttributes[\"data-smetio-min-height\"] = this.photoMinHeight;\r\n if(this.photoMaxHeight) this.imageAttributes[\"data-smetio-max-height\"] = this.photoMaxHeight;\r\n if(this.photoHeight) this.imageAttributes[\"data-smetio-height\"] = this.photoHeight;\r\n\r\n\r\n // description\r\n this.descriptionClass = \"smetio-photo-and-description-description-\" + this.id;\r\n this.descriptionAttributes = {\r\n \"data-smetio-orientation\": this.orientation,\r\n \"data-smetio-v-position\": this.descriptionVPosition,\r\n \"data-smetio-auto-side\": this.autoSide,\r\n class: [\"smetio-photo-and-description-description\", this.descriptionClass],\r\n };\r\n\r\n // selectStatus\r\n this.selectStatusClass = \"smetio-photo-and-description-select-status-\" + this.id;\r\n this.selectStatusAttributes = {\r\n \"data-smetio-width\":this.selectWidth,\r\n \"data-smetio-height\": this.selectHeight,\r\n \"data-smetio-margin\": this.selectMargin,\r\n \"data-smetio-is-selected\": this.isSelected,\r\n class: [\"smetio-photo-and-description-select-status\", this.selectStatusClass],\r\n };\r\n\r\n };\r\n\r\n select(){\r\n this.isSelected = true;\r\n $(\".\"+this.selectStatusClass).attr(\"data-smetio-is-selected\", this.isSelected);\r\n if(this.onSelected) this.onSelected();\r\n };\r\n\r\n deselect(){\r\n this.isSelected = false;\r\n $(\".\"+this.selectStatusClass).attr(\"data-smetio-is-selected\", this.isSelected);\r\n if(this.onDeselected) this.onDeselected();\r\n };\r\n\r\n\r\n\r\n getPhotosDescription(data={}){\r\n\r\n let {src, alt, description} = data;\r\n if( !this.isEmpty(src)) this.imageAttributes[\"src\"] = src;\r\n if( !this.isEmpty(alt)) this.imageAttributes[\"alt\"] = alt;\r\n\r\n description = this.setTxt({\r\n attributes: this.descriptionAttributes,\r\n txt: description || this.description,\r\n type: \"html\"\r\n });\r\n\r\n const icon = ``;\r\n const image = ``;\r\n const photo = this.icon ? icon : image;\r\n\r\n return `\r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n ${photo}\r\n
\r\n\r\n
\r\n ${description}\r\n
\r\n\r\n
\r\n `;\r\n\r\n /* \r\n
I am a description.
\r\n

I am a paragraph. And you are going to love me

\r\n */\r\n\r\n };\r\n \r\n hide(){\r\n $(\".\"+this.photoAndDescriptionClass).attr(\"data-smetio-is-hidden\", true);\r\n };\r\n\r\n show(){\r\n $(\".\"+this.photoAndDescriptionClass).attr(\"data-smetio-is-hidden\", false);\r\n };\r\n\r\n render() {\r\n\r\n this.events();\r\n\r\n setTimeout(() => {\r\n $(`.${this.imageClass}`).attr(\"src\", this.photo);\r\n }, 700);\r\n\r\n return this.getPhotosDescription();\r\n \r\n };\r\n \r\n events() {\r\n \r\n $(\"body\").on(\"mousedown\", \".\"+this.photoAndDescriptionClass, ()=>{\r\n \r\n if(this.onClicked) this.onClicked({id: this.id});\r\n \r\n });\t\r\n\r\n $(\"body\").on(\"mouseenter\", \".\"+this.photoAndDescriptionClass, ()=>{\r\n \r\n if(this.onMouseEnter) this.onMouseEnter({id: this.id});\r\n \r\n });\t\r\n\r\n $(\"body\").on(\"mouseleave\", \".\"+this.photoAndDescriptionClass, ()=>{\r\n \r\n if(this.onMouseLeave) this.onMouseLeave({id: this.id});\r\n \r\n });\t \r\n \r\n };\r\n\r\n};\r\n"],"names":["getId","setId","generateId","isEmpty","getAttributes","toggleDisplay","setTxt","SmetioPhotoAndDescription","data","_classCallCheck","photo","alt","description","orientation","autoSide","descriptionVPosition","boxWidth","boxMaxWidth","boxMinWidth","boxHeight","boxMinHeight","boxMaxHeight","photoWidth","photoHeight","photoVPosition","photoMaxHeight","photoMinHeight","boxMargin","boxPadding","selectWidth","selectHeight","selectMargin","isSelected","horizontalIsResponsive","onClicked","onSelected","onDeselected","onMouseEnter","onMouseLeave","isHidden","icon","photoAndDescriptionClass","id","photoAndDescriptionAttributes","photoClass","photoAttributes","imageClass","imageAttributes","src","descriptionClass","descriptionAttributes","selectStatusClass","selectStatusAttributes","_createClass","key","value","select","$","attr","deselect","getPhotosDescription","arguments","length","undefined","attributes","txt","type","concat","image","hide","show","render","_this","events","setTimeout","_this2","on"],"sourceRoot":""}